Go Down

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

graynomad

Looks like Bob was caught by the old cut and paste bug.

I think

Code: [Select]
const byte MAX7219_DIG0        = 0x01;
const byte MAX7219_DIG0        = 0x02;
const byte MAX7219_DIG0        = 0x03;


should be

Code: [Select]
const byte MAX7219_DIG0        = 0x01;
const byte MAX7219_DIG1        = 0x02;
const byte MAX7219_DIG2        = 0x03;


______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

cupstacker

i mentioned that already before you posted

thank you

CrossRoads

Did you change the wiring between the Arduino and the MAX7219 as well?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

graynomad

Quote
i mentioned that already before you posted

Yep, posts crossed, but mine was first by 3 seconds :)
Rob Gray aka the GRAYnomad www.robgray.com

cupstacker

PIN                              Max7219
1 = E                         21
2 = D                      23
3 = DP                      22
4 = C                      20
5 = G                      17
7 = B                      16
8 = common      6
9 = common      11
10 = F                      15
11 = A                      14
12 = common      2

DIN - 12
clock - 11
load - 10

max - 4 & 9 ground
max - 19 power

that's how i have it wired

CrossRoads

Please fix your wiring then.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

cupstacker

do i have any of it right? took me awhile to wire it up and i don't read diagrams like that well..

the one i go by is

CrossRoads

Do you have:
Arduino-D13 to MAX7219-13?
Arduino-D11 to MAX7219-1?
Arduino-D10 to MAX7219-12?

If you don't  have those control signals connected, the MAX7219 is not going to work with the code provided.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

cupstacker

#53
Dec 01, 2013, 03:32 pm Last Edit: Dec 01, 2013, 04:42 pm by cupstacker Reason: 1
yes and still nothing..



also as far as i can gather this segment is an LDS-3361 AX/BX

datasheet: http://www.mediafire.com/view/2kzjgay4z4ot41l/MAX7219datasheet.pdf

and as far as i can see, i have my wiring right.. maybe i'm wrong but i don't believe so

CrossRoads

Is yours the AX or the BX?
You said back in reply #12 "3bit Common Anode Digital Tube 0.36in. red LED" which would be BX, which isn't going to work.
Your big picture a few posts back also did not show any capacitors or a resistor from MAX7219 pin 18 to +5, 22K to 33K. Those are also needed.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

cupstacker

#55
Dec 01, 2013, 06:23 pm Last Edit: Dec 01, 2013, 07:11 pm by cupstacker Reason: 1
i have put a resistor max 19 to +5 :)

ebay purchase info i got was: 2pcs 3bit Common Anode Digital Tube 0.36in. red LED (121031393167)

the seller:  e_goto

i contacted seller and they gave the following:
Here is the data download link:
http://www.icstation.com/ebay/IMAGE_DING/1866.jpg
http://www.mediafire.com/view/2kzjgay4z4ot41l/MAX7219datasheet.pdf

so as far as AX or BX i do not know or if it's either on 1 side of the display it says 3361BS. and as far as capacitors and resistors i haven't used any simply because i do not know where they go or how many and nobody showed me that.

is it really that complicated to get this single 3 digit segment display to work? if so, i'll just get a couple of different ones cause i'm finding this to be too much BS for these displays!  i mean really.. a lot of work just to get numbers and letters to show and i haven't even got to the 11 buttons yet to make it display what i want it to display yet.  :smiley-red:

i've tried to be really nice on here as a new member, but i'm just about reaching the point of like wth.. tons of "experts" on here and we can't get this display to work? and yet to see someone confirm the wiring i have is correct or incorrect.

thank you

arduinodlb


i've tried to be really nice on here as a new member, but i'm just about reaching the point of like wth.. tons of "experts" on here and we can't get this display to work? and yet to see someone confirm the wiring i have is correct or incorrect.


Despite your frustration, don't take it out on the people here who are trying to help you for free.

Your wiring descriptions have been inconsistent, which makes it hard to work out the issue.

A few posts back you said this:
DIN - 12
clock - 11
load - 10

which is inconsistent with:
Arduino-D13 to MAX7219-13?
Arduino-D11 to MAX7219-1?
Arduino-D10 to MAX7219-12?

The photo you took earlier only showed the breadboard, and not how it was connected to your Arduino.


and yet to see someone confirm the wiring i have is correct or incorrect.


Give us a complete photo of your setup and we may be able to do this.
Do not IM me. I will not respond. Ask questions in the forum.

nickgammon


as far as capacitors and resistors i haven't used any simply because i do not know where they go or how many and nobody showed me that.


I linked this page before. Did you visit it?

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

Here's a diagram from that page:



Quote

is it really that complicated to get this single 3 digit segment display to work?


It shouldn't be. Since you have worked out the pin-outs can you use a meter, or a 5v power supply and a resistor (like 220 ?) in series, and work out which way around the LEDs are. You know the common pins (8, 9, 12). Are they anodes or cathodes?

Quote

tons of "experts" on here and we can't get this display to work?


"We?". If you expect help you need to do better than a graphic with a few boxes and coloured lines. We aren't mind readers, experts or not. Draw exactly how you have wired it up, using pencil and paper if you have to, and scan it it. And/or take a photo. And post the exact code you are using. A one-line bug in the code, or a single wire in the wrong place can do it.
Please post technical questions on the forum, not by personal message. Thanks!

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

cupstacker

#58
Dec 01, 2013, 08:26 pm Last Edit: Dec 01, 2013, 08:33 pm by cupstacker Reason: 1
image 1: http://cdn.img42.com/2513ad9a3bed0caca272d8150ff9f7a2.jpeg

image 2: http://cdn.img42.com/f6acb94b233f0db61910b3859e1218d7.jpeg

just shows 888 or (blank if i unplug and replug it a few times)


@ nick - anodes.. already been mentioned, and as far as "taking it out" on anyone,  i'm not - just venting.. 2 days here and i still all i see is 888 being displayed. so yes, i am a little frustrated.

ps
and yes, we know we are getting help for free, we all know this - i wish people would stop rubbing that into new people's faces already. we appreciate the help, but that doesn't mean we can't vent at times.

nickgammon

What have you got on pin 18 of the MAX7219? That controls current output, and you aren't indicating anything in your earlier reply. Without current control you can burn out your LEDs.
Please post technical questions on the forum, not by personal message. Thanks!

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

Go Up