Odor Terminator

by brandon shen0725 in Circuits > Arduino

55 Views, 2 Favorites, 0 Comments

Odor Terminator

image.jpg
臭味終結者

This is the Odor Terminator, using photocells to detect. The brain of this machine is controlled by an Arduino Leonardo. As soon as you sit on the toilet and leave, the timer starts for ten minutes. From 0 to 3 minutes, the red light is on (smelly), from 3 to 6 minutes, the yellow light is on (bearable), and from 6 to 10 minutes, the green light is on (not smelly)

Supplies

Some jumper wires

2 photocells

corrugated plastic board

Arduino Leonardo

hot glue gun

breadboard

red LED yellow LED

green LED

resistors

Circuit and Program

IMG_2475.jpeg
image.jpg

The first photocell is connected to analog input A0.

The second photocell is connected to analog input A1.

The red LED is connected to digital output 9.

The yellow LED is connected to digital output 10.

The green LED is connected to digital output 11."

Code

Due to different environments, the value of the photocell may need to be adjusted accordingly.

Downloads

Assembly Appearance

IMG_2500.jpeg
image.jpg
image.jpg

Use corrugated plastic to make two 18x17 cm boards, two 17x10 cm boards, and two 18x10 cm boards. Then use a hot glue gun to stick them together. four 11*6 cm boards two 4*6 cm boards

Downloads