Introduction: Toilet Sign

It is a equipment that can help people know is there people inside the bathroom.

Step 1: What You Have to Prepare?

Arduino:

Arduino Uno, Breadboard, Switch

Resistors(5) [ Yellow (3) Blue (2) ]

Connecting wires(17)

Red LED (9)

Push Button (2)

(Buy from school)

Outward appearance:

Paper, Box, Pencil, Eraser, Scissor, Ruler, Think rope, hook

(buy from Taiwan stationary store

address: No. 616, Beian Road, Zhongshan District, Taipei, Taiwan)

Arduino this program:

Step 2: ArduBlock

How to put the ArduBlock?

This is the link of ArduBlock I use. You can get the same website. Download the Arduino
www.DavidHuangLab.com

It is the picture of how to put

In step 7 there is a video that clearly show how to put it.

Step 3: Breadboard

How to put the Breadboard?

The website that I use for my breadboard electronic file:

https://www.tinkercad.com/dashboard

Step 4: Outward Appearance

It is all the picture that show the step

In Step 7 there is a video that clearly shows all the steps go together.

I am using a box to cover the breadboard. Than, using paper to cover on the sign.

The LED lights can change when you are choosing to use on girls toilet or boys toilet.

The red LED lights mean girls

The blue LED lights mean boys

Step 5: Step to Follow

It is a equipment that using in bathroom or public toilet.

Sometimes we can't know is there people inside. Either when the door is close.

When we go inside the bathroom we can press the bottom.

The LED light will be open. The people in outside can know there is people inside.

When you finish. You can press the bottom again. The light will be close.

Another people can use it again.

It can be use over again and again. It will help more people.

Step 6: Run a Program

Programing code:

https://create.arduino.cc/editor/Sophie1357/cfbd72...

void setup(){ // put your setup code here, to run once:

pinMode( 13 , OUTPUT); // sets the digital pin as output

pinMode( 12 , OUTPUT); // sets the digital pin as output

pinMode( 11 , OUTPUT); // sets the digital pin as output

pinMode( 3 , INPUT); // sets the digital pin as input

pinMode( 2 , INPUT); // sets the digital pin as input

digitalWrite( 13 , LOW ); // sets the digital pin on/off

digitalWrite( 12 , LOW ); // sets the digital pin on/off

digitalWrite( 11 , LOW ); // sets the digital pin on/off

}

void loop(){ // put your main code here, to run repeatedly:

if (digitalRead( 3 )) {

digitalWrite( 13 , HIGH ); // sets the digital pin on/off

digitalWrite( 12 , HIGH ); // sets the digital pin on/off

digitalWrite( 11 , HIGH ); // sets the digital pin on/off

}

if (digitalRead( 2 )) {

digitalWrite( 13 , LOW ); // sets the digital pin on/off

digitalWrite( 12 , LOW ); // sets the digital pin on/off

digitalWrite( 11 , LOW ); // sets the digital pin on/off

}

}

The website that I use to make the electronic file is:

https://www.arduino.cc

Step 7: How It Works

The picture show how the light change

In the video shows the clearly making progress, step and how it runs

please click here