News for hackers. Stuff that matters.
Re:Don't use 7-segment displays [pdf] by Rhapso on Tuesday July 09, 2024 @02:16PM (#40919170)
"Just use a high resolution display" doesn't seem like the corect remedy.

Next cheapest would be a low resolution LCD display, (30x80) that has its own set of issues. 7 segments at minimum provide for high visibility even if they fail at high readability.

note: price doesn't have to be money, complexity is expensive

Why isn't there a market for 14-segment displays or other simple alphanumeric displays?

edit: Childen comments use the phrase "for a few more $" a lot and i think they miss the point that if that was acceptable and easy we wouldn't be talking about it.

Re:Don't use 7-segment displays [pdf] by wrs on Tuesday July 09, 2024 @02:20PM (#40919213)
16-segment displays are another longtime standard configuration.

https://en.wikipedia.org/wiki/Sixteen-segment_display

Re:Don't use 7-segment displays [pdf] by bityard on Tuesday July 09, 2024 @02:34PM (#40919348)
Agreed. "Just use a pixel matrix display" sounds an awful lot like, "Just use an Arduino."

There are plenty of places where a simple and small microcontroller paired with a 4-digit segment display is the cheapest, simplest, and most defensible design decision.

Re:Don't use 7-segment displays [pdf] by Rhapso on Tuesday July 09, 2024 @03:32PM (#40920048)
It appears we live in a universe where embedded systems aren't assumed to be a mission critical device by default.

I'm not going to bother using a microcontroller to solve a problem if isn't a use case where the solution needs to be as simple and robust as possible.

Re:Don't use 7-segment displays [pdf] by wongarsu on Tuesday July 09, 2024 @02:25PM (#40919259)
The market is flooded with 128x64 1.3" or 0.96" OLED displays. You can pick them up for anywhere from $1-$5, probably less if you bulk order.

