Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

PWM pin on Motor Shield?
Moderators: adafruit_support_bill, adafruit

PWM pin on Motor Shield?

by ed_devane on Sat Feb 16, 2013 12:00 pm

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 11:50 am

Re: PWM pin on Motor Shield?

by adafruit_support_bill on Sat Feb 16, 2013 12:08 pm

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.

adafruit_support_bill
 
Posts: 37487
Joined: Sat Feb 07, 2009 10:11 am

Re: PWM pin on Motor Shield?

by ed_devane on Sat Feb 16, 2013 12:46 pm

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 11:50 am

Re: PWM pin on Motor Shield?

by adafruit_support_bill on Sat Feb 16, 2013 1:04 pm

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

That is correct! :)

adafruit_support_bill
 
Posts: 37487
Joined: Sat Feb 07, 2009 10:11 am

Re: PWM pin on Motor Shield?

by ed_devane on Sun Feb 17, 2013 7: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 11:50 am