Decade Counters and Arduino

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Decade Counters and Arduino

Postby sjrapid » Fri Feb 01, 2013 4:44 pm

I'm considering using Adafruit Decade Counters (https://www.adafruit.com/products/1084) as input to a countdown timer, but it seems like they'll need 10 pins each to read, and even a 54 pin Arduino mega will run out of pins if I have h:mm:ss to read twice.

Could anyone suggest a neater way of reading 2 x 5 digit counters using fewer arduino pins?

Many thanks

Steve
sjrapid
 
Posts: 1
Joined: Mon Jan 28, 2013 8:29 am

Re: Decade Counters and Arduino

Postby Zener » Fri Feb 01, 2013 5:22 pm

Multiplex. You will need 20 pins. Technically there are ways to do it with even fewer pins, such as 8 , or maybe even as few as 3 using serial devices, but multiplexing is pretty straight forward. Each digit's common goes to an IO pin. So that is 10 right there. Then all the 0's are hooked together, all the one's etc. And all those get connected to IO pins, so that's 10 more. And you also attach those to pullups, one for the 0's line, 1 for the 1's line etc. So when you lower the common for that digit, you can read it, then go on to the next digit.
Zener
 
Posts: 2029
Joined: Sat Feb 21, 2009 1:38 am


Return to General Project help

Who is online

Users browsing this forum: ArekKindAcere, franklin97355 and 6 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]