-
2Prepare the Components
-
4Enclosure
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 lose, use clear tape to secure it.
Pop on the top cover and connect the USB cord, you are now ready for coding.
-
6Code
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 your Blynk App from the 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!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.