-
Notifications
You must be signed in to change notification settings - Fork 62
Decimal dot #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Unfortunately, this is not possible. When sending a character to the display there is only one bit to set the colon (two dots), so there is no way to set only the lower dot of the colon. For more information see: SevenSegmentTM1637.h // SevenSegmentTM1637 low level methods (use when you know what you're doing)
Nice, that you like the library!:) |
hello. this library the best library in the all tm1637. basic and fun! and i am little known arduino. and later i want see " 25.6° " please help me! thanks. edit___and start arduino and "on" blinking? how much off blink ? |
I'm working on a major upgrade for the library which will have better support for the things you mention. I just tested with the Robodyne displays and found out that these displays allow to set the lower and upper dot of the colon separately. The upper colon is set by setting bit 7 of digit 3 and the lower colon is set by setting bit 7 of digit 4. You should be able to set the colon's by using the To print for example
To print the degree symbol, you need to set segment A, B, G and F of the last digit. This can be done by:
|
I'm using the Robodyn display but it doesn't seem to be able to control the upper and lower colon separately. I'm using one with green 7 segment displays. This is the code for controlling the colon on mine.
I'm actually most interested in the decimal point on the individual digits can be controlled. Do you think this is possible? The TM1637 should have sufficient pins to do so. |
Same here, I bought those sepcific RobotDyn displays because of their decimal dot And i'm also not able to control the upper / lower colon separately :( |
I believe the decimal dots are not wired to the chip on these RoboDyne displays. I have a red version at my desk and this one can display the upper and lower colon by setting the 7th bit (counting from zero). I noticed that I made a typo in my previous post (B1000000 vs B10000000). I just tested it again and it does work on my display: This is the code I used:
|
I guess there might be a difference in the hardware that RobotDyn makes. I loaded your code and this is what I get. Are you able to control turning on both semi-colon with bit 7 of the second digit? This is the code for turning both parts of the semi-colon.
|
Hi, I moved to this library because it is a much better (and cooler) one. |
Got it on my own: Hope it helps someone else too.
|
I also thought that the robotdyne display features decimal points per digit, but unfortunetly it does not:
http://robotdyn.com/catalog/segment/4_digit_led_display_tube_7_segments/ |
Bram (or anyone) - how can you tell which of the TM1637 based 4-digit LED's are enabled for decimal point or colon functionality? I purchased |
It is written in the name of the product "LED Clock Tube". On more serious pages it is exactly written in the product specification, that a decimal point is not active. |
Thx
1) but the device I purchased
https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.com%2Fulk%2Fitm%2F11267
4024638
does not explicitly say one or the other
2) the image describing the part shows both colon and decimal point enabled
3) clocks can also be stopwatchs and there tenths and even hundreds of
seconds are important
4) I have seen recently tm1637 parts that offer colon or decimal as a
different part. Not software specifiable. So decimal point is possible.
5) any chance you know of a 4-digit, 7-segment display driver that can
light decimal and colon and is inexpensive? Adafruit has such parts at $10 USD
each. They use a different chip.
Separately, how did you email me directly? I have no notification on the
github site and can't seem to find the emails of people I want to speak
with without posting my questions on github
Thx for answering. It does not look promising for the parts I have.
-yurij
…On Tue, Apr 3, 2018, 6:21 AM Libor Gabaj ***@***.***> wrote:
It is written in the name of the product "LED Clock Tube". On more serious
pages it is exactly written in the product specification, that a decimal
point is not active.
It is not necessary to vary a library. The colon is active just for active
7 segment (counting from 0, a.k.a. DP) of the second tube no. 1 (counting
from 0). Decimal points of other tubes (digits) do not display even if
their DP segment is activated. It is up to you to proper format the
displayed data.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKgoWx520S7kuf4OWpJ11EnMzLP5lTXmks5tk00lgaJpZM4HXlTb>
.
|
Hi, friend.
Ad 1) In contrary, it does. The description starts with "This module is a
12 foot with *clock display* four common anode tube".
Ad 2) Yes, the digital tubes on a display have usually technically present
decimal point and colon, but only one of them is broken out on the display
connector or connect to the TM1637. The best way is to find schema and
description of the display by a product number on its side, e.g.,
http://www.epeslight.com/led-7-segment-display/39514793.html.
Ad 3) I would recommend displays with TM1638, which are usually equiped
with 8 tubes with decimal points and are chainable.
Ad 4) Yes, for instance RoboDyn company offers display modules with TM1637
and either with colon or decimal points clearly distinguished:
https://robotdyn.aliexpress.com/store/group/Segment/1950989_504708861.html?spm=2114.12010612.0.0.694950392nSiUO
.
Ad 5) There are digital tubes display with separate controlled colon dots,
decimal dots, eventually the degree dot, e.g. aforementioned display
GNS-5643AxBx <http://www.epeslight.com/led-7-segment-display/39514793.html>.
The problem would be a controller, resp. a cheap module with all mentioned
dots controlled at once. I would recommend TM1638 or MAX7219 (7221) and to
consctruct display module on your own.
I did not email to you directly. I just add my contribution on the GitHub
issue page and the portal resent it to your registered address.
Best Regards
mrkale
On Tue, Apr 3, 2018 at 1:12 PM, Yurij Baransky <[email protected]>
wrote:
… Thx
1) but the device I purchased
https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.
ebay.com%2Fulk%2Fitm%2F11267
4024638
does not explicitly say one or the other
2) the image describing the part shows both colon and decimal point enabled
3) clocks can also be stopwatchs and there tenths and even hundreds of
seconds are important
4) I have seen recently tm1637 parts that offer colon or decimal as a
different part. Not software specifiable. So decimal point is possible.
5) any chance you know of a 4-digit, 7-segment display driver that can
light decimal and colon and is inexpensive? Adafruit has such parts at $10
USD
each. They use a different chip.
Separately, how did you email me directly? I have no notification on the
github site and can't seem to find the emails of people I want to speak
with without posting my questions on github
Thx for answering. It does not look promising for the parts I have.
-yurij
On Tue, Apr 3, 2018, 6:21 AM Libor Gabaj ***@***.***> wrote:
> It is written in the name of the product "LED Clock Tube". On more
serious
> pages it is exactly written in the product specification, that a decimal
> point is not active.
> It is not necessary to vary a library. The colon is active just for
active
> 7 segment (counting from 0, a.k.a. DP) of the second tube no. 1 (counting
> from 0). Decimal points of other tubes (digits) do not display even if
> their DP segment is activated. It is up to you to proper format the
> displayed data.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1#
issuecomment-378201956>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
AKgoWx520S7kuf4OWpJ11EnMzLP5lTXmks5tk00lgaJpZM4HXlTb>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFOZP9JIyiAiDyeXgOUBQmw-I9Vxc1xlks5tk1kugaJpZM4HXlTb>
.
|
Very informative, thank you. Though I would still quibble with the term
clock.
I hope I can repay the favor. Knowledge is expensive to acquire.
-yurij
…On Tue, Apr 3, 2018, 9:00 AM Libor Gabaj ***@***.***> wrote:
Hi, friend.
Ad 1) In contrary, it does. The description starts with "This module is a
12 foot with *clock display* four common anode tube".
Ad 2) Yes, the digital tubes on a display have usually technically present
decimal point and colon, but only one of them is broken out on the display
connector or connect to the TM1637. The best way is to find schema and
description of the display by a product number on its side, e.g.,
http://www.epeslight.com/led-7-segment-display/39514793.html.
Ad 3) I would recommend displays with TM1638, which are usually equiped
with 8 tubes with decimal points and are chainable.
Ad 4) Yes, for instance RoboDyn company offers display modules with TM1637
and either with colon or decimal points clearly distinguished:
https://robotdyn.aliexpress.com/store/group/Segment/1950989_504708861.html?spm=2114.12010612.0.0.694950392nSiUO
.
Ad 5) There are digital tubes display with separate controlled colon dots,
decimal dots, eventually the degree dot, e.g. aforementioned display
GNS-5643AxBx <http://www.epeslight.com/led-7-segment-display/39514793.html
>.
The problem would be a controller, resp. a cheap module with all mentioned
dots controlled at once. I would recommend TM1638 or MAX7219 (7221) and to
consctruct display module on your own.
I did not email to you directly. I just add my contribution on the GitHub
issue page and the portal resent it to your registered address.
Best Regards
mrkale
On Tue, Apr 3, 2018 at 1:12 PM, Yurij Baransky ***@***.***>
wrote:
> Thx
> 1) but the device I purchased
> https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.
> ebay.com%2Fulk%2Fitm%2F11267
> 4024638
> does not explicitly say one or the other
> 2) the image describing the part shows both colon and decimal point
enabled
> 3) clocks can also be stopwatchs and there tenths and even hundreds of
> seconds are important
> 4) I have seen recently tm1637 parts that offer colon or decimal as a
> different part. Not software specifiable. So decimal point is possible.
> 5) any chance you know of a 4-digit, 7-segment display driver that can
> light decimal and colon and is inexpensive? Adafruit has such parts at
$10
> USD
> each. They use a different chip.
>
> Separately, how did you email me directly? I have no notification on the
> github site and can't seem to find the emails of people I want to speak
> with without posting my questions on github
>
> Thx for answering. It does not look promising for the parts I have.
> -yurij
>
> On Tue, Apr 3, 2018, 6:21 AM Libor Gabaj ***@***.***>
wrote:
>
> > It is written in the name of the product "LED Clock Tube". On more
> serious
> > pages it is exactly written in the product specification, that a
decimal
> > point is not active.
> > It is not necessary to vary a library. The colon is active just for
> active
> > 7 segment (counting from 0, a.k.a. DP) of the second tube no. 1
(counting
> > from 0). Decimal points of other tubes (digits) do not display even if
> > their DP segment is activated. It is up to you to proper format the
> > displayed data.
> >
> > —
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <#1#
> issuecomment-378201956>,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/
> AKgoWx520S7kuf4OWpJ11EnMzLP5lTXmks5tk00lgaJpZM4HXlTb>
> > .
> >
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <
#1 (comment)>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AFOZP9JIyiAiDyeXgOUBQmw-I9Vxc1xlks5tk1kugaJpZM4HXlTb
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKgoW_uBZmT97eIq5E2TB0JgKua_hHOEks5tk3JggaJpZM4HXlTb>
.
|
Hi. Any plans on supporting this? |
If you get the colon one from robotdy can you just turn on the bottom dot? Will you support the decimals one at some point? |
Hi, another person asking if decimals will be supported? If not, is it possible to use the TM1637Display library for decimal numbers (which it supports) and also use your library for the many other cool features! |
Is there possibly a way to force decimals to work with this library. I noticed the following in the sevensegmenttm1637.h file...
very similar to the TM1637Display.h library for the showNumberDecEx function...
Sample code from TM1637Test.ino that turns on all the dots in sequence using the TM1637Display.h library...
I think the code above is just using B10000000 and moving the 1 over 5 times (not sure why 5). Using B10000000 as the definition of TM1637_COLON_BIT turns on the middle decimal. Using B01000000 turns on the number 8 on the second digit so I am thinking there is something about which position that needs to be figured out. I am bit / byte illiterate so I am wondering if there is a way to change the definition of TM1637_COLON_BIT or to send a raw command to control the decimal of choice. Thank you |
OK, I tracked down the code that controls the colon and basically the logic printraw changes a bit on whatever you are sending to the left of the colon position. I forked the code at https://github.com/heatvent/arduino-tm1637 and added (hacked) some code to control the decimal. Not sure if I have this working correctly and decimals really need some logic depending on if you want to show x number of decimal places, just one of the decimals to light up, have the decimal move with the number being shown (0.01 and 0.001 vs 0.010 and 0.001). If something like this could get integrated into the master that would be great, otherwise this is working for me for now. |
DAAAAAMN, man, you made my day. THANKS!!! |
You can find here ? -- https://github.com/avishorp/TM1637 |
Here is another lib with decimal support https://github.com/jasonacox/TM1637TinyDisplay |
Hello,
the library is pretty cool, but is it possible to display decimal dot? Thanks in advance.
The text was updated successfully, but these errors were encountered: