Connecting a TM1637 4-Digit Display

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
38domo
Normal user
Posts: 12
Joined: 18 Feb 2017, 11:43

Re: Connecting a TM1637 4-Digit Display

#101 Post by 38domo » 30 Jan 2018, 20:23

ESP-01 has only 512k memory, so we cannot install v2.00 or mega version

sentinel
Normal user
Posts: 54
Joined: 02 Dec 2017, 17:40

Re: Connecting a TM1637 4-Digit Display

#102 Post by sentinel » 11 Feb 2018, 10:28

Hi papperone,

I have posted a problem I have with SendToHTTP in this thread. I am informing you as well, in case it relates to your build.

Thanks!

Shardan
Normal user
Posts: 1105
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Connecting a TM1637 4-Digit Display

#103 Post by Shardan » 11 Feb 2018, 13:32

38domo wrote:
30 Jan 2018, 20:23
ESP-01 has only 512k memory, so we cannot install v2.00 or mega version
Nope.
The old version (Usually on a blue PCB) has 512K
Newer versions (Black PCB) have 1MB and can be used with the 1024-Binaries of ESPEasy 2.0.0/Mega.

Please beware:
At this time there are some ESP-01 with a PUYA flash chip.
These flash chips do not work with ESPEasy atm, they have a problem with SPIFFS memory.
This problem is under investigation, but that will take a while.
Regards
Shardan

TD-er
Core team member
Posts: 1333
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Connecting a TM1637 4-Digit Display

#104 Post by TD-er » 11 Feb 2018, 13:59

Shardan wrote:
11 Feb 2018, 13:32
[..]
Please beware:
At this time there are some ESP-01 with a PUYA flash chip.
These flash chips do not work with ESPEasy atm, they have a problem with SPIFFS memory.
This problem is under investigation, but that will take a while.
There is solution, but we still have to implement it.

Shardan
Normal user
Posts: 1105
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Connecting a TM1637 4-Digit Display

#105 Post by Shardan » 11 Feb 2018, 15:38

TD-er wrote:
11 Feb 2018, 13:59
Shardan wrote:
11 Feb 2018, 13:32
[..]
Please beware:
At this time there are some ESP-01 with a PUYA flash chip.
These flash chips do not work with ESPEasy atm, they have a problem with SPIFFS memory.
This problem is under investigation, but that will take a while.
There is solution, but we still have to implement it.
Nice! Good job.
But still no solution that is ready to use :)
Regards
Shardan

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#106 Post by papperone » 12 Feb 2018, 07:22

I received finally the new 7digit modules with M1637 and new config (6 digits and with decimal dots).
I will try to find some spare time to update the plugin to have support for them, about the SendtoHTTP bug I don't this can be connected but I'll have a look.
Last edited by papperone on 12 Feb 2018, 08:43, edited 1 time in total.
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
grovkillen
Core team member
Posts: 3138
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connecting a TM1637 4-Digit Display

#107 Post by grovkillen » 12 Feb 2018, 08:32

papperone wrote:
12 Feb 2018, 07:22
I received fiannly the new 7digit modules with M1637 and new config (6 digits and with decimal dots).
I will try to find some spare time to update the plugin to have support for them, about the SendtoHTTP bug I don't this can be connected but I'll have a look.
Great news Papper! Just a reminder, I got them displays myself in case you need me to test something :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#108 Post by papperone » 13 Feb 2018, 18:38

Either I'm not lucky at all (and I got 4 DOA brand new displays from Robodin) or something is weird here...
None of the brand new 4 displays I've got, despite I bought branded ones, seems to work :(

@Grovkillen: can you connect one of the new type of displays you got as well and see if they react with old plugin? they are pin to pin compatible so at least the digits shoudl be shown...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
grovkillen
Core team member
Posts: 3138
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connecting a TM1637 4-Digit Display

#109 Post by grovkillen » 13 Feb 2018, 22:09

papperone wrote:
13 Feb 2018, 18:38
Either I'm not lucky at all (and I got 4 DOA brand new displays from Robodin) or something is weird here...
None of the brand new 4 displays I've got, despite I bought branded ones, seems to work :(

@Grovkillen: can you connect one of the new type of displays you got as well and see if they react with old plugin? they are pin to pin compatible so at least the digits shoudl be shown...
Will try it tomorrow.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#110 Post by papperone » 14 Feb 2018, 10:40

Meanwhile I've found last night a differen library for Arduino (not working on ESP8266) which can drive both old and new type of displays...
That's weird as they both uses TM1637 and I build the plugin from scratch using the info taken from the IC datasheet, but... obviously I overlook something or the new display have something different which I cannot still spot.
Anyhow I think it will take longer than expected as I will need to reverse engineer the new lib I've found to understand how it is driving the IC and to implement the same changes in my plugin (which does not uses any library).
I do apologize for the delay :(
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
grovkillen
Core team member
Posts: 3138
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connecting a TM1637 4-Digit Display

#111 Post by grovkillen » 14 Feb 2018, 13:20

papperone wrote:
14 Feb 2018, 10:40
Meanwhile I've found last night a differen library for Arduino (not working on ESP8266) which can drive both old and new type of displays...
That's weird as they both uses TM1637 and I build the plugin from scratch using the info taken from the IC datasheet, but... obviously I overlook something or the new display have something different which I cannot still spot.
Anyhow I think it will take longer than expected as I will need to reverse engineer the new lib I've found to understand how it is driving the IC and to implement the same changes in my plugin (which does not uses any library).
I do apologize for the delay :(
As you probably already knew, I cannot get mine to shine neither.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

The-Holgi
Normal user
Posts: 7
Joined: 14 Feb 2018, 17:07

Re: Connecting a TM1637 4-Digit Display

#112 Post by The-Holgi » 14 Feb 2018, 21:54

papperone wrote:
14 Oct 2017, 00:31
grovkillen wrote:
13 Oct 2017, 23:52
Will dot matrix displays powered by MAX7216 be supported? Just curious.
it's in my "to-do" list but probably as a separate plugin as this matrix led can be more flexible and customizable ;)
Hallo,
is this still on your to-do list?
I think it‘s a good idea. The Dot Matrix looks very good.
With best regards Holgi

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#113 Post by papperone » 15 Feb 2018, 07:19

The-Holgi wrote:
14 Feb 2018, 21:54
papperone wrote:
14 Oct 2017, 00:31
grovkillen wrote:
13 Oct 2017, 23:52
Will dot matrix displays powered by MAX7216 be supported? Just curious.
it's in my "to-do" list but probably as a separate plugin as this matrix led can be more flexible and customizable ;)
Hallo,
is this still on your to-do list?
I think it‘s a good idea. The Dot Matrix looks very good.
With best regards Holgi
Yes it is! Right now I need to rework the TM1637 interface to enable compatibility with newer modules, then I'll work on implementing dot matrix displays!
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

The-Holgi
Normal user
Posts: 7
Joined: 14 Feb 2018, 17:07

Re: Connecting a TM1637 4-Digit Display

#114 Post by The-Holgi » 15 Feb 2018, 10:30

Thanks.

38domo
Normal user
Posts: 12
Joined: 18 Feb 2017, 11:43

Re: Connecting a TM1637 4-Digit Display

#115 Post by 38domo » 17 Feb 2018, 16:19

hello,
on my side I have made supplemental tests. I have 2 displays available
First test: connect on arduino Uno with a small prog to display random data --> OK on the 2 displays
2nd test : connect on Wemos with espeasy v2 : No. don't work- no display
3d test : connect on ESP12E with espeasy V2: NO- don't work- no display
espeasy works fine on wemos and esp12 with gpio tests ( leds connected)
As there is a level potential issue on the displays (5V on arduino, 3V3 on ESP) I have ordered level shifters to check.
regards

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#116 Post by papperone » 17 Feb 2018, 17:15

38domo wrote:
17 Feb 2018, 16:19
hello,
on my side I have made supplemental tests. I have 2 displays available
First test: connect on arduino Uno with a small prog to display random data --> OK on the 2 displays
2nd test : connect on Wemos with espeasy v2 : No. don't work- no display
3d test : connect on ESP12E with espeasy V2: NO- don't work- no display
espeasy works fine on wemos and esp12 with gpio tests ( leds connected)
As there is a level potential issue on the displays (5V on arduino, 3V3 on ESP) I have ordered level shifters to check.
regards
Yes I have all new modules that does not work with my plugin while the modules I've boughy few months ago works perfectly.
Nevrtheless on a bare ESP8266 with the original library I've the same behaviour while using a different library I'm able to drive both old and new type displays.
Something must have changed in the TM1637 IC as there's no other explanation nor components on the module to explain such behaviour; I'm currently working to understadn the difference between old and new library to fix the plugin...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

victorclaessen
Normal user
Posts: 3
Joined: 28 Oct 2017, 11:50

Re: Connecting a TM1637 4-Digit Display

#117 Post by victorclaessen » 17 Feb 2018, 20:25

I just wanted to add that I bought several of these units and unfortunately they also don't work with this plugin. There is no output visible. They work from Arduino or from Raspberry Pi. Weird, right?

https://nl.aliexpress.com/item/4-Digit- ... 69551.html

User avatar
soif
Normal user
Posts: 39
Joined: 20 Feb 2018, 19:11
Location: Solar System
Contact:

Re: Connecting a TM1637 4-Digit Display

#118 Post by soif » 03 Mar 2018, 08:27

I have made a PR here:
https://github.com/letscontrolit/ESPEasy/pull/996

This PR fixes the No Display (+ also hangs, crash, etc...) issue for a recent (RobotDyn in my case) 4seg display, using a NodeMcu v2.
You can test it by compiling my branch fixTM1637

Please reports IN THE PULL REQUEST ONLY :
- does it STILL work on older displays (that used to work with the previous code) or not?
- is it stable (no over Load usage, or hangs) or not?
- is it working with your recent displays?

if it doesnt work on your diplay , you can experiment with a bigger TM1637_BIT_DELAY, ie 100, and report

If it is reported to work on both old and new displays, maintainers will certainly merge it fast. :mrgreen:
Soif
-----
Want to update ALL your ESP babies OverTheAir, or backup their settings in ONE simple command, + many other cool features.... Adopt EspBuddy

victorclaessen
Normal user
Posts: 3
Joined: 28 Oct 2017, 11:50

Re: Connecting a TM1637 4-Digit Display

#119 Post by victorclaessen » 03 Mar 2018, 21:43

Thanks for the proposed fix. Would it be alright to trouble you for the compiled firmware; i.e. would you be willing to post that somewhere? Preferably for a 4M-version ESP8266?

TD-er
Core team member
Posts: 1333
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Connecting a TM1637 4-Digit Display

#120 Post by TD-er » 03 Mar 2018, 23:37

victorclaessen wrote:
03 Mar 2018, 21:43
Thanks for the proposed fix. Would it be alright to trouble you for the compiled firmware; i.e. would you be willing to post that somewhere? Preferably for a 4M-version ESP8266?
It is already merged and there should be a new build tomorrow morning.

victorclaessen
Normal user
Posts: 3
Joined: 28 Oct 2017, 11:50

Re: Connecting a TM1637 4-Digit Display

#121 Post by victorclaessen » 04 Mar 2018, 14:24

Ah, right. I can confirm that my TM1637 units (the ones obtained here: https://nl.aliexpress.com/item/4-Digit- ... 69551.html) work. Thanks for fixing this!

By the way, when I send "7dn,8.5", the display reads "8", where I would expect it to read "8.5". And when I send "7dt,8.5" it reads "8:5°", where I would expect "8.5°". Is my expectation wrong, or could this be an issue related to this specific module? Any thoughts?

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#122 Post by papperone » 04 Mar 2018, 20:32

Thanks for the quick PR but I had already fixed the timing issue; I am still working to handle better this new display which has both "dots" and "colon" (that's causing the strange behaviour of last post from victorclaessen).
As soon as it's completed (including the handling of the 6-digits TM1637) I'll make the PR in order to have it tested...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
soif
Normal user
Posts: 39
Joined: 20 Feb 2018, 19:11
Location: Solar System
Contact:

Re: Connecting a TM1637 4-Digit Display

#123 Post by soif » 04 Mar 2018, 21:56

thanks for your GREAT work ! I'm sure that you will clear this better for all of us ASAP ! cheers 8-)

BTW my display has NO colon, but just dots (x4)
Last edited by soif on 05 Mar 2018, 06:42, edited 1 time in total.
Soif
-----
Want to update ALL your ESP babies OverTheAir, or backup their settings in ONE simple command, + many other cool features.... Adopt EspBuddy

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#124 Post by papperone » 04 Mar 2018, 22:09

yes, I know, so far i've got 4 different displays (I've received all of them so I can test all before to release next version).
1) 4 digits and only colon
2) 4 digits and only dots
3) 4 digits with both colon and dots
4) 6 digits with dots
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
soif
Normal user
Posts: 39
Joined: 20 Feb 2018, 19:11
Location: Solar System
Contact:

Re: Connecting a TM1637 4-Digit Display

#125 Post by soif » 04 Mar 2018, 22:13

BTW can someone owning one of the "OLD" displays can CONFIRM
that it still works with my latest (merged) PR ? 8-)
Soif
-----
Want to update ALL your ESP babies OverTheAir, or backup their settings in ONE simple command, + many other cool features.... Adopt EspBuddy

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#126 Post by papperone » 05 Mar 2018, 07:10

soif wrote:
04 Mar 2018, 22:13
BTW can someone owning one of the "OLD" displays can CONFIRM
that it still works with my latest (merged) PR ? 8-)
if you only changed the timing I can confirm it works, as I own as well some old displays and even increasing the delay they keep working...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#127 Post by papperone » 06 Mar 2018, 01:20

papperone wrote:
04 Mar 2018, 22:09
yes, I know, so far i've got 4 different displays (I've received all of them so I can test all before to release next version).
1) 4 digits and only colon
2) 4 digits and only dots
3) 4 digits with both colon and dots
4) 6 digits with dots
Unfortunately after some struggling and reverse engineer of module (3) I've found out that despite the display has both "colon" in the middle and "dots" after each digit the "dots" are not connected to the TM1647... :(
Long story short, module (1) and (3) behave exactly the same, so I removed module (3) from the drop down, already implemented module (2) and tested.
As it's late and I've lost my focus on coding I'll finish implementing module (4) tomorrow then will make the PR (after verifying that MAX7219 still works and I've not broken anything!)
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#128 Post by papperone » 10 Mar 2018, 14:40

I tried to commit the new version of the pluing into the 2.0 branch but for some reasons GitHub desktop still keep adding it to the HLW8012 PR which is pending since month waiting for a solution.
Despite in GitHub I created a new PR when I try to merge it GitHUB (on the web) keeps adding anythign to the previously opened one.
If someone can explain how I can make GitHUB desktop understand I really want a new commit separated from the pending one(s) it woudl be very apreciated!!!
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

TD-er
Core team member
Posts: 1333
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Connecting a TM1637 4-Digit Display

#129 Post by TD-er » 10 Mar 2018, 18:41

papperone wrote:
10 Mar 2018, 14:40
I tried to commit the new version of the pluing into the 2.0 branch but for some reasons GitHub desktop still keep adding it to the HLW8012 PR which is pending since month waiting for a solution.
Despite in GitHub I created a new PR when I try to merge it GitHUB (on the web) keeps adding anythign to the previously opened one.
If someone can explain how I can make GitHUB desktop understand I really want a new commit separated from the pending one(s) it woudl be very apreciated!!!
I split both PRs.
Can you have a look at this one to check I took the correct version?
https://github.com/letscontrolit/ESPEasy/pull/1043
Then I will merge it.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#130 Post by papperone » 11 Mar 2018, 00:00

TD-er wrote:
10 Mar 2018, 18:41
I split both PRs.
Can you have a look at this one to check I took the correct version?
https://github.com/letscontrolit/ESPEasy/pull/1043
Then I will merge it.
Thanks TD-er, really apreciated the help and sorry for the mess!

