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

Programming and Troubleshooting

Programming:

Now we’re ready to load each board with its corresponding code:

  1. Load the Joystick-C-code.side program onto the Activity Board with the Joystick circuit, then
  2. Load the XBeeMotor-C-code.side program onto the Activity Board hosting the Pololu board.

 

Check List & Troubleshooting:

  1. Double check your wiring one last time by going over the legend and cross checking it with the schematic.
  2. Verify both XBees are socketed in correctly with the angled edges facing away from the board.
  3. Make sure your XBee jumper wires are going from DO to pin 9 and DI to pin 8 on both boards.
  4. Turn both boards on and wait a few seconds for the XBees to initialize. The order in which you turn them on doesn’t matter.
  5. Move the Joystick forward, backward, left and right and verify that the DC motors move accordingly.

If your motors are spinning in the wrong direction:

  • You may have your leads reversed, try swapping the leads going into M2OUT2 and the lead going into M2OUT1 with each other. Do the same for M1OUT2 and M1OUT1.
  • It is also possible that you have each pair of wires going to the wrong motor entirely, in this case try swapping each pair of wires onto the opposite motor.
     

Printer-friendly version
Assembling the Project Components
Prev
How the Motor Controller Parts Work
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2025 Parallax Learn • Built with GeneratePress