Go Down

### Topic: 0.56" RED 7 SEGMENT LED DISPLAY COMMON ANODE 41056 - (SOLVED) (Read 3300 times)previous topic - next topic

#### Ruffsta

##### Jan 13, 2013, 04:24 pmLast Edit: Jan 13, 2013, 05:15 pm by Ruffsta Reason: 1
k, i bought this: http://www.ebay.com/itm/170894855752?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2648

and been following this - (as i did for the radio shack one): http://www.hacktronics.com/Tutorials/arduino-and-7-segment-led.html

and i hook it up exactly as it says, but nothing happens when i run the code..

yet another helping hand from grumpymike?  XD

#### Ruffsta

#1
##### Jan 13, 2013, 04:27 pm
is there a way to test pins to see which light up without hooking them all up? i hook up pin 7 to arduino pin 8 and then i can get some to light up by playing around.. but it doesn't work no matter what i do..  :~

#### Neight

#2
##### Jan 13, 2013, 05:02 pm
I used that same tutorial a few days ago, good starting place in my opinion.

The code written in that example is for a common cathode 7 segment display.

since yours is a common anode, you need to reverse the code a little.

basically, in the array used to display the digits, you need to switch the ones to zeros and the zeros to ones.
once you do that, it should work, provided this is the issue you are having.

as to your second question, yes, you can test the pins that way.
just write arduino pin 8 LOW and connect the common anode (either display pin 3 or 8 ) to a resistor and the 5v on your arduino.  then hook arduino pin 8 to each of the cathode pins (display pins 1, 2, 4, 5, 6, 7, 9 and 10) and see which one light up.  pin 7 on the display should be the top middle segment
absence of proof is not proof of absence

#### Ruffsta

#3
##### Jan 13, 2013, 05:14 pm
yep it was the 0's and 1's in the code.. thank you

#### Neight

#4
##### Jan 13, 2013, 05:18 pm

I am very very new at this, and have been struggling with my own project today...
it is nice to be able to help someone else for a change
absence of proof is not proof of absence

#### Ruffsta

#5
##### Jan 13, 2013, 05:27 pm
you're not the only one very very new.. son just open his arduino for x-mas and all the little stuff i got to go with it. him and i are both learning.. it's a struggle - but we are doing ok.. very very slowly.

Go Up

Please enter a valid email to subscribe