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
Multiple AM2320 --> CRC FAILED #2942
Comments
It is probably the same issue as for some other plugins when running multiple instances of the same plugin. They probably share temp values which should not be shared. |
Is it even possible to have more than 1 of these sensors on an I2C bus? It's address is fixed (0x5C), so it would need a separate I2C bus for each sensor, like done in this Arduino library https://github.com/lazyscheduler/AM2320 (comments in Russian...) |
If you cannot change the I2C address, then it is indeed not possible to use multiple instances as we don't support multiple I2C buses. |
But it is possible to use 1wire legacy mode, see datasheet |
Is that supported in our plugin? |
It should work, choose DHT11, we can add description/hint in plugin configuration |
connect SCL-GND and SDA to gpio |
What is the point of having I2C sensors if it is not possible to use them on the data bus? |
Will be ok only if you have only few sensors, |
Well you should ask the manufacturer that question, why it makes sensors that cannot have their address set. |
Is there good I2C temp & humidity sensors compatible with espeasy ? |
A couple of BME280's work very good over here, and you can use 2 on the same bus, as the address is configurable (check out the images on Banggood or AliExpress to see if they have the address selection connections available on the board, not all have that!). Check also that you receive actual BME280's, as the BMP280 has a lot of similarities but no humidity sensor, read this: https://goughlui.com/2018/08/05/note-bosch-sensortec-bmp280-vs-bme280-sensor-confusion/ |
@airvb but please try it, for other users. how. many sensors you need to connect? |
|
@airvb did you tried to force 1wire mode? |
sorry for the response delay. i"ll buy BME280's in my next ali 's command to test it . Thanks all for yr response. |
Just make sure you buy the correct ones. |
@TD-er so we can add AM2320 to be supported in 1wire mode (DHT plugin) |
What is needed for that? Any change in the plugin code? |
nothing, just set it as DHT11, and hardware: connect SCL to GND and SDA to gpio with 10k pullup as usual with DHT sensors |
So only documentation? |
If you have to make a modification , it could be a good thing to inform than I2C sensors MUST have different addresses for multiple sensors ( thing that isn't possible on AM2380 and maybe other ) |
@uzi18 Yep that's for sure a nice feature to have. |
It's strange in my case this does not work as expected. All three sensors are at the same place, first one is connected to I2C bus and gives the correct data, remaining two connected as legacy in accordance the instructions above. I wonder if it's due to China's vendor or if there's another issue. There's no other plugin configured and no other device attached, HW is NodeMcu Lua ESP8266 CH340G. |
Hello , |
check if they work correctly in i2c mode |
@airvb Thanks for the hint, I have already tested but it's all the same, doesn't matter if there's one or two sensors in legacy wiring. |
Yeah but there's also recommendation in datasheet to use VCC 3,3V in 1wire mode if the cable length is shorter than 1m (this is my case ) otherwise there may be troubles with communication. |
This seems to have been fixed some time ago. Can be closed. |
Hello .
Tested with :
ESP_Easy_mega-20200310_dev_ESP8266_4M1M
ESP_Easy_mega-20200310_test_ESP8266_4M1M_VCC
What is expecting :
Having 2 AM2320 sensors on I2C line.
Each sensor has been tested individually
They are working properly
When I connect the second sensors, log message shows : AM2320: CRC failed
If i disconnect one sensors, values Temperature & Humidity goes with the same values to both device
Trying sensors connected with 10K pull-up resistors on SDA and SCL et +5V : same snag.
I have a LCD connected on I2C and it's working well.
I can help. I'm in the trial phase.
Thanks
The text was updated successfully, but these errors were encountered: