The OSOYOO Magic I/O Shield for Arduino is a powerful board for the beginners. With this Magic board, we can easily connect various sensors and actuators much easier than before. In addition, this extension board has a build-in motor driver chip which allows us to control movements of two pairs of electric motors.
In last lesson, we introduced how to assemble a simple robot car and make it to do some basic movement.
In this lesson, we will carry an infrared receiving module on the robot car, and we will show how to change the car moving direction and status through infrared remote controller.
Not much is needed for this lesson, Make sure you have a good quality syncing cable,do not pick a ‘charge only’ USB cable.
In this lesson, we will add a IR Receiver to the framework built in Lesson 20, if you have already completed installation in Lesson 21, just keep it.
Install the IR receiver module with 2pcs M3 plastic screws and pillars:
Then install the IR receiver module on the chassis with 2pcs M3 nuts, connect the module with OSOYOO Magic I/O Shield for Arduino:
After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.
The whole program blocks are as following:
After above operations are completed, do as follows:
Disconnect Arduino from PC, put a 9V battery into battery pox(make sure polar direction is correct, otherwise it can destroy your device and cause fire hazard).
Press the Motor Power switch on the OSOYOO Magic I/O Shield for Arduino, then press IR controller keys to control the car movements:
DownLoad Url osoyoo.com