Circuit Documentation
Summary
This document provides a detailed overview of a circuit consisting of an Arduino UNO microcontroller and a ZMPT101B voltage sensor. The Arduino UNO is used to read the output from the ZMPT101B sensor, which measures AC voltage. The components are interconnected to facilitate the measurement and processing of voltage data.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
- Purpose in Circuit: Acts as the main processing unit to read and process the voltage data from the ZMPT101B sensor.
ZMPT101B
- Description: A voltage sensor module used for measuring AC voltage.
- Pins: OUT, GND, VCC, NEUTRO, FASE
- Purpose in Circuit: Measures AC voltage and provides an analog output that can be read by the Arduino UNO.
Wiring Details
Arduino UNO
- 5V: Connected to VCC of ZMPT101B
- GND: Connected to GND of ZMPT101B
- A0: Connected to OUT of ZMPT101B
ZMPT101B
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- OUT: Connected to A0 of Arduino UNO
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize any settings or configurations, and the loop() function is where the main code runs repeatedly. In this circuit, you would typically add code to read the analog value from pin A0 and process it as needed.
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the initial code setup for the Arduino UNO.
