PWM pin on Motor Shield?

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

PWM pin on Motor Shield?

Postby ed_devane » Sat Feb 16, 2013 11:00 am

Hi,

I'm building a guitar pickup winder using a motor shield on top of a Mega 2560. I have a stepper motor connected to M3 and M4 ports, but otherwise am not using the shield.

I need to be able to control the brightness of an LED using PWM but all the PWM pins are connected to the shield. Is there a way of using the servo connectors to control an LED, or can I disconnect one of the arduino's PWM pins from the shield?

Cheers
ed_devane
 
Posts: 3
Joined: Sat Feb 16, 2013 10:50 am

Re: PWM pin on Motor Shield?

Postby adafruit_support_bill » Sat Feb 16, 2013 11:08 am

You can connect to the servo headers. Pins 9 and 10 are directly connected to the servo signal pins (the ones closest to the label).
Also, digital pins 3 and 11 are used for motors 1 and 2. If you are not using those motor channels, you can re-purpose those pins for your led control.
User avatar
adafruit_support_bill
 
Posts: 15983
Joined: Sat Feb 07, 2009 9:11 am

Re: PWM pin on Motor Shield?

Postby ed_devane » Sat Feb 16, 2013 11:46 am

thanks for the reply! If I connect an LED to the servo pins, would I connect the "-" (which I assume is earth) and the "S" pins to the LED (with resistor)?
ed_devane
 
Posts: 3
Joined: Sat Feb 16, 2013 10:50 am

Re: PWM pin on Motor Shield?

Postby adafruit_support_bill » Sat Feb 16, 2013 12:04 pm

would I connect the "-" (which I assume is earth) and the "S" pins to the LED (with resistor)?

That is correct! :)
User avatar
adafruit_support_bill
 
Posts: 15983
Joined: Sat Feb 07, 2009 9:11 am

Re: PWM pin on Motor Shield?

Postby ed_devane » Sun Feb 17, 2013 6:40 am

I actually ended up removing the terminal pin for pin 11 and drilled a 2mm hole to allow a jumper cable to go through the shield without making contact, into the arduino. Works like a charm! Thanks for the very swift responese.

ed
ed_devane
 
Posts: 3
Joined: Sat Feb 16, 2013 10:50 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: mibignistinly and 5 guests

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


New Products [100]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
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[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


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