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
PWM pin on Motor Shield?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: PWM pin on Motor Shield?
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.
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.
-
- Posts: 3
- Joined: Sat Feb 16, 2013 11:50 am
Re: PWM pin on Motor Shield?
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)?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: PWM pin on Motor Shield?
That is correct!would I connect the "-" (which I assume is earth) and the "S" pins to the LED (with resistor)?
-
- Posts: 3
- Joined: Sat Feb 16, 2013 11:50 am
Re: PWM pin on Motor Shield?
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
Please be positive and constructive with your questions and comments.