Code to test SMC02B / 30052 Dual Motor Controller with a BS2
Just Jeff
Posts: 36
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
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