Search found 8748 matches

by TD-er
20 Mar 2023, 21:35
Forum: ESP Easy: Hardware
Topic: Once more about PMS5003
Replies: 8
Views: 1350

Re: Once more about PMS5003

Please have a look at the differences in notation:

Both imply the same, only describe it from a different perspective:
RX: GPIO-xx
GPIO-xx <-- TX

On the ESP side, you define a GPIO pin to act as a RX pin.
On the sensor side, you connect a TX pin to a GPIO pin on the ESP.
by TD-er
20 Mar 2023, 09:38
Forum: ESP Easy: Hardware
Topic: ESP32 servos uncontrolled movement during upload
Replies: 5
Views: 1303

Re: ESP32 servos uncontrolled movement during upload

Interesting board. I did expect it to have a PWM chip, but it looks like it is only using ESP32 GPIO pins. Anyway, the topicstarter can have a look to see which pins are apparently good to use for a servo. N.B. The ESP32 can also be configured to have some pins locked at a specific state during slee...
by TD-er
19 Mar 2023, 21:57
Forum: ESP Easy: Hardware
Topic: ESP32 servos uncontrolled movement during upload
Replies: 5
Views: 1303

Re: ESP32 servos uncontrolled movement during upload

You can store some values in RTC memory which will be kept as long as the unit remains powered. This can be useful to detect whether you're starting from a cold boot or warm boot. It is also possible your pins are not fully reset during boot. But as Ton also mentioned, this is a support forum for ES...
by TD-er
17 Mar 2023, 23:14
Forum: ESP Easy: General Discussion
Topic: Coin acceptor with relay project
Replies: 25
Views: 6328

Re: Coin acceptor with relay project

You can compute the rise/fall time of the signal for a capacitor + resistor.

For example: https://www.digikey.nl/en/resources/con ... e-constant

The RC time should roughly be 10 msec...
So 10 uF and 1k resistor... or 100 nF and 100k resistor should be fine.
by TD-er
17 Mar 2023, 10:18
Forum: ESP Easy: Software
Topic: Ping Plugin
Replies: 39
Views: 30601

Re: Ping Plugin

by TD-er
17 Mar 2023, 09:58
Forum: ESP Easy: Software
Topic: Ping Plugin
Replies: 39
Views: 30601

Re: Ping Plugin

Just looked at where USES_P089 is defined in define_plugin_sets.h It should be on each "Collection" build as it is defined when PLUGIN_SET_COLLECTION is defined and this is defined for any collection build. However, the define check for the plugin itself is: #if defined(USES_P089) &&am...
by TD-er
16 Mar 2023, 20:37
Forum: ESP Easy: General Discussion
Topic: Unable to flash 4M1M to D1 mini
Replies: 13
Views: 1436

Re: Unable to flash 4M1M to D1 mini

You can enable the "ECO" mode on the tools->Advanced page to reduce the load on the voltage regulator.
by TD-er
16 Mar 2023, 12:36
Forum: ESP Easy: General Discussion
Topic: Unable to flash 4M1M to D1 mini
Replies: 13
Views: 1436

Re: Unable to flash 4M1M to D1 mini

Looks like a power supply issue, given the 1M build does work on these. Can you test with another USB cable? And preferrably on a (better) powered USB port, like a powered USB hub or USB3 port (those can deliver upto 900 mA) Some units sold as "Wemos D1 mini" have really poor quality volta...
by TD-er
16 Mar 2023, 12:33
Forum: ESP Easy: Software
Topic: WiFiAPMode doesn't work again
Replies: 3
Views: 1009

Re: WiFiAPMode doesn't work again

Yep, this is still an issue. Has been for quite some time already as I have an open PR for it to make it work again. But while working on that one, I ran into serious issues where toggling the WiFi actually messed up a node so badly that it wouldn't be able to use WiFi until it was completely flashe...
by TD-er
16 Mar 2023, 08:30
Forum: ESP Easy: General Discussion
Topic: ESP32 Zabbix Controller
Replies: 62
Views: 42382

Re: ESP32 Zabbix Controller

