Howdy! I am relatively new to the world of Arduino, so don't be frustrated if I ask questions that could be silly. This project has a deadline, so any input is appreciated.
THE PROJECT:
I am planning to build a 2WD vehicle, with an arm using 2 servos, and a TCS3200 color sensor. The goal is to make the robot avoid obstacles while simultaneously searching for a GREEN colored object (using the color sensor). After finding the GREEN object, it would stop and use the robotic claw to grab the object. Finally, it would continue to avoid obstacles until you reach a RED colored area. It would drop the object and start again.
Something like this: Area cleaning color sensor robot - YouTube
QUESTIONS:
That said, I have some questions about the use of different sensors to control a robot (do not hesitate to put any input that may be useful):
-
How would you connect it to the sensor shield considering the other components? Could you use analog pins or (converting digital to analog) or use fewer pins? (I just need Green and Red)
-
How would make it so that the Arduino receives data from both sensors at the same time? How can I make both sensors control the same two motors?
WIRING: wiring exactly the same bigger image
NOTE: in the second image the ultrasonic sensor should be connected to the bottom right pins