This circuit integrates an Arduino UNO microcontroller, a 5V relay, a humidifier, a solar panel, an ultrasonic sensor, and a 5V battery. The Arduino UNO controls the relay and reads data from the ultrasonic sensor. The relay is used to control the power to the humidifier. The entire circuit is powered by a 5V battery and a solar panel.
Arduino UNO
5V Relay
Humidifier
Solar Panel
Ultrasonic Sensor
5V Battery
5V is connected to:
GND is connected to:
D4 is connected to:
D3 is connected to:
D2 is connected to:
Normally Open is connected to:
Common terminal is connected to:
GND is connected to:
In is connected to:
GND is connected to:
5V is connected to:
+ is connected to:
- is connected to:
+VCC is connected to:
GND is connected to:
Echo is connected to:
Trigger is connected to:
positive is connected to:
negative is connected to:
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 your variables, pin modes, start using libraries, etc. The loop()
function is where you write the code that you want to run repeatedly.