Automatic Tissue Opener

Introduction: Automatic Tissue Opener

From the study from SafeHome.org, there are four common germs in the bathroom. One of the germs among the 4 types of them that exists everywhere in the bathroom called Gram-Negative Rods, is 90% to 95% are harmful to humans and can be resistant to antibiotics! The germs can be carry by air to attach objects, then when people touch the object, the germs will be on their body. Many people care about the germs in the bathroom that would attach to the tissue paper, which is one of the most private things that will be in touch with our body. For example, we use tissue paper to wipe our hands after washing hands, but if there are germs on the paper, washing hands is for no purpose! So the automatic Tissue opener can not just help to storage the tissue, but also helps to block the invisible germs!

So let's start~

Supplies

All supplies you need:

Arduino Leonardo x1

Breadboard x1

USB Cable x1

HC-SR04 Ultrasonic Module Distance Sensor x1

Servo Motor x1

Male-to-male jumper wires x(many)

Male-to-Female jumper wires x4

Tissue box x1 (or anything you want to put inside)

Tapes

Corrugated boards

(Utility knife, Scissors, decoration paper tapes, or paper if need

Step 1: Connect the Materials With the Arduino Leonardo and Breadboard

Follow and connect the servo motor and distance sensor with the Arduino board as the pictures above

Reminder:

GND is connected to the - and 5V is to the +

Use ~6 and ~7 to connect with the sensor

Step 2: Make the Box

First - Cut the Corrugated Boards With Utility Knife

!The pictures are the order to do the step!

(If there's no HEIGHT mentioned, it means the original height of the corrugated board)

Pic 1~3: Cute the base of the box 12.5(long) x 18.5(width) x14.5(height)

Need THREE, 1 for base and 2 for the sides

Then use the corrugated boards left to cut the other 2 sides

Pic 4~5: Cut the mezzanine that will put in the middle of the box that helps to cover the Arduino board in the bottom of the box and is where the tissue will be put on 12.5(long) x18.5(width)

Pic 4~5: Also, cut the small hole on this board to let the line of the servo motor to get over 1.2x1.2

Pic 6~7: Cut the hole to place the distance sensor 2(long) x4.5(width)

Pic 8: Cut a little hole to let the USB Cable to attach with the Arduino board 1.5x1.5

Then - Stick the boards together with tapes

Step 3: Place the Arduino Board in the Box

After cutting off and stick the Corrugated boards, it should look like Pic 1

Then place the Arduino board and things in their positions

!The pictures are the order to do the step!

Pic 2: Put the Arduino board inside the box

Pic 3: Place the distance sensor to the hole in the side (which is Pic 6~7 in step 2)

Pic 4: Put the mezzanine on the top of the Arduino board

Pic 5: let the line of the servo motor go over the hole of the mezzanine

Step 4: Make the Cover of the Box and Decoration Time!

I made the cover of the box with a paper and some wood ropes!

Then cut it in the same size as the mass of the box

Stick one side of the cover and the box to make it fixed

And stick some decoration paper tapes on the box to make it looks better

It will look like Pic 2!

Step 5: Code

#include

int UltrasonicSensorCM(int trigPin, int echoPin) //Ultrasonic Sensor Code Auto Generated Return CM max distance 200 { long duration; pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(20); digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); duration = duration / 59; if ((duration < 2) || (duration > 200)) return false; return duration; }

Servo servo_pin_2; // create servo object to control a servo

void setup(){ // put your setup code here, to run once: digitalWrite( 6 , LOW ); //set ultrasonic sensor trigPin

servo_pin_2.attach(2); // attaches the servo on pin to the servo object }

void loop(){ // put your main code here, to run repeatedly: if ( UltrasonicSensorCM( 6 , 7 ) <= 15 ) { //當手在15公分或以內的距離感應到超音波感測器 delay( 2000 ); // 伺服馬達會等待兩秒 servo_pin_2.write( 30 ); // 轉30度(打開蓋子) delay( 5000 ); // 等待五秒後 servo_pin_2.write( 130 ); // 馬達會往下轉130度,也就是蓋子會關上 delay( 5000 ); // 再等待五秒,又可以重新再用手感應然後打開蓋子 } }

Link of the code

Step 6: Finish!!!

There are the whole steps! So let's make it and helps to let the tissue cleaner.

Be the First to Share

    Recommendations

    • First Time Author Contest

      First Time Author Contest
    • Fandom Contest

      Fandom Contest
    • Maps Challenge

      Maps Challenge

    Comments