Connecting a TM1637 4-Digit Display

Moderators: grovkillen, Stuntteam, TD-er

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

Connecting a TM1637 4-Digit Display

#1 Post by ronald » 07 Sep 2017, 11:32

I ordered a TM1637, Arduino compatible, 4-Digit Display hoping to connect it to a ESP8266 with ESP-Easy, but I can't figure out how to do it.
It's obviously not listed as a compatible device. Has anyone figured out how to connect it, maybe?
It's here for instance.

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

Re: Connecting a TM1637 4-Digit Display

#2 Post by papperone » 07 Sep 2017, 19:01

TM1637 is not a supported IC; you can either write your own plugin or make a request if other users have the needs of 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

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

Re: Connecting a TM1637 4-Digit Display

#3 Post by grovkillen » 07 Sep 2017, 19:09

It seems like a useful display. You should follow papperone suggestion. GitHub is the place for that: https://github.com/letscontrolit/ESPEasy
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:

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

Re: Connecting a TM1637 4-Digit Display

#4 Post by ronald » 07 Sep 2017, 19:12

I wish I could make a plugin myself, but I can't :(
Thank you both for the answer.

I will try to make a request for it. I looked around on GitHub, but I don't how to make a request to support this device. I surely don't want to piss someone off by just putting the request anywhere.
The only thing I can find there is a pull request, but that seems to be for people who contribute plugins etc.

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

Re: Connecting a TM1637 4-Digit Display

#5 Post by grovkillen » 07 Sep 2017, 19:57

Just keep it consistent and to the point. Nothing to worry about .
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

#6 Post by papperone » 07 Sep 2017, 23:13

Does not seem a complex device to implement but I don't have any handy to test; I will order one from Aliexpress and once I will get I'll hook up to my ESP8266 test module and create plugin for it, but it depens on "China delivery" so don't expect anything quick :mrgreen:
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

#7 Post by ronald » 08 Sep 2017, 08:39

Thank you papperone, I'm grateful for any effort :)
I've found several articles concerning solutions with Arduino and / or esp8266, just not with ESP-Easy.

kniazio
Normal user
Posts: 49
Joined: 12 Jun 2016, 11:12

Re: Connecting a TM1637 4-Digit Display

#8 Post by kniazio » 08 Sep 2017, 09:00

+1

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

Re: Connecting a TM1637 4-Digit Display

#9 Post by papperone » 02 Oct 2017, 23:03

Display arrived this mornign and under testing :)
Basic plugin seems to work ok, I'm planning to add 2 modes: number/clock.
While "clock" will automatically shows the time blinking the colon once/sec., "numbers" will set the device in manual mode, waiting for command to be sent to refresh number shown.
Hope this will fulfill all the needs for this display; if you have more ideas please comment here so I can evaluate to include in the final plugin :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

Domosapiens
Normal user
Posts: 277
Joined: 06 Nov 2016, 13:45

Re: Connecting a TM1637 4-Digit Display

#10 Post by Domosapiens » 03 Oct 2017, 00:19

Thanks for your initiative papperone!
if you have more ideas please comment here
How about a count-down counter ?
Give a number of minutes and seconds, count down, and create a setting on a certain GPIO.

Applications:
- Arm count down
- Lights off within ...
- ESPEasy automated egg boiling :D
- Gate shutter
- Heating on for xx minutes

Just my 2 cents
Domosapiens
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

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

Re: Connecting a TM1637 4-Digit Display

#11 Post by papperone » 03 Oct 2017, 06:42

Domosapiens wrote:
03 Oct 2017, 00:19
Thanks for your initiative papperone!
if you have more ideas please comment here
How about a count-down counter ?
Give a number of minutes and seconds, count down, and create a setting on a certain GPIO.

Applications:
- Arm count down
- Lights off within ...
- ESPEasy automated egg boiling :D
- Gate shutter
- Heating on for xx minutes

Just my 2 cents
Domosapiens
Not a bad idea, at all!
I am not sure to add a GPIO trigger (as it can be obtained easily via the rules) but I'll give it a thought before implement 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

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

Re: Connecting a TM1637 4-Digit Display

