Arduino UNO-Based Servo Control with Dual Potentiometers and LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various components including a servo motor, rotary potentiometers, pushbuttons, LEDs, and an LCD display. The circuit is designed to demonstrate basic input and output operations, such as reading analog values from potentiometers, controlling a servo motor, and displaying information on an LCD.
Component List
Servo
- Description: A servo motor used for precise control of angular position.
- Pins: GND, VCC, PWM
Rotary Potentiometer (10k Ohms)
- Description: A variable resistor used to provide adjustable resistance.
- Pins: leg1, wiper, leg2
- Properties:
- Resistance: 10,000 Ohms
Pushbutton
- Description: A simple pushbutton switch used for user input.
- Pins: Pin 1, Pin 2, Pin 3, Pin 4
LED: Two Pin (Red)
- Description: A red LED used for visual indication.
- Pins: cathode, anode
LED: Two Pin (Green)
- Description: A green LED used for visual indication.
- Pins: cathode, anode
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
LCD 20x4 I2C
- Description: A 20x4 character LCD display with I2C interface.
- Pins: GND, 5V, SCA, SCL
Wiring Details
Servo
- VCC: Connected to 5V (Arduino UNO, Rotary Potentiometer, LCD 20x4 I2C)
- GND: Connected to GND (Arduino UNO, Pushbutton, Rotary Potentiometer)
- PWM: Connected to D9 (Arduino UNO)
Rotary Potentiometer (1)
- leg1: Connected to 5V (Arduino UNO, Servo, LCD 20x4 I2C)
- wiper: Connected to A0 (Arduino UNO)
- leg2: Connected to GND (Arduino UNO, Pushbutton, Servo)
Rotary Potentiometer (2)
- leg1: Connected to 5V (Arduino UNO, Servo, LCD 20x4 I2C)
- wiper: Connected to A1 (Arduino UNO)
- leg2: Connected to GND (Arduino UNO, Pushbutton, Servo)
Pushbutton (1)
- Pin 1: Connected to D2 (Arduino UNO)
- Pin 2: Connected to GND (Arduino UNO, Servo, Rotary Potentiometer)
- Pin 3: Not connected
- Pin 4: Not connected
Pushbutton (2)
- Pin 1: Connected to D3 (Arduino UNO)
- Pin 2: Connected to GND (Arduino UNO, Servo, Rotary Potentiometer)
- Pin 3: Not connected
- Pin 4: Not connected
LED: Two Pin (Red)
- cathode: Connected to GND (Arduino UNO, LED: Two Pin (Green))
- anode: Connected to D4 (Arduino UNO)
LED: Two Pin (Green)
- cathode: Connected to GND (Arduino UNO, LED: Two Pin (Red))
- anode: Connected to D5 (Arduino UNO)
Arduino UNO
- 5V: Connected to VCC (Servo, Rotary Potentiometer, LCD 20x4 I2C)
- GND: Connected to GND (Servo, Pushbutton, Rotary Potentiometer, LED: Two Pin (Red), LED: Two Pin (Green))
- A0: Connected to wiper (Rotary Potentiometer 1)
- A1: Connected to wiper (Rotary Potentiometer 2)
- A4: Connected to SCA (LCD 20x4 I2C)
- A5: Connected to SCL (LCD 20x4 I2C)
- D2: Connected to Pin 1 (Pushbutton 1)
- D3: Connected to Pin 1 (Pushbutton 2)
- D4: Connected to anode (LED: Two Pin (Red))
- D5: Connected to anode (LED: Two Pin (Green))
- D9: Connected to PWM (Servo)
LCD 20x4 I2C
- GND: Connected to GND (Arduino UNO, Rotary Potentiometer, Pushbutton)
- 5V: Connected to VCC (Arduino UNO, Servo, Rotary Potentiometer)
- SCA: Connected to A4 (Arduino UNO)
- SCL: Connected to A5 (Arduino UNO)
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)