kmizta / m5stack-co2-monitor

33 stars 6 forks source link

M5Stack not showing any result. #2

Open RobMBSos opened 3 years ago

RobMBSos commented 3 years ago

Dear @kmizta I am testing your .ino code but I can't make it work. I commented, "ambient" and "pushbullet" but it seems it is not able to work. I am programming it via Arduino IDE with the M5Stack board selected and the process goes without any error and in the terminal, I could read that the initialization was good but no messages like "waiting for new data" or CO2 parameters, the display seems to not initialize. I did some tests with examples and the M5Stacks seems to work fine with display examples and "factory test", any thoughts? Thanks in advance.

kmizta commented 3 years ago

Hi @RobMBSos Could you please try v1.0 of this repository? There's no relevant code to ambient or pushbullet in v1.0. v1.0 is suitable If you don't use them, and it will work.

RobMBSos commented 3 years ago

Hi @RobMBSos Could you please try v1.0 of this repository? There's no relevant code to ambient or pushbullet in v1.0. v1.0 is suitable If you don't use them, and it will work.

Hi @kmizta and thanks for your help. I used v1.0 code and programmed it but it seems I am having the same problem. The display is off and there is no data at the terminal, tested with two different type C cables.

kmizta commented 3 years ago

Hi @RobMBSos Did you see serial console when you power M5Stack? SCD30 might not be connected properly. If SCD30 is not connected properly, M5stack outputs "Air sensor not detected." to serial console. Please check wiring and serial console.

RobMBSos commented 3 years ago

Hi @RobMBSos Did you see serial console when you power M5Stack? SCD30 might not be connected properly. If SCD30 is not connected properly, M5stack outputs an "Air sensor not detected." to the serial console. Please check wiring and serial console.

Dear @kmizta No serial console data when the program is uploaded. SCD30 tested but not a message in the serial console. I Will try to test the library is working and update you. Thanks for your time. UPDATE1: Tested M5Stack i2C tester, it detects a device in address 0x61 and 0x75 so as I understand it can "talk" with it. I am connecting SDC30 to G21 and G22 and trying with basic reading code but it can't read the data from the sensor.