Page 2 of 5

Re: Connecting a TM1637 4-Digit Display

Posted: 12 Oct 2017, 19:38
by ronald
I used the free utility UnRAR. Worked like a charm.

Re: Connecting a TM1637 4-Digit Display

Posted: 12 Oct 2017, 20:38
by papperone
I have WinRAR full license and it works as I wrote...

Re: Connecting a TM1637 4-Digit Display

Posted: 12 Oct 2017, 21:33
by freijn
Ok will try zip7.

Cheers

Re: Connecting a TM1637 4-Digit Display

Posted: 13 Oct 2017, 23:52
by grovkillen
Will dot matrix displays powered by MAX7216 be supported? Just curious.

Re: Connecting a TM1637 4-Digit Display

Posted: 14 Oct 2017, 00:31
by papperone
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 ;)

Re: Connecting a TM1637 4-Digit Display

Posted: 14 Oct 2017, 06:29
by grovkillen
Drool! You're awesome! 8-)

Re: Connecting a TM1637 4-Digit Display

Posted: 14 Oct 2017, 10:19
by Shardan
+1

Re: Connecting a TM1637 4-Digit Display

Posted: 16 Oct 2017, 11:24
by freijn
Guys,

Sorry for the stupid questions.... :-(

How do you know how to connect the display ?

Is there a how-to page where I can find how to compile a plugin into easyesp ?
I have the tm1638 ,would that work as well? At least the display?

p.s.
with the zip7 I managed to unpack. THanks !

Frank

Re: Connecting a TM1637 4-Digit Display

Posted: 16 Oct 2017, 11:27
by papperone
freijn wrote: 16 Oct 2017, 11:24 Guys,

Sorry for the stupid questions.... :-(

How do you know how to connect the display ?

Is there a how-to page where I can find how to compile a plugin into easyesp ?
I have the tm1638 ,would that work as well? At least the display?

p.s.
with the zip7 I managed to unpack. THanks !

Frank
I guess not as plugin has been written using the TM1637 datasheet for the implementation.
I don't have a TM1638 handy but looking at google it seems a fair different module with 8 digits, 8 buttons and 8 LEDs...

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 12:19
by freijn
Hey Papperone

First, many thanks for your great work here!!

Do you know, is there a wiki or good place to start to get a plugin compiled in EspEasy ?

I have seen the developers wiki , but nothing on Plugin's

Somehow I can't get started. :-(

Again, many thanks for your work here

Frank

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 13:52
by grovkillen
I will make a wiki that is a simplified version of the development wiki.

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 16:34
by freijn
You are all GREAT people !

Thanks !

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 16:53
by papperone
freijn wrote: 17 Oct 2017, 12:19 Hey Papperone

First, many thanks for your great work here!!

Do you know, is there a wiki or good place to start to get a plugin compiled in EspEasy ?

I have seen the developers wiki , but nothing on Plugin's

Somehow I can't get started. :-(

Again, many thanks for your work here

Frank
If you need this plugin only you can find the BIN of 2.0.0dev12 with P073 attached in one of my previous posts.
About how to complie plugins, if you are familiar with Arduino IDE or PlatformIO it's just a matter to copy the file into the main folder of ESPEasy source files and open it from there in order to complie (assumign you have all the libraries with the right version installed of course :) )

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 21:26
by grovkillen
I just added a section to the official Platformio wiki.

https://www.letscontrolit.com/wiki/inde ... ed_plugins

Not alot but essentially its not that much different from compiling the official FW.

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 23:07
by freijn
cheers!!!!

Will try this tomorrow.

Frank

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Nov 2017, 19:59
by ronald
I'm trying to get the temperature from a sensor that's on the same ESP.
I have never used rules before, just don't know how to get them working.
Anyway, I tried and did this:
- Switch the TM1637 to manual mode
- The Temparature sensor is called 'TempPres'
- I switched on rules and created this rule: on TempPres#Temperature do 7dt,[TempPres#Temperature]
- Does nothing....

When I send a http command it works fine, so obviously there is something wrong. But what? Who can tell me how to do it. And can it be done anyway?
I could send the value I get from Domoticz back to the esp, but I hope to get it done with rules this time.

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Nov 2017, 20:13
by grovkillen
Send screenshots.

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Nov 2017, 23:41
by ronald
Here are pictures of the screens I use:
https://ibb.co/m0cfTR
https://ibb.co/imwJF6
https://ibb.co/cGgUNm

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 08:09
by grovkillen
Seems correct. What does the log look like? Does it trigger at all?

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 08:31
by ronald
No, nothing happens. The display stays dark. When I send a command by http it works.

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 08:34
by grovkillen
Try this rule:

Code: Select all

On TempPres#Temperature do
 7dt,[TempPres#Temperature]
EndOn
Your code should work but just as a test.

And please send a log file screenshot for us to see.

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 12:14
by ronald
It works!!!
The EndOn must have been the problem.
Or maybe the style of coding.
Anyway, it works now and I'm very glad it does.
Thank you for your help!

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 14:39
by grovkillen
I updated the wiki accordingly. Thanks for feedback!

Re: Connecting a TM1637 4-Digit Display

Posted: 02 Dec 2017, 23:33
by grovkillen

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 00:01
by papperone
grovkillen wrote: 02 Dec 2017, 23:33 https://www.letscontrolit.com/wiki/inde ... nt_display

wiki updated with this plugin.
Great Job grovkillen!
As far as I've one running since more than a month without issue I woudl consider to move this to NORMAL instead of TESTING but I'd like to have at least some confirmation of stability from other users who maybe using it permanently on their devices...

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 00:03
by grovkillen
Papperone, thanks!!

I've been using it for a day now :)

I do miss some log output though. And as I asked on GitHub, is the 4 digit display with dots also supported or is it only the "clock" version?

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 09:27
by papperone
grovkillen wrote: 03 Dec 2017, 00:03 Papperone, thanks!!

I've been using it for a day now :)

I do miss some log output though. And as I asked on GitHub, is the 4 digit display with dots also supported or is it only the "clock" version?
Let me know which LOG and I'll add them and will evaluate to move to NORMAL plugins...
As per GitHub discussion I will add more displays support to the next release of the plugin (once they will arrive from China ;) )

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 10:58
by grovkillen
papperone wrote: 03 Dec 2017, 09:27
grovkillen wrote: 03 Dec 2017, 00:03 Papperone, thanks!!

I've been using it for a day now :)

I do miss some log output though. And as I asked on GitHub, is the 4 digit display with dots also supported or is it only the "clock" version?
Let me know which LOG and I'll add them and will evaluate to move to NORMAL plugins...
As per GitHub discussion I will add more displays support to the next release of the plugin (once they will arrive from China ;) )
When I add numbers manually the log is not populated with this. Commands 7don, 7doff and 7db,<value> are not reported. Just that stuff :)

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 12:43
by papperone
grovkillen wrote: 03 Dec 2017, 10:58
papperone wrote: 03 Dec 2017, 09:27
grovkillen wrote: 03 Dec 2017, 00:03 Papperone, thanks!!

