Author Topic: Suggestions for a small panel to display a 2-digit number  (Read 1827 times)

0 Members and 1 Guest are viewing this topic.

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Suggestions for a small panel to display a 2-digit number
« on: November 10, 2023, 02:24:06 am »
I'm working on a "countdown timer" thing and I need to display the amount of time that it's set for (in minutes). Minimum requirement is to show a two digit number. If it can do 4-digits so I can show minutes and seconds as it counts down that might be nice but is not required.

My first thought was to use a 7-segment display. A quick look at Youtube convinced me I don't want to use a "raw" 7-segment because that's way too many pins to deal with. I also saw a video using a TM1637 which seems to be a "time" 7-sedgment display that uses 2 data pins. That seems much better. I also know that little LCD panels are an option.

Please provide suggestions on good, inexpensive, options for this use case. If you can order the thing on Adafruit or Sparkfun that's a bonus but not required. Thank you.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11721
  • Country: us
    • Personal site
Re: Suggestions for a small panel to display a 2-digit number
« Reply #1 on: November 10, 2023, 02:47:17 am »
What dimensions for a digit you are looking for?

4 digits requires 7+4 = 11 pins. Unless you are already using a ton of pins, it may be worth getting a bigger MCU. If this is just a timer with a display and a few buttons, the Arduino should be able to handle that.

And using standard segment displays would give you a huge range of options for size and color.
Alex
 

Online themadhippy

  • Super Contributor
  • ***
  • Posts: 2959
  • Country: gb
Re: Suggestions for a small panel to display a 2-digit number
« Reply #2 on: November 10, 2023, 02:59:36 am »
 If you've got i2c available maybe the HT16K33 ,available either with or without  4 7 segments already fitted
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3984
  • Country: ua
Re: Suggestions for a small panel to display a 2-digit number
« Reply #3 on: November 10, 2023, 03:42:41 am »
just buy some OLED microdisplay on aliexpress, it cost about 1 USD and allows to display 128x32 or 128x128. You can show about 2x16 or even 4x16 symbols with your font...

Something like this one: https://www.aliexpress.com/item/32672229793.html

I'm using it to display temperature, pressure and humidity from BME280 module, it allows to show all things on display + pressure change simultaneously. Also it is often used to display some info in different diy projects, like automatic antenna tuner, etc.

Since this is graphics display, you can draw 7 segment digits or whatever you want. But I'm using usual font. It requires just 4 wires: +3.3V, GND for power and SCL, SDA for communication from MCU. Works pretty fast, you can update entire picture many times per second
« Last Edit: November 10, 2023, 03:57:49 am by radiolistener »
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: Suggestions for a small panel to display a 2-digit number
« Reply #4 on: November 10, 2023, 04:38:50 am »
I've got a Sparkfun Pro Micro already so the plan would be to use that if possible. That has I2C so anything using I2C can work.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11721
  • Country: us
    • Personal site
Re: Suggestions for a small panel to display a 2-digit number
« Reply #5 on: November 10, 2023, 04:44:14 am »
Well, those 128x32 OLED modules are I2C. If the character size works, use them.
Alex
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6225
  • Country: es
Re: Suggestions for a small panel to display a 2-digit number
« Reply #6 on: November 10, 2023, 04:47:31 am »
1.3" OLEDs are cheap and easy to interface.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline kjr18

  • Regular Contributor
  • *
  • Posts: 201
  • Country: pl
Re: Suggestions for a small panel to display a 2-digit number
« Reply #7 on: November 10, 2023, 12:25:20 pm »
Well, you could use one of these: https://www.aliexpress.com/item/4000126673475.html
They are cheap and easy to use. As they use two 74HC595, you could simply use shiftOut function, or use some libraries to do it for you, for example here is one that I sometimes use. Only 3 pins needed.
 

Offline sparkydog

  • Regular Contributor
  • *
  • Posts: 234
  • Country: us
Re: Suggestions for a small panel to display a 2-digit number
« Reply #8 on: November 10, 2023, 05:35:53 pm »
Adafruit has a selection of four-digit 7-segment displays with I²C drivers.
 

Offline MarkT

  • Frequent Contributor
  • **
  • Posts: 393
  • Country: gb
Re: Suggestions for a small panel to display a 2-digit number
« Reply #9 on: November 11, 2023, 08:28:33 pm »
I reckon the easiest to interface to is a serial display like the COM-11441 (sparkfun), but there are cheaper displays
 

Offline EPAIII

  • Super Contributor
  • ***
  • Posts: 1152
  • Country: us
Re: Suggestions for a small panel to display a 2-digit number
« Reply #10 on: November 12, 2023, 06:16:07 am »
I don't understand why this is even a problem. There is a multitude of LCD, OLED, and even LED displays with serial inputs. They need only two pins from a Arduino, PIC, or other processor: serial data and clock. And they can display one, two, or even four lines of text, each up to 20 or more characters long. Seconds would be no problem as the clock can be the processor clock rate. And some can even display graphics.