And maybe you can also make a pull request for the changes.
by TD-er
15 Mar 2023, 22:04
Forum: ESP Easy: General Discussion
Topic: Unable to flash 4M1M to D1 mini
Replies: 13
Views: 1436

Re: Unable to flash 4M1M to D1 mini

Just unplug the ESP so you can be sure no program is still trying to use the serial port. Then you can use just any terminal tool (for example Putty) to interface to the serial port. Or just use the web flasher: https://td-er.nl/ESPEasy/ The latest version now also supports a console. You need to us...
by TD-er
15 Mar 2023, 19:09
Forum: ESP Easy: General Discussion
Topic: Unable to flash 4M1M to D1 mini
Replies: 13
Views: 1436

Re: Unable to flash 4M1M to D1 mini

Can you use some terminal program to look at the console via serial after flashing a 4M image to see what is stated in the logs? Right now I have no clue where it may halt. If it is not able to make a file system, then it might be something related to the PUYA like behavior, or maybe flash frequency...
by TD-er
15 Mar 2023, 17:05
Forum: ESP Easy: General Discussion
Topic: Unable to flash 4M1M to D1 mini
Replies: 13
Views: 1436

Re: Unable to flash 4M1M to D1 mini

Yep and exactly what I wanted to know :) The flash brand isn't PUYA (unless they now use a different vendor ID) and it is indeed 4M flash. The "PUYA patch" isn't present in 4M builds, as there have not yet been flash chips > 1M which act as strange as PUYA does. So that could have been one...
by TD-er
15 Mar 2023, 16:52
Forum: ESP Easy: General Discussion
Topic: Unable to flash 4M1M to D1 mini
Replies: 13
Views: 1436

Re: Unable to flash 4M1M to D1 mini

Can you also check on the sysinfo page what flash size is detected?

The main disadvantage of 1M builds is that you can't update them via the webinterface.
Apart from that those builds are made with "LIMIT_BUILD_SIZE" defined which strips out quite a lot of nice-to-have features.
by TD-er
14 Mar 2023, 17:16
Forum: ESP Easy: Software
Topic: PMS5003 and mega-20230306 problem
Replies: 3
Views: 947

Re: PMS5003 and mega-20230306 problem

That interval value is really strange indeed. Since I'm using this plugin for an active project of mine, I know for a fact that the plugin is working. Even if the interval is set to completely unusable values, you should still see a number of log entries in the logs, when you give the command "...
by TD-er
14 Mar 2023, 12:52
Forum: ESP Easy: General Discussion
Topic: TaskValueSet
Replies: 18
Views: 1966

Re: TaskValueSet

TaskValueSetAndRun is just a shortcut for TaskValueSet and TaskRun. So a typical usecase is this: TaskValueSet,gps1,long,[gps#long] TaskValueSet,gps1,lat,[gps#lat] TaskValueSet,gps1,alt,[gps#alt] TaskValueSet,gps1,spd,[gps#spd] TaskRun,gps1 The last 2 commands can be replaced by a single call to Tas...
by TD-er
14 Mar 2023, 12:32
Forum: ESP Easy: Software
Topic: Set value of device
Replies: 4
Views: 943

Re: Set value of device

You can call TaskValueSet. However, if you want to run this on something other than a Dummy, you need to also check the checkbox on tools->Advanced "Allow TaskValueSet on all plugins" N.B. this then only sets the output value, but it isn't guaranteed the plugin actually uses this value for...
by TD-er
14 Mar 2023, 11:20
Forum: ESP Easy: General Discussion
Topic: ESP32 Zabbix Controller
Replies: 62
Views: 42382

Re: ESP32 Zabbix Controller

OK, so there is a new way to interact with Zabbix. This might indeed warrant a new controller, or if the protocol isn't that different, a checkbox in the controller settings for Zabbix to set the right protocol. But this doesn't mean all existing Zabbix environments out there will immediately be pha...
by TD-er
14 Mar 2023, 10:50
Forum: ESP Easy: General Discussion
Topic: ESP32 Zabbix Controller
Replies: 62
Views: 42382

Re: ESP32 Zabbix Controller

I don't see how creating a new one is better than just fixing what's apparently broken. Just a few pointers for you to test/check as I don't have a Zabbix server/service running here. - Check the timeout in the controller and set it to as high as possible to make sure this isn't a timeout issue. (e....
by TD-er
13 Mar 2023, 21:57
Forum: ESP Easy: General Discussion
Topic: Sendtohttp Json issue with firmware mega-20230306
Replies: 2
Views: 865

Re: Sendtohttp Json issue with firmware mega-20230306

What was the previous firmware version?

Is the IP address of the HTTP host local or somewhere on the internet?

What timeout is set in the controller, as it apparently also fails with a timeout.
by TD-er
13 Mar 2023, 16:13
Forum: ESP Easy: General Discussion
Topic: ESP32 Zabbix Controller
Replies: 62
Views: 42382

Re: ESP32 Zabbix Controller

That's absolutely not needed to do. ESPEasy does still have some .ino files and it can be compiled just fine using PlatformIO. Zabbix expects information in this format; Json += "{\"host\":\"" + zItemHost + "\",\"key\":\"" + zabbixItemList .key...
by TD-er
13 Mar 2023, 16:10
Forum: ESP Easy: Hardware
Topic: ESP32-S2 Embedded PSRAM
Replies: 20
Views: 12543

Re: ESP32-S2 Embedded PSRAM

If you have a sketch running which does not enable the USB emulation and the bootloader is erased, you might not be able to flash them with anything else via the USB port anymore. The only way to get them to flash again is wiring up an USB to serial adapter to the pins of Serial0 and toggle the rese...
by TD-er
13 Mar 2023, 15:38
Forum: ESP Easy: General Discussion
Topic: ESP32 Zabbix Controller
Replies: 62
Views: 42382

Re: ESP32 Zabbix Controller

That's absolutely not needed to do.
ESPEasy does still have some .ino files and it can be compiled just fine using PlatformIO.
by TD-er
13 Mar 2023, 15:36
Forum: ESP Easy: Hardware
Topic: ESP32-S2 Embedded PSRAM
Replies: 20
Views: 12543

Re: ESP32-S2 Embedded PSRAM

Let's move back one more step... How is the USB connected to the ESP? ESP32-S2 (and others which we don't yet support...) can be wired in 2 ways: - Directly to USB, where the ESP does emulate an USB device - External USB to UART chip, like the familiar CH340 and the 210x. The one that needs to emula...
by TD-er
13 Mar 2023, 15:32
Forum: ESP Easy: General Discussion
Topic: Cache Reader Plugin
Replies: 14
Views: 2271

Re: Cache Reader Plugin

Ah good to know.
by TD-er
13 Mar 2023, 11:59
Forum: ESP Easy: General Discussion
Topic: Cache Reader Plugin
Replies: 14
Views: 2271

Re: Cache Reader Plugin

On ESP8266 the RTC memory is very small, like 240 bytes. So this will flush to the 'cache files' every 10 "samples" (sends to C016) ESP32 does have a lot more RTC memory, but as some trade-off between not loosing too much data and not wearing out the flash, the data is flushed every 768 by...
by TD-er
13 Mar 2023, 00:12
Forum: ESP Easy: General Discussion
Topic: Cache Reader Plugin
Replies: 14
Views: 2271

Re: Cache Reader Plugin

Please first try a power cycle, to see if it will upload the 1st file. I think it might no longer be a problem if there are >1 cache files. It will also continue to upload new samples as soon as they are written to the flash. N.B. forcing download the CSV file will also trigger to save whatever is s...
by TD-er
12 Mar 2023, 23:29
Forum: ESP Easy: General Discussion
Topic: Cache Reader Plugin
Replies: 14
Views: 2271

Re: Cache Reader Plugin

There might (still) be an issue here if the write pointer is the same as the read pointer.
So maybe you can try to power cycle the unit, to make sure the read pos is actually 0.
The read pos and file nr. are stored in RTC memory, so it will be kept even through reboots, but not power cycle.
by TD-er
12 Mar 2023, 23:06
Forum: ESP Easy: General Discussion
Topic: Cache Reader Plugin
Replies: 14
Views: 2271

Re: Cache Reader Plugin

The position in the task info screenshot show you have a FilePos of 1824, so it has been sending something.
Do you have some MQTT explorer to look at topics?
Is the node allowed to publish to these topics?
Is the MQTT controller connected and doesn't loose connection?
by TD-er
12 Mar 2023, 22:39
Forum: ESP Easy: General Discussion
Topic: Cache Reader Plugin
Replies: 14
Views: 2271

Re: Cache Reader Plugin

To force flushing any 'cache' file on the filesystem, give this command:

Code: Select all

cachereader,setreadpos,0,0
To force sending the task info to the MQTT broker:

Code: Select all

cachereader,sendtaskinfo
by TD-er
12 Mar 2023, 22:07
Forum: ESP Easy: General Discussion
Topic: Cache Reader Plugin
Replies: 14
Views: 2271

Re: Cache Reader Plugin

It can either re-send trough the original task ("Send Bulk" unchecked) , or it can 'dump' it via MQTT ("Send Bulk" checked) You can also click on the "Download as CSV" button. When dumping to MQTT, the taskinfo will be sent to a separate MQTT topic (well at least there ...
by TD-er
12 Mar 2023, 18:05
Forum: ESP Easy: General Discussion
Topic: ESP Easy and an NTC - Possible?
Replies: 49
Views: 12151

Re: ESP Easy and an NTC - Possible?

The relation between temperature and measured voltage isn't linear, so you need to do a bit more.
On a small temperature range the response can be approximated by a linear interpolation.
by TD-er
11 Mar 2023, 22:54
Forum: ESP Easy: Software
Topic: P2P own Wifi Network
Replies: 6
Views: 1562

Re: P2P own Wifi Network

I think, you need ESPNOW. Look for example at project PJON - it uses it. https://github.com/gioblu/PJON/tree/master/src/strategies/ESPNOW I do use it for the -still work-in-progress PR- and the inter platform quirkyness is the reason why it hasn't been merged yet. However the last few weeks I did m...
by TD-er
11 Mar 2023, 22:52
Forum: ESP Easy: Software
Topic: need 8 serial interfaces for my project
Replies: 9
Views: 1746

Re: need 8 serial interfaces for my project

The remark Kimot made is maybe even the best one here. Do these energy sensors communicate via RS485? And thus, do you need to use some MAX485 for them? Can these sensors be set to a unique Modbus address? If they can't then maybe we can also add some multiplexer idea as those MAX485 also use some p...
by TD-er
11 Mar 2023, 22:46
Forum: ESP Easy: Hardware
Topic: BMP280 Accuracy – Four sensors, four values – How to calibrate?
Replies: 8
Views: 2497

Re: BMP280 Accuracy – Four sensors, four values – How to calibrate?

A few things to check: Try to see if the enclosure of the sensor is dented or bumped. I have had one just last week that was obviously not flat anymore on the top. Well, wasn't so obvious, only after looking at it when I saw the readings of 180C and 1300+ mbar. Another thing you could try is to add ...
by TD-er
11 Mar 2023, 14:47
Forum: ESP Easy: Software
Topic: need 8 serial interfaces for my project
Replies: 9
Views: 1746

Re: need 8 serial interfaces for my project

We have software serial included on ESP8266. We can add it, but that's quite a lot of work and I honestly think it will not work with many instances of SW serial as it does cause an interrupt for each bit received. For 1 instance this can somewhat work, but for multiple instances this will be loaded...
by TD-er
11 Mar 2023, 14:44
Forum: ESP Easy: Hardware
Topic: ds18b20 on serial pins TxD=GPIO01 or RxD=GPIO03
Replies: 15
Views: 2473

Re: ds18b20 on serial pins TxD=GPIO01 or RxD=GPIO03

Just add some task with a plugin that needs serial.
For example GPS, or whatever is present in the build you're using.
Then configure this task to use "Serial0 Swapped" and enable it.
This way GPIO 1 & 3 are not connected to Serial0 anymore.
by TD-er
10 Mar 2023, 20:25
Forum: ESP Easy: Hardware
Topic: ds18b20 on serial pins TxD=GPIO01 or RxD=GPIO03
Replies: 15
Views: 2473

Re: ds18b20 on serial pins TxD=GPIO01 or RxD=GPIO03

As long as the Serial0 is not used, I don't see any reason why it should not work. Especially if you're using the ESP's RX pin, you can even be sure there is no boot logs etc. being sent to the pin which might put any sensor into some undefined state. What you might want to try, is define just some ...
by TD-er
10 Mar 2023, 15:17
Forum: ESP Easy: Hardware
Topic: ds18b20 on serial pins TxD=GPIO01 or RxD=GPIO03
Replies: 15
Views: 2473

Re: ds18b20 on serial pins TxD=GPIO01 or RxD=GPIO03

Sounds like you don't have a pull-up resistor mounted for the 1-Wire data line. GPIO-0 and -2 both have a pull-up resistor on the ESP board, since those pins need to be pulled-up at boot. The others don't have such a pull-up resistor present. See the documentation page: https://espeasy.readthedocs.i...
by TD-er
08 Mar 2023, 23:25
Forum: ESP Easy: General Discussion
Topic: TaskValueSet
Replies: 18
Views: 1966

Re: TaskValueSet

Have you checked the checkbox on the Tools->Advanced page for "Allow TaskValueSet on all plugins" ?
by TD-er
08 Mar 2023, 21:08
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

Anyway, those changes have now been merged.
by TD-er
08 Mar 2023, 21:07
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

I've even seen the connected log + IP being reported at 1500 msec from boot, so there is still some room for improvement. However, there is always the risk we may put too much stress on the node, causing poor quality ones to fail. Don't push the limits too far.. it all looks already really good. ;)...
by TD-er
08 Mar 2023, 20:25
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

It also does seem to work on ESP32 :) 138 : Info : INIT : Booting version: ESP_Easy_mega_20230308_normal_ESP32_4M316k, (Self built) bugfix/WiFi_Connect_speed_8a62b24 (ESP32 SDK 4.4.3.20230129) 139 : Info : INIT : Free RAM:279760 141 : Info : INIT : Soft Reboot #1 Last Action before Reboot: Intended ...
by TD-er
08 Mar 2023, 20:17
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

If this would happen on every start then definitely yes!!! :) On every start without power loss. I will later add a preferred WiFi channel, which can then be scanned first as single channel. If this is enough, it will take roughly 150 msec for 1 channel to scan. I also would like to try to always s...
by TD-er
08 Mar 2023, 19:33
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

Is this better? 392 : Info : WIFI : Set WiFi to OFF 610 : Info : INIT : Booting version: ESP_Easy_mega_20230308_climate_ESP8266_4M1M, (Self built) bugfix/WiFi_Connect_speed_84bcc5c (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support) 611 : Info : INIT : Free RAM:27064 612 ...
by TD-er
08 Mar 2023, 18:05
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

The RTC is being cleared in quite a lot of occasions.
Maybe a bit too often.

I'm thinking of other ways we can reduce the connection time.
One way can be to store the BSSID/channel in the settings, or maybe have a preferred channel to try first as I can also scan per channel.
by TD-er
08 Mar 2023, 17:42
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

[...] Ahhh.. 5 minutes is the magic number. Thanks! I´ll give it a try... It may not be this magic number, as there are code paths where this RTC is being cleared while not needed. And I looked into the code, the RTC is now set whenever the connected event is being processed. It used to be this 5 m...
by TD-er
08 Mar 2023, 17:34
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

Ah, I think I know why it might scan twice.

If in the first scan no known AP was found, it will scan again, without throwing away the previous scan results.
So it will then have the combination of both scans as possible candidates to pick from.
by TD-er
08 Mar 2023, 17:30
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

[...] It seems, that channel scanning takes a long time. Two questions regarding this: 1. Why is there a need of scanning at all when "Use Last Connected AP from RTC" is enabled? 2. Why is this scan happening two times [...] It shouldn't. I did test it here and it was reconnected on my no...
by TD-er
08 Mar 2023, 16:08
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 28404

Re: Very long time connecting to WiFi

When the GH Actions build is done, can you test this build: https://github.com/letscontrolit/ESPEasy/actions/runs/4365615113 N.B. the commit I merged this morning also broke the entire WiFi connect process, so I had to immediately look into this. So as soon as this PR is successfully built, I will m...