@everyone: new P073 is on GitHub, supporting below modules; please test all modules you have and report to me eventually any bugs found.

MAX7219 8digit
Image

TM1637 4digit (colon)
Image

TM1637 4digit (dots)
Image

TM1637 6digit
Image

**NOTE** if your TM1637 4-digit module has both colon and dots most probably only colon is connected thus it will work same as the one described as "TM1637 4digit (colon)"
Please forgive me the bad code but those modules are really weird, most of them the digit addresses are in the right subsequencial order (e.g. 1234 or 12345678) but the ones 6-digits I've got have all swapped order "321654" :shock:
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

38domo
Normal user
Posts: 12
Joined: 18 Feb 2017, 11:43

Re: Connecting a TM1637 4-Digit Display

#131 Post by 38domo » 12 Mar 2018, 19:18

hello, I have tested this week end : wemos D1 with display 4 digit with colon & dots.
It's works fine . thanks a lot for the development.
I can manage the brigthness using the web interface but how can we manage the brightness by command (http/mqtt or Rules)?
gerard

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#132 Post by papperone » 12 Mar 2018, 20:54

38domo wrote:
12 Mar 2018, 19:18
hello, I have tested this week end : wemos D1 with display 4 digit with colon & dots.
It's works fine . thanks a lot for the development.
I can manage the brigthness using the web interface but how can we manage the brightness by command (http/mqtt or Rules)?
gerard
Wiki si your friend --> https://www.letscontrolit.com/wiki/inde ... nt_display
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

38domo
Normal user
Posts: 12
Joined: 18 Feb 2017, 11:43

Re: Connecting a TM1637 4-Digit Display

#133 Post by 38domo » 13 Mar 2018, 19:08

hello,
Thanks a lot.
I have tested from http:
http://ip_esp/control?cmd=7don
http://ip_esp/control?cmd=7doff
http://ip_esp/control?cmd=7db,x
works fine.
I will try with mqtt this evening

38domo
Normal user
Posts: 12
Joined: 18 Feb 2017, 11:43

Re: Connecting a TM1637 4-Digit Display

#134 Post by 38domo » 14 Mar 2018, 19:29

hello,
to use with mqtt:
send to your mqtt broker
msg.topic = "sysname/cmd"
msg.payload = "7db,15"
it works fine

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#135 Post by papperone » 16 Mar 2018, 07:33

thanks a lot 38domo, can you please post a picture of your display to confim which one you tested?
Or maybe refer to the pictures I've postes fwe message before...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

38domo
Normal user
Posts: 12
Joined: 18 Feb 2017, 11:43

Re: Connecting a TM1637 4-Digit Display

#136 Post by 38domo » 16 Mar 2018, 18:45

hello,
it is the display with dots & semi colon
Attachments
IMG_20180316_183052-ConvertImage.jpg
IMG_20180316_183052-ConvertImage.jpg (185.02 KiB) Viewed 6554 times

warcz
Normal user
Posts: 2
Joined: 22 May 2018, 18:01

Re: Connecting a TM1637 4-Digit Display

#137 Post by warcz » 22 May 2018, 18:07

Is it possible to use multiple LED displays at once ESP ?

only one works :o(
Attachments
2018-05-22_1806.png
2018-05-22_1806.png (26.27 KiB) Viewed 6195 times
2018-05-22 18.00.30.jpg
2018-05-22 18.00.30.jpg (2.71 MiB) Viewed 6195 times

boolie
Normal user
Posts: 16
Joined: 23 May 2018, 21:35

Re: Connecting a TM1637 4-Digit Display

#138 Post by boolie » 23 May 2018, 21:45

Hi, Papperone,

I'd like to create a bit more flexibility in what the plugin can display on the 7-segment modules, to allow for some alpha characters (I want to be able to indicate an error condition and loss of wifi, that sort of thing... Err, dISc, Off, ...)

I was thinking of copying the plugin and making the changes in the playground, but then I found this thread and I see that you've had to do some "interesting" stuff to make the code work with the different versions of the TM1637, so I thought maybe it would be better to suggest the changes to you and see if you have the time to make them, rather than for me to break something!

What I'm thinking, is:
- 7db,n,n,n,n for binary data - each 'n' would be a decimal value 0-255 representing the binary bits sent for that digit of the display; this allows us to switch on any combination of segments;
- 7ds,"ABCD" for string data (e.g. hexadecimal or text)... the characters AbcdeFhIJLoPStuy should all be possible to create with 7 segments.

What do you think, is that something you could do, or is it better if I learn how to modify the plugin and try my skills?

Thanks!

Jeff

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#139 Post by papperone » 23 May 2018, 23:59

1) yes currently only one display is allowed, still need to spend some time to implement multiple displays...
2) definitely yes, it was somethign planned to add alphabetical chars but still not done; I'll fin dsome free time to implement this new features and will take your suggestion but I'm puzzled what is the application for the "binary" feature you asked, can you please elaborate more?
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

warcz
Normal user
Posts: 2
Joined: 22 May 2018, 18:01

Re: Connecting a TM1637 4-Digit Display

#140 Post by warcz » 24 May 2018, 11:46

I should have asked before I bought 4 pcs :o( Thank you for your info. Good luck with upgrading

boolie
Normal user
Posts: 16
Joined: 23 May 2018, 21:35

Re: Connecting a TM1637 4-Digit Display

#141 Post by boolie » 24 May 2018, 16:06

[
2) definitely yes, it was somethign planned to add alphabetical chars but still not done; I'll fin dsome free time to implement this new features and will take your suggestion but I'm puzzled what is the application for the "binary" feature you asked, can you please elaborate more?
]

The "binary" idea was to allow any arbitrary pattern that the user might want to display - maybe "=", three bars, two vertical bars, etc. The controller chip takes 8 bits of data per digit, so I was thinking that those could be encoded by the user/user code into a 1-byte number (0-255) and then 4 (6, 8) of those passed to the plug-in which would simply send on the bit patterns to the display chip.

That said, if we extended the alpha character set to include "=", "-" and "|" then I can't really think of any other patterns that one could make so the binary probably isn't going to add anything!

alex77k12
Normal user
Posts: 7
Joined: 10 Apr 2017, 19:13

Re: Connecting a TM1637 4-Digit Display

#142 Post by alex77k12 » 30 May 2018, 10:18

I was trying to apply MAX7219 along with the encoder, I wanted to display time, date, temperature, humidity in the room and temperature and external humidity, taking data from another module. I can use the rules to display rotating encoder temperature and humidity (without the letter) but I do not know the command to display time and date, if in the rules impose% syshour%, %sysmin% or %systime%, does not happen as clock set in device, what is the correct command?
Sorry for my english using translator
Congratulations again for the work done, I really like it

PS if I use the command 7dn,[Clock#Time] the system crashes and restarts

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#143 Post by papperone » 31 May 2018, 06:31

I did not plan in the plugin to be able to show date/time manually with a command rather than automatically...
I noted this as new future fature to implement in next release, thanks!
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#144 Post by papperone » 21 Jun 2018, 07:10

testing new functions as below; please let me know asap if anything missed so I can still add it before new plugin release:
- new command "7dst,<hh>,<mm>,<ss>" - "show time" in manual mode
- new command "7dsd,<dd>,<mm>,<yy>" - "show date" in manual mode (if <yy> <100 then 2000 is added, only valid for 8 digit displays)
- new command "7dtext,<text>" - "show text" in manual mode; supported chars --> 0-9, a-z, A-Z, space, "-", "_", "=", "^" (shows degree symbol), "/" (shows three horizontal lines)

still multiple devices are not working, this will require more time to fix it...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

alex77k12
Normal user
Posts: 7
Joined: 10 Apr 2017, 19:13

Re: Connecting a TM1637 4-Digit Display

#145 Post by alex77k12 » 22 Jun 2018, 18:02

For those using the 8-digit display could you put two values together, for example temperature and humidity? Thank you again for the work you are doing. Thanks to your work I'm creating a bedroom object rack.Only a question, as regards the text will it be possible to merge it in the same string of a value, such as humidity alongside an H?
Attachments
IMG_20180618_195759-2.JPG
IMG_20180618_195759-2.JPG (566.89 KiB) Viewed 6042 times

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#146 Post by papperone » 22 Jun 2018, 20:07

alex77k12 wrote:
22 Jun 2018, 18:02
For those using the 8-digit display could you put two values together, for example temperature and humidity? Thank you again for the work you are doing. Thanks to your work I'm creating a bedroom object rack.Only a question, as regards the text will it be possible to merge it in the same string of a value, such as humidity alongside an H?
With the free text command you can show whatever you want, you have all numbers, letters and special chars as per my post above...
I believe you just need to create a rule to update the display at your preferred interval and you shoudl be able to combine 2 values coming from other devices/sensors

PS: I think lot of people here can be interested in your project if you would like to share it :D
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

ronald
Normal user
Posts: 28
Joined: 05 Jun 2017, 14:15

Re: Connecting a TM1637 4-Digit Display

#147 Post by ronald » 23 Jun 2018, 20:05

papperone wrote:
22 Jun 2018, 20:07
alex77k12 wrote:
22 Jun 2018, 18:02
For those using the 8-digit display could you put two values together, for example temperature and humidity? Thank you again for the work you are doing. Thanks to your work I'm creating a bedroom object rack.Only a question, as regards the text will it be possible to merge it in the same string of a value, such as humidity alongside an H?
With the free text command you can show whatever you want, you have all numbers, letters and special chars as per my post above...
I believe you just need to create a rule to update the display at your preferred interval and you shoudl be able to combine 2 values coming from other devices/sensors

PS: I think lot of people here can be interested in your project if you would like to share it :D
I second that! Really interesting project...

miah
Normal user
Posts: 4
Joined: 26 Jun 2018, 13:24

Re: Connecting a TM1637 4-Digit Display

#148 Post by miah » 26 Jun 2018, 13:40

I have a Wemos D1 Mini running "ESP_Easy_mega-20180618_test_ESP8266_4096.bin" - very happy as it is working well, with a TM1637 4-Digit Display,
Could a new "Display Output:" mode be added so as the clock mode can chose between a 12hr Clock or the existing 24hr Clock ? blinking is good.

MIAH

alex77k12
Normal user
Posts: 7
Joined: 10 Apr 2017, 19:13

Re: Connecting a TM1637 4-Digit Display

#149 Post by alex77k12 » 27 Jun 2018, 20:50

give me some time that I try to organize the files and I share them in some way. If you are interested I am doing the project for printing the box with 3D printer, I can possibly also share that once finished

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Connecting a TM1637 4-Digit Display

#150 Post by papperone » 29 Jun 2018, 08:23

miah wrote:
26 Jun 2018, 13:40
I have a Wemos D1 Mini running "ESP_Easy_mega-20180618_test_ESP8266_4096.bin" - very happy as it is working well, with a TM1637 4-Digit Display,
Could a new "Display Output:" mode be added so as the clock mode can chose between a 12hr Clock or the existing 24hr Clock ? blinking is good.

MIAH
good point, I will add it and post PR later today but I need clarification how the 12h clock works (I'm 24h user :D)
- midnight or noon should show as 00:00 or 12:00?
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests