Adafruit motor shield + Pic16F876

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Adafruit motor shield + Pic16F876

Postby jjwa » Tue Oct 02, 2012 12:21 am

Having read Adafruit motor shield manual and most of FAQ without finding any answer for my case. I’m a bit frustrating since I couldn’t find answer. So I have Pic 16F876 which will control my Bi-polar stepper motor. I have four pins in my Pic programmed for that purpose but my problem is which I/O pins in a shield am I supposed to connect to my Pic.
Any assistance or recommendations most appreciated.
jjwa
 
Posts: 3
Joined: Mon Oct 01, 2012 9:43 am

Re: Adafruit motor shield + Pic16F876

Postby adafruit_support_bill » Tue Oct 02, 2012 4:29 am

That is addressed in the FAQ:
Which pins are connected to the DC/Stepper motors?
The DC/Stepper motors are NOT connected to the Arduino directly. They are connected to the 74HC595 latch which is spoken to by the Arduino. You CANNOT talk directly to the motors, you MUST use the motor shield library.


To control the motors you need to control the H-bridges via the 74HC595 latch. The latch is controlled by pins 4, 7, 8 & 12.

Source code for the library and full schematics can be downloaded here: http://learn.adafruit.com/adafruit-motor-shield/downloads
User avatar
adafruit_support_bill
 
Posts: 16644
Joined: Sat Feb 07, 2009 9:11 am

Re: Adafruit motor shield + Pic16F876

Postby jjwa » Sun Oct 07, 2012 4:45 am

“To control the motors you need to control the H-bridges via the 74HC595 latch. The latch is controlled by pins 4, 7, 8 & 12.”

Thanks, with one stepper motor this works fine with Pic. But if I want to control two stepper with Pic how to do it or do I have to buy one more motor shield?
jjwa
 
Posts: 3
Joined: Mon Oct 01, 2012 9:43 am

Re: Adafruit motor shield + Pic16F876

Postby adafruit_support_bill » Sun Oct 07, 2012 6:12 am

There are 2 L293D H-bridges and the latch controls both of them. You can see how they are connected in the schematic:
https://raw.github.com/adafruit/Adafruit-Motor-Shield-for-Arduino/master/mshieldv12schem.png
User avatar
adafruit_support_bill
 
Posts: 16644
Joined: Sat Feb 07, 2009 9:11 am


Return to Microcontrollers

Who is online

Users browsing this forum: No registered users and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [113]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[23]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]