How to Make a Smart Lamp

by H_Salazar in Circuits > Arduino

162 Views, 0 Favorites, 0 Comments

How to Make a Smart Lamp

etrr.jpg

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

LEDs.jpg
servomotor.jpg
Cables mm.jpg
cables mh.jpg
resistencia.jpg
sensor.jpg
interruptor.jpg
arduino.jpg
carton.jpg
Escarbadientes.jpg
pistola.jpg
borrador-lápiz-y-regla-en-un-fondo-blanco-23483149.jpg
Box-cutter.jpg
solda.jpg
proto.jpg
placa.jpg

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

Capture.PNG
Capture rthb.PNG

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

sosten de cabeza.JPG
sosten de cabeza armada.JPG
sosten con servomotor.JPG

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

etndgn.PNG
hrtyjrf.PNG

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 

Downloads

Sticking All

evv.PNG

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

oeiwfhoiwehe.JPG

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

Final Version

20221115_105201.jpg
20221115_105227.jpg
20221115_105236.jpg
20221115_105250.jpg
20221115_105256.jpg
20221115_105300.jpg
20221115_105106.jpg
20221115_105154.jpg

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.