m5stack / AirQUserDemo

10 stars 5 forks source link

Is this the demo that is installed in the shipping units? #1

Open augmentedtraffic opened 7 months ago

augmentedtraffic commented 7 months ago

The file system and display don't seem to work with this code. I can read the sensors etc but can you upload the latest code that is shipped?

thanks

lbuque commented 7 months ago

I have updated the code, please try it.

augmentedtraffic commented 7 months ago

thanks it works now but a bit different than the factory version - some flashing. I was able to develop my own working version for my purpose - great device - focusing on maximizing battery life, so the VOC warmup time (2 minutes?) makes it a bit tricker to go to deep sleep and wake up every so often but I think it seems to be preserving battery.

andrico21 commented 7 months ago

@augmentedtraffic any plans to publish your version? :)

augmentedtraffic commented 7 months ago

https://github.com/augmentedtraffic/ALKAIRQV2_Public

Note it only send out via MQTT - but it lasts all day on the battery

andrico21 commented 7 months ago

https://github.com/augmentedtraffic/ALKAIRQV2_Public

Note it only send out via MQTT - but it lasts all day on the battery

It seems repo is private now :) Mqtt is great, that's what original demo misses

augmentedtraffic commented 7 months ago

updated - sorry about that - I use CloudMQTT - but any should work - there's a mode if you hit the lower left button which disabled the auto sleeping mode (at the expense of battery life) - also I enable multiple Wifi SSIDs so you can use it wherever you go if you tend to switch wifi hotspots - i used the same wifi password (but you extend the code to change that easily). I bricked my device (when I didn't set the IDE settings for the device exactly as is required) so follow the M5Stacks settings exactly (just reload the factory demo or a hello world if you brick). I could probably have used proper JSON in sending out the MQTT so it can be ingested into Home Assistant but I have my own ecosystem I just tapped into.

jonhassall commented 6 months ago

..I bricked my device...

Was the bricking permanent or recoverable?

augmentedtraffic commented 6 months ago

..I bricked my device...

Was the bricking permanent or recoverable?

You should be able to reflash the factory demo or try uploading the blink and example. These typically recover when you upload firmware that bricks he device

jonhassall commented 6 months ago

You should be able to reflash the factory demo or try uploading the blink and example. These typically recover when you upload firmware that bricks he device

I mean was your bricking recoverable?

augmentedtraffic commented 6 months ago

You should be able to reflash the factory demo or try uploading the blink and example. These typically recover when you upload firmware that bricks he device

I mean was your bricking recoverable?

Yes. It's really difficult to truly brick an Arduino device

jonhassall commented 6 months ago

Ok, glad to hear it.