Search found 136 matches

by rayE
16 Nov 2019, 04:46
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

Thanks TD-r. Ill report back on this with my chosen solution, it could be handy for others.
by rayE
15 Nov 2019, 13:52
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

Is writing to very top of Flash safe? so if i have 4M, 1M spiffs where would i write to safely? Or i just write to a dummy var?
by rayE
15 Nov 2019, 13:34
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

I should have added, the simple circuit i attached will also have a BOD before the diode and attached to a D/I pin on the esp through a potential divider. This will alert the ESP that the main supply has gone down and to enter emergency save to flash mode. In my location we have a brown out once a d...
by rayE
15 Nov 2019, 13:26
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

Understood, iv used FRAM many years back on a PIC application. Cheaper today BUT overkill for my application, If it's just a few bytes you need to store once in a while on a certain trigger.
by rayE
15 Nov 2019, 12:11
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

Simple HW implementation...............The AT tiny dotted stuff is the 3V3 regualator if using a ESP module without a regulator. attachment=0]download.jpg[/attachment] Loose the LED, wasted power. Also from the data sheet the flash memory has a write limitation of 10K, after this that part of flash ...
by rayE
15 Nov 2019, 12:01
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

This really does sound pretty cool. I have seen lots of posts regarding "states" after a reboot...................problem solved?
by rayE
15 Nov 2019, 11:48
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

There is an EPROM section in the flash, which we do not yet use and I was thinking of using it for special purposes like OTA definitions etc. Now THAT would be a real sexy/useful feature to have, i take it this is NON volatile? how many bytes are available? AND as you say a method of keeping the mo...
by rayE
15 Nov 2019, 11:38
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

Actually, and more important, how is the last boot cause stored?
by rayE
15 Nov 2019, 11:36
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

Does the last boot cause have a timestamp?
by rayE
15 Nov 2019, 11:35
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Re: Brownout detection

No its extra expense, reduced cost of the end product is essential.
by rayE
15 Nov 2019, 11:11
Forum: ESP Easy: Hardware
Topic: Brownout detection
Replies: 15
Views: 949

Brownout detection

Hi All, Please correct me if im wrong on this, but an 8266 module has NO non volatile RAM? rather you can write to the RTC memory or general purpose flash memory? What i want to do is log the RTC time when there is a power failure and log the time when the power was restored. To accomplish this im t...
by rayE
25 Oct 2019, 14:04
Forum: ESP Easy: Software
Topic: Web wizard page
Replies: 4
Views: 1811

Re: Web wizard page

Many thanks TD-er, it works a treat :-)
by rayE
25 Oct 2019, 13:09
Forum: ESP Easy: Software
Topic: Web wizard page
Replies: 4
Views: 1811

Re: Web wizard page

Im doing this for two reasons. 1. If i set the unit to AP mode it will switch to AP mode but when i log onto it via 192.168.4.1 the interface is very sluggish as it's reporting using 100% CPU time. When i look in the debug window in looks like its constantly trying to connect with whatever credentia...
by rayE
25 Oct 2019, 09:54
Forum: ESP Easy: Software
Topic: Web wizard page
Replies: 4
Views: 1811

Web wizard page

Hi all, Self build 20191003 Im trying to force open the web wizard page using the rules below. //***Set to web wizard page with a 5 second key press*** on switch#switch=10 do GPIO,15,0 //Turn off Blue LED GPIO,12,1 //Turn on Red LED WifiSSID,"" WifiKey,"" save reboot endon The problem is the command...
by rayE
13 Jul 2019, 14:03
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 204
Views: 24418

Re: Hardware Watchdog Reboots

And tada.... both nodes are up and running for 3 days now. No more web hangers etc I totally agree, There is a lot of evidence to the underlying problem given the router configuration. This needs to be documented in some kind of on line spread sheet that the "testers" update (maybe), im sure the re...
by rayE
10 Jul 2019, 11:58
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 204
Views: 24418

Re: Hardware Watchdog Reboots

My devices are Sonoff POW rev1, i tried what your saying several months back and tested over several weeks BUT after a few days testing it seemed to make little or no difference in the overall average reboots. This one is a tricky one to get to the underlying problem :-) I used to have this old sayi...
by rayE
08 Jul 2019, 00:05
Forum: ESP Easy: General Discussion
Topic: Data being sent to ThingSpeak not in regular intervals
Replies: 9
Views: 5938

Re: Data being sent to ThingSpeak not in regular intervals

From memory i think there is a limit that can be sent in one go. This can be increased, i think it's a setting in the globals file? This requires a change and recompile to the ESP source code.
by rayE
07 Jul 2019, 12:23
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 204
Views: 24418

Re: Hardware Watchdog Reboots

It's way to early to be sure but i just had the best uptime from both my devices since they started running continually in February. Ill just focus on one unit for this post. The previous best uptime was 2,434 (minutes). The latest uptime was 4,512 then there was a power outage, so we start again. I...
by rayE
06 Jul 2019, 13:02
Forum: ESP Easy: General Discussion
Topic: Data being sent to ThingSpeak not in regular intervals
Replies: 9
Views: 5938

Re: Data being sent to ThingSpeak not in regular intervals

Good luck with the project, i for one understand the importance of what your doing :-)

If you need any FREE assistance in this project then im an electronics design engineer with programming knowledge, give me a shout at

rayellam@yahoo.com

im semi retired and glad to assist :-)

Ray
by rayE
06 Jul 2019, 12:12
Forum: ESP Easy: General Discussion
Topic: Data being sent to ThingSpeak not in regular intervals
Replies: 9
Views: 5938

Re: Data being sent to ThingSpeak not in regular intervals

Wonderful mate, glad i could be of help. Keep those IOT bees happy as without them the human race is SCREWED :-) Please keep me updated on any progress. I live in the Philippines and honey is a very much liked product here as well as general cross pollination of plants provided by our furry flying f...
by rayE
06 Jul 2019, 03:30
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 204
Views: 24418

Re: Hardware Watchdog Reboots

Not sure if this helps. I have 2 devices running the same application and set up as follows. 1. DHCP using a fixed IP oclet (advanced). Both on the same IP address, with 30, 31 as the last oclet. 2. ESP82xx Core 2_4_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3 3. Release 20190202. My laptop is connected...
by rayE
04 Jul 2019, 00:12
Forum: ESP Easy: General Discussion
Topic: Data being sent to ThingSpeak not in regular intervals
Replies: 9
Views: 5938

Re: Data being sent to ThingSpeak not in regular intervals

Hi, The following will write all 8 fields to a public/private channel. Replace write API key and vars with your stuff. Trigger the send from a timer. SendToHTTP api.thingspeak.com,80,/update?key=YourWriteAPIkey&field1=[HLW_Accu#V]&field2=[HLW_Accu#A]&field3=[HLW_Accu#W]&field4=[S_Info#Pcount]&field5...
by rayE
03 Jul 2019, 00:15
Forum: ESP Easy: Software
Topic: Compiling from source under arduino - IR Plugin
Replies: 12
Views: 4674

Re: Compiling from source under arduino - IR Plugin

Its unlikely you will get support compiling with Ardunio as it's not supported by the developers. Bite the bullet and try out Platformio, i installed it many moons ago on a win7 machine and i EVENTUALLY got it working (the install of platformio/Atom was/is buggy and required many reboots/uninstalls ...
by rayE
02 Jul 2019, 08:46
Forum: ESP Easy: Software
Topic: Compiling from source under arduino - IR Plugin
Replies: 12
Views: 4674

Re: Compiling from source under arduino - IR Plugin

From this line it looks like your not using 20190202. As i already said after this release there are many errors so sorry i cannot help you. If you do figure it out then let me know :-) In file included from C:\Users\WinCycle\Documents\Arduino\ESP EASY\ESPEasy-mega-20190630\ESPEasy-mega-20190630\src...
by rayE
02 Jul 2019, 04:16
Forum: ESP Easy: Software
Topic: Compiling from source under arduino - IR Plugin
Replies: 12
Views: 4674

Re: Compiling from source under arduino - IR Plugin

What source code are you using, 20190202? in my source there is no C0016? try disabling that.
by rayE
29 Jun 2019, 08:58
Forum: ESP Easy: Software
Topic: Compiling from source under arduino - IR Plugin
Replies: 12
Views: 4674

Re: Compiling from source under arduino - IR Plugin

Hi,
Sorry im out on site for the next week with no access to my build computer.

