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

fix: no readings from air quality sensor 🐛 #327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Theo-Miquet
Copy link

PM25 module could not read from the air quality module, I fixed it to make it work again.

@krzysztofkrzeslak
Copy link

Hello, Indeed lost whole day fighting with it, still no success, any clues someone?

@Theo-Miquet
Copy link
Author

Hi,

Are you able to read at least the temperature and humidity ?

If that's the case then you should be able to read all the other values by using my code

If you're not able to get temp and humidity then you probably have the wrong drivers, I believe there are drivers for sht 20 and 30 but the documentation is pretty obscure

@krzysztofkrzeslak
Copy link

Hi,No, exactly I have issues with temperature and humidity this ENV.h is mysterious I just skiped that for now and maybe plan to use other library.Again thanks for your work!

@krzysztofkrzeslak
Copy link

btw this should be merged to master

@krzysztofkrzeslak
Copy link

I think that drivers for sht are in the ENV.h? or there's only definition of sht model. I will try to make it working and share :)

@Theo-Miquet
Copy link
Author

This is the include I used :

#include "DFRobot_SHT20.h"

DFRobot_SHT20 sht20;

I can share the content of DFRobot_SHT20.h if needed

I don't have access to the M5Stack modules anymore since it was a school projet, but I made it work using SHT20 include instead of SHT30

@Theo-Miquet
Copy link
Author

I forked my working school project and made few adjustments so that you should be able to display the M5Stack readings :

https://github.com/Theo-Miquet/M5_Stack_LoRa_Communication/tree/sensor_with_display

Unfortunately, as I mentionned earlier, I have no way to test this since I do not have access to the M5 modules anymore, I hope it works on your end !

@krzysztofkrzeslak
Copy link

This is the include I used :

#include "DFRobot_SHT20.h"

DFRobot_SHT20 sht20;

I can share the content of DFRobot_SHT20.h if needed

I don't have access to the M5Stack modules anymore since it was a school projet, but I made it work using SHT20 include instead of SHT30

Great this is everything I needed to know, already I made a good use of this code as im especially interested in testing laboratory enviroments and with this I can detect particles as small as 0.3um which is roughly size of bacteria and any biological contamination.

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

Successfully merging this pull request may close these issues.

2 participants