For one of my project i need to wire two 6 digit 7 segment displays to an arduino mega pro,
but i can't figure out how to hook them up to my arduino.
Could semoene help me please?
You don't seem to say whether you are using common cathode or common anode versions. If you are fortunate enough to be using the former, you would be well advised to use the MAX 7219 to drive it.
That's three pin's on Arduino. I know Mega has scads of pins, but why would you want to make life more difficult? If I recall correctly, 7219 will support eight digits
If common anode, there is likely to be some sort of equivalent. Common anything means not fourteen pins.
(beware, such driver chips usually only work with common-cathode OR common-anode LEDs, although other chip variants from the same manufacturer may do the other. You have to be careful to get the right 'gender.')
1. The OP may use a DVM (or follow diagram of post #10@6v6gt, Fig-1 repeated ) to find the segment pins and cc-pins of the display devices (assuming the display devices are of cc-type) and then easily connect his display unit with UNO (Fig-1) following the guidance of Fig-2 of post #9.
OK. That diagram and code appears to better match the data sheet for the display although the sevSeg constructor appears to be configured for a 4 digit display.
It seems he has a Mega, not a Uno (see post #1), which is a good thing because, for a Uno, a direct driven 6 digit 7 segment display leaves only a few pins for the actual application.
I have provided an untested sksetch which the OP may adjust if deos not work.
The standard Arduino is the ARDUINO UNO and the standard way of writing name is "ARDUINO UNO" and NOT "arduino uno" and "ARDUINO MEGA" and NOT "arduino mega".
Your two or more topics on the same or similar subject have been merged.
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.