Introduction: SillyBox

Hello, we are a group of two students of the course of fourth course Electronic Creative, of the faculty of telecommunication of the University of Malaga.

https://www.uma.es/etsi-de-telecomunicacion/

This is our first project in instructables, in it we have built the "SillyBox", to make this project we have based on another project with link:

http://blog.bricogeek.com/noticias/arduino/proyect...

Step 1: Step 1: List of Materials and Components.

Below is a list of the components and
materials used in this project:

1 - 1 x ServoMotor SG90.

2 - 1 x Wood plank.

3 - 1 x Arduino Leonardo.

4 - 2 x Hinge.

5 - 8 x Jumpers.

6 - 1 x Portable Battery.

7 - 1 x Switch.

8 - Glue.

Step 2: Step 2: Build the Box.

The first step of this project is to cut the wood into 6 parts of the following measures:

15x15 cm for the bottom.

The top part will be divided into two parts, one 15x10cm and one 15x5cm.

Four 15x5cm parts for the sides.

To build the arm of the box, two 4.5x1cm and 1.5x1cm parts will be cut for the base that will push the switch.

A 1.5x1cm part will also be cut to adjust the servo to measure.

Then we will join all the parts of the box with glue, following the order of the first side, then the larger part of the top.
To the smallest part we will stick the hinges, and these to the side of the box that has not been attached to the larger top.

In the upper part of larger size we will make a hole to introduce the switch there, right in the middle of the box and a distance of separation of the edge of approximately 1 cm (this will depend on the time to connect the servo inside the box ).

Finally, inside the upper part of larger size we will place the small part of wood to which we will attach the Servo with glue, will also be placed approximately 1cm from the edge and will have to adjust the measurement depending on the arm.
Making use of the blades that the Servo motor brings, we will glue the arm to it.

The arm will be constructed by joining the two parts of the same size L and the base the edge of one of them.

Step 3: Step 3: Inside of the Box.

Inside the box we will incorporate the arduino board connected to the battery, by means of jumpers we will connect the switch and the Servo motor, which as it was said in the previous step is stuck to the upper part of the box.

Step 4: Step 4: Software.

The program of this project will have 3 modes of Servo activation each time it receives the interruption of the switch.

To be able to make use of the servo we had to incorporate the servo library into the code.

Here you can download the code used in this project.

Step 5: Step 5: Final Conclusion.

This project could be improved by incorporating multiple functions to the code, including incorporating other electronic elements such as LEDs or other Servo motors with other functions, but because one of the members of the group had little time for work reasons this has been the final result of the draft.

I would like to thank my classmates and teachers for the help given in the realization of this project.