1. Did you follow the build with Arduino guide EXACTLY? https://www.letscontrolit.com/wiki/inde ... are_Upload
2. you need to include this at the top of ESPeasy.ino, #include "Custom.h"
by rayE
28 Jun 2019, 15:27
Forum: ESP Easy: Software
Topic: Compiling from source under arduino - IR Plugin
Replies: 12
Views: 4674

Re: Compiling from source under arduino - IR Plugin

Hi, I use the Arduino compiler to do builds. The last build that i used was 20190202, after this there were many compile errors that i could not figure out. Most people use platformio to compile but it's a real pain to set up and get working for some reason. Check out the following link for Arduino ...
by rayE
17 Jun 2019, 02:31
Forum: ESP Easy: Projects / Applications
Topic: RS485 Serial options?
Replies: 7
Views: 8243

Re: RS485 Serial options?

I did something similar BUT very different many moons ago without any devices/controllers using events in rules. https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=3693&p=20179#p20181 To test this you could connect a terminal to the serial input/output on the esp device and send some text like ...
by rayE
08 Jun 2019, 01:08
Forum: ESP Easy: General Discussion
Topic: EspEasy sends data to Thingspeak in odd time intervals
Replies: 8
Views: 6305

Re: EspEasy sends data to Thingspeak in odd time intervals

I have tried both the thingspeak controller and sendtoHttp methods with thingspeak but both were not 100% reliable, sometimes updates were missed. Thingspeak now supports MQTT so I ended up modifying one of the MQTT controllers to work with thingspeak and this method ROCKS, no missed updates on the ...
by rayE
07 Jun 2019, 09:18
Forum: ESP Easy: General Discussion
Topic: EspEasy sends data to Thingspeak in odd time intervals
Replies: 8
Views: 6305

Re: EspEasy sends data to Thingspeak in odd time intervals

Unless the thingspeak controller has been updated since a couple of months ago then this is the way to do it. 1. Create a quad dummy var. 2. Give this dummy var an IDX of 1, Enable and send to thingspeak controller. The first temp will be field 1 and so on. 3. Copy your 3 temps into this var 4. set ...
by rayE
04 Jun 2019, 10:44
Forum: ESP Easy: Software
Topic: Save data to txt
Replies: 5
Views: 4946

Re: Save data to txt

@ Chprzemo, can you post your findings here? This sounds very useful for posting bulk data to a cloud IOT service.
by rayE
02 Jun 2019, 16:03
Forum: ESP Easy: Hardware
Topic: Broken I2C bus.
Replies: 7
Views: 8585

Re: Broken I2C bus.

Pull up's?
https://learn.sparkfun.com/tutorials/i2 ... ware-level

OR
Tools - Advanced - I2C ClockStretchLimit..................i have absolutely no idea what this does but im guessing it does something??????????? :-)
by rayE
28 May 2019, 02:55
Forum: ESP Easy: General Discussion
Topic: Flashing errors.
Replies: 7
Views: 6772

Re: Flashing errors.

Is the ESP01 1M and not 512? Read the number on the flash chip.
by rayE
28 May 2019, 02:11
Forum: ESP Easy: General Discussion
Topic: Flashing errors.
Replies: 7
Views: 6772

Re: Flashing errors.

Not sure if this will help but first flash a blank 1M bin before flashing the main app.
by rayE
21 May 2019, 01:01
Forum: ESP Easy: General Discussion
Topic: problem with remote control
Replies: 8
Views: 787

Re: problem with remote control

This follows your original logic without nested if's. If this is not working then check your logic! on IR_RECEIVER#IR do if [IR_RECEIVER#IR]=2049 and [zmienna_1#Switch_1]=0 TaskValueSet 2,1,1 gpio,14,[zmienna_1#Switch_1] endif if [IR_RECEIVER#IR]=2049 and [zmienna_1#Switch_1]=1 TaskValueSet 2,1,0 gp...
by rayE
20 May 2019, 03:40
Forum: ESP Easy: General Discussion
Topic: problem with remote control
Replies: 8
Views: 787

Re: problem with remote control

Something like this......................?

Code: Select all

// klawisz_1
on IR_RECEIVER#IR do
   if [IR_RECEIVER#IR]=2049 and [zmienna_1#Switch_1]=0
       TaskValueSet 2,1,1
   else 
       TaskValueSet 2,1,0
       gpio,14,[zmienna_1#Switch_1]
   endif
//Delay 1000 
Endon
by rayE
19 May 2019, 13:15
Forum: ESP Easy: General Discussion
Topic: problem with remote control
Replies: 8
Views: 787

Re: problem with remote control

I believe you cannot nest multiple if statements, only one is allowed. This may be the problem? Look in debug log, im certain you will see one of those nested if's is ignored?

Ray
by rayE
18 May 2019, 03:10
Forum: ESP Easy: Hardware
Topic: HLW8032
Replies: 3
Views: 626

Re: HLW8032

This looks similar to the CSE7766, maybe the plug-in will work? if not i bet it's an easy(ish) task to modify it.
by rayE
17 May 2019, 13:03
Forum: ESP Easy: Projects / Applications
Topic: Calculating kWh from Amps+Volts
Replies: 10
Views: 1832

Re: Calculating kWh from Amps+Volts

I use SonOff POW so the instantaneous power is already calculated. This is how i calculate kwh........... 1. Take power reading every 5S and store in a dummy var (accumulator) 2. On the next sample add to the dummy var (accumulator). 3. After 6 samples divide the dummy var by the number of samples. ...
by rayE
14 May 2019, 03:11
Forum: Staff Announcements forum
Topic: BIG announcement, the future of ESP Easy. [READ THIS IF YOU LOVE OUR FW]
Replies: 93
Views: 42222

Re: BIG announcement, the future of ESP Easy. [READ THIS IF YOU LOVE OUR FW]

Hi ESPeasy,
I just sent you some beer money via paypal from sales@boracayapartment.com. Keep up the GREAT work, much appreciated :-)

Regards
Ray
by rayE
11 May 2019, 02:04
Forum: ESP Easy: General Discussion
Topic: rules disable in AP mode
Replies: 4
Views: 531

Re: rules disable in AP mode

Many thanks and sorry for the dumb question..................it works great.
by rayE
10 May 2019, 16:09
Forum: ESP Easy: General Discussion
Topic: rules disable in AP mode
Replies: 4
Views: 531

Re: rules disable in AP mode

But how do i know the device is in AP mode to issue the command rules,0?
by rayE
10 May 2019, 12:47
Forum: ESP Easy: General Discussion
Topic: rules disable in AP mode
Replies: 4
Views: 531

rules disable in AP mode

Hi All, Is there a way to disable rules when the device is in AP mode? Maybe there is there a system flag available that indicates if the device is in AP mode? Im asking as i have a rule that does a periodic ping to check for internet connection, if ping fail is > x then i reboot the unit. If the de...
by rayE
07 May 2019, 20:32
Forum: ESP Easy: General Discussion
Topic: Newbie questiom.
Replies: 2
Views: 537

Re: Newbie questiom.

You could send the data to the cloud and use an IOT service such as https://thingspeak.com. This will provide you with a maximum of 8 data fields that can be updated simultaneously from your device (minimum update time for the free service is 15 seconds per update). You can set things up on the ESPE...
by rayE
02 May 2019, 16:19
Forum: ESP Easy: General Discussion
Topic: What firmware release to use?
Replies: 14
Views: 1418

Re: What firmware release to use?

For me i do the following......................... 1. Pick an off the shelf bin that includes the plugins i need. 2. Configure and test all the required plugins work that i need for my particular app. 3. Make sure there are no reboots by logging the update time. 4. Make sure the network is stable to...
by rayE
27 Apr 2019, 09:20
Forum: ESP Easy: General Discussion
Topic: System Time does not show up under Main menu
Replies: 1
Views: 369

Re: System Time does not show up under Main menu

Maybe a corrupted flash? Try loading a blank bin then load espeasy again.
by rayE
25 Apr 2019, 04:32
Forum: ESP Easy: Software
Topic: Cannot connect to CloudMQTT
Replies: 7
Views: 3103

Re: Cannot connect to CloudMQTT

Did you ever found it out how to connect with CloudMQTT?
by rayE
23 Apr 2019, 15:26
Forum: ESP Easy: General Discussion
Topic: Energy Meter HLW8012 Breakout Board voltage issue
Replies: 8
Views: 1249

Re: Energy Meter HLW8012 Breakout Board voltage issue

I haven't calibrate yet but I think it will not a solution because values are very diffret to calibrate see board show that 5 V voltage but actually it must be around 220 V
You need to calibrate the thing before ANYTHING else! Do this first before wasting time chasing your tail :-)