The Digilent Line-Following Motor Robot Kit (MRK+Line) provides the perfect starting point for those new to robotics, but has the power to be used for advanced designs and applications as well. The MRK+Line pairs our powerful Cerebot™ MX4cK microcontroller development board with a rugged steel platform and all the motors, wheels, sensors, and other parts needed to build a complete robot.
This document demonstrates a simple design that will get your MRK+Line up and running, using its four IROS sensors to follow a dark line on a lightly colored surface. Using your MRK+Line’s powerful Cerebot MX4cK microcontroller, you’ll be able to add all sorts of functionality to your robot. Add some of our extensive line of peripheral modules (Pmods™) and you can design almost anything!
Your Cerebot MX4cK can be programmed with either Microchip MPLAB® IDE or chipKIT™ MPIDE. Microchip MPLAB IDE can be downloaded for free from microchip.com. chipKIT MPIDE can be downloaded for free from github.com/chipKIT32/chipKIT32-MAX/downloads.
The demo project used in this design can be downloaded from the Motor Robot Kit product page at digilentinc.com. For more information on programming the Cerebot MX4cK with MPLAB or MPIDE, see the Cerebot MX4cK Reference Manual, available from the Cerebot MX4cK product page at digilentinc.com.
- Cerebot MX4cK
- Two PmodHB5 2A H-bridge motor amplifiers with attachment clips and 6-pin cables
- metal standoffs for microcontroller board
- rugged metal platform with holes on 1/2“ center
- two 1/19 ratio motor/gearbox drives with ABS plastic wheels (1/53 gear ratio motors also available)
- rugged plastic wheels and drag button
- rugged metal motor mount
- all wiring and assembly hardware included
The rugged steel components have holes on 1/2” centers so Digilent circuit boards and other vendors’ products can be easily attached.
The following tools are recommended for robot assembly:
- regular and small Phillips head screwdrivers
- adjustable wrench
- wire stripper
1. Motor Mount
3. Battery Case
4. Pmod Clips
5. Drag Button
Get the two wheels and the rubber traction bands. Stretch the rubber band around the outside of the wheel. Attach the wheels to the motors.
8. chipKIT PRO MX4 Jumpers
Compare your Cerebot MX4cK board to the picture below. Note that the blue shorts are attached to each jumper as shown. Remove the rubber feet from the bottom of the corners of the Cerebot MX4cK. Attach the standoffs to the board using the mounting screws. Mount the Cerebot MX4cK board to the top side of the platform. Be careful not to cross thread the screws while mounting the Cerebot MX4cK board.
9. 6 Pin Connectors
Connect the two PmodHB5 modules to port JD on the Cerebot MX4cK board using the two 6- pin cables. Using the PmodHB5s, connect the left motor to the bottom row of JD, and the right motor to the top row of JD. Use the marker on the cable connector to ensure that pin placements are in alignment when connecting the boards. See the pictures below.
10. Power Wires
11. Routing Power
Route power wires from each PmodHB5 to the J18 power connector on the Cerebot MX4cK board, noting ground and voltage connections.
12. 3rd Pmod Clip
13. Powering the Board
When you are ready to power the board, add four AA batteries to the battery pack, and connect the power cable from the battery pack to the J14 battery power connector on the Cerebot MX4cK board.
You can now use MPLAB or MPIDE to program the LineFollowingMRK demo project to the board. Again, this demo can be downloaded from the Line Following Motor Robot Kit product page at digilentinc.com. Note that running the reference design requires that the power select mode jumper J12 be shorted to External Power (EXT).
Once the board has been programmed with the reference design, place the robot on a lightly colored (preferably white) surface with a black line between the two middle sensors. Turn the board on and press button 2 (BTN2) to cause the motors to turn and watch the robot follow the black line. Press button 1 (BTN1) to stop the robot.