I've been using it for a day now :)

I do miss some log output though. And as I asked on GitHub, is the 4 digit display with dots also supported or is it only the "clock" version?
Let me know which LOG and I'll add them and will evaluate to move to NORMAL plugins...
As per GitHub discussion I will add more displays support to the next release of the plugin (once they will arrive from China ;) )
When I add numbers manually the log is not populated with this. Commands 7don, 7doff and 7db,<value> are not reported. Just that stuff :)
Ah ok, that's simple... I normally use logs only during developping/testing then I remove them to optimize but you are right, you can always change logs level/reporting from the advanced settings ;)
I will add it soon and submit a PR :D

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 12:52
by grovkillen
Great! 😀

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 15:35
by grovkillen
papperone wrote: 03 Dec 2017, 12:43 ....
Is it possible to have the plugin handle multipel devices (four maybe) add the rotary encoder plugin for example?

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 17:30
by papperone
grovkillen wrote: 03 Dec 2017, 15:35
papperone wrote: 03 Dec 2017, 12:43 ....
Is it possible to have the plugin handle multipel devices (four maybe) add the rotary encoder plugin for example?
not sure I understood... you want the plugin to control like 4 displays and change the contents using a rotary encoder?
can you clarify?

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 17:43
by grovkillen
No, I want to be able to use more than one display together with one esp. The rotary we just used as an example, sorry for not being clear. :?

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 17:48
by papperone
grovkillen wrote: 03 Dec 2017, 17:43 No, I want to be able to use more than one display together with one esp. The rotary we just used as an example, sorry for not being clear. :?
ok you are right, I still need to figure it out why multiple istances of same plugin make the ESP unstable; while adding the LOG will try to understand it...

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 17:54
by grovkillen
papperone wrote: 03 Dec 2017, 17:48
grovkillen wrote: 03 Dec 2017, 17:43 No, I want to be able to use more than one display together with one esp. The rotary we just used as an example, sorry for not being clear. :?
ok you are right, I still need to figure it out why multiple istances of same plugin make the ESP unstable; while adding the LOG will try to understand it...
Thanks, and yes, it's an overall problem with ESP Easy. We need to try to find the root cause of the instability. :roll:

Re: Connecting a TM1637 4-Digit Display

Posted: 26 Dec 2017, 14:50
by sentinel
Hi guys,
I am fairly new to EspEasy. I was also looking for a way to use a TM1637 display, so I wanted to thank Papperone for the work!
Happy New Year to all!

Re: Connecting a TM1637 4-Digit Display

Posted: 28 Dec 2017, 13:43
by papperone
sentinel wrote: 26 Dec 2017, 14:50 Hi guys,
I am fairly new to EspEasy. I was also looking for a way to use a TM1637 display, so I wanted to thank Papperone for the work!
Happy New Year to all!
Thanks and Happy New Year!!!

PS: my new displays to expand this plugin are still "in transit" from China; hope to getit soon and be able to release new version of plugin!

Re: Connecting a TM1637 4-Digit Display

Posted: 28 Dec 2017, 14:58
by sentinel
I have added a timer on the rules. When the module boots, I get the following:

5236 : WIFI : Connected! IP: <IP> (<name>)
5331 : EVENT: System#Boot
5336 : ACT : timerSet,1,5
5402 : FS : Error while reading/writing config.dat in 926
5502 : WD : Uptime 0 ConnectFailures 0 FreeMem 22808
5518 : EVENT: Clock#Time=Thu,15:39
7339 : DS : Temperature: 41.50 (28-ff-37-e2-0-17-3-b3)
7339 : EVENT: DSTemp#Temperature=41.50
7404 : ACT : 7dt,41.5
17976 : EVENT: Clock#Time=Thu,15:40

And the timer never expires. Can this error be related to your code?
My Rules are:

Code: Select all

On System#Boot do
  timerSet,1,5
endon

On DSTemp#Temperature do
  7dt,[DSTemp#Temperature]
endon

On Rules#Timer=1 do
 SendToHTTP <IP_2>,80,/control?cmd=lcd,1,1,test123
 timerSet,1,5
endon
IP_2 is the address of another module.

Re: Connecting a TM1637 4-Digit Display

Posted: 28 Dec 2017, 15:46
by grovkillen
This is a bug: https://github.com/letscontrolit/ESPEasy/issues/588

It is fixed in current code but no "dev release" yet. You can compile current code if you know how to or wait for it to be released.

Re: Connecting a TM1637 4-Digit Display

Posted: 28 Dec 2017, 16:36
by sentinel
thanks for the quick response! (I'll check the list of issues next time)

Re: Connecting a TM1637 4-Digit Display

Posted: 16 Jan 2018, 10:23
by anovik
Hello.
I want to thank the developer for his work!
I wanted to find out if there was some way to switch the plugin's operating mode ("clock" or "manually") by commands from the rules or by a http request, rather than on the device page in ESPEasy?
If not, is it possible to implement?

Re: Connecting a TM1637 4-Digit Display

Posted: 19 Jan 2018, 23:59
by Domosapiens
@Papperone,

thanks for this plug-in.
Is it possible to combine this plug-in with a PCF8574 I/O expander ?
A quick test of the mega release ESPEasy_mega-20180119 showed only the regular GPIO's and not the PCFGPIO's from PCF8574.
Thanks for your response.
Domosapiens

Re: Connecting a TM1637 4-Digit Display

Posted: 20 Jan 2018, 10:12
by papperone
Domosapiens wrote: 19 Jan 2018, 23:59 @Papperone,

thanks for this plug-in.
Is it possible to combine this plug-in with a PCF8574 I/O expander ?
A quick test of the mega release ESPEasy_mega-20180119 showed only the regular GPIO's and not the PCFGPIO's from PCF8574.
Thanks for your response.
Domosapiens
Hi, I am waiting some new displays models in order to implent them in the next release of this plugin.
I think I shoudl have somewhere such expander PCF8574; if I will find it I will have a look if it can be easily implemented your request :)

Re: Connecting a TM1637 4-Digit Display

Posted: 20 Jan 2018, 11:21
by grovkillen
I can send you 1 or 3 if you don't have some at home.

Re: Connecting a TM1637 4-Digit Display

Posted: 20 Jan 2018, 12:22
by Domosapiens
@Papperone,
hope you can do it.
It would be a major break-trough: using PCFGPIO's as generic GPIO's.
(f.i. also for HC-SR04 distance measurement, IR Transmit etc.)
Thanks in advance !

Re: Connecting a TM1637 4-Digit Display

Posted: 20 Jan 2018, 14:00
by Shardan
grovkillen wrote: 20 Jan 2018, 11:21 I can send you 1 or 3 if you don't have some at home.
Same, have several PCF8574 DIP-housing in the shelf.
Let me know.

Re: Connecting a TM1637 4-Digit Display

Posted: 20 Jan 2018, 14:18
by papperone
Don't worry I've just found PCF8574 so I can start experimenting with that!
I already opened a generic Issue/Enhancement request on github as I do believe we shoudl add expanders in the ESPEasy core code, this will allow *any* plugin to access both internal or external GPIOs seamlessly https://github.com/letscontrolit/ESPEasy/issues/749

BTW: There are many expanders similar to PCF8574, even with 16 GPIOs (MCP23017) so will be tricky to implement them all, so let's park it here and think about it...

Re: Connecting a TM1637 4-Digit Display

Posted: 28 Jan 2018, 17:20
by 38domo
hello, I have seen this plugin, thanks a lot for his developpement. I am interested in, found the source and would like to implement on an ESP-01.
However I don't succeed to compile, many errors found ( using ESPeasy R120 due to memory limitations).
Is it possible to have it working on this ESPeasy release ???
regards

Re: Connecting a TM1637 4-Digit Display

Posted: 30 Jan 2018, 07:59
by 38domo
hello,
Nobody to respond ?
I precise the compilation error is with the function AddFormNote in PLUGIN_WEBFORM_LOAD.

_P073_7DGT:90: error: 'addFormNote' was not declared in this scope

addFormNote(string, F("TM1637: 1st=CLK-Pin, 2nd=DIO-Pin"));

I am using Arduino 1.8.5 and ESPcore 2.30
regards

Re: Connecting a TM1637 4-Digit Display

Posted: 30 Jan 2018, 10:31
by TD-er
I would suggest switching over to one of the newer branches (v2.0 or Mega), since all active development is done there.
What are the memory restrictions you have?