https://www.google.com/search?client=firefox-b-1-d&q=serial+LCD+display
Paul A.  -   SE Texas
And if you look REAL close at an analog signal,
You will find that it has discrete steps.
 

Online themadhippy

  • Super Contributor
  • ***
  • Posts: 2959
  • Country: gb
Re: Suggestions for a small panel to display a 2-digit number
« Reply #11 on: November 12, 2023, 12:45:43 pm »
Quote
I don't understand why this is even a problem. There is a multitude of LCD, OLED, and even LED displays with serial inputs.
you know that, i know that,but not everybody does,so whats wrong with asking for a pointer in the right direction?
 

Offline soldar

  • Super Contributor
  • ***
  • Posts: 3540
  • Country: es
Re: Suggestions for a small panel to display a 2-digit number
« Reply #12 on: November 12, 2023, 01:44:07 pm »
Is this even worth building?

You can find many different countdown timers on eBay for under $10.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 
The following users thanked this post: Ground_Loop

Online Ground_Loop

  • Frequent Contributor
  • **
  • Posts: 664
  • Country: us
Re: Suggestions for a small panel to display a 2-digit number
« Reply #13 on: November 13, 2023, 03:07:50 am »
A Max 7219 and a couple 7-bit LED displays will do it. The 7219 requires a two wire SPI and a chip select and will drive up to 8 digits. They are available pre assembled off Amazon for about $3 each.

1926804-0
« Last Edit: November 13, 2023, 03:16:32 am by Ground_Loop »
There's no point getting old if you don't have stories.
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: Suggestions for a small panel to display a 2-digit number
« Reply #14 on: November 27, 2023, 04:19:48 am »
I'm thinking about getting these: https://www.amazon.com/Self-Luminous-Display-Compatible-Arduino-Raspberry/dp/B09JWN8K99/ref=sr_1_6?keywords=OLED%2BArduino&qid=1701058179&sr=8-6&th=1

They will give me a little more flexability in what I display and getting some practice with I2C OLED would probably be good for future projects. My only concern is that it says "There are no fonts embedded". Is that a normal thing? I didn't see anything in the couple youtube tutorials I found that talked about explicitly embedding a font. Do the standard libraries have a default font embedded already?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11721
  • Country: us
    • Personal site
Re: Suggestions for a small panel to display a 2-digit number
« Reply #15 on: November 27, 2023, 04:30:57 am »
This is a graphical display, not a character display . You get to draw whatever characters you want. Libraries would often have fonts included.
Alex
 
The following users thanked this post: Youkai

Online Whales

  • Super Contributor
  • ***
  • Posts: 2031
  • Country: au
    • Halestrom
Re: Suggestions for a small panel to display a 2-digit number
« Reply #16 on: November 27, 2023, 04:40:47 am »
Is this even worth building?

You can find many different countdown timers on eBay for under $10.

After having used several timers from eBay and alix: I'd say yes, they all suck in annoying ways.  I'm all for OP to do this.

Previous model: very bad battery contacts, kept having to clean them all the time.  Completely unsuited to being anywhere near a kitchen.

Current model: takes a AAA battery (yay) but cost more and reacts weirdly to button presses sometimes.  Often restarts when you want them to stop, requiring more button presses (and often erasing your previously entered time). 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: Suggestions for a small panel to display a 2-digit number
« Reply #17 on: November 27, 2023, 05:01:26 am »
Is this even worth building?

You can find many different countdown timers on eBay for under $10.

If all I wanted to have was a simple countdown it wouldn't be. A kitchen/egg timer or my smartphone would be much better. But in this case I'm building a version of this which uses an LED strip to do the countdown. My wife is a 3rd grade teacher and she said this would be great in her classroom.

 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: Suggestions for a small panel to display a 2-digit number
« Reply #18 on: November 27, 2023, 05:08:58 am »
This is a graphical display, not a character display . You get to draw whatever characters you want. Libraries would often have fonts included.

I see. Thank you for that information. I did another search and found a character display.

What would you say are the main differences that and the graphical display. It seems like it's roughly the same price as the graphical display. I'd be using it with a Sparkfun Pro Micro. Will the both work with that fine? Is the library for the graphical display significantly larger since it has to contain a font?

I guess all things being equal I'd prefer the graphical display since it seems more flexible. Are they close enough to the "same thing" that it doesn't matter much which I use?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11721
  • Country: us
    • Personal site
Re: Suggestions for a small panel to display a 2-digit number
« Reply #19 on: November 27, 2023, 05:11:33 am »
I did another search and found a
This is the same graphic display, just a bit lower resolution. It uses the same controller.

Don't worry about drawing characters, libraries take care of this.
Alex
 
The following users thanked this post: Youkai

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3984
  • Country: ua
Re: Suggestions for a small panel to display a 2-digit number
« Reply #20 on: November 27, 2023, 06:37:42 am »
I see. Thank you for that information. I did another search and found a character display

This is the same display, just different resolution, it has more pixels width but less pixels height
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf