Controlling a 4 digit 7-segment Display
RTrotter15
Posts: 35
in BASIC Stamp
I working with a 4 digit 7-segment display and a BASIC Stamp HomeWork Board... Using only the Vss and Vdd and a larger breadboard, I've figured out the basic pin configuration.
In my case, pins 12, 9, 8 and 6 of the display need to be connected to each digit of the display to Vdd. Then the other pins connect each segment to Vss. For the breadboard operation, I only need (1) 1K resistor.
My question now, is how to control it with the BASIC Stamp?
Do I need to connect each pin of the display to an I/O of the BASIC Stamp right? (the 4 individual "select" pins, along with each segment)
What about resistors? One for each of the segments right?
What about the pins connecting Vdd to the display? Is a resistor needed here too?
I don't want to blow up my BASIC Stamp, so I'm asking these questions before I connect it.
Thanks,
Randy
In my case, pins 12, 9, 8 and 6 of the display need to be connected to each digit of the display to Vdd. Then the other pins connect each segment to Vss. For the breadboard operation, I only need (1) 1K resistor.
My question now, is how to control it with the BASIC Stamp?
Do I need to connect each pin of the display to an I/O of the BASIC Stamp right? (the 4 individual "select" pins, along with each segment)
What about resistors? One for each of the segments right?
What about the pins connecting Vdd to the display? Is a resistor needed here too?
I don't want to blow up my BASIC Stamp, so I'm asking these questions before I connect it.
Thanks,
Randy
Comments
As Hal mentioned, the Stamp's I/O pins have maximum current draws. If you limit the segment current to maybe 5mA, you could connect the 7 segments (maybe plus a decimal point) directly to one group of 8 I/O pins. You'd need 1K resistors for each segment. You'll probably still need the digit drivers since 7 x 5mA = 35mA, well in excess of what a single I/O pin can handle.
Some LEDs are quite small and bright even at low currents. You're multiplexing these though and the brightness has to be greater since each digit is only on at most 1/4 of the time.
You're using a HomeWork Board which already has 220 Ohm (?) series resistors on all I/O pins. You have to figure that into the total resistance you want.
"In my case, pins 12, 9, 8 and 6 of the display need to be connected to each digit of the display to Vdd. Then the other pins connect each segment to Vss. "
"Common Cathode "
These two statements by the OP seem to be at odds. Common cathodes should be connected, through a switching transistor, to Vss, or ground, and the segments to Vdd, or positive voltage. The OP should positively determine if his display is common cathode or common anode, then we can provide more specific ideas on how to use the BS2 to control the display. Personally, I tend to shy away from using Vxx when describing voltage levels, I prefer the simplistic terms "positive voltage" and "ground", they are less confusing.
Hal, my display has 12 pins, 4 for the digits and 8 for the segments (and DP)
Mike, I'll do some searching. Thanks giving me the basics. It's a good starting point.
Hal. LOL, this is why I'm posting this question here... to straighten out these issues.... In my "testing" I was able to get all of the segments to come on. For example, I connected all of the "digit" pins (12, 9, 8 and 6) to a 1K resistor and then to the Vdd output of the BASIC Stamp, then I connected pin 7 (the "A") to the Vss output of the BASIC Stamp. All four "A" segments came on. Right or wrong, it worked. (No I/O pins were connected.
Since I got this display from a non-big named website, I don't have much technical specifications.
Randy
LOL, not that I specially ordered a Common Cathode display... but that is what the package was labeled.
With the lack of tech specs and a Common Anode display, should I order another one?
Randy
Parallax micro controller on floridaame.org by Kamran Nili. I added code to use 5 digits
I plan to make a few purchases on my next paycheck. It appears that I can get (1) of all of the suggested componets from "Digi-Key". I think I'll get each... to build up of "supply".
Randy
LOL, wow... so much for the "support" from this website (I'll be nice and not "bad mouth this company").
I think I'm going to be purchasing another 4 digit 7-segment display... maybe a "dual" 4 digit 7-segment display.
Thanks for all the great replies
Randy
Go to Amazon.com, search on 7 segment display, and stand back! Find the stuff you want that offers Prime, order it, sign up for Prime 30-day trial, and get the stuff shipped for free in 2 days. Just remember to cancel your Prime before 30 days or they will charge you $99. Besides the obvious upside, if what they send you isn't correct they will take it back with no hassle.
http://www.ebay.com/itm/5V-MAX7219-8-Digit-Red-LED-Display-Module-7-Segment-Digital-Tube-For-Arduino-MCU-/281251260576?hash=item417be1a8a0
I have Amazon Prime.. I didnt think about it... LOL, the disadvantage is that my finacee see's what I spend on Amazon. Well decide if its "worth".... shhhhhh guys. Secret!!!! LMAO
Randy
Jonny, is this a kit?
I got
(2) 4 digit 7-segment displays (Common Anode)
a few 2N3906
a few ULN2003A
a few ULN2803
And some additional breadboarding items.
Randy
And the ebay item Tom pointed out and Jon blessed, uses the same chip.
http://www.ebay.com/itm/5V-MAX7219-8-Digit-Red-LED-Display-Module-7-Segment-Digital-Tube-For-Arduino-MCU-/281251260576?hash=item417be1a8a0
Not a kit, and is probably cheaper than what you spent for parts.
Well, it's not the cheapest option... But I've now purchased both the MAX7219 driver chip and the 8 digit display previously recommended. The display is coming from hong kong so I don't except it for a while.
LOL, I've not blown my "play money" for the next 2 weeks,
Randy
1. The data sheet
2. this thread: http://forums.parallax.com/discussion/160443/basic-stamp-bs2p-and-the-max7219-display-driver
and remember, kids, "dig" is your friend. (page 117 of the Basic manual)
Question. Is this the best forum, or is there another (better) forum to ask questions about designing a circuit for the MAX7219/7-segment combo? General electronic questions? Like I see that the 7219 has both digit and segment pins. Do I leave the digit pins un-hooked? Or do I need to tie them to a high or a low?
Randy
2. The best place to learn about designing with the MAX7219 is the MAX7219 data sheet. Download it and print it out. Double-sided it is only eight pieces of paper. Start at the beginning and go on until you come to the end. Pay particular attention to the tables. They will speak to you about how to program it.
3. Study Typical Application Circuit on page one and the Pin Description Table on Page 5.
4. Segment Pins connected to the segment pins. See Table 6 on page 8.
5. Digit Pins connected to the digit pins. Eight is on the left, one is on the right.
6. Become as one with shiftout.
7. Draw a schematic of how you intend to connect everything and post and post it here. Someone is sure to comment.
8. And remember, kids: DIG is your friend.
Tom, when you say "Basic Manual", is this what you're referring to?
https://www.parallax.com/product/27218
Yes. That is an absolute necessity for programming Basic Stamp.
BTW, I'm assuming that you have one or another of the Board of Education boards. The 5V regulator on any of those should provide plenty of +5, especially if you're using a 7.5V wall wart. No need for any separate power supply for small leds and MAX7219.
Above all, have fun.
I have the "HomeWork Board". I'm using longer jumper wires to connect other bigger breadboards. Right now I only have power coming from the Homework board, (powered by only 9V battery) so I've ordered a 5V breadboard power supply (it attaches directly into the end of a breadboard, feeding all of the bus strips)
After I do some of my "honey do" list (I'm medically retired) I'll start working on drawing a schematic.
What file formats does this forum allow for attachments? Jpeg?
The maximum file size users will be able to upload is 50 mb.