Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use sensor tegangan: Examples, Pinouts, and Specs

Image of sensor teganganDesign with sensor tegangan in Cirkit Designer

Introduction

A voltage sensor is a device that detects and measures the voltage level in a circuit, providing an output signal that can be used for monitoring or control purposes. These sensors are widely used in various applications, including power management systems, battery monitoring, industrial automation, and renewable energy systems. By converting voltage levels into readable signals, voltage sensors enable precise monitoring and control of electrical systems.

Explore Projects Built with sensor tegangan

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino and ESP-8266 Based Electrical Parameter Monitoring System with LCD Display: A project utilizing sensor tegangan in a practical application
Arduino and ESP-8266 Based Electrical Parameter Monitoring System with LCD Display

This circuit features an Arduino UNO interfaced with an ACS712 current sensor and a ZMPT101B voltage sensor for measuring electrical parameters, which are displayed on an LCD. The ESP-8266 Controller is connected to the Arduino for potential IoT capabilities, and a trimmer potentiometer is used to adjust the LCD contrast. Power regulation is managed by an LM2596 module connected to a 220V power source.

Open Project in Cirkit Designer
Image of ESP32-Based Smart Energy Monitoring and Control System: A project utilizing sensor tegangan in a practical application
ESP32-Based Smart Energy Monitoring and Control System

This circuit is designed to monitor AC voltage and current using ZMPT101B and ZMCT103C sensors, respectively, with an ESP32 microcontroller processing the sensor outputs. The XL4015 step-down module regulates the power supply to provide a stable voltage to the sensors, the ESP32, and an LCD I2C display. The ESP32 controls a 4-channel relay module for switching AC loads, and the system's operation can be interacted with via the LCD display and a push switch.

Open Project in Cirkit Designer
Image of STM32 and ESP8266-Based Electric Grid Monitoring and Control System with I2C LCD Display: A project utilizing sensor tegangan in a practical application
STM32 and ESP8266-Based Electric Grid Monitoring and Control System with I2C LCD Display

This circuit monitors and controls an electric grid by measuring voltage and current using ZMPT101B and ACS712 sensors, displaying the readings on a 16x2 I2C LCD screen, and controlling a relay module to manage the load. The system is powered by a 3.3V battery, uses an STM32 microcontroller for processing, and includes an ESP8266 module for remote monitoring and control via WiFi.

Open Project in Cirkit Designer

Technical Specifications

Below are the key technical details for a typical voltage sensor module:

General Specifications

Pin Configuration and Descriptions

The voltage sensor module typically has a 4-pin interface. The pinout is as follows:

Pin Name Description
VCC Power supply input (typically 3.3V or 5V, depending on the module specification).
GND Ground connection.
VIN Voltage input to be measured (connect to the circuit under test).
VOUT Analog output voltage proportional to the input voltage.

Voltage Divider Circuit

The voltage sensor uses a voltage divider circuit to scale down the input voltage. For example, a 5:1 divider ratio allows the sensor to measure up to 25V while outputting a maximum of 5V.

Usage Instructions

How to Use the Voltage Sensor in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 5V power source (or 3.3V, depending on the module) and the GND pin to the ground.
  2. Connect the Voltage to Be Measured: Attach the positive terminal of the voltage source to the VIN pin and the negative terminal to the GND pin.
  3. Read the Output Signal: The VOUT pin provides an analog voltage proportional to the input voltage. This can be read using an analog-to-digital converter (ADC) on a microcontroller, such as an Arduino.

Important Considerations and Best Practices

Example: Using the Voltage Sensor with Arduino UNO

Below is an example code snippet to measure voltage using an Arduino UNO:

// Define the analog pin connected to the voltage sensor's VOUT pin
const int sensorPin = A0;

// Define the voltage divider ratio (e.g., 5:1 for a 25V sensor)
const float voltageDividerRatio = 5.0;

// Define the reference voltage of the Arduino (typically 5V)
const float referenceVoltage = 5.0;

void setup() {
  // Initialize serial communication for debugging
  Serial.begin(9600);
}

void loop() {
  // Read the analog value from the sensor
  int sensorValue = analogRead(sensorPin);

  // Convert the analog value to a voltage
  float measuredVoltage = (sensorValue * referenceVoltage / 1023.0) * voltageDividerRatio;

  // Print the measured voltage to the Serial Monitor
  Serial.print("Measured Voltage: ");
  Serial.print(measuredVoltage);
  Serial.println(" V");

  // Wait for 1 second before the next reading
  delay(1000);
}

Notes on the Code

Troubleshooting and FAQs

Common Issues

  1. Incorrect Voltage Readings:

    • Cause: Calibration not performed or incorrect voltage divider ratio.
    • Solution: Verify the voltage divider ratio and calibrate the sensor using a known reference voltage.
  2. No Output Signal:

    • Cause: Improper wiring or insufficient power supply.
    • Solution: Double-check all connections and ensure the sensor is powered correctly.
  3. Fluctuating Readings:

    • Cause: Electrical noise or unstable input voltage.
    • Solution: Add decoupling capacitors near the sensor and ensure a stable input voltage.

FAQs

Q1: Can this sensor measure AC voltage?
A1: No, this sensor is designed for DC voltage only. For AC voltage, use a dedicated AC voltage sensor.

Q2: What happens if the input voltage exceeds the sensor's maximum rating?
A2: Exceeding the maximum input voltage may damage the sensor or produce inaccurate readings. Always stay within the specified range.

Q3: Can I use this sensor with a 3.3V microcontroller?
A3: Yes, but ensure the sensor's VCC pin is powered with 3.3V, and the output voltage does not exceed the microcontroller's ADC input range.

By following this documentation, users can effectively integrate and troubleshoot a voltage sensor in their projects.