Components and wiring

Open circuito.io and let's start!

Add components:

After adding servo motors app automatically added voltage regulator (5V), ceramic capacitor(100nF) and electrolytic capacitor (1mF/50V).


Connection:
Now pay attention to where the servo motors and sensor are connected.
  • Digital pin 2 - First servo motor
  • Digital pin 3 - Second servo motor
  • Digital pin 4 - TCS230 Out pin
  • Digital pin 5 - TCS230 S0 pin
  • Digital pin 6 - TCS230 S1 pin
  • Digital pin 7 - TCS230 S2 pin
  • Digital pin 8 - TCS230 S3 pin
Now let's write the code!