Close

Motor Board Prototype Design

A project log for Infrastructure and Construction Robot Swarm

A self-organizing and directing robotic swarm for autonomous or teleoperated construction, inspection, and maintenance

keith-elliottKeith Elliott 06/01/2018 at 23:560 Comments

The first board I'll go over is the Motor Board prototype. It's fairly simple; excluding the Arduino that handles communication and control it only consists of encoder connectors and a dual H-bridge. My planned use for this prototype will be to control the main drive motors of the robot base module. The schematic and PCB are shown below.

Schematic

Board

H-Bridge

I'm using an L293D chip for the motor driver. As shown in Figure 10 of the datasheet, each half of the chip can function as a bidirectional motor controller. By driving PWM signals to the control inputs of the chip, the speed of the motors can also be controlled. Unfortunately, each half of the bridge can only handle up to 600mA, which is relatively low, but it'll sufficient for controlling the basic motors I plan on using on the prototype robot.

Encoders

The encoders I'm using are KY-040 Rotary Encoders which will measure the number of rotations of the motors and provide feedback to the motor controller. The linked description explains how the encoders work better than I can, but essentially the Arduino will measure the speed and number of rotations that the motor is travelling at and apply more or less current to the motor to get it to the desired end position. I plan on using a basic PID loop for this which I will cover in a later post.

In addition to the encoder connectors on the left, I've also added a basic debounce circuit in the top left of the schematic. Because these encoders use mechanical switches, they're subject to mechanical bouncing of the switch contacts and so I plan on using a capacitor to act as a low pass filter and absorb these bounces and clean up the encoder signal.

Discussions