#12 Post by ronald » 03 Oct 2017, 09:12

Really good ideas! Great you have been able to get it to work so soon.
My plan was to use it for time and temperature.

freijn
Normal user
Posts: 29
Joined: 28 Jan 2017, 17:48

Re: Connecting a TM1637 4-Digit Display

#13 Post by freijn » 03 Oct 2017, 10:35

Very interesing.

What about displaying a value from any item/count in Domoticz ?

I would love to show my power consumption of the house of the result of my solar system. :-)

Need beta testers ?

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

Re: Connecting a TM1637 4-Digit Display

#14 Post by ronald » 03 Oct 2017, 10:43

freijn wrote:
03 Oct 2017, 10:35
Very interesing.

What about displaying a value from any item/count in Domoticz ?

I would love to show my power consumption of the house of the result of my solar system. :-)

Need beta testers ?
+1
Could be achieved by sending http commands to it, like it works with the OLED display. Also a good idea!

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

Re: Connecting a TM1637 4-Digit Display

#15 Post by papperone » 03 Oct 2017, 11:01

ronald wrote:
03 Oct 2017, 10:43
freijn wrote:
03 Oct 2017, 10:35
Very interesing.

What about displaying a value from any item/count in Domoticz ?

I would love to show my power consumption of the house of the result of my solar system. :-)

Need beta testers ?
+1
Could be achieved by sending http commands to it, like it works with the OLED display. Also a good idea!
As it is now it's already accepting commands to update the shown number when in manual mode, and it works :)
Pity it's limited to 4 digits :(

I though about temperature woudl be great but I need to check how the library works beacuse it's build only to show numbers and to lit or not the colon.
If I can customize it woudl be perfect to be able to show "°" or "F" for temperature purpouse and still be usable (3 digits + a sign) for that purpouse.
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: 3106
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connecting a TM1637 4-Digit Display

#16 Post by grovkillen » 03 Oct 2017, 11:04

papperone wrote:
03 Oct 2017, 11:01
Pity it's limited to 4 digits :(
This one here is 8 digits (other chipset though).
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

#17 Post by papperone » 03 Oct 2017, 11:07

grovkillen wrote:
03 Oct 2017, 11:04
papperone wrote:
03 Oct 2017, 11:01
Pity it's limited to 4 digits :(
This one here is 8 digits (other chipset though).
Yes that uses MAX7219 IC, which I though it was suppoertd by ESPEasy but looks like I was wrong...
As I'm sure I've one of those chip somewhere in my lab, I'll search for it and will implement it in ESPEasy as well (maybe same plugin if feasible :) )
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: 3106
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connecting a TM1637 4-Digit Display

#18 Post by grovkillen » 03 Oct 2017, 11:09

papperone wrote:
03 Oct 2017, 11:07
grovkillen wrote:
03 Oct 2017, 11:04
papperone wrote:
03 Oct 2017, 11:01
Pity it's limited to 4 digits :(
This one here is 8 digits (other chipset though).
Yes that uses MAX7219 IC, which I though it was suppoertd by ESPEasy but looks like I was wrong...
As I'm sure I've one of those chip somewhere in my lab, I'll search for it and will implement it in ESPEasy as well (maybe same plugin if feasible :) )
That would be awesome PapperOne!!! :)
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:

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

Re: Connecting a TM1637 4-Digit Display

#19 Post by ronald » 03 Oct 2017, 11:12

papperone wrote:
03 Oct 2017, 11:01
ronald wrote:
03 Oct 2017, 10:43
freijn wrote:
03 Oct 2017, 10:35
Very interesing.

What about displaying a value from any item/count in Domoticz ?

I would love to show my power consumption of the house of the result of my solar system. :-)

Need beta testers ?
+1
Could be achieved by sending http commands to it, like it works with the OLED display. Also a good idea!
As it is now it's already accepting commands to update the shown number when in manual mode, and it works :)
Pity it's limited to 4 digits :(

I though about temperature woudl be great but I need to check how the library works beacuse it's build only to show numbers and to lit or not the colon.
If I can customize it woudl be perfect to be able to show "°" or "F" for temperature purpouse and still be usable (3 digits + a sign) for that purpouse.
If you can't get it show a letter it's no problem for me. But if you do get this working it would be nice to have only the bottomdigit lit (tot show fractions) and a 'C' for Celcius or 'F' for Fahrenheit too.
I know there are single digits one can connect too. I once read an article of someone who connected 16 of those single digits.

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

Re: Connecting a TM1637 4-Digit Display

#20 Post by papperone » 03 Oct 2017, 15:43

ronald wrote:
03 Oct 2017, 11:12
If you can't get it show a letter it's no problem for me. But if you do get this working it would be nice to have only the bottomdigit lit (tot show fractions) and a 'C' for Celcius or 'F' for Fahrenheit too.
I know there are single digits one can connect too. I once read an article of someone who connected 16 of those single digits.
Not sure I understand the first part of your reply... Can you elaborate?

There are plenty of 7-digit display, some (like MAX7219) even daisy chainable, but I think willmake the plugin overcomplicated and too much specific...
I would rathe keep it simple, adding support for common modules on the market, and easy to be updated for basic needs (time, timer, temperature, numbers).

As soon as I'll complete more testing I will publish the WIP plugin on GitHub :)
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

#21 Post by ronald » 03 Oct 2017, 15:52

papperone wrote:
03 Oct 2017, 15:43
ronald wrote:
03 Oct 2017, 11:12
If you can't get it show a letter it's no problem for me. But if you do get this working it would be nice to have only the bottomdigit lit (tot show fractions) and a 'C' for Celcius or 'F' for Fahrenheit too.
I know there are single digits one can connect too. I once read an article of someone who connected 16 of those single digits.
Not sure I understand the first part of your reply... Can you elaborate?

There are plenty of 7-digit display, some (like MAX7219) even daisy chainable, but I think willmake the plugin overcomplicated and too much specific...
I would rathe keep it simple, adding support for common modules on the market, and easy to be updated for basic needs (time, timer, temperature, numbers).

As soon as I'll complete more testing I will publish the WIP plugin on GitHub :)
Sorry if my answer confused you! Bottomline is that I would be very pleased with just the 'basic' functions you discribed.
But if you would somehow manage to find a way to control the different segments without it getting too complicated, I would welcome a way to show temperature like this: "21.5c" or "64.5F".

freijn
Normal user
Posts: 29
Joined: 28 Jan 2017, 17:48

Re: Connecting a TM1637 4-Digit Display

#22 Post by freijn » 03 Oct 2017, 16:14

Ronald,

just out of interest.. Why do you like to have the C or F ?

Do you live in a multi temperature country? Do they exist? As well. if you do see 60 or 22 you can assume the F or C.
I find it a "waste" of display.. ( no hard feelings please :-) )

Greetings

Frank

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

Re: Connecting a TM1637 4-Digit Display

#23 Post by ronald » 03 Oct 2017, 16:21

freijn wrote:
03 Oct 2017, 16:14
Ronald,

just out of interest.. Why do you like to have the C or F ?

Do you live in a multi temperature country? Do they exist? As well. if you do see 60 or 22 you can assume the F or C.
I find it a "waste" of display.. ( no hard feelings please :-) )

Greetings

Frank
Ha ha, you're right Frank. It just looks nice, nothing more. On the other hand: if it's possible, why not? The temperature uses 3 digits, so the 4th digit, on the right, won't be used. And that's also a waste of display :-)
By the way, I don't think there are any countries that use both C and F. As far as I know the US uses F and the rest of the world uses C, but I might be wrong.

freijn
Normal user
Posts: 29
Joined: 28 Jan 2017, 17:48

Re: Connecting a TM1637 4-Digit Display

#24 Post by freijn » 03 Oct 2017, 16:24

and you are right too :-)

@Papperone

Can you share anything already ? Can I help ? (coding ? )

Very interested in it :-)

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

Re: Connecting a TM1637 4-Digit Display

#25 Post by ronald » 03 Oct 2017, 17:03

I see lots of opportunities for this one too: TM1638. :)
I found it here on AliExpress.

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

Re: Connecting a TM1637 4-Digit Display

