Help needed with Commotion Motor Driver Shield

Hi

I am trying to drive 4 motors (pololu.com/product/1445/specs) with the Commotion Motor Driver (https://sites.google.com/site/daguproducts/system/app/pages/search?scope=search-site&q=commotion).

For starters I plugged in one motor, then used the code available here:

https://github.com/Blueglide/ComMotion

And was able to drive the motor two/three times, but could not do that any longer. I am not sure what changed.

But I have tried to reset (procedure given here: https://drive.google.com/file/d/0B__O096vyVYqRG9id3BnOWNWQ00/edit?pli=1) the board to resolve this (I used this Commotion code: https://sites.google.com/site/daguproducts/home/Software/ComMotion_V2.zip). Also flashed the bootloader. Now the blue light (LT) that was blinking continously on the board is gone, the green light next to it is still blinking.

When I plug in a 12V power source (Wall adapter) the two red lights and the yellow light keeps blinking in sync. When I plug the board on arduino the red light 

Also with the Vin pin shorted the board does not seem to power the arduino. So I am not sure if somehow I damaged the board :(?

Can somebody please guide me on how to resolve this?

Thanks.

 

ComMotion

The attached link points to a stripped down version of the BlueGlide.ino. Requires the I2C wire library but not the ComMotion. I have only tested with 3 motors using SparkFun RedBoard as the main Arduino. Have noticed that motors 3 & 4 (second controller chip) behave very randomly when the power drops. I typically supply about 7.2V.

https://www.dropbox.com/s/qte06an1f96u02g/blueglide.ino?dl=0

 

Thank you for the quick

Thank you for the quick response, but that is not working either.

Can you please confirm that the code that is mentioned as the “ComMotion Code” on page number 9 of https://drive.google.com/file/d/0B__O096vyVYqRG9id3BnOWNWQ00/edit?pli=1

is https://sites.google.com/site/daguproducts/home/Software/ComMotion_Shield_V2_1.zip?attredirects=0&d=1

code which is to be uploaded to the two processors on the shield?

I am using only one motor at the moment so there should be no randowm behaviour yet.

Thanks again.

Maybe error figured out

Hi

I think I might have figured what the error is but do not know how to resolve it.

I printed the error code of Wire.endTransmission(); which came out to be 2.

Which according to this: https://www.arduino.cc/en/Reference/WireEndTransmission

is a NACK. This means arduino cannot find the slave (shield).

I also tried this program: http://playground.arduino.cc/Main/I2cScanner which printed no I2C device found.

Hopefully there is a way to resolve this?

ComMotion

I have not flashed my ComMotion. All of my failures have been power or jumper related. I think there is a “default behavior” where the device will do some motor activity if it does not detect I2C activity.