Dependencies: mbed Motor mbed-rtos
Useless Robot
Useless Robot Overview
Project by Austin Bartmess and Jeremy Deremer
This is a robot developed on an ARM Microcontroller (LPC 1768). It uses a servo, two DC motors both powered by an external power source, nine red LEDs, two RBG LEDs, a speaker, a toggle switch and a transistor.
The goal of this robot is to stay off. However, the user can turn it on without harm. It attempts to stay off via turning a toggle switch off with an arm attached to a servo. If the robot is turned on too much, it will progressively get angry. It starts by not smiling and changing eye colors. Following that, the robot will frown and yell at the user. Finally, the robot will drive around randomly while screaming and looking angry via its LEDs.
Required Parts
- mbed Microcontroller x1
- USB to mini USB cable x1
- Servo x1
- H-Bridge Breakout Board x1
- DC Motors x2
- DC Motor Wheels x4
- Red LEDs x9
- RGB LEDs x2
- 0.5W Speaker x1
- Toggle Switch x1
- BJTransistor x1
- Jumper Cables Kit x1
- Breadboard x2
Pinout and Connections
Mbed | H-Bridge | DC Motors | Servo | Transistor | Speaker | LEDs | Barrel Jack | Toggle Switch |
---|---|---|---|---|---|---|---|---|
GND | GND | (-) | Emitter | (-) | GND | (-) | (-) | |
Vu | ||||||||
Vin | Vm | (+) | (+) | |||||
Vout | Vcc, /STBY | (+) | ||||||
p5 | AIN1 | |||||||
p6 | AIN2 | |||||||
p10 | LED+ | |||||||
p11 | LED+ | |||||||
p12 | LED+ | |||||||
p15 | Control | |||||||
p21 | PWMA | |||||||
p22 | Collector | |||||||
p23 | Blue | |||||||
p24 | Green | |||||||
p25 | Red | |||||||
p26 | Control | |||||||
AO1 | (+) | |||||||
AO2 | (-) |
Demo Clip
Source Code
Revisions of mbed-rtos.lib
Revision | Date | Message | Actions |
---|---|---|---|
2:69a3683834c7 | 2017-04-27 | v2 Skeleton code/examples for all the threads | File Diff Annotate |