Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • DC Motor Control Project

DC Motor Control Project

Assembling the Project Components

Building The Project

Before You Start:

Download the Code files and Schematic Images

The first step is to solder a row of pins onto the motor driver board. The Pololu MC33926 board comes with 25 breakaway male header pins. Breakaway 18 pins from the header and insert them into the pin slots on the driver board and solder them on. You can solder the remaining pins onto the board; however, they are optional for this application. (Make sure you wear your safety goggles.) Now solder the 3 terminal blocks on the opposite side of the board. The terminal block’s opening should be facing away from the board. (See image below.)

Now it’s time to build the joystick circuit on one of your Activity Boards. Click here to view the wiring diagram from the Propeller C Joystick tutorial and use it to build your “Joystick” circuit. To attach the XBee modules simply align their pins with the Activity Board ’s socket located over the SD card slot. The two angled edges of the XBee should be facing away from the Activity Board. (See image below.)

After attaching the XBees you will need to connect two jumper wires. One jumper connects the DO pin (Data Out) to pin 9 and the second jumper connects DI (Data In) to pin 8. Make sure that both Activity Boards have XBees installed, and jumpers connected to DO and DI as shown in the following image.

The next step is to connect the motor driver board to your second Activity Board. In this step it is wise to go slow since it’s easy to make a wiring mistake when making this many connections. Always make sure your board is disconnected from its power source before connecting any wiring. Use the legend below and schematic images included in the code download (at the top of the page) to guide you on each connection.
 

Legend:

  • AB = Activity Board
  • MC = Pololu MC33926Motor Driver Board

MOTOR 1:

  • MC Vin to AB Vin (Note: Vin is the pin near the top right corner of AB between P15 and P16)
  • MC GND to AB GND
  • MC VDD to AB 3.3V
  • MC M1IN2 to AB P5
  • MC M1IN1 to AB P4
  • MC(PWM)/M1D2 to AB 3.3V
  • MC(PWM)M1D1 to AB GND
  • MC EN to AB 3.3V
     
  • M1OUT1 to motor RED
  • M1OUT2 to motor BLACK

 

MOTOR 2 :

  • MC M2IN2 to AB P3
  • MC M2IN1 to AB P2
  • MC PWM M2D2 to 3.3V
  • MC PWM M2D1 to GND
     
  • M2OUT1 to motor RED
  • M2OUT2 to motor BLACK

For these connections, use the AB-Pololu-Schematic-05.jpg file in the code download zip.

Take one DC motor and connect M1OUT1 to its red input and M1OUT2 to its black input. Now take the second motor and connect M2OUT1 to its red input and M2OUT2 to the its black input.


Printer-friendly version
Programming and Troubleshooting
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress