Go Down

Topic: Connect Arduino UNO to 3 Digit, 7 Segment, 12 Pins Display (Read 7135 times) previous topic - next topic

iComputerfreak

Mar 15, 2014, 04:10 pm Last Edit: Mar 15, 2014, 04:13 pm by iComputerfreak Reason: 1
Hi,
i have an Arduino UNO and a 7 segment display with 12 pins (6 on each side). I want to connect that display to my arduino, but I don't know, where the pins had to be connected and how I can display a number or a text.
I don't know much about displays :/


Sorry for my bad english, I'm german :)

iComputerfreak

Grumpy_Mike

You first need to find out if you have a common anode or a common cathode display. You can't tell just by looking at it.

Do you have a part number?
If not you will have to map what you have by using a resistor and power supply to see what pins are connected to what segments.

iComputerfreak

Yes there are two numbers on it...
I think its KPT-4301 and FHBD15.
Searching the first number I found that:
http://www.etradeasia.com/products_detail/61014/61014/0/Prodcut.html
but there is nothing written about common anode and common cathode.

iComputerfreak

I think it's common anode, because I found that:
https://www.ledpaketim.com/Urunler/KPT-5361BSRND-14MM-3Lu-Anot-Display-.html
google translator says that
anot means anode

iComputerfreak

#4
Mar 15, 2014, 05:48 pm Last Edit: Mar 16, 2014, 02:30 am by iComputerfreak Reason: 1
Okay. I'm done!

For all who have the same problem:

I downloaded the SevenSegmentLibrary (http://playground.arduino.cc/Main/SevenSegmentLibrary#.UyR5dNwmVv0)
and uploaded it to my arduino.
Then, i connected the pins as written in the description.
It has displayed anything wrong, so I tested out, what pin I have to connect to which port.
So I have now this configuration: (Display pins counted from bottom to top counterclockwise, Thanks to floresta)
Digital Pin 2: Display pin 11 A
Digital Pin 3: Display pin 7 B
Digital Pin 4: Display pin 4 C
Digital Pin 5: Display pin 2 D
Digital Pin 6: Display pin 1 E
Digital Pin 7: Display pin 10 F
Digital Pin 8: Display pin 5 G
Digital Pin 9: Display pin 3 dp

Digital Pin 11: Display pin 12 Digit 1
Digital Pin 12: Display pin 9 Digit 2
Digital Pin 13: Display pin 8 Digit 3

In SevSeg_Counter.ino I have edited:
Code: [Select]
sevseg.Begin(1,10,11,12,13,2,3,4,5,6,7,8,9);
the first number is for anode (1) or cathode (0)
the following four numbers are for the 4 digits. I have only three, so I left digital pin 10 on my arduino unconnected.
and the last 8 numbers are for the digital pins for the Segments (a-g and dp)
When I run the program, it counts up to 100, but I only see the counting up to 10, because I have only three digits.

raschemmel

THANK GOD ! FINALLY , A NEWBIE WITH ENOUGH CONSIDERATION FOR OTHERS TO POST THE SOLUTION INSTEAD OF JUST TAKING THE INFO AND DISAPPEARING !
THANK YOU  iComputerfreak for thinking of others instead of just yourself !
(GOOD JOB BY THE WAY !)
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

iComputerfreak

Thanks :)
I have searched for hours, before and found no answer. Then I found the library and have tried all ways until, I found the solution ^^

raschemmel

Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

floresta

Now it is time to refine your solution to use standard terminology.

These devices are designed to plug into IC sockets and possibly for that reason the pins are numbered in the same way that ICs are numbered, counterclockwise looking down from the top.

Therefore the first four lines of your solution look like this and the others follow suit.

Digital Pin 2: Display pin 2 (top) 11 A
Digital Pin 3: Display pin 6 (top) 7 B
Digital Pin 4: Display pin 4 (bottom) 4 C
Digital Pin 5: Display pin 2 (bottom) 2 D


Quote
I have searched for hours, before and found no answer.

It helps when you know what term to search for and a few Google tricks (if you are using Google).
The device is a 7-segment three digit LED. 

So if you do a search for 7-segment three digit then limit your search to images and further limit it to black and white you will see lots of pinout diagrams pop right up!


Don

iComputerfreak

Okay. Thanks.
I've searched for 3 digit 7 segment display with 12 pins, but I found nothing about that. I've also searched on google pictures and the websites linked to the pictures.

raschemmel

DOES
Quote
7-segment three digit 
=
Quote
3 digit 7 segment
in a search engine ?
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

floresta

#11
Mar 16, 2014, 04:31 am Last Edit: Mar 16, 2014, 04:33 am by floresta Reason: 1

DOES
Quote
7-segment three digit  
=
Quote
3 digit 7 segment
in a search engine ?

I tried it with Google and although the results were not exactly the same I still got pages and pages of results.

I also tried searching for 3 digit 7 segment display with 12 pins and again got pages and pages of results.


Don

floresta

#12
Mar 16, 2014, 04:37 am Last Edit: Mar 16, 2014, 10:12 pm by floresta Reason: 1

Okay. Thanks.
I've searched for 3 digit 7 segment display with 12 pins, but I found nothing about that. I've also searched on google pictures and the websites linked to the pictures.

Maybe it doesn't work for ghosts in nowhere land**.  

What search engine in what country were you using?

I have attached the first result that I got.  It happens to be common-cathode but the pinout is the same for common-anode.


Don

** Try answering more of the questions in your profile!


floresta

Now I see the problem... his user name begins with a lowercase 'i'. 

Don

Paul__B


Searching the first number I found that:
http://www.etradeasia.com/products_detail/61014/61014/0/Prodcut.html
but there is nothing written about common anode and common cathode.


The proliferation of those totally useless sites on the 'net is truly maddening.

One wishes that Google if not excluding them completely from all searches, could at least provide a search parameter for excluding them!  ("prodcut" for starters!)

Just like the option for porn filtering (which coincidentally, filters out most genuine medical information), a "safe search" option for engineers.   :D

Go Up