Skip to main content
Arduino

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Interfacing unusual 4 digits 7 segments display

There is a common anode and common cathode of 7 segments display. But I got an unusual one.

There are 7 pins controlling 4 digits 7 segments. enter image description here

I find the pinout by a multimeter. Basically, each pin can be anode or cathode. enter image description here

My questions:

  1. What is the exact name of this 7 segments display?
  2. How to drive this display by Arduino, any website/sample code?
  3. If I am using the 5V tolerant board, which resistor I need to use? And how is the schematic?

Answer*

Draft saved
Draft discarded
Cancel
7
  • Re "You must schow all four digits one by one in a fast loop": That won't work. At any given time, you can only light segments that all share either the same anode or the same cathode. So, instead of looping over the digits, you will have to loop over the anodes (or over the cathodes). Commented Dec 7, 2020 at 15:44
  • @EdgarBonet Showing Digit one by one is meant in addition to show each segment one by one. It seams that I did not express myself clearly. I'll edit the answer. Commented Dec 7, 2020 at 16:45
  • Re "show all Segments with a common cathode [...] could dim the LEDs remarkably": no more than showing the segments one by one. If you want a brighter display, you have to drive the cathodes with transistors. Re "If the cathode of S2 is connected to GND there is a very small chance, that the segment lights up": that's why that cathode should not be pulled LOW (connected to GND): it should be left floating (INPUT mode, a.k.a. "high impedance"). Commented Dec 7, 2020 at 17:23
  • @EdgarBonnet As multiple LEDs with a common cathode or a common anode have a single source or drain with a resistor. The current through all LEDs together is the same as the current through that single resistor. So each LED sees only a part of the current. Say you have 5 LEDs with a common cathode then the current through the common resistor is 5V / (100Ohm+20Ohm) ~~ 41mA. The current through each LED is 1/5 of this ~ 8,3 mA. I think you would see the difference. Using high impedance state for unused pins is one of the better solutions I mentioned. Commented Dec 7, 2020 at 18:07
  • You are right, of course, the display will be dim. But that's not my point. My point is that it will also be dim if you handle the segments one by one. Think duty cycle, and average the brightness over a full scan cycle. Commented Dec 7, 2020 at 19:30

AltStyle によって変換されたページ (->オリジナル) /