Arduino UNO-Based Battery-Powered Current and Voltage Monitoring System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various sensors and components, including a current sensor, a voltage sensor, a resistor, a bulb, and a 18650 Li-Ion battery. The Arduino UNO reads data from the sensors and can control the bulb based on the sensor readings.
Component List
ACS712 Current Sensor 5A 20A 30A
- Pins: 1, 2, GND, OUT, VCC
- Description: Measures current flowing through the circuit.
- Purpose in Circuit: Provides current measurement to the Arduino.
Arduino UNO
- 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
- Description: Microcontroller board based on the ATmega328P.
- Purpose in Circuit: Central control unit for reading sensor data and controlling the bulb.
18650 Li-Ion
- Pins: Positive, Negative
- Description: Rechargeable lithium-ion battery.
- Purpose in Circuit: Provides power to the circuit.
Resistor
- Pins: pin1, pin2
- Description: 200 Ohms resistor.
- Purpose in Circuit: Limits current flow in the circuit.
Bulb
- Pins: GND, power
- Description: Light-emitting component.
- Purpose in Circuit: Visual indicator controlled by the Arduino.
Voltage Sensor DC 25V
- Pins: +, -, output, gnd, vcc
- Description: Measures voltage up to 25V.
- Purpose in Circuit: Provides voltage measurement to the Arduino.
Wiring Details
ACS712 Current Sensor 5A 20A 30A
- Pin 1: Connected to GND of Voltage Sensor DC 25V, Negative of 18650 Li-Ion, and GND of Bulb.
- Pin 2: Connected to Positive of 18650 Li-Ion, pin2 of Resistor, and power of Bulb.
- GND: Connected to GND of Arduino UNO.
- OUT: Connected to A1 of Arduino UNO.
- VCC: Connected to 5V of Arduino UNO.
Arduino UNO
- GND: Connected to GND of ACS712 Current Sensor, and - of Voltage Sensor DC 25V.
- A1: Connected to OUT of ACS712 Current Sensor.
- 5V: Connected to VCC of ACS712 Current Sensor.
- A0: Connected to output of Voltage Sensor DC 25V.
18650 Li-Ion
- Negative: Connected to GND of Voltage Sensor DC 25V, pin 1 of ACS712 Current Sensor, and GND of Bulb.
- Positive: Connected to pin2 of Resistor, pin 2 of ACS712 Current Sensor, and power of Bulb.
Resistor
- pin1: Connected to vcc of Voltage Sensor DC 25V.
- pin2: Connected to Positive of 18650 Li-Ion, pin 2 of ACS712 Current Sensor, and power of Bulb.
Bulb
- GND: Connected to GND of Voltage Sensor DC 25V, Negative of 18650 Li-Ion, and pin 1 of ACS712 Current Sensor.
- power: Connected to Positive of 18650 Li-Ion, pin2 of Resistor, and pin 2 of ACS712 Current Sensor.
Voltage Sensor DC 25V
- gnd: Connected to GND of 18650 Li-Ion, pin 1 of ACS712 Current Sensor, and GND of Bulb.
- -: Connected to GND of Arduino UNO.
- output: Connected to A0 of Arduino UNO.
- vcc: Connected to pin1 of Resistor.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a detailed list of components, their wiring connections, and the code used in the Arduino UNO microcontroller.