Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ESPEasy work with SDS011 only in hardware serial mode. #5168

Open
BsB5068 opened this issue Nov 22, 2024 · 5 comments
Open

[BUG] ESPEasy work with SDS011 only in hardware serial mode. #5168

BsB5068 opened this issue Nov 22, 2024 · 5 comments

Comments

@BsB5068
Copy link

BsB5068 commented Nov 22, 2024

my HW esp8266 use sht30 via i2c on:
sda gpio0
scl gpio2

and SDS011 soldered to
sds tx-esp gpio5
sds rx-esp gpio4
if i choose this GPIOs in configuration sensor never began to run.

bug1
bug2
bug3

when i solder sensor to GPIO13 and use hardware serial remapped to this GPIO it works fine.
this way:
bug4

so i guess the problem in software serial.

tried ESPEasy_mega_20240822_ESP82xx_binaries.zip
and older ESPEasy_ESP82xx_mega-20221224.zip, ESPEasy_mega-20180126.zip

@tonhuisman
Copy link
Contributor

tonhuisman commented Nov 22, 2024

Did you double-check the RX/TX pins? Wouldn't be the first time those are configured backward... 🤔

NB: This would have been a question for the Support forum

@TD-er
Copy link
Member

TD-er commented Nov 22, 2024

Also gpio 4 & 5 on ESP8266 are by default set to the I2C bus.
Make sure it isn't set to the I2C bus on the hardware tab in the ESPEasy configuration.

@BsB5068 BsB5068 changed the title [BUG] ESPEasy work with SDS010 only in hardware serial mode. [BUG] ESPEasy work with SDS011 only in hardware serial mode. Nov 22, 2024
@BsB5068
Copy link
Author

BsB5068 commented Nov 22, 2024

yes, i checked it many times.
my i2c bus configured as
SDA gpio0
SCL gpio2
and work excellent with sht30.
so gpio 4 and 5 can't be occupied by i2C

@BsB5068
Copy link
Author

BsB5068 commented Nov 22, 2024

i've got PCB for this project, but want to use espeasy instead of airRohr firmware.
5332374019254640950
https://sensor.community/en/sensors/airrohr/

@TD-er
Copy link
Member

TD-er commented Nov 22, 2024

Has this sensor been used with other firmwares?
I know that for example Tasmota changes some settings in the sensor (or at least they did do this) which may cause read issues when used with ESPEasy.
However you did mention it does work with HW serial, so I guess it might not be the issue here.

Not 100% sure what it is what Tasmota changes, but it could be some sleep setting...

Ton did mention you might also need to double check the RX and TX (or simply swap the defined pins when using Software Serial) as it is quite easy to make this mistake as you need to connect the RX of the ESP to the TX of the board and vice verse.

Not sure if there is a 'beta' ESPEasy build available for ESP8266 which has this plugin included. If there is, you could also try that one as it is using a different version of the SW serial library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants