Go Down

Topic: SINGLE 3 DIGIT 7 SEGMENT LED (Read 21625 times) previous topic - next topic

cupstacker

Nov 29, 2013, 08:25 am Last Edit: Nov 29, 2013, 10:06 pm by cupstacker Reason: 1
i have a single 3 digit 7 segment led display - 11 pin


i also have some 74hc595's and MAX7219's to connect the segment display to - (i don't know which is best but i think it will be 74hc595??0.. i do not need the DP

11 buttons will control this display as follows
buttons 1-10 will consist of double press to fill the display, example of this

button 1 - you press once to get the letter A and then say you press button 1 again the display will be A01

buttons 1-10 are A-J and 1-10.... (A/21, B/2,C/3.....J/10)

button 11 will start the display at 000 and be the SET button

SEQUENCE

button 11 sets display to 000 buttons 1-10 are useless until this happens
select a letter with buttons 1-10
select a number with buttons 1-10
button 11 clears display - button 11 is useless until the above 2 steps happen

with whatever was set with button 11 will turn on a certain set of leds.. for now though i have a bi-color led for testing so let's go with A01 the bi-color led turns on red and A02 the bi-color turns on green

END SEQUENCE

keep in mind that there will be an on/off switch to turn on before any buttons can be used.. but i am not concerend about that right now, just keep that in mind for later

thank you

Grumpy_Mike


cupstacker

maybe i should have questioned it better. how do i connect the segment display to 74hc595's and looking for some coding help. basically was going from my previous topic to this one because i changed the concept of the project, see my topic "delete this topic please". i posted this one right after and asked the other one to be deleted.

thank you

TomGeorge

Hi,
How are you going to display 0 (zero) and D, unless you use lower case d.
Display 1 (one) and i, you will have to use a single vertical segment for i.
I gather you want to display any combination A01 to A10, B01 to B10, etc up to J01 to J10.
The 11th button does a clear, 000.
Do I have the concept right.
All the buttons means you keep the maximum number of presses for any number will be 10, to get A10 or B10 etc.

You could use two rotary encoded switches, one switch as you turn it , selects A to J.
The other switch selects 1 to 10.
This way is you get the letter or number wrong you just turn the rotary switch back or forward to the right one.
It simplfies the controls to two knobs and a reset button.

Tom... :)
Everything runs on smoke, let the smoke out, it stops running....

cupstacker

#4
Nov 29, 2013, 11:28 am Last Edit: Nov 29, 2013, 11:30 am by cupstacker Reason: 1
yes, they will be all lowercase..  i don't like the rotary switches idea.. they must be push buttons.. could always add a clear button if needed.

my main concern is wiring up to the chip

thank you


Paul__B

Just use the MAX7219 - makes it all so easy.  If you try to use the 74hc595, you are up for driver transistors, resistors and ten port lines.  The MAX7219 uses three lines, one resistor a couple of bypass capacitors and does all the multiplexing for you.  Even if it is the wrong common cathode/ anode for your display (you did not specify) and you cannot use the built-in character generator in the MAX7219, it will be preferable.  And you do not need a library for it.

Obviously you are going to matrix your 11 buttons.

No decimal points.

cupstacker

Quote
one resistor a couple of bypass capacitors


ok, but how do i connect it all to the max7219? i haven't found a tutorial or anything on it..

thank you

Grumpy_Mike


Paul__B

Basically, it's all in the datasheet.

I am kind of waiting for you to specify your display - common cathode or anode and pin numbering.

cupstacker

#9
Nov 29, 2013, 10:02 pm Last Edit: Nov 29, 2013, 10:06 pm by cupstacker Reason: 1
i wouldn't be able to tell you, i got it from someone who had gotten it awhile ago and does not remember.. all i do know it has 11 pins.

Paul__B


Or google even
http://playground.arduino.cc/LEDMatrix/Max7219


I love the way that code is listed there - with the line numbers!


I wouldn't be able to tell you, I got it from someone who had gotten it awhile ago and does not remember.. all I do know it has 10 pins.


That is going to slow things down, isn't it?

Paul__B

#11
Nov 29, 2013, 10:12 pm Last Edit: Nov 29, 2013, 10:27 pm by Paul__B Reason: 1
OK, we now know it is a common cathode display.




Ahh!  I could have sworn that you said it had ten pins.  Seems it has eleven.  And I think we know the pin numbering.

That plus the datasheet, should get you wiring it up.


cupstacker

3bit Common Anode Digital Tube 0.36in. red LED - still don't see how to connect it to a max7219 OR a 74hc595..

nickgammon


i also have some 74hc595's and MAX7219's to connect the segment display to ...


Funnily enough I have a page about connecting LEDs to a MAX7219.

http://www.gammon.com.au/forum/?id=11516

Half-way down that page I illustrate using a 4-digit LED, a 3-digit one will be similar.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

nickgammon

I think you can make common anode ones work by reversing the way the 7219 operates. Get it to sink rather than source current. I'm not sure about that. I think CrossRoads is the expert on that sort of thing.

Or this page: http://www.gammon.com.au/forum/?id=12298

That shows a scrolling LED display using the 595 chips. Those are set up to sink current.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

Go Up