15.2 Arduino UNO and LVR Arduino Extension Board
Last updated
Last updated
Find a suitable place and fix Arduino UNO R3 onto the top Acrylic plate:
Just directly plugin Longer Vision Robot Arduino Extension Board onto the Arduino UNO R3:
And then, find a suitable place on the top Acrylic plate and fix the given black battery box, and put two batteries into the box. And it's NOT hard to connect two battery cables onto Arduino Extension Board's power:
red cable: power +
black cable: power -, namely, ground.
You now can simply test if the battery and power button on Arduino Extension Board is properly first:
As we can see, the battery and the power switch on Arduino Extension Board works fine.
We now connect Arduino UNO R3 on the vehicle to our laptop, and download the following sketch onto Arduino UNO.
The code can be found at Examples_Arduino - lvrobot - vehicle - racecar - _001_Drive4Wheels - _001_Drive4Wheels.ino
Make sure the motor pins are correctly designated, and make sure when the motors are set to LOW, all 4 wheels are slowed down, and when the motors are set to HIGH, all 4 wheels will turn to the SAME direction.