Pages: [1]   Go Down
Author Topic: running out of pins  (Read 618 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 89
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34724
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

SG
Offline Offline
God Member
*****
Karma: 11
Posts: 535
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The LCD keypad shield used
* LCD RS (Data or Signal Display Selection) pin to digital pin 8
* LCD Enable pin to digital pin 9
* LCD D4 pin to digital pin 4
* LCD D5 pin to digital pin 5
* LCD D6 pin to digital pin 6
* LCD D7 pin to digital pin 7
* Backlit Control to Digital pin 10
* Button (select, up, right, down and left) to Analog pin 0
You left with Digital 2,3,11,12,13 and Analog pin 1 to 5
You can use this TLC5940 for your LED
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34724
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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.
Logged

Florida
Offline Offline
God Member
*****
Karma: 2
Posts: 559
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you get an Arduino with with more pins... like the Mega?
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 89
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: