How to Make a Smart Lamp
Hello! We are Hanna Salazar and Lara Godoy, we’re 14-year-old students at Technical School Roberto Rocca in Argentina (Specifically in Campana and Zarate) where we are cursing the third year. We are driven by the opportunity to show a project to other people in a simpler form.
Our project is based on a smart lamp with automated motion and brightness level variation to help the user. It is designed for indoors where it can change the brightness for the different moments, and it can move for the user. It was easier for us than someone else because we have taken electronic classes in school at first rotation.
Supplies
Electronic components:
- LEDs x13
- Servomotor (Micro Sg90)
- Cables (MM and MH)
- Resistor (220 Ω) x5
- Distance sensor (Hc-sr501) *Be careful with this one*
- Interruptor (From Arduino)
- Arduino UNO
Shelling:
- Cardboard
- Toothpick
- Glue
- Pencil
- Ruler
- Eraser
- Cutter
Elements:
- Welder (only if you're going to use a plaque)
- Plaque or a protoboard (for the connections of the resistor and cables)
- Tin
Head
First, we are going to make the head that is going to move and has the LEDs. For that we must trace the following forms in the piece of cardboard, cut them and stick them with glue after you connect the cables and the LEDs with the tin.
NOTE: You must make 6 hexagon sides.
Supports for the Head
The second step is the same. However, the specification would be that in the support that has the servomotor make a hole where only the first part can fit.
The union and the toothpick are the ones that are stick in the head.
NOTE: You have to make two supports for the head.
Base
Just trace it, cut it and stick it. Make sure the cables fit in the holes; the three of them are for cables but the one in the middle is bigger because in that part is where the cables from the LED connect to the plaque. Also, one of the holes from the side is for the sensor so make sure it is perfectly measured because that is the support.
NOTE: The manufacturing plans for the cover are just approximated because we don't really know the measures of the length
Sticking All
This is a simple step but make sure you do it right, it have to look like this.
NOTE: Leave the top of the head unglued to make easier the welding for LEDs and cables, also you can stick it with papertape for make easier the led change if one of them doesn't work any more.
Programation
So basically, in the Arduino you must copy this code and that will be the end of the program, unless you want to add or modify it.
Downloads
Circuit
We faced a few problems in these parts because of silly mistakes but we finished.
For welding the LEDs you have to use the MF cables and use the M part with the tin in the leg. (Weld it)
For the rest of the circuit you can see what type of cables suits you.
NOTE: We suggest organizing the positive and negative sides of the LEDs to make easier the connection part
Downloads
Final Version
After all the inconvenience we could finish with a problem which is that the distance sensor send the signal to the Arduino so slow and that makes the servomotor react later. However this is the result.