I am very new to Arduino and breadboarding. I just bought a 4 digit 7 segment display from Sparkfun and I don't know which pins on the display should go to which pins on my Arduino UNO. The goal I had in mind would be to simply display some digits that I would identify in the code. Any advice would be great. Here is the link to the display I purchased. 7-Segment Display - 4-Digit (Blue) - COM-09481 - SparkFun Electronics
google 'images of 4 digit 7 segment display' this will give you some options for wiring.
Get a 3 v battery like the ones in car remotes ie cr2016 and use it to check the pins (wires direct from it to the pins will check the display without the need for resistors) or use the 5v out of the arduino and something like a 470ohm resistor in series with your wires to check the leds on the display.
A better way would be to use a chip like the 4511B or any BCD to seven segment converter, this means you will only need 4 data outputs from the arduino as opposed to 7.
Again google images of bcd to 7 segment display for wiring hints.
Lustrousfiddle4:
I just bought a 4 digit 7 segment display from Sparkfun
Is it just a display, or has it got some sort of interface with it? A link to what you bought will help.
Like you, I've just started messing about with Arduinos. Last week was 7-segment week ;D . I found using the ledcontrol library with a Max7219 made things very easy.
HTH
J
Here is the link - 7-Segment Display - 4-Digit (Blue) - COM-09481 - SparkFun Electronics I will check those things out. Thanks! ![]()
If you follow your SparkFun link you will find links to both the datasheet and to some example code.
You might get more help in the previous forum section 'LEDs and Multiplexing' since this is a multiplexed display.
Don
So, you have a plain 4-digit 7-segment display with no interface attached. Good.
Have a look in the Arduino reference pages, on sparkfun etc and read up a bit. Then have a look at
http://playground.arduino.cc/Main/LedControl
to get an understanding of what the MAX7219 is and how you use it. Then get yourself 1 or 2 MAX7219s cheap from ebay and have a play.
The underlying idea with 7-segment displays is that essentially you're just lighting up some LEDs. The display doesn't 'know' anything about numbers, so you have to tell it which lights to switch on.
The next thing you'll come across is how to extract the digits from a 4-digit number. This is easy with modular arithmetic, which might sound unfamiliar but it's very simple.
Then you might wonder how to display a decimal, say 12.34. Easy: multiply it by 100, treat it as 1234, then light up the decimal point on the 2 digit.
HTH
J
PS I've reported my post to the mods to see if they can move the thread to the right forum, where you might get more exposure.
Bad news I'm afraid. Lustrousfiddle4 has bought a common-anode display. Max7219 was designed for common-cathode. While its not impossible to use max7219 with common-anode, its far from ideal for a beginner.
Lustrousfiddle4, I suggest you take a look at the 7 seg library. This can be used with both common-anode and common-cathode displays. While not as convenient as using a max7219, at least you can get started and learn some things.
Paul