Sure, they bring some complexity. Instead of just driving some pins you now need a display library and at least some bitmap font. But they provide a lot more fidelity, are vastly more readable, and fail in more obvious ways without needing periodic test patterns (the flashing 8's or snakes mentioned in the paper so you can detect failed segments)

For larger displays the choice becomes more interesting between OLED, LED matrices or 16 segment displays, but for small devices like those shown in the paper cheap OLEDs make the choice easy

Re:Don't use 7-segment displays [pdf] by smaudet on Tuesday July 09, 2024 @03:04PM (#40919647)
> The market is flooded

Yes, I'd also like to note, the market is flooded with crap. Multiple devices I've owned with these "cheap" displays have been on crappy, battery-intensive devices. The devices with simpler segment (or dot matrix) displays last longer and work better.

I get some of the points where extreme legibility trumps (nearly) all other concerns, however I'd propose the issue could have been solved more simply with more specialized segment displays.

Re:Don't use 7-segment displays [pdf] by jeffbee on Tuesday July 09, 2024 @03:34PM (#40920084)
Dot-matrix LED display panels seem bulletproof, but I just checked the catalog for the 5x7 display driver I know and use and it costs $30 per. I guess the people who have reliability and legibility concerns like those expressed in the article aren't worried about spending $15 per digit.
Re:Don't use 7-segment displays [pdf] by Rhapso on Tuesday July 09, 2024 @03:55PM (#40920361)
I think the point would be, you don't need a driver, you need a decoder. Those are very cheap.
Re:Don't use 7-segment displays [pdf] by Rhapso on Tuesday July 09, 2024 @02:56PM (#40919559)
"display library"

bold of you to assume i have enough memory to drive the thing.

Re:Don't use 7-segment displays [pdf] by duskwuff on Tuesday July 09, 2024 @03:04PM (#40919645)
The most common models of small OLED displays (SSD1306, etc) have a (write-only) framebuffer in the display controller, and can be written to incrementally. If you structure your visual interface with certain simple constraints in mind, you can update it without using any additional dynamic memory.
Re:Don't use 7-segment displays [pdf] by Rhapso on Tuesday July 09, 2024 @03:29PM (#40919993)
That would probably be 100x more complicated than the actual business logic on a small microcontroller and there are limits to program memory for the "streaming this string to the screen by constantly computing if a given pixel is on one at a time" algorithm.

edit addendum; If it was using a 7-segment display, it is either really cheap or really simple "a graphical GUI on a screen" IS NOT A REASONABLE NEXT STEP.

I think we have radically different expectations of a simple embedded system.

Re:Don't use 7-segment displays [pdf] by duskwuff on Tuesday July 09, 2024 @03:50PM (#40920291)
> That would probably be 100x more complicated than the actual business logic on a small microcontroller

It really isn't. I've implemented simple GUIs on SSD1306 displays, and it's very easy to work with. The hardware is specifically set up to optimize for rows of 8px tall text (or multiples of that with a bit more effort). Once you have row/column addresses set up, each byte you write to the display writes one 8px column of pixels to a row and moves the column pointer over by a pixel. Printing text is a matter of streaming a sequence of bytes to the display.

Re:Don't use 7-segment displays [pdf] by jenadine on Tuesday July 09, 2024 @03:40PM (#40920149)
You can get something like a rp2040 for a couple of $. And let a graphic library do the hard work. Eg https://slint.dev/blog/porting-slint-to-microcontrollers
Re:Don't use 7-segment displays [pdf] by nick238 on Tuesday July 09, 2024 @05:22PM (#40921316)
RP2040 should cost $0.70 in some quantity (https://www.digikey.com/en/products/detail/raspberry-pi/SC09...) and in low-quantity it's $1 from places like CanaKit. That's actually shockingly cheap for an ARM Cortex M0; I was assuming your ATmegas and PIC18s with a similar pin count (40, 48, 64) would be a bit cheaper, but they seem to be around $2-4 in similar low-production quantity. Power efficiency won't be anywhere near as good with the ARM part, but if you're making a battery-powered device, you might be able to use the extra dollar or so to make it rechargable, then people care a bit less if it eats batteries.
Re:Don't use 7-segment displays [pdf] by duskwuff on Tuesday July 09, 2024 @08:48PM (#40922795)
Power consumption on the RP2040 is quite poor, actually; there's much better parts to use if you care about that.

If you just want a really cheap ARM microcontroller, Puya has some parts like the PY32F002A in the <$0.10 range. Single core, lower Fmax, and fewer peripherals than the RP2040, but the price is hard to argue with.

Re:Don't use 7-segment displays [pdf] by s800 on Tuesday July 09, 2024 @02:48PM (#40919481)
They also wear out quite quickly.
Re:Don't use 7-segment displays [pdf] by andylynch on Tuesday July 09, 2024 @02:31PM (#40919316)
They are cheap enough now, that they are appearing on disposable vapes (?!)
Re:Don't use 7-segment displays [pdf] by maxwell on Tuesday July 09, 2024 @02:19PM (#40919202)
Re:Don't use 7-segment displays [pdf] by Kon-Peki on Tuesday July 09, 2024 @02:25PM (#40919254)
That display is really hard to read.

I would say that if you're going to use a 7-segment display, it would be helpful to add a "test/diagnostic" button that does a pattern in which all segments are lit up in a predictable order, does a TOP pattern in which only the top segments are lit (to allow for device orientation), and then goes back to displaying exactly what was on the display prior to pressing the button.

Re:Don't use 7-segment displays [pdf] by crote on Tuesday July 09, 2024 @06:10PM (#40921789)
> That display is really hard to read.

Most of that is just due to a lack of contrast. Add a slightly-tinted window in front of it to reduce the contrast between unlit segment & background, and it becomes a lot easier to read.

Re:Don't use 7-segment displays [pdf] by Kon-Peki on Wednesday July 10, 2024 @12:59PM (#40928929)
Yes, that is most likely the cause.
Re:Don't use 7-segment displays [pdf] by TN1ck on Tuesday July 09, 2024 @06:13PM (#40921809)
Some subways have 111 segmented displays, I really like them, the refresh rate is stunning. Here is a page selling them [0] and here is how they look [1], [2].

[0] http://www.reitberger.de/English/Large%20displays/Alphanumer...

[1] https://www.reddit.com/r/whatisthisthing/comments/6zsezx/thi...

[2] https://www.reddit.com/r/whatisthisthing/comments/e19uaz/wha...

Re:Don't use 7-segment displays [pdf] by Rhapso on Tuesday July 09, 2024 @08:37PM (#40922749)
Boo, only rated for 22 years of nonstop use :P