Alan numitron clock
SNES Pi Webserver
USB Volume/USB toys
SNES Arcade cabinet
Game boy projects
Home Presence Detector
Rand Nerd Tut
Carnet du maker (fr)
ATmel blog (defunct)
dust counterI found these 5USD dust sensor (counter is a big word in fact) on eBay and tried it. Since I do woodworking as a second hobby, having a sensor to make sure I'm now brownlungig myself into pneumonia. So one stone two birds.
PrincipleThat cheap module has a IR led and sensor that is calibrated to return a voltage that is function of the volume of dust in the air. I put a small led bar in front since I'm not interrested by the value, an indication of the air quality is enough for me.
Points of interrest
Bill of materials
GP2Y1010AU0F Dust Sensor how to usePinout
On mine, the connector wire colors are (looking at the plug on the sensor, wires bottom, left to right):
The dust sensor wiring schema from the doc
Voltage to dust density approximation
Datasheet vs. homemade approximation
I decided to use 2 linear approximations, using 5V:
SchematicsFollow the schematic from the datasheet for the Dust sensor. The board is a WordClock board because it was proper in term of size. The Led bar is linked via a bunch of 1k ohm resistors to pins 27 to 15 (arduino A4 to 9), and the Dust sensor pin connected to A5 for reading and 8 (arduino) for driving the LED.
Source codeIt's an arduino script because I was too lazy to write it properly in C in Atmel Studio. Code is here on GitHub.
Mounted on its holder, backk has a scavended Liion battery, a Liion charger and a boost converter to 5v
Helpful sourcesPeople who had problem with this LCD:
All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated)
electrogeek.cc ~ Formerly known as Kalshagar.wikispaces.com (AlanFromJapan [2009 - 2019])