/M5AirQuality

AirQuality monitoring for M5Stack

Primary LanguageCMIT LicenseMIT

M5AirQuality

basic grey fire core2 aws cores3

licence language size version activity

Many thanks to them and all my donors🙏🏻

This project is a little air quality monitor for M5Stack and Unit CO2 (SCD40).

Compilation

First, edit platformio.ini file and change default_envs target :

  • default_envs = core for Core,
  • default_envs = core2 for Core2
  • default_envs = cores3 for Core S3.

You can compile the source code and flash your M5Stack.

Usage

Connect Unit CO2 to port A (I2C).

Use left and right buttons to adjust brightness.

About M5GO2 module for M5Stack Core2 and port C

It's possible to use PORT C (the blue one) if you're using an M5GO2 module for M5Stack Core2. Take a look at file functions.h, lines 105 ~ 107 and change this,

  // Init I2C
  Wire.begin();          // Port A
  //Wire.begin(14, 13);  // Port C available on M5GO2 for Core2
  //Wire.begin(17, 18);  // Port C available on M5GO3 for CoreS3

by this,

  // Init I2C
  //Wire.begin();        // Port A
  Wire.begin(14, 13);    // Port C available on M5GO2 for Core2
  //Wire.begin(17, 18);  // Port C available on M5GO3 for CoreS3

About M5GO3 module for M5Stack CoreS3 and Port C

It's possible to use PORT C (the blue one) if you're using an M5GO3 module for M5Stack CoreS3. Take a look at file functions.h, lines 105 ~ 107 and change this,

  // Init I2C
  Wire.begin();          // Port A
  //Wire.begin(14, 13);  // Port C available on M5GO2 for Core2
  //Wire.begin(17, 18);  // Port C available on M5GO3 for CoreS3

by this,

  // Init I2C
  //Wire.begin();        // Port A
  //Wire.begin(14, 13);  // Port C available on M5GO2 for Core2
  Wire.begin(17, 18);    // Port C available on M5GO3 for CoreS3

Credits

Many thanks to...

Project Author Link
M5Unified Lovyan03 https://github.com/m5stack/M5Unified
FastLED FastLED https://github.com/FastLED/FastLED

Donations

Special thanks to Rolf Schroeder DL8BAG, Brian Garber WB8AM, Matt B-Wilkinson M6VWM, Robert Agnew KD0TVP, Meinhard Frank Günther DL0CN, Johan Hansson SM0TSC, Tadeusz Pater VA7CPM, Frederic Ulmer F4ESO, Joshua Murray M0JMO, Mark Hammond N8MH, Angel Mateu Muzzio EA4GIG (2 times 🍷🍷), Hiroshi Sasaki JL7KGW, Robert John Williams VK3IE, Mark Bumstead M0IAX, Félix Symann F1VEO, Patrick Ruhl DG2YRP, Michael Beck DH5DAX, Philippe Nicolas F4IQP, Timothy Nustad KD9KHZ, Martin Blanz DL9SAD, Edmund Thompson AE4TQ, Gregory Kiyoi KN6RUQ, Patrick Samson F6GWE, George Kokolakis SV3QUP, Ambrose "Bo" Barry W4GHV, Roger Bouche F1HCN, Christopher Platt, Pascal Paquet F4ICR, Gregory Kiyoi, Ning Yang BH7JAG, Mitsuhiko Nagasawa JL1LYT, Mike Mann G4GOC, David Cappello, Matt Brinkhoff KB0RXC, Franklin Beider WD9GZ, Robrecht Laurens ON4ROB, Florian Wolters DF2ET, James Gatwood WA9JG, Christoph Gässler DL6SEZ, Roger Kenyon WB2YOJ, Jean-pierre Billat F1RXM (2 times 🍷🍷), John Sheppard G4WOD, Jean-Cyrille Vercollier F6IWW, Kenneth Goins Jr, Tim Cowell G6GEI, Andreas Macrides M0FXB, Bogdan Manolache W4MHI and Jacob Mol N8JCM for their donations. That’s so kind of them. Thanks so much 🙏🏻

If you find this project fun and useful then buy me a glass of wine 🍷 🤗

You could use the code F4HWN in order to get 5% discount on the M5Stack shop 🎁

By the way, you can follow me on Twitter and post pictures of your installation with your M5Stack. It always makes me happy ;)