Mbed Drawing Robot

Spring 2018 ECE 4180 Final Project
Joseph Sterling and Aditya Mohile

Project Description

The DrawingBot is a Bluetooth enabled robot that uses a marker to draw what the user tells it to draw. The user sends commands via the Adafruit Bluetooth app, and the DrawingBot executes them.

The DrawingBot can draw:

  • Shapes (circle, square, triangle, hexagon)
  • Letters (will write out a word entered by user)

The Bluetooth Commands that the user sends to perform these actions are:

  • draw <shape name> <shape side length (in inches)>
    • the side length parameter is optional. If omitted, the side length will be 3 inches
  • write <desired word>

Parts List

You will need the following parts to recreate this project:

Wiring

Here are instructions on how to connect all of the components:

Bluetooth:

mbedAdafruit BLE
GNDGND
External PowerVIN
NCRTS
GNDCTS
p14 (Serial RX)TXO
p13 (Serial TX)RXI

H-Bridge Driver:

mbedH-BridgeExternal Power Supply
VM+5V
GNDGND
VOUTVCC
VOUTSTBY
p23PWMA
p6AI1
p5AI2
p21PWMB
p7BI1
p8BI2

Motors:

H-BridgeLeft MotorRight Motor
AO1GND
AO2+5V
BO1GND
BO2+5V

Servo:

mbedServoExternal Power
p24CTRL
+5V+5V
GNDGND

Hall Effect Wheel Encoders:

mbedLeft EncoderRight Encoder
p15CTRL
VOUT+3.3V
GNDGND
p16CTRL
VOUT+3.3V
GNDGND

Program

The following is the current program for the DrawingBot:

Import programECE_4180_Drawing_Robot

Basic motor code

Examples

Drawing a hexagon with side length of 2 inches

/media/uploads/jsterling30/hexagon_gif.gif


Drawing a triangle with side length of 2 inches

/media/uploads/jsterling30/better_triangle_gif.gif


Writing the word "HELLO"


Please log in to post comments.