Arduino UNO-Based Smart Motor Control System with Sound and Light Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, various sensors, actuators, and other components. The circuit is designed to interface with multiple input and output devices, including an LDR, sound sensor, pushbutton, LED, motor, and limit switch. The Arduino UNO serves as the central control unit, executing the embedded code to manage the circuit's operations.
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
Ponte H
- Description: H-bridge motor driver.
- Pins: OUT4-Motor2, OUT3-Motor2, OUT2-Motor1, OUT1-Motor1, 5V, GND, 12V, IN3, IN1, IN2, IN4
Motor amarillo motorreductor hobby
- Description: Hobby gear motor.
- Pins: vcc, GND
LDR
- Description: Light-dependent resistor.
- Pins: A0, D0, GND, VCC
Pushbutton
- Description: A simple pushbutton switch.
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
LED: Two Pin (green)
- Description: Green LED.
- Pins: cathode, anode
Sound Sensor
- Description: Sensor to detect sound levels.
- Pins: Analog, GND, VCC, Digital
Resistor (200 Ohms)
- Description: Resistor with 200 Ohms resistance.
- Pins: pin1, pin2
Limit switch
- Description: Mechanical limit switch.
- Pins: C, NO, NC
Wiring Details
Arduino UNO
3.3V connected to:
- AREF (Arduino UNO)
- VCC (LDR)
- VCC (Sound Sensor)
- pin2 (Resistor)
- pin1 (Resistor)
5V connected to:
- 12V (Ponte H)
GND connected to:
- GND (Ponte H)
- GND (LDR)
- GND (Sound Sensor)
- Pin 2 (Pushbutton)
- cathode (LED: Two Pin (green))
- C (Limit switch)
A0 connected to:
- A0 (LDR)
D10 connected to:
- Digital (Sound Sensor)
D9 connected to:
- Pin 3 (Pushbutton)
- pin1 (Resistor)
D8 connected to:
- pin2 (Resistor)
- NO (Limit switch)
D4 connected to:
- anode (LED: Two Pin (green))
D3 connected to:
- IN1 (Ponte H)
D2 connected to:
- IN2 (Ponte H)
Ponte H
OUT2-Motor1 connected to:
- GND (Motor amarillo motorreductor hobby)
OUT1-Motor1 connected to:
- vcc (Motor amarillo motorreductor hobby)
Motor amarillo motorreductor hobby
GND connected to:
- OUT2-Motor1 (Ponte H)
vcc connected to:
- OUT1-Motor1 (Ponte H)
LDR
VCC connected to:
- 3.3V (Arduino UNO)
GND connected to:
- GND (Arduino UNO)
A0 connected to:
- A0 (Arduino UNO)
Pushbutton
Pin 2 connected to:
- GND (Arduino UNO)
Pin 3 connected to:
- D9 (Arduino UNO)
- pin1 (Resistor)
LED: Two Pin (green)
cathode connected to:
- GND (Arduino UNO)
anode connected to:
- D4 (Arduino UNO)
Sound Sensor
VCC connected to:
- 3.3V (Arduino UNO)
GND connected to:
- GND (Arduino UNO)
Digital connected to:
- D10 (Arduino UNO)
Resistor (200 Ohms)
pin1 connected to:
- 3.3V (Arduino UNO)
- Pin 3 (Pushbutton)
pin2 connected to:
- 3.3V (Arduino UNO)
- D8 (Arduino UNO)
Limit switch
C connected to:
- GND (Arduino UNO)
NO connected to:
- D8 (Arduino UNO)
- pin2 (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)