SXAM: A Indoor Ambient Quality Monitor

XAM is a indoor ambient quality monitor.
SXAM A Sparkio Indoor Ambient Quality Monitor

SXAM (Spark to Xively AMbient quality monitor), is an ambient quality monitor that logs 4 environmental parameters to the and display the ambient status by using for RGB leds.

SXAM logs:

  • Humidity
  • Temperature
  • Ambient noise
  • Brightness

Note: is now
This project it is built upon the spark xivelylib you can found here:
A web page can be used to set the xively feed and API token.

The WiFi network connection can be configured through the app.
For humidity and temperature a DHT22 sensor it is used.

To measure ambient noise an analogic noise sensor built with a electret microphone and a opamp it is used.

Brightness it is measured by a BH1750 sensor board.

I would like to thank my friend Matteo for cutting me the beautifull vinyl sticks for this project.
RGB leds are WS2812B, that types of leds are easy to drive.
For each of those sensor appropriate library are used.

Ambient noise and brightness are sampled 10 times per second, in order to give the led feedback almost instantly. Humidity and temperature have slower samplerate.
Ambient levels average it is computed and then posted to every minute.
Each parameter can be changed at compile time.To run this project you have to create a new app in the Spark Build environment. Then you should add that libraries:

  • NeoPixel
  • AdaFruit_DHT
  • XivelyLIB
  • BH1750LIB
  • AudioGetAverageLIB
Add a config.h file to your project.
Copy and past the source of this project (see below for the project code), to your newly created file.
Edit the config.h according to your needs.
Now you should be able to compile this code and run it on your device.
It will be be easy to add new sensors.
For more detail: SXAM: A Indoor Ambient Quality Monitor

READ  1.2V to 35V DC-DC Converter

JLCPCB – Prototype 10 PCBs for $2 + 2 days Lead Time
China’s Largest PCB Prototype Enterprise, 300,000+ Customers & 10,000+ Online Orders Per Day
Inside a huge PCB factory:

Leave a Comment

= 3 + 8

Read previous post:
DIY LM1876 Dual 20W Audio Power Amplifier

We are building another enjoyable weekend DIY project. This is an audio power amplifier based on LM1876 which can deliver...

Scroll to top