Offline
Newbie
Karma: 0
Posts: 25
|
 |
« on: October 25, 2012, 10:30:04 am » |
I would like to use a 4 digit 7 segment display for a project at university and we have been given an arduino nano. Using the display in the link below would it be possible to connect this to the arduino nano and how many of the pins would it take up? https://www.sparkfun.com/products/11408
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 271
Posts: 25422
Solder is electric glue
|
 |
« Reply #1 on: October 25, 2012, 10:37:32 am » |
how many of the pins would it take up? 8 (or 7 if you don't want the decimal point) for the segments plus 4 for the common connection so 12 in all. You will also need to multiplex the display to make it look like there is something different on each display.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #2 on: October 25, 2012, 11:03:34 am » |
Thanks. I take it that they run off digital pins?
I also need to connect an accelerometer to the arduino nano, would I have enough pins left?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16460
Available for Design & Build services
|
 |
« Reply #3 on: October 25, 2012, 11:16:54 am » |
You have 20 IO pins available. 18 if you reserve D0, D1 for serial interfaciing. Commit 11 or 12 to the display, leaves 6 or 7 free for the accelerometer. Is that an analog outout device> I2C or SPI device? If you need to free up pins, you can use a shift register to write the segments for the display, and gain 4 or 5 back that way (instead of 7/8 segments, have a datapin, clock pin, and latch pin for most shift registers). If you use a 2nd shift register daisy chained with the first, then you can gain the 4 common anode/cathode pins back also.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
South England
Offline
Full Member
Karma: 3
Posts: 194
|
 |
« Reply #5 on: October 25, 2012, 11:57:29 am » |
The 74HC595 is the standard choice for that sort of application.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #6 on: October 25, 2012, 12:03:44 pm » |
The 74HC595 is the standard choice for that sort of application.
Thanks. When connecting both the display and shift register to the breadboard / arduino will I need any resistors or other components?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16460
Available for Design & Build services
|
 |
« Reply #7 on: October 25, 2012, 12:11:05 pm » |
Yes, you will need 180 to 220 ohm current limit resistors, 1 for each segment. You will need 100nF caps, one for each shift register's Vcc pin. You will need a ULN2003 to buffer the common cathode signals - each cathode will have up to 160mA flowing thru it if all 8 segments are on. The shift register, or arduino pin, will source current into the anode segments, the ULN2003 will sink current.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #8 on: October 25, 2012, 12:25:25 pm » |
Yes, you will need 180 to 220 ohm current limit resistors, 1 for each segment. You will need 100nF caps, one for each shift register's Vcc pin. You will need a ULN2003 to buffer the common cathode signals - each cathode will have up to 160mA flowing thru it if all 8 segments are on. The shift register, or arduino pin, will source current into the anode segments, the ULN2003 will sink current.
So thats about 13 resistors then? Is this the buffer I am looking for? http://uk.rs-online.com/web/p/darlington-transistors/4368451/
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16460
Available for Design & Build services
|
 |
« Reply #9 on: October 25, 2012, 12:30:39 pm » |
No, just 7 or 8 resistors - they only go in the segment lines, not the common cathode lines. Yes, that's the correct part.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Western New York, USA
Offline
Faraday Member
Karma: 17
Posts: 3460
|
 |
« Reply #11 on: October 25, 2012, 02:18:14 pm » |
I would like to use a 4 digit 7 segment display for a project at university and we have been given an arduino nano. ... will I need any resistors or other components? ... Is this the buffer I am looking for? ... Would it be possible to use this buffer instead? What is your major? If it's technology or engineering we don't want to do too much of your work for you.Don
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #12 on: October 25, 2012, 02:24:22 pm » |
I'm a mechanical student and have no idea on electronics.
We're going to be getting some help from an electrician at university, but I'd thought some research wouldn't go a miss first.
|
|
|
|
« Last Edit: October 25, 2012, 03:11:06 pm by evans123 »
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 271
Posts: 25422
Solder is electric glue
|
 |
« Reply #13 on: October 26, 2012, 12:35:36 am » |
Would it be possible to use this buffer instead? Yes.
|
|
|
|
|
Logged
|
|
|
|
|
|