View Single Post
Old 09-30-2014, 09:32 AM   #1153 (permalink)
MPaulHolmes's Avatar
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
Yes, the a and b inputs on the encoder. "A leads b" in one direction. So if you swap them in the code, b leads a, and the controller thinks the motor is spinning the other way. I'll add the a and b swap as a configuration variable. So, if it goes the wrong way, you enable the configuration thru the serial port, and also swap any 2 of u, v, w (the 3 phases). I could just have it rotate the other way without swapping things, but there would need to be other code changes. They may be easy. I just haven't thought about it yet. FIRST TEST SOON. (Maybe today)

Lol, you are right about the dinosaur egg. Haha. Similarly, I think kneel came before zod. Since single celled orgamisms could probably kneel, and zod was from like 1980.
kits and boards
  Reply With Quote
The Following 2 Users Say Thank You to MPaulHolmes For This Useful Post:
Astro (09-30-2014), thingstodo (09-30-2014)