Control a robot with two motors and two servos to pick up ping pong balls via bluetooth

Dependencies:   mbed Servo 4DGL-uLCD-SE Motor

You are viewing an older revision! See the latest version

Homepage

This project's purpose is to create the machinery and controls necessary to make a robot pick up and deposit ping pong balls as part of the Ping Pong Collection Game.

Linked Project

This project was created in tandem with the Object Counter. While it is certainly viable on its own, it's primary purpose is only served when using both programs on separate MBEDs.

Installation

To create this, you'll need the following parts:

Use the following tables to connect the system to your MBED:

Motors

MBEDH BridgeLeft MotorRight Motor
GndGndGndGnd
+5VVMOT
+3.3VVCC
+3.3VSTBY
p21PWMA
p15AIN1
p19AIN2
p22PWMB
p18BIN1
p16BIN2
A01+
A02-
B01+
B02-

Servos

MBEDServo (Arm)Servo (Handle)
GndGnd (black)Gnd (black)
+5V+ (red)+ (red)
p23CTRL (yellow)
p24CTRL (yellow)

Power Adapters

Power Coupling

Because of the way servos and motors interact with the power received, connecting them both to the same circuit can cause undefined (and often unexpected) behavior. As such, it is recommended to ensure that they are always on separate systems. In other words, we recommend connecting the servos to a secondary power supply, different from the supply for the motors.

This guide follows this recommendation

Bluetooth

MBEDBluetooth UART LE
GndGnd
+5V+5V
GndCTS
p27TXO
p28RXI

Demonstration

Here is a picture of the finished robot:

And here is a demonstration:


All wikipages