80V - 280V AC
80V - 280V AC
0-5V DC
1% (full scale)
10mV
50/60Hz
approximately 0.2W
-20C to +70C
-40C to +125C
30.5mm x 20.5mm x 14.5mm
Pinout
| The module features a 5-pin interface with the following pinout | |
| VCC (5V) | Power supply pin |
Ground pin
Overall, the ZMPT101B AC Single Phase Voltage Sensor Transformer Module is a reliable and accurate voltage sensing solution for a wide range of IoT applications. Its compact design, simple interface, and low power consumption make it an ideal choice for developers and engineers working on voltage monitoring and control systems.
Input AC voltage pin
Analog output voltage pin
ZMPT101B AC Single Phase Voltage Sensor Transformer Module DocumentationOverviewThe ZMPT101B AC Single Phase Voltage Sensor Transformer Module is a compact and isolated AC voltage sensor module designed for measuring single-phase AC voltage up to 250V. It provides a safe and reliable way to measure AC voltage, making it suitable for a wide range of applications, including IoT projects, industrial automation, and home automation.Technical SpecificationsInput Voltage: 90-250V AC
Output Voltage: 0-5V DC
Accuracy: 1%
Frequency Range: 45-65 Hz
Isolation Voltage: 2500 VAC
Operating Temperature: -20C to 85CPinoutThe ZMPT101B module has a 5-pin interface:VCC: 5V power supply
GND: Ground
OUT: Analog output voltage (0-5V)
IN+: AC input voltage (positive)
IN-: AC input voltage (negative)Code Examples### Example 1: Arduino AC Voltage MeasurementThis example demonstrates how to use the ZMPT101B module with an Arduino board to measure AC voltage.
```c
const int voltagePin = A0; // OUT pin connected to Arduino analog input A0void setup() {
Serial.begin(9600);
}void loop() {
int sensorValue = analogRead(voltagePin);
float voltage = sensorValue (5.0 / 1023.0);
Serial.print("AC Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(1000);
}
```
### Example 2: Raspberry Pi AC Voltage Measurement with PythonThis example shows how to use the ZMPT101B module with a Raspberry Pi to measure AC voltage using Python.
```python
import RPi.GPIO as GPIO
import timeGPIO.setmode(GPIO.BCM)
voltage_pin = 17 # OUT pin connected to GPIO 17while True:
voltage_value = GPIO.input(voltage_pin)
voltage = (voltage_value / 1023.0) 5.0
print("AC Voltage: {:.2f} V".format(voltage))
time.sleep(1)
```
### Example 3: ESP32 AC Voltage Measurement with MicroPythonThis example demonstrates how to use the ZMPT101B module with an ESP32 board to measure AC voltage using MicroPython.
```python
import machinevoltage_pin = machine.ADC(32) # OUT pin connected to ESP32 ADC channel 32while True:
voltage_value = voltage_pin.read()
voltage = (voltage_value / 4095.0) 5.0
print("AC Voltage: {:.2f} V".format(voltage))
machine.delay(1000)
```
Note: In all examples, the OUT pin of the ZMPT101B module is connected to an analog input pin of the microcontroller board, and the VCC pin is connected to the 5V power supply. The IN+ and IN- pins are connected to the AC voltage source.