MOTOR CONTROLLER 7 BOARD


This was a project assigned to me during my Tekbots Internship during the Summer of 2019. The objective was to update the Tekbots motor controller board version 6 to accept the cheaper and readily available Arduino Nano Clones. The motor controller board is meant to build a demonstration robot that could serve as an example to the incoming freshmen that were going to be taking the revamped version of ECE111. Their objective was to build a simple bump bot that could be controlled by a user and get around obstacles by running into them. Here’s a picture of one of the blank boards (Image below).

Having a version of the motor controller board that operates off the Arduino Nano would make for a very assessable design for freshmen who may not have much exposure to embedded programming. This design was made for education purposes. Here’s the populated board sitting on my bump bot (Image below).

The older motor controller version 6 is meant to accept a Teensy 2.0 development board. A very good dev board that comes at too high of a price given the way it was used by freshmen coursework.

The motor controller aspect of the board functions like an Arduino Shield where there are I/O pins in the Arduino that are directly routed to pinouts on the board peripherals. These peripherals were the LM293DNE motor controller and the HC-05 Bluetooth module.

The LM293DNE was routed to D5 (PD5) and D6 (PD6) for the controllers 1,2 EN and 3,4 EN respectively. The motor direction inputs were left to header pinout to keep potential designs flexible. There are also two bidirectional LEDs on the motor output channels to indicate the direction of the motor. Typically, green is for forwards and orange is for backwards, but the motor can be attached to the channel with the opposite polarity and those colors would be reversed (This will not affect their function).

The HC-05 Bluetooth module was routed to D0 (PD0) and D1 (PD1) for the modules RX and TX respectively. This allows the Bluetooth transceiver to receive anything from the Arduino Nano over the UART pins so it can then be transmitted out though the Bluetooth protocol. The default settings of the HC-05 includes 9600 baud rate, 8 data bits, 1 stop bits and no parity bits. I changed the ATmega168P code to match the defaults for simplicity. Here’s a video of the bot in action!

Here’s a GitHub link to the basic Bump-Bot Behavior with basic Bluetooth control available, written in embedded C to prevent any freshmen kitty coders from using this for their project.

Here’s the Thingiverse link to the bot base that I designed for housing the updated motor controller board, breadboard for prototyping, and motor chassis (very simple only two posts). All of the parts are meant to be cut from 3mm acrylic using the DXF (Drawing eXchange Format) files. However, the any vector image version of the Solidworks files will work.

Here’s the Bill of Materials for the motor controller board. This BOM uses the prices that Tekbots pays and the BOM below that is for the bump bot with the motor controller as if it were paid for by a student.

BOM Item # Item Name Quantity Price/Unit Total Cost
1 PCB Manufacturing 1 $2.35
2 33uF Ceramic Capacitor 2 $0.20
3 1x12 0.1" Female Header 2 $0.49
4 1x2 0.1" Female Header 2 $0.18
5 1x34 0.1" Male Header 3 $0.4
6 1x4 0.1" Female Header 1 $0.27
7 1x5 0.1" Female Header 1 $0.37
8 1x6 0.1" Female Header 1 $0.3
9 IC DIP Socket 16 Pin 1 $0.12
10 #4 Screw 3/16" OD Nylon Spacer 4 $0.08
11 4-40 Nut 4 $0.01
12 4-40 Pan Head 5/8" Machine Screw 4 $0.03
13 3mm Bidirectional LED 2 $0.27
14 HLMP-1700 Red LED 1 $0.11
15 LP2950 5V 100mA Regulator 1 $0.31
16 L293DNE 1 $2.71
17 1k Ohm Resistor 3 $0.02
$10.56

Here’s the Bill of Materials for the bump bot with the motor controller with the prices that students pay to Tekbots.

BOM Item # Item Name Quantity Price/Unit Total Cost
1 Tekbots mtr_ctlr.7 Kit 1 $15.00
2 270 Contact Breadboard 1 $3.00
3 GM-3 6V Motors 2 $2.00
4 4-40 Machine Screws, 1-1/4" 4 $0.12
5 4-40 Nuts 4 $0.12
6 Gearbox Wheels 2 $0.50
7 ATmega168P Arduino Nano 1 $6.00
8 HC-05 Bluetooth Module 1 $6.00
9 Tekbots sense.1 Kit 1 $5.00
10 4x AA Battery Case 1 $0.50
11 AA Batteries 4 $1.20
12 4-40 Coupler Nut 1" 4 $0.12
13 Swivel Wheel 1 $0.50
14 3mm Acrylic Sheet 1 $1.00
$48.24

This article was last edited: March 2020