MBED Robot with Collision Detection
ECE 4180 Fall 2018 Project
John Landers and William Trimmer
Description
This robot is controlled using the accelerometer controller in the Bluefruit phone app. The user can forward and backwards at different speeds, dependent on the tilt of the phone, as well as turn left and right. The robot will stop if it comes within 250mm or more of an object, depending on the speed, in order to avoid a collision.
Parts Required
The following parts were used to create this project:
- Shadow robot kit - https://os.mbed.com/users/4180_1/notebook/shadow-robot-kit/
- MBED LPC1768 - https://os.mbed.com/platforms/mbed-LPC1768/
- External 5V battery pack
- External 9V battery
- Sparkfun TB6612FNG - https://www.sparkfun.com/products/14451
- Adafruit Bluefruit LE UART Friend - https://learn.adafruit.com/introducing-the-adafruit-bluefruit-le-uart-friend
- HC-SR04 Sonar Sensor - https://www.sparkfun.com/products/13959
Wiring
H-Bridge
| MBED | H-Bridge |
|---|---|
| vm = 9V battery | |
| Vout) | vcc |
| gnd | gnd |
| gnd | gnd |
| p21 | pwma |
| p22 | ain2 |
| p23 | ain1 |
| Vout | stby |
| p24 | bin1 |
| p25 | bin2 |
| p26 | pwmb |
| gnd | gnd |
Motor
| H-Bridge | Left motor | Right motor |
|---|---|---|
| A01 | red | |
| A02 | black | |
| B02 | red | |
| B01 | black |
Bluetooth
| MBED | Bluetooth |
|---|---|
| gnd | gnd |
| VU | Vin |
| nc | RTS |
| gnd | CTS |
| p14 | TXO |
| p13 | RXI |
Sonar
| MBED | HC-SR04 |
|---|---|
| Vu | VCC |
| p6 | Trig |
| p7 | Echo |
| gnd | gnd |
Code
Import programece4180-project
MBED robot with collision detection
(image)
Video
Please log in to post comments.
