Introduction: Arduino Get Off Bed System

This machine would call you up in the morning with a person press the button, then the screen would show up with "Get off the bed".

The light could be place anywhere if it is able to be linked with wires. If you press the button, it would turn on for ten seconds which would give you time to wake up from the light interruption.

Though, here are the materials that you need:

Arduino Leonardo or UNO it must be these kinds of panel or else it's not gonna work.

Prepare at least 20 wires

A LCD screen

a led light bulb

A cardboard box (Size similar to Adidas shoe box)

A plat of cardboard.

Few tapes

Step 1: Step 1: Prepare Materials

Arduino Leonardo or UNO it must be these kinds of panel or else it's not gonna work.(You can get it in hardware store)

Prepare at least 20 wires (Must fit the scale of Arduino panel)

A LCD screen (Must be the one which look like the picture above)

a led light bulb (Must fit the bread board)

A cardboard box (Size similar to Adidas shoe box)

A plat of cardboard. (Recommend the one which is thin)

Few tapes (Any tape is alright just make sure that it glues well)

Breadboard (Any form of breadboard is fine but it must be fit to the arduino)

Step 2: Step 2: Set Up Your Hardware

First of all, you have to connect the wires like the picture above

Than you need to make sure that they sticks well with each other.

There would be one complete set of button systems

A pair of LED light bubble set

A pair of screen LCD set

You must get a long wire for led for extending to outside of the shoe box for later (At least longer enough to exten to outside of the shoe boxes

Step 3: Step 3: Write Your Program

Program:

#include
#include

// For these LCD controls to work you MUST replace the standard LCD library from... // https://github.com/marcoschwartz/LiquidCrystal_I2... // Direct download https://github.com/marcoschwartz/LiquidCrystal_I2... // Your project will not compile until this is done. // LiquidCrystal_I2C lcd_I2C_3F(0x3F,16,2);

void setup()

{ pinMode( 10 , INPUT); lcd_I2C_3F.init ();

lcd_I2C_3F.backlight(); pinMode( 12 , OUTPUT); }

void loop()

{ if (digitalRead( 10 )) {

lcd_I2C_3F.setCursor(0.0 , 0.0) ;

lcd_I2C_3F.print( "Get off the bed" ); This is the part that let screen to show the words after pushing the button

digitalWrite( 12 , HIGH ); This is the part that would turn on LED for ten seconds after pushing the button

delay( 10000.0 );

lcd_I2C_3F.setCursor(0.0 , 0.0) ;

lcd_I2C_3F.print( "keep sleeping" );

digitalWrite( 12 , LOW );

delay( 1000.0 );

} else {

lcd_I2C_3F.setCursor(0.0 , 0.0) ;

lcd_I2C_3F.print( "keep sleeping" ); This part would turn down both hardware

digitalWrite( 12 , LOW ); } }

Step 4: Step 4: Get the Body of the Machine

You would need a shoe box for this step

Cut the middle part of the top part of the shoe box

Dig a hole using knife at the middle of the cover

Dig a small hole at the down side of the box

Fit the button onto the big hole on the cover

Fit the wire for energy generating at the small hole down

There is already a hole on the left side of the box, so pull the led and wire through that hole, do not cut off the link between the bread board and the wires.

Use the led on the small card board (6cmX6cm) and stick them together with tape.

Step 5: Step 5: Test the Machine and You Are Finished

This is the last step and here is the testing: