PWM pin on Motor Shield?

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
ed_devane
 
Posts: 3
Joined: Sat Feb 16, 2013 11:50 am

PWM pin on Motor Shield?

Post by ed_devane »

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

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: PWM pin on Motor Shield?

Post by adafruit_support_bill »

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.

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

Re: PWM pin on Motor Shield?

Post by ed_devane »

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)?

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: PWM pin on Motor Shield?

Post by adafruit_support_bill »

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

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

Re: PWM pin on Motor Shield?

Post by ed_devane »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”