#26 Post by papperone » 03 Oct 2017, 22:42

freijn wrote:
03 Oct 2017, 16:24
and you are right too :-)

@Papperone

Can you share anything already ? Can I help ? (coding ? )

Very interested in it :-)
Cleaning up the code at the moment, TM1637 works ok, MAX7912 under few bugfix, planning to add another module I have around in my lab (4 digit driven by 2x74HC595).
Thinking about enabling temperature, I indeed agree on dropping the C/F as non-sense but, we need to enable the "minus" (for outside winter measurement maybe) but... the TM1637 does not have "floating dot" oly colon in the middle so no way to display decimals properly :(
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: 3106
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connecting a TM1637 4-Digit Display

#27 Post by grovkillen » 03 Oct 2017, 23:12

I understand the colon isn't an optimal decimal sign but it is possible to "paint the top diod black". :?
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

#28 Post by papperone » 03 Oct 2017, 23:56

grovkillen wrote:
03 Oct 2017, 23:12
I understand the colon isn't an optimal decimal sign but it is possible to "paint the top diod black". :?
:lol: :lol: :lol: ok looks like we have a plan...
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

#29 Post by papperone » 04 Oct 2017, 13:09

so far "beta" plugins has below functionality under testing:
  • support already both TM1637 (4 digits) and MAX7219 (8 digits) display
  • both displays have controllable brightness from device page
  • 2 "modes": CLOCK / MANUAL
    - when display is setup as CLOCK it's automatically updated once-a-second
    - on TM1637 it shows just hours/minutes with blinking colon (HH:MM)
    - on MAX7219 it shows hours/minutes/seconds with blinking segments in-between (HH-MM-SS)
    - when display is setup as MANUAL it can only be refreshed manually sending commands
    - already implemented "7dn,<number>" will update the display showing <number> (TM1637 range is 0-9999, MAX7219 range is -9999999-99999999)
current bugs/todo (before to release the plugin):
  • 2 or more displays (no matter if same or different model/chip) can't work together connected to the same module - they generates a crash making the ESP8266 unrecoverable if not erasing flash :(
  • "7dn" command accepts only integer number; just for MAX7219 decimal dot needs to be enabled as supported by hardware
  • "7dt" command to be implemented in order to show temperature (TM1637 --> "-XXX" / MAX7219 "-XXX.XX°")
    ideas on formats to be used are mote than welcome but please take into consideration hardware limitation!
  • as temperature can be negative or above 100 (for F°) on TM1637 no decimals nor symbols will be shown
  • to add support for 74HC595 4 digit modules (tbd)
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

freijn
Normal user
Posts: 29
Joined: 28 Jan 2017, 17:48

Re: Connecting a TM1637 4-Digit Display

#30 Post by freijn » 04 Oct 2017, 13:19

impressive !!! Thanks !!! Can't wait :-)

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

Re: Connecting a TM1637 4-Digit Display

#31 Post by ronald » 05 Oct 2017, 09:03

This all sounds very good! Impressive progress!
Will it be possible to stop the blinking colon on the clock?
Thank you for your effort :)

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

Re: Connecting a TM1637 4-Digit Display

#32 Post by papperone » 05 Oct 2017, 09:29

ronald wrote:
05 Oct 2017, 09:03
This all sounds very good! Impressive progress!
Will it be possible to stop the blinking colon on the clock?
Thank you for your effort :)
mmmm... not at the moment, I thought it was something everyone woudl like to have but if you think it's not the case I can easily enable this option instead of making it always ON
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

#33 Post by ronald » 05 Oct 2017, 09:40

I guess it's difficult to please everyone... I'm not that keen about the blinking myself.
I'm the guy that also switches off display of seconds when possible...
But I'm sure others will disagree!

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

Re: Connecting a TM1637 4-Digit Display

#34 Post by grovkillen » 05 Oct 2017, 14:56

papperone wrote:
04 Oct 2017, 13:09
so far "beta" plugins has below functionality under testing:
  • support already both TM1637 (4 digits) and MAX7219 (8 digits) display
  • both displays have controllable brightness from device page <--------- Is it possible to control this on individual sections or only overall?
  • 2 "modes": CLOCK / MANUAL
    - when display is setup as CLOCK it's automatically updated once-a-second
    - on TM1637 it shows just hours/minutes with blinking colon (HH:MM)
    - on MAX7219 it shows hours/minutes/seconds with blinking segments in-between (HH-MM-SS)
    - when display is setup as MANUAL it can only be refreshed manually sending commands
    - already implemented "7dn,<number>" will update the display showing <number> (TM1637 range is 0-9999, MAX7219 range is -9999999-99999999)
current bugs/todo (before to release the plugin):
  • 2 or more displays (no matter if same or different model/chip) can't work together connected to the same module - they generates a crash making the ESP8266 unrecoverable if not erasing flash :(
  • "7dn" command accepts only integer number; just for MAX7219 decimal dot needs to be enabled as supported by hardware
  • "7dt" command to be implemented in order to show temperature (TM1637 --> "-XXX" / MAX7219 "-XXX.XX°")
    ideas on formats to be used are mote than welcome but please take into consideration hardware limitation!
  • as temperature can be negative or above 100 (for F°) on TM1637 no decimals nor symbols will be shown
  • to add support for 74HC595 4 digit modules (tbd)
See my comment above. It would be pretty nice if we could control the brightness in more detail. Great work though!!! :)
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:

mrwee
Normal user
Posts: 125
Joined: 31 Aug 2016, 12:52

Re: Connecting a TM1637 4-Digit Display

#35 Post by mrwee » 05 Oct 2017, 15:49

For quite some time, I've been thinking about using espeasy on a Sonoff TH16 to control a fan/heater in our greenhouse. My idea was:

1 x Sonoff TH16 with espeasy. Used as 'logic' plus relay to control 230V to the heater/fan.
1 pcs. temperature sensor (+maybe humidity sensor, just for info)
1 pcs. potentiometer to adjust temperature setpoint
+ now: 1 pcs. TM1637 to show current measured temperature, as well as show setpoint when adjusting via potentiometer.

I'm a bit unsure if this can be done via rules, but it would be very cool :)

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

Re: Connecting a TM1637 4-Digit Display

#36 Post by grovkillen » 05 Oct 2017, 16:52

I don't see any reason why this couldn't be done with rules. :geek: Great idea of use!

Looking forward to this plugin. Waiting for delivery still though.
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

#37 Post by papperone » 05 Oct 2017, 17:18

grovkillen wrote:
05 Oct 2017, 14:56
  • both displays have controllable brightness from device page <--------- Is it possible to control this on individual sections or only overall?
I'm still studing the datasheet of TM1637 as I'm not really happy of the library that is available and I'm trying to rebuild communication in the plugin to have it customized and get rid of library; but so far I saw only a general brightness command for all 4 digits. I'll look deeper this evening to check if this request can be implemented in the chip! ;)
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

#38 Post by papperone » 10 Oct 2017, 10:45

_P073_7DGT plugin submiteed as [TESTING] on the main branch!

Few notes:
- No libraries needed as I coded all the interface with the modules inside the plugin (and customize them on my needs)
- I dropped support of TM74HC595 display as very limited in commands supported and not easy to handle (and I guess it is as well outdated as TM1637 is a much better choice today)
- TM1637 and MAX7219 fully supported
- Modes: Manual, Clock Blink, Clock No Blink, Date
- in Manual mode the plugin reacts to command "7dn,<number>" and "7dt,<temperature>" to show data and it's adaptive (note for TM1637 if you want to use it to show temperature you need to cover the top dot of the colon :mrgreen: )
- other supported commands: "7don", "7doff", "7db,<brightness> (first two very obvious and useful to turn on/off display when not used/needed, last one to setup brightness without accessign ESPEasy GUI)

Please report to me any issues, bugs, features to be implemented, anything, in order to improve the plugin.

NOTE: Still more than one display is not 100% working and can cause crashes of the ESP8266; I will work on this after the plugin will be stable and all functionality fully confirmed 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

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

Re: Connecting a TM1637 4-Digit Display

#39 Post by ronald » 10 Oct 2017, 11:34

O, that's great! I really want to try it.
I must admit that I don't know how to test it though. I know how to flash my unit and how to upgrade to new versions/ test versions of the software, but I have never added a new plugin.
I can't find how to do it... Can you tell where to find that? :oops:

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

Re: Connecting a TM1637 4-Digit Display

#40 Post by grovkillen » 10 Oct 2017, 19:46

Can't wait to try it out! (About 2 weeks until my units arrive.)
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:

freijn
Normal user
Posts: 29
Joined: 28 Jan 2017, 17:48

Re: Connecting a TM1637 4-Digit Display

#41 Post by freijn » 10 Oct 2017, 23:08

ronald wrote:
10 Oct 2017, 11:34
O, that's great! I really want to try it.
I must admit that I don't know how to test it though. I know how to flash my unit and how to upgrade to new versions/ test versions of the software, but I have never added a new plugin.
I can't find how to do it... Can you tell where to find that? :oops:
Same problem here :-(

I have found the plugin
https://github.com/letscontrolit/ESPEasy/pull/534/files

No idea about the next step , is there a how to plugin wiki ? link?

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

Re: Connecting a TM1637 4-Digit Display

#42 Post by papperone » 11 Oct 2017, 09:49

I will post BIN later today with dev12 plus this plugin; I will compile only for 4096 module if ok for you....
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

#43 Post by ronald » 11 Oct 2017, 09:52

Great, Papperone!
4096 is ok for me.

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

Re: Connecting a TM1637 4-Digit Display

#44 Post by papperone » 11 Oct 2017, 13:22

here it is! please let me know your feeback...
ESPEasy-v2.0.0-dev12+P073.rar
(344.61 KiB) Downloaded 149 times
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

#45 Post by ronald » 11 Oct 2017, 14:22

Hi Papperone
I already tried the device (a TM1637) and for me it is working great!
I tried these modes:
clock blinking
clock not blinking
date
manual command 7dn
7dn,-1000 = ----
7dn,-999 = -999
7dn,9999 = 9999
7dn,99999 = ----
manual command 7dt
- positive number gives me "22:2o" (with the degree symbol in the upper half of course!)
- negative number gives me "-10o"

Display output is working ok.

I would welcome commands to switch the device on or off, like the LCD has.

I tried it on a Witty Cloud version of the esp8266, which is a bit of a pain in the b*t, because so many of the I/O pins are already taken, but my other device were not available.
I hooked it up to D0 (DIO) and D4 (CLK) and that worked.
Thanks for your effort!

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

Re: Connecting a TM1637 4-Digit Display

#46 Post by papperone » 11 Oct 2017, 17:09

Thanks Ronald, probably you should read this previous comment --> http://www.letscontrolit.com/forum/view ... =30#p19744
You have already "7don" "7doff" and "7db,<brightness>" commands implemented... :mrgreen:
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

#47 Post by ronald » 11 Oct 2017, 20:03

papperone wrote:
11 Oct 2017, 17:09
Thanks Ronald, probably you should read this previous comment --> http://www.letscontrolit.com/forum/view ... =30#p19744
You have already "7don" "7doff" and "7db,<brightness>" commands implemented... :mrgreen:
Ah, missed that one! I'm really happy with the result :D

freijn
Normal user
Posts: 29
Joined: 28 Jan 2017, 17:48

Re: Connecting a TM1637 4-Digit Display

#48 Post by freijn » 12 Oct 2017, 12:19

Downloaded ...

I try to open it with WinRar, but it throws an error... How do I uncompress is?? :-(


MANY THANKS !!!!

Frank

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

Re: Connecting a TM1637 4-Digit Display

#49 Post by papperone » 12 Oct 2017, 17:37

freijn wrote:
12 Oct 2017, 12:19
Downloaded ...

I try to open it with WinRar, but it throws an error... How do I uncompress is?? :-(


MANY THANKS !!!!

Frank
no idea, I tryed myself to donwload and open it and I got no errors; as well ronald download and installed it without issue it seems...
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: 3106
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connecting a TM1637 4-Digit Display

#50 Post by grovkillen » 12 Oct 2017, 19:10

Try 7-zip.
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:

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests