Search found 8749 matches

by TD-er
26 Feb 2021, 12:22
Forum: ESP Easy: Hardware
Topic: easydriver stepper driver
Replies: 42
Views: 24291

Re: easydriver stepper driver

I think you need to give slightly more information here :)

No idea what "easydriver" is.
Any link?

Is it this board? https://www.sparkfun.com/products/12779
by TD-er
26 Feb 2021, 11:00
Forum: ESP Easy: Hardware
Topic: Smart plugs supported by EasyESP
Replies: 48
Views: 38875

Re: Smart plugs supported by EasyESP

Take for example the sysinfo page of a NodeMCU board I'm running here: Storage Flash Chip ID: Vendor: 0xE0 Device: 0x4016 Flash Chip Real Size: 4096 kB Flash IDE Size: 4096 kB Flash IDE Speed: 40 MHz Flash IDE Mode: DOUT Flash Writes: 0 daily / 8 boot Sketch Size: 898 kB (2172 kB free) Max. OTA Sket...
by TD-er
26 Feb 2021, 10:21
Forum: ESP Easy: Hardware
Topic: Smart plugs supported by EasyESP
Replies: 48
Views: 38875

Re: Smart plugs supported by EasyESP

Device=6014 that's a strange marking. On my 1M devices (Sonoff ones) I do see 0x4014 and on 4M devices 0x4016 Even on the 1M builds, the sysinfo page should show the detected flash size. But given the "14" at the end, it should be an 1M device and the datasheet also tells you so. So I gues...
by TD-er
26 Feb 2021, 00:09
Forum: ESP Easy: Hardware
Topic: Smart plugs supported by EasyESP
Replies: 48
Views: 38875

Re: Smart plugs supported by EasyESP

Are you sure then it isn't a 2M flash unit then if you can congure it? What does the sysinfo page tell you? There are ESP8285 units out there which do have 2 MB flash built in. I have never seen those though. ESP8266 and ESP8285 do not differ a lot, so you may get away with running an ESP8285 build ...
by TD-er
25 Feb 2021, 20:29
Forum: ESP Easy: General Discussion
Topic: MQTT: maintaining a subscription to a topic and acting upon message content as events?
Replies: 5
Views: 5004

Re: MQTT: maintaining a subscription to a topic and acting upon message content as events?

[...] I use OpenHAB controller and I don't use MQTT import plugin because it opens a separate socket with different client_Id (I use client_Id for authorization) That should not happen anymore since a few builds as I now shared the MQTT client among the controller and all instances of the MQTT impo...
by TD-er
25 Feb 2021, 20:27
Forum: ESP Easy: General Discussion
Topic: DS2423 counter
Replies: 2
Views: 4045

Re: DS2423 counter

Hmm the documentation page for the plugin is lacking some in-depth info I guess.... https://espeasy.readthedocs.io/en/latest/Plugin/P100.html#p100-page The plugin is included in the "custom" builds, not the "normal" build. Its label suggests it should be in the "testing"...
by TD-er
25 Feb 2021, 20:22
Forum: ESP Easy: Projects / Applications
Topic: BME 680 sensor
Replies: 55
Views: 69494

Re: BME 680 sensor

Bosch's other sensors like the BME280 do use a filter which just slowly iterates to the actual value.
So maybe you can test by calling the non-sending task multiple times before calling the sending task?
by TD-er
25 Feb 2021, 17:30
Forum: ESP Easy: Projects / Applications
Topic: BME 680 sensor
Replies: 55
Views: 69494

Re: BME 680 sensor

It does seem to write directly to FHEM instead of using a controller for it.
But that's what I noticed in the first quick glance.
It also does allocate a lot of arrays on the stack, which is also a bit "moah"...

I'm only interested in the IAQ computation code, so I do hope it is in there.
by TD-er
25 Feb 2021, 17:28
Forum: ESP Easy: General Discussion
Topic: UDP and MQTT but with different Intervals?
Replies: 17
Views: 8081

Re: UDP and MQTT but with different Intervals?

According to the MQTT specifications, you can only use topic wildcards in a subscribe.
Not in a publish.
by TD-er
25 Feb 2021, 16:49
Forum: ESP Easy: General Discussion
Topic: UDP and MQTT but with different Intervals?
Replies: 17
Views: 8081

Re: UDP and MQTT but with different Intervals?

I'm not sure if you should use the loop timer, or maybe act on the event sent when a new value is being read. N.B. Both use cases may be valid, but you may need to know their differences. A task set to run at interval N may not always run exactly at interval N, but it may take slightly longer to get...
by TD-er
25 Feb 2021, 16:25
Forum: ESP Easy: Projects / Applications
Topic: BME 680 sensor
Replies: 55
Views: 69494

Re: BME 680 sensor

Ah didn't know about that one.
Would be a good idea to have a look at it and it is already supposed to be working with ESPEasy, so should not be impossible to include :)
by TD-er
25 Feb 2021, 16:23
Forum: ESP Easy: General Discussion
Topic: MQTT: maintaining a subscription to a topic and acting upon message content as events?
Replies: 5
Views: 5004

Re: MQTT: maintaining a subscription to a topic and acting upon message content as events?

What Ton (Ath) said. And maybe to elaborate slightly on the subject of "incoming" data from MQTT. There are several MQTT controllers. They differ mainly in the way how a specific platform (e.g. Domoticz/PiDome/OpenHAB) expect the data to be formatted. For Domoticz MQTT and OpenHAB there ar...
by TD-er
25 Feb 2021, 16:17
Forum: ESP Easy: Hardware
Topic: Smart plugs supported by EasyESP
Replies: 48
Views: 38875

Re: Smart plugs supported by EasyESP

There is a "POW" image for 1M flash units.
But those are not "minimal OTA" so you cannot perform an OTA update on 1 M units unless the bin file (extracted size, so not .bin.gz) is less than 600k.

You cannot use a 2M bin file on an 1M flash.
by TD-er
24 Feb 2021, 14:14
Forum: ESP Easy: Software
Topic: Build feature request
Replies: 15
Views: 8163

Re: Build feature request

The controller you're referring to is indeed "testing" and servo was left out of builds that have the "LIMIT_BUILD_SIZE" set.
So I do get your problem here.

It really is time for a build service....
by TD-er
24 Feb 2021, 12:22
Forum: ESP Easy: Projects / Applications
Topic: USB charger, & nightlight fitted with Wemos D1 Mini project
Replies: 11
Views: 10262

Re: USB charger, & nightlight fitted with Wemos D1 Mini project

Since you're printing your own, nobody is stopping you to make the unit a bit longer :)

Just keep in mind to keep parts isolated from touching as it is still a bit tricky with respect to isolation and I do like to keep the users of ESPEasy alive.
by TD-er
24 Feb 2021, 11:51
Forum: ESP Easy: General Discussion
Topic: DeepSleep
Replies: 7
Views: 5062

Re: DeepSleep

You can also compare the systime with %sunset% and %sunrise% and even apply an offset to it.
See the system variables page on your device for some examples.
by TD-er
24 Feb 2021, 11:50
Forum: ESP Easy: Hardware
Topic: PCD8544 - Nokia 5110/3310 LCD - beta plugin
Replies: 88
Views: 110226

Re: PCD8544 - Nokia 5110/3310 LCD - beta plugin

Looks like the values are "URL encoded"
by TD-er
24 Feb 2021, 11:48
Forum: ESP Easy: Projects / Applications
Topic: USB charger, & nightlight fitted with Wemos D1 Mini project
Replies: 11
Views: 10262

Re: USB charger, & nightlight fitted with Wemos D1 Mini project

Do you have some plastics between the low voltage wiring and the original PCB? The low voltage wires may be isolated, but they are very likely not rated for mains voltage isolation. Meaning that even though they are isolated and their isolation is probably not damaged, it still may receive mains vol...
by TD-er
24 Feb 2021, 10:29
Forum: ESP Easy: Projects / Applications
Topic: BME 680 sensor
Replies: 55
Views: 69494

Re: BME 680 sensor

Well the BME680 is rather expensive and since we're not allowed (!!!) to include the Bosch proprietary library for computing an AQI value, I honestly don't see the added value of the BME680 over the BME280.
Also it is a rather new plugin, so I guess not a lot of users have used it yet.
by TD-er
24 Feb 2021, 10:27
Forum: ESP Easy: Software
Topic: Pulse Counter P003 enhancement. How to give back?
Replies: 109
Views: 40810

Re: Pulse Counter P003 enhancement. How to give back?

You should be aware of a number of things when approaching pulse counting like this. ESP8266 only can act on pulse rise or fall via an interrupt, so you must do all statistics yourself. But this also has some "dangers" as the callback code from an interrupt has very strict rules and some t...
by TD-er
23 Feb 2021, 21:52
Forum: ESP Easy: General Discussion
Topic: DeepSleep
Replies: 7
Views: 5062

Re: DeepSleep

That power meter cannot display anything below 1 mA, but that doesn't mean the actual power consumption is less than 1 mA. Most AD converters have a tolerance of some percent +/- 1 or more digits. On top of that it is not uncommon an ADC is not entirely linear around 0 or maybe even made a bit "...
by TD-er
23 Feb 2021, 20:42
Forum: ESP Easy: Projects / Applications
Topic: BME 680 sensor
Replies: 55
Views: 69494

Re: BME 680 sensor

OK, I hope I do get the point you're trying to make here...

You're saying the plugin should "know" the first value of the BME680 is bogus and try to make a new call to make sure it will not return "success = true;" on the first PLUGIN_READ call?
by TD-er
23 Feb 2021, 20:38
Forum: ESP Easy: Software
Topic: Pulse Counter P003 enhancement. How to give back?
Replies: 109
Views: 40810

Re: Pulse Counter P003 enhancement. How to give back?

Not sure what you want to achieve. But please also have a look at code like this which is used in a number of plugins (e.g. BME280) Scheduler.schedule_task_device_timer(event->TaskIndex, millis() + 10); This is used to let a task reschedule itself so it will call a PLUGIN_READ and thus deliver new v...
by TD-er
23 Feb 2021, 20:33
Forum: ESP Easy: General Discussion
Topic: DeepSleep
Replies: 7
Views: 5062

Re: DeepSleep

I don't think this is going to last long on a power bank. The Wemos does take quite a bit of current in deep sleep, since there's a lot of other peripherals (e.g. the USB to serial chip) on board. Also even if the Wemos was is in the deepest possible sleep, you would still consume rougly 100 uA of c...
by TD-er
23 Feb 2021, 10:10
Forum: ESP Easy: Software
Topic: Pulse Counter P003 enhancement. How to give back?
Replies: 109
Views: 40810

Re: Pulse Counter P003 enhancement. How to give back?

Sounds like you need to check for "validTaskIndex"
If a taskindex is not set (intentional not set) it is INVALID_TASK_INDEX, which is TASK_MAX.
Therefore I do have the check validTaskIndex.
by TD-er
22 Feb 2021, 22:49
Forum: ESP Easy: Software
Topic: Pulse Counter P003 enhancement. How to give back?
Replies: 109
Views: 40810

Re: Pulse Counter P003 enhancement. How to give back?

Just make sure you're working on a branch, or else you may get unpleasantly surprised if you try to rebase the 'mega' branch from letscontrolit over your own 'mega' branch and see the commits "disappear" What helped me a lot is to work with a graphical Git tool like GitKraken. I was workin...
by TD-er
22 Feb 2021, 22:42
Forum: ESP Easy: Hardware
Topic: best way to switch multiple leds
Replies: 2
Views: 6413

Re: best way to switch multiple leds

That's exactly what's described in datasheets as the amount of current that can be sourced (ESP delivers power for the LED) or what a chip may "sink" (just redirect current to GND) Sink current of an ESP8266 is about 20 mA, source current is about 12 mA (per pin) See: https://bbs.espressif...
by TD-er
22 Feb 2021, 13:31
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9422

Re: Switch Flip Flop

Looking at the schematic, it does provide some filtering and setting a threshold. So what it does is very similar to the resistor + capactor I suggested. With as extra, it allows to tune the level at which it will switch over. The capacitor does get charged via the 10k resistor on the board, which t...
by TD-er
22 Feb 2021, 11:43
Forum: ESP Easy: Software
Topic: Issues with Dallas 18B20 in version 20210114
Replies: 20
Views: 9378

Re: Issues with Dallas 18B20 in version 20210114

Handling double precision is of course more CPU intensive, but I doubt it is really an issue unless you're running really intensive computations. But I guess the rules parsing does have a much bigger impact. N.B. during rules parsing I do also use double precision to perform the calculations and for...
by TD-er
22 Feb 2021, 08:55
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9422

Re: Switch Flip Flop

What is the chip model nr? It looks like an opamp. Edit: Ah found a similar looking board, which does have a schematic mentioned: https://nl.aliexpress.com/item/32764113833.html?spm=a2g0o.detail.1000023.8.c71c3dfewY59YN Is indeed an opamp. And it uses 100 nF (10 with 4 zeroes in pF) to filter out no...
by TD-er
21 Feb 2021, 23:42
Forum: ESP Easy: Hardware
Topic: Sonoff 4CH Pro R3 - random switching
Replies: 15
Views: 16410

Re: Sonoff 4CH Pro R3 - random switching

Hmm sounds like your node may receive "KAKU" or "COCO" signals from neighbors switching their lights? Or maybe other signals which are abundant in the ether on 433 MHz. Maybe you can cut the lines of the 433 MHz radio module? Either cut the power or the line to the ESP or is ther...
by TD-er
21 Feb 2021, 23:12
Forum: ESP Easy: Projects / Applications
Topic: P1 meter reading with ESP8266 to domoticz
Replies: 21
Views: 21038

Re: P1 meter reading with ESP8266 to domoticz

Or perhaps a newer version with a protocol that's not (yet) implemented in this plugin?
by TD-er
21 Feb 2021, 23:11
Forum: ESP Easy: Software
Topic: Issues with Dallas 18B20 in version 20210114
Replies: 20
Views: 9378

Re: Issues with Dallas 18B20 in version 20210114

Dummy variables: - As it is part of a task, task values are stored in RTC and restored at boot (no power loss) - Type is "float", thus 22 bit of resolution for storing an int without loosing decimals - Dummy tasks can be connected to upto 3 controllers, which will receive the dummy values ...
by TD-er
21 Feb 2021, 21:19
Forum: ESP Easy: General Discussion
Topic: GPIO pin state monitoring
Replies: 7
Views: 6771

Re: GPIO pin state monitoring

The "monitor" command should handle this as it is polling the monitored pins multiple times a second.
In this (pending) pull request there is also some long overdue documentation for the GPIO commands: https://github.com/letscontrolit/ESPEasy/pull/3431
by TD-er
21 Feb 2021, 13:39
Forum: ESP Easy: Software
Topic: Issues with Dallas 18B20 in version 20210114
Replies: 20
Views: 9378

Re: Issues with Dallas 18B20 in version 20210114

Well I don't think a dummy device should use any interval, so I don't know why it can't be set to 0.
Will have a look at it.
by TD-er
21 Feb 2021, 13:37
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9422

Re: Switch Flip Flop

What kind of board is it exactly?
I assume it is a flipflop, but what's the trimmer for?
Setting a level?
by TD-er
20 Feb 2021, 20:19
Forum: ESP Easy: General Discussion
Topic: Can I ignore these ESPEASY warnings ?
Replies: 4
Views: 4356

Re: Can I ignore these ESPEASY warnings ?

If you're using rules, or try to address a task value via [taskname#varname] like construction, you may get unexpected results if your tasknames are the same.
by TD-er
20 Feb 2021, 18:47
Forum: ESP Easy: Software
Topic: Rules count wrong
Replies: 3
Views: 3827

Re: Rules count wrong

On the latest builds you can store with higher resolution in variables. Storing in dummy tasks is limited to float types, so you're limited to roughly 22 bit of values you can store. If you work with ints larger than 22 bit, you will loose resolution. N.B. this is regardless where you place the deci...
by TD-er
20 Feb 2021, 13:28
Forum: ESP Easy: Software
Topic: Energy (AC) - HLW8012/BL0937
Replies: 29
Views: 17793

Re: Energy (AC) - HLW8012/BL0937

Have you tried the "factory reset" I mentioned?

Code: Select all

on Button1#switch do
  if [Button1#switch]=1
    gpio,12,1
  else
    gpio,12,0
  endif
endon
by TD-er
20 Feb 2021, 12:43
Forum: ESP Easy: Software
Topic: Connection problems with ESP Easy Release mega-2021xxxx
Replies: 15
Views: 10216

Re: Connection problems with ESP Easy Release mega-2021xxxx

Oh and just to be sure it isn't a power related issue, please also try another USB cable and make sure to connect it to the PC directly or via a powered USB hub. I've seen a number of issues with recently bought Wemos units where they found another way of cutting costs on the USB connector. So not a...
by TD-er
20 Feb 2021, 12:41
Forum: ESP Easy: Software
Topic: Connection problems with ESP Easy Release mega-2021xxxx
Replies: 15
Views: 10216

Re: Connection problems with ESP Easy Release mega-2021xxxx

And what if you just configure the WiFi settings using the flasher, so not flashing? What it does is something like this: wifissid,myssid wifikey,mysecretwifipassword save You can also try that using any terminal program, like Putty. Just make sure to set the baudrate to 115200. You can't make typo'...
by TD-er
20 Feb 2021, 11:23
Forum: ESP Easy: General Discussion
Topic: Maintain date and time in the absence of wifi
Replies: 40
Views: 31553

Re: Maintain date and time in the absence of wifi

And the nice part is, as long as your unit remains powered, the dummy variable values will be preserved after a reboot/crash.

But I'm curious, to why you need to add an hour to the systime?
Why not use the time zone for this?
by TD-er
20 Feb 2021, 11:19
Forum: ESP Easy: Hardware
Topic: MH-Z19B settling in
Replies: 5
Views: 7123

Re: MH-Z19B settling in

I'm no expert on CO2, but I think the increase of sunlight and plants not being covered with snow may decrease CO2 during the day and increase of CO2 during the night (outside) In windstill situations, the CO2 concentration outside in an area with a lot of plants can get as high as 700 - 800 ppm as ...
by TD-er
20 Feb 2021, 02:19
Forum: ESP Easy: General Discussion
Topic: Maintain date and time in the absence of wifi
Replies: 40
Views: 31553

Re: Maintain date and time in the absence of wifi

You can store it in a dummy task perhaps?
See TaskValueSet
by TD-er
19 Feb 2021, 20:35
Forum: ESP Easy: Software
Topic: Servo control slow gradually
Replies: 10
Views: 7494

Re: Servo control slow gradually

while(digitalRead(event->Par2)==1); That's a tricky one. What if you don't have (no longer) a servo connected or for some reason the pin remains high? Better to include something like this: unsigned long timeout = millis() + 100; while(digitalRead(event->Par2)==1 && !timeOutReached(timeout)...
by TD-er
19 Feb 2021, 20:30
Forum: ESP Easy: Software
Topic: Energy (AC) - HLW8012/BL0937
Replies: 29
Views: 17793

Re: Energy (AC) - HLW8012/BL0937

Just FYI, if you go to Tools->Factory reset, you'll find a number of "Pre-defined config" settings.
One of them (on a POW build) is for the POW and one for the POW2.

If you reset it to such a pre-defined config, almost all is already configured for you.