This project guides you how to build a simple robot which can be controlled using a IR TV remote control. The hardware consist of Arduino uno as main processor, Tsop1738 for IR sensor, L293D as motor driver, 9v battery, two dc motor, and robot base.
After you build the robot, you need to configure which button in IR Remote that can be used to control the robot to move forward, reverse, left, right and stop. You can use "IR recv demo" from Arduino example project and Arduino serial monitor to capture IR remote button value. Record the hex code value in serial monitor. Repeat the step for 5 button.
And then use IF..ELSE function in your code to command the robot, e.g. if value IR = FF30CF then robot move forward. Upload IR robot code and play.
0 Comentar:
Post a Comment