Shop OBEX P1 Docs P2 Docs Learn Events
Code to test SMC02B / 30052 Dual Motor Controller with a BS2 — Parallax Forums

Code to test SMC02B / 30052 Dual Motor Controller with a BS2

Just JeffJust Jeff Posts: 36
edited 2010-07-15 15:49 in General Discussion
Hello,

After pulling my hair out and spending fruitless hours searching the web for a good example of how to use the Parallax #30052 / SMC02B Pololu controller I gave up and created my own.

The attached file will quickly test a pair of DC motors connected to a Stamp and also (I hope) explain the commands and operation of the motor controller as I understand them.

Maybe it will help someone down the road.

Have fun,
Jeff

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

"Twenty years from now you will be more disappointed by the things you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover." - Mark Twain

Comments

  • AMPEDAMPED Posts: 3
    edited 2010-07-15 15:49
    icon9.gifhop.gifyeah.gif· Just Jeff· Thanks for the explanation Iv'e been pulling my hair out to trying to figure this thing out I thought i burned up my first driver so i bought another one . It did the same thing until i read your code now they both work great thanks a lot· JD
Sign In or Register to comment.