-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
SGP 30 Adafruit I2C dont work! #2586
Comments
If a device cannot be found via I2C scan, then it is a connection issue. I just did a quick look at the code we currently have and I think this library and/or plugin does need to be changed for sure. It is also done wrong in the new version of the library. Edit: |
I have the same problem. All time TVOC: 0 and eCO2: 400 |
Well, as I don't have the sensor myself, I first have to get one (and some time) in order to fix it. Edit: |
Hi. How are things going?) Has the sensor arrived? |
Nope, apparently it was send without (working) tracking number, so have to wait. :( |
Happy New Year to all))) Any news about the sensor? |
I got a few times already the notification from the mail app that they would deliver it "today". |
Hello! Any news about the sensor? |
It has been delivered :) |
Still not working :) Any news? :) |
Have been quite busy last weeks (moved to a new house), but I promise I will have a look at it this week. |
I've now pulled out this sensor to look into it. (took a while to find it back, so I now have a rather clean desk) I've ordered this one from Ali Express and I'm looking at the specs |
Ah, the SOT23 package with "56k5" on it is a 1V8 voltage regulator so that should make it possible to power it from 3V - 5V. |
OK, initial results. But apart from that my sensor does not show any values other than 0.0 for TVOC and 400 for eCO2. So it does seem to be a different sensor from what Adafruit used to create the library. Edit: |
I'll leave the sensor running for a while and will log the values to see if it ever changes. |
Hmm looking in the datasheet, it looks like the plugin as it was, would never have worked at all, as it is calling the IAQ init on each read. |
Hi. How's it going? Any luck? |
The fixed plugin was already merged about a month ago. |
Wow cool. Go for a test)) |
it only send TVOC data to MQTT broker, but no eCO2 |
What controller? Domoticz is a bit strange that it does need to have the values in a very specific order for the kind of device you selected in Domoticz. If it is also only outputting the first value on other controllers, then it is a bug for sure. |
No. I use Openhab and Mosquitto MQTT broker. But It does not send eCO2 data even to MQTT broker, i can not see even it's topic. I use MQTT.fx to monitor all MQTT data. |
Then that must be a bug I guess. |
Found it. Device[deviceCount].VType = SENSOR_TYPE_SINGLE; It should be changed into |
See discussion here: letscontrolit#2586 (comment)
@TD-er The problems are starting when you wish to add the SGP30 sensor from AliExpress as a third or fourth i2c device! |
Most likely all these sensors have pull-up resistors installed, and having 4 of these in parallel, will divide the resistance by 4, and that is probably too low. |
Theory of the pull-up resistors sounds plausible. |
Yes, some sensor modules have 10k and some 4.7k pull-up resistors, the cables are ribbon 10cm with JST XH-2.54 connectors. So, @tonhuisman , @TD-er , any solution or idea (except for desoldering the resistor array)? |
If you place several of those parallel, you get a lower netto resistance. |
Yeah, and imagine mixed with a 10k resistors in parallel too. Any quick fix? |
Remove the pull-up resistors from the one you try to add now. |
I didn't want to mess with the resistor arrays, so, I removed the resistors from the cheapest sensor modules, BMP180 and BH1750, now there is only 2x 10k left, before was 2x 10k and 2x 4.7k, now it's everything running just fine. Thank you for the help you gave me! 👍 🥇 (entire day was eating s... whit this). 💩 🎉 |
The effective pull up you had was 1.6k, with 2x 4k7 and 2x 10k. |
Yeah, it's on the lower limit, but I just realized that the resistor array can't be removed due level shifting. |
That,s my second attempt.
Adafruit have a new lib for the SGP 30, its the Libnumber 1.05.
https://github.com/adafruit/Adafruit_SGP30
Lady ADA say , its for the new SGP 30 and its clear the Problems with the I2C Bus.
Your Libnumber is ESPEasy/lib/Adafruit_SGP30-1.0.0.13/
I work with ESP_Easy_mega-20190830_test_ESP8266_4M_VCC.bin.
I have one BME 280 and one SGP 30 on Bord, and the BME 280 works well.
I am using an ESP 8266 E.
I work with an other Bord only with one SGP 30.
It is the same problem.
I check the I2C Bus and found under 0x58 nothing, only I2C Addresses in use.
So i think its only the problem from the Lib.
The Device SGP 30 have TVOC the same time 0 and CO2 400.
Thank you
Joachim Vocke
The text was updated successfully, but these errors were encountered: