Pages: [1]   Go Down
Author Topic: Adafruit motor shield + wifi shield + CMUcam4  (Read 965 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I am working on a project that can remote control a robotic car through wifi and using Arduino Uno. I got a problem which is the motor shield uses the same pin as wifi shield (pin 12, 7). How to modify the library such that the conflict can be free? I changed the pin # for pin 7, 12 in wifi shield but failed. One more thing, since most of the pins have been used by wifi shield and motor shield, if I plugin CMUcam4, can it works properly or I need to do modification again? Or I need to use other Aruduino board?

Here is the header file for motor shield: https://github.com/kachok/arduino-libraries/tree/master/Adafruit_MotorShield

Thanks
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 45935
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
How to modify the library such that the conflict can be free?
Which library?

If you want to modify the motor shield library, first you'll need to modify the shield. Tear up all the traces, and rewire the thing to not use pins 7 and 12.

If you want to modify the WiFi library, forget it. SPI is hardwired to pins 11, 12, and 13.
Logged

port elizabeth south africa
Offline Offline
Newbie
*
Karma: 0
Posts: 2
we are dyslexia of borg fusistance is retile, youre ass will be laminated
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

dont bother messing with the pin assignments of  the spi pins..  on of the pins on that shield should be chip select or slave select from the cpp file i guess its the motor enable line.. move that one to another pin and adjust the code as required.

the slave select pin was added to spi to allow multiple slave devices to sit on the spi bus  do a youtube search for according to pete  and spi and watch the resulting video clip
Logged

Pages: [1]   Go Up
Jump to: