2Prepare the Components
Cut out three male headers and solder them onto the GND, PWR, and IN pin.
Trim the perf board to toughly 80mm x 35mm. I find it easier and cleaner to do this with a diagonal cutter instead of a saw.
Trim three female header pins to match the male header of the Particle Photon and CCS811.
Place the components as shown. Note that the piezo buzzer should be underneath the CCS811.
Wire and solder according to the schematic.
3D printer the enclosure and the diffuser with the following settings (Files on GIthub):
Enclosure - Black PLA, 20% infill, 0.2mm layer height.
Diffuser - White PLA, 100% infill, 0.2mm layer height.
The whole print should take around 2 hours.
Secure the enclosure to the bottom of the enclosure with hot glue. Place the diffuser on the inside of the top cover cutout. The friction should hold it in place, but if it's a bit loose, use clear tape to secure it.
Pop on the top cover and connect the usb cord, you are now ready for coding.
Create a new project in Blynk.
Setup the widgets as shown. The settings for the SuperChart will depend on you preference, but you can leave it on default to start.
The code for this project can be found on my Github. Since it works in the Particle Web IDE, you can just simply create a new project and paste the code in.
char auth = "Your Auth Token";
The only thing you need to change is the Auth Token, which should be sent to your inbox when you created you Blynk App from last step.
Here are the libraries you need to include in your project. I use the Spark Fun CCS811 library because I was having trouble getting the Adafruit one to work properly.
Now just upload the code to your Photon and you are finished. Happy printing!