Smart Lamp That Automatically Illuminates Your Workspace

by Ferlo in Circuits > Arduino

177 Views, 1 Favorites, 0 Comments

Smart Lamp That Automatically Illuminates Your Workspace

Lampara ensamblada (v3-recovered) v4.png
Lampara ensamblada (v3-recovered) v1.jpg

Hi, welcome to our new instructable, we are Fermin López Suarez, Constantino Gomez Sanchez and Valentin Ramieri, three students of the Escuela Técnica Roberto Rocca, from Campana in Buenos Aires, Argentina, we are between 14 and 15 years old. Our motivation is the idea of integrating 3 subjects such as English, technological languages and technological systems in a technical project related to what we have been working through this year. 

Our project is a lamp controlled by Arduino that automatically illuminates the workspace, with sensors and a manual light intensity regulation. Its use is to detect the place where you are working and illuminate it. The technical knowledge to take into account when you are making this project are circuits assembly with Arduino, programming, 3D modelling and technical sketches. 

Supplies

Information Research

Busqueda de información - Datasheets.png
Lampara 4.jpg
Lampara 3.jpg
Lampara 2.jpg
Lampara 1.jpg

We started our project by searching information about the electronic components (Datasheets) and posible design ideas to use.

Here you have all the datasheets we used for the design of our project:

Sketches, Assembly Sequence and Table of Components

Outlook-mkb3maje.png
Outlook-la4ulidc.png
Outlook-xrtcp33o.png
Outlook-o53tnjyy.png
Outlook-ucjs21mz.png
Outlook-whkfxdbv.png
Outlook-2cn1ehp0.png
Outlook-vptj0r1k.png

After the information research you are going to make some sketches, aiming to survey and record all components, subassemblies and linkages of your product.

In other words you will use this step to have a reference of the project proportions and the way the components are linked.

Simulation

Outlook-eheg4l3k.png
Outlook-wfqa0gaq.png

For the simulation we made the arrengments beetwen the components and the protoboard 

You can look at them at this Tinkercad document

Sketch and Rapid Prototypes

Outlook-ma50tjof.png
Outlook-3wmoekbq.png
Outlook-psse4kqe.png
Outlook-0yp0o1fl.png
Outlook-aqewnbc5.png

In this step we are going to make 2D drawings of the non-electronic components registered on the previous step with dimensions and geometries, always taking into account the proportions and the IRAM standards. If you want you can also make rapid prototypes to verify the linkage of the components.

Here you heve the IRAM standards for technical drawing we used for the whole project:

Programming

T1.png

We chose to use C++ programming because it's the default programming of Arduino and Tinkercad. About this, We didn’t really consider the softwares to use, we used the ones we had already known. Anyways it would have been interesting trying something new, but we had not enough time to learn a new one. We started with both, the light system, the sensors and servomotor, each one in different Tinkercad documents to work faster. For the servomotors movement we started by a conditional block, then we added a comparison between the distance read by the sensor and 20 centimetres, which is the approximate start of the effective part of the range from this type of sensor, if this condition is true, the servomotor would move. Then we made the light part in written code, so we could use the map function, which makes a proportional increase between the potenciometer and the brightness of the LEDs. 

Here you have the code to download:

Modeling

Brazo 1.png
Brazo 2.png
Brazo 3.png
nose.png
Mariposa.png
Luces.png
sub-base.png
Parte superios luces.png

For the 3D modeling we chose to use Fusion 360 because it is the one that has more features of the ones we know, if you have another preferences or you just don't know how to use it you can make it with the software you want. This step is very simple, you just have to use the sketches of the steps 2 and 4 to create 3D modelings of each components of the product and its assembly

Assembly

20221102_103834159.jpg
20221102_103859089.jpg
20221102_103904592.jpg

On this step you are going to bring the circuit you have done previous to life, you also have to make the anchorage on the shell from the sketches step, in our case we needed more protoboards than just one as it was on the Tinkercad document, so have that in mind when making your circuit assembly.

Manufacturing Plans

Outlook-lggu2duk.jpg
Outlook-mivtkqte.jpg
Outlook-2bwnaed3.jpg
Outlook-xhnnttsd.jpg
Outlook-jfky505b.jpg
Outlook-aedyjpyq.jpg

On this step you are going to make manufacturing plans of each component using the models and softwares that have been used in the 3D modeling step, according to the IRAM standards.

Functional Prototype

IMG-20221114-WA0016.png

In this step we made a functional prototype made out of cardboard which could verify that the final product would work, we made this using the manufacturing plans made in the previous step.

About this step maybe cardboard wasn't the best material, so we are planning to re-make this prototype with a better material.

Final Adjustments

Base nueva.png
Base reformulada v4.png

After the functional prototype we realised that we needed to do some changes to the base of the lamp because the sensors range would overlap each other and this could cause malfunctions, also we realised that the Arduino UNO wouldn't be able to enter inside the base, so we changed both, the design and the dimensions.

We also had to get out one of the leds because it couldn't work with the first pin.

Here you have the final version of the code and the base:

End

Lampara ensamblada (v3-recovered) v4.png

Well, we have reached the end of the project, maybe at a first moment we thought that the schedule was a little bit fast (1 week for each deliverable) and our results weren't as good as they could be, but now we can say that we made a lamp which we are proud of.