Commit Graph
12 Commits
Author SHA1 Message Date
TD-er b7b69622b7 [Cleanup] Prevent float to double promotion
May reduce code slightly, but at least it makes execution faster.
2021-09-07 09:33:41 +02:00
TD-er 4e35f412e6 [Libs] Don't use "byte" as type anymore 2021-07-03 00:49:41 +02:00
fcauwe 2bcad48eab [P056] Fixed bug when SDS sensor is not reporting
Fixed bug that makes the sensor not reporting values even when everything is well connected.
The problem is that the Sensor is in "Query reporting" mode, and therefore it is not actively sending values.
The fix consist of setting the Sensor in "Active reporting" (command 2,1,0), when setting the working during configuration.
2020-11-15 10:51:22 +01:00
TD-er 7f9c8e3561 [ESPEasySerial] Make GPIO pins selectabel on ESP32 2020-10-02 16:58:03 +02:00
Gijs Noorlander 6f1dcae5e1 [new new] Prepare for upcoming changes of 'new' in esp8266/Arduino
See https://github.com/esp8266/Arduino/pull/7536
2020-08-30 20:19:42 +02:00
TD-er 4e32d98fbc Merge pull request #2950 from TD-er/feature/I2C_uart_serial
[I2C UART] Add support for NXP's SC16IS752 I2C to UART bridge
2020-03-18 13:24:28 +01:00
Gijs Noorlander 80cdb7b552 [ESP32] Add SDS011 support for ESP32
As reported on [the forum](https://www.letscontrolit.com/forum/viewtopic.php?f=5&t=7520&p=43032#p43032)
2020-03-15 20:30:22 +01:00
Gijs Noorlander 16b9399456 [I2C UART] Limit calls to serial.available() 2020-03-11 09:12:59 +01:00
TD-er c1e13a0392 [GPS] Serial wrapper support including ESP32 2018-12-22 02:10:02 +01:00
TD-er e7764ca7e6 [PIO build] Build issues caused by incorrect precompile processing
It looks like `ESP32` is not defined anymore, which leads to various issues when building.
2018-07-08 00:29:11 +02:00
Gijs Noorlander d62b692b3b [SDS011] Allow the sensor to sleep to extend sensor lifetime (#668)
* [SDS011] Add send commands to sensor

In the library used to communicate to the SDS011 sensor was only support to receive data from the sensor and not query the sensor or set another mode.
This is needed for #499 , to let the sensor sleep.

N.B. code is not yet tested, only implemented while reading the datasheet "Laser Dust Sensor Control Protocol V1.3"

* [SDS011] Lessen load on ESP by polling less frequent and use SoftSerial

The default setting were to set the delay to 0 and use an own software serial implementation.
This caused frequent timeouts on the web interface, WiFi reconnects, etc.
Now the already present SoftSerial is being used. This will gather all the data from the serial port and thus there is no need to poll 50 times a second.
Now the ESP is much more responsive.

* [SDS011] Allow the sensor to sleep to extend sensor lifetime

The internal laser of the SDS011 only will last for about 1 year when ran continuously.
When the RX of the sensor is connected, it can be set to sleep for N minutes between measurements. This will extend the lifetime of the sensor and reduce power consumption.
This sleep time is stored inside the flash of the sensor, so it can be set once and then the RX on the sensor could be disconnected again to be used for other purposes.
2018-01-02 12:22:57 +01:00
Jochen Krapf e09f5ca0a1 Rework of Plugin _P056_SDS011-Dust (#451)
* First rework

* Moved classes to library

* Finished rework
2017-07-30 00:49:10 +02:00