Arduino UNO Color Sensor with Servo Motor and LED Indicators
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with a TCS3200 color sensor, a Servomotor SG90, and several LEDs (green, yellow, red, and blue). The circuit also includes resistors to limit current to the LEDs. The Arduino UNO is programmed to control these components.
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
TCS3200
- Description: A color sensor that can detect and measure a nearly limitless range of visible colors.
- Pins: GND, OUT, S2, S3, VCC, LED, S0, S1
Servomotor SG90
- Description: A small and lightweight servomotor with high output power.
- Pins: SIG, VCC, GND
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
LED: Two Pin (green)
- Description: A green LED.
- Pins: cathode, anode
LED: Two Pin (yellow)
- Description: A yellow LED.
- Pins: cathode, anode
LED: Two Pin (red)
- Description: A red LED.
- Pins: cathode, anode
LED: Two Pin (blue)
- Description: A blue LED.
- Pins: cathode, anode
Wiring Details
Arduino UNO
- 3.3V to Servomotor SG90 VCC
- 5V to TCS3200 VCC
- GND to TCS3200 GND
- GND to Servomotor SG90 GND
- GND to Resistor pin1
- D13 to LED: Two Pin (green) anode
- D12 to LED: Two Pin (yellow) anode
- D11 to LED: Two Pin (red) anode
- D10 to LED: Two Pin (blue) anode
- D9 to TCS3200 S0
- D8 to TCS3200 S1
- D7 to TCS3200 OUT
- D6 to TCS3200 S2
- D5 to TCS3200 S3
- D2 to Servomotor SG90 SIG
TCS3200
- VCC to Arduino UNO 5V
- GND to Arduino UNO GND
- S0 to Arduino UNO D9
- S1 to Arduino UNO D8
- OUT to Arduino UNO D7
- S2 to Arduino UNO D6
- S3 to Arduino UNO D5
Servomotor SG90
- VCC to Arduino UNO 3.3V
- GND to Arduino UNO GND
- SIG to Arduino UNO D2
Resistor (200 Ohms)
- pin1 to Arduino UNO GND
- pin1 to Resistor pin1
- pin1 to Resistor pin1
- pin2 to LED: Two Pin (yellow) cathode
- pin2 to LED: Two Pin (red) cathode
- pin2 to LED: Two Pin (blue) cathode
- pin1 to LED: Two Pin (green) cathode
LED: Two Pin (green)
- anode to Arduino UNO D13
- cathode to Resistor pin1
LED: Two Pin (yellow)
- anode to Arduino UNO D12
- cathode to Resistor pin2
LED: Two Pin (red)
- anode to Arduino UNO D11
- cathode to Resistor pin2
LED: Two Pin (blue)
- anode to Arduino UNO D10
- cathode to Resistor pin2
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 summary, detailed component list, wiring details, and the code used for the Arduino UNO microcontroller.