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

Arduino UNO LED Control with ACS712 Current Sensor and ZMPT101B Voltage Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO LED Control with ACS712 Current Sensor and ZMPT101B Voltage Sensor

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, a current sensor, a voltage sensor, a relay module, and two LEDs with associated resistors. The circuit is designed to control an LED using the Arduino UNO.

Component List

ACS712 Current Sensor 5A 20A 30A

ZMPT101B

Arduino UNO

LED: Two Pin (red)

RELAY MODULE

Resistor

Wiring Details

ACS712 Current Sensor 5A 20A 30A

ZMPT101B

Arduino UNO

LED: Two Pin (red)

RELAY MODULE

Resistor

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:
  pinMode(13, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(13, HIGH);
}

This code sets pin 13 of the Arduino UNO as an output and continuously sets it to HIGH, which will turn on the connected LED.