Line Following using Arduino Mega and MPU6050 6 DOF Gyro Accelerometer
Автор: Scott Mon
Загружено: 2016-08-17
Просмотров: 6570
This video shows how to use an Arduino Mega and a MPU6050 6 DOF Gyro Accelerometer (three-axis gyroscope + three-axis accelerometer) as a guidance system for a line-following BOE robot car. An HC-SR04 Ping module mounted atop a servo scans for approaching obsticles. The collected data is sent back to the pc via an HC-05 wireless bluetooth module for monitoring. During which left and right servos drive wheels controlling them forward, right, left and reverse set by a ping limit. Only the 'yaw' feature of the MPU6050 is used as a guide to follow a straight line or heading. As the BOE BOT car travels forward making small incremental left/right corrections to keep the car on the correct heading. When the BOE BOT car turns left or right a new heading is calculated by adding or subtracting 90 degrees from the old heading to generate a new heading. Two forms of power are used to operate the BOE BOT car. A single 9 volt battery runs the Arduino Mega board and a 4 pack of C size batteries run the 3 servos and 3 modules.
You can download the sketch here:
http://www.mediafire.com/file/ovkwtxp...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: