I have an uno and this shield
http://www.dfrobot.com/wiki/index.php/Arduino_LCD_KeyPad_Shield_(SKU:_DFR0009)
And I need to dim 5 LEDs with MOSFETs via PWM. Am I stuck with using 2 arduinos or is there another way around this?
I have an uno and this shield
http://www.dfrobot.com/wiki/index.php/Arduino_LCD_KeyPad_Shield_(SKU:_DFR0009)
And I need to dim 5 LEDs with MOSFETs via PWM. Am I stuck with using 2 arduinos or is there another way around this?
A link to a page with actual content would help.
You can use alternat pins for you key pad and that will free up the five out of six PWM pins you need for your LED dimming.
Alternately use a shiftbregistervto give you more pins and use shiftPwm libary to control them.
The LCD keypad shield used
You left with Digital 2,3,11,12,13 and Analog pin 1 to 5
So that is 11 digital I/O. Re assign these to the shield and use the PWM for the LEDs.
No need for any other chips.
Could you get an Arduino with with more pins... like the Mega?
Grumpy_Mike:
A link to a page with actual content would help.
You can use alternat pins for you key pad and that will free up the five out of six PWM pins you need for your LED dimming.
Alternately use a shiftbregistervto give you more pins and use shiftPwm libary to control them.
For some reason the last ) is left out of the link.
I'll read more on this method since I'm stuck using an UNO and no expansion boards.