Lampara Inteligente/Smart Lamp

by tabletzalito in Workshop > Lighting

223 Views, 0 Favorites, 0 Comments

Lampara Inteligente/Smart Lamp

imagen_2022-11-13_214943036.png


En la lectura de este documento te explicaremos el progreso de nuestro proyecto, para saber como llevarlo a cabo, aquí se podrá encontrar recomendaciones, consejos, materiales necesarios, muestras, etc. 

In this document we will explain the progress of our project , to know how to carry it out, here you can find recommendations, advice, necessary materials, samples, etc. 

 

¿De qué se trata el proyecto y cuál es su motivo? 

 

What is the project about and what is its reason? 

Este trabajo trata de armar una Lámpara programada para que pueda rotar en diferentes direcciones tanto verticalmente como horizontalmente, tendría la función de una lámpara de escritorio. El motivo que tiene este proyecto es obtener una vista de un trabajo grupal técnico, una idea para futuros trabajos en el futuro laboral. 

This work tries to build a Lamp programmed so that it can rotate in different directions both vertically and horizontally, it would have the function of a desk lamp. The reason for this project is to get a view of a technical group work, an idea for future jobs in the future job. 

¿Qué es necesario para realizar este trabajo? 

What is necessary to do this job? 

Para poder empezar con este proyecto hay que tener algunos conocimientos previos, saber utilizar distintas aplicaciones que serán mencionadas, tener buen dibujo técnico, saber programar, saber montar, realizar croquis, hacer modelados, etc, y también para poder hacer el prototipo funcional tener distintos materiales, herramientas, componentes, entre otras cosas. 

To be able to start with this project you must have some prior knowledge, know how to use different applications that will be mentioned, have good technical drawing, know how to program, know how to assemble, make sketches, make models, etc., and also to be able to make the functional prototype, have different materials, tools, components, among other things. 

Presentación 

Presentation 

Hola, nosotros somos un equipo integrado por tres estudiantes de la Escuela Técnica Roberto Rocca, los cuales son Gonzalo Cabrera (15 años), Facundo Dicharze (15 años) y Franco Ibarra (15 años), vivimos en Campana, Argentina. 

Hello, we are a team made up of three students from the Roberto Rocca Technical School, who are Gonzalo Cabrera (15 years old), Facundo Dicharze (15 years old) and Franco Ibarra (15 years old), we live in Campana, Argentina. 



Supplies

Leer en el paso 2/Read in the step 2

Model Guide - Paso 1: Modelo Guía

imagen_2022-11-13_212619652.png

Para comenzar hay que tener una idea o un objetivo para poder guiarse, lo mejor sería elegir un modelo para tenerlo en cuenta a la hora de la realización de tu proyecto. 

To start you should to have an idea or an objective to be able to guide yourself, the best thing would be to choose a model to take it into account when carrying out your project. 

Nuestra guía es esta: 

Our guide is this: 


No nos fijamos tanto en cómo se ve si no en su funcionamiento, se puede ver que contiene un sistema de rotaciones manual, lo que vamos a agregar es el sistema de rotación manual pero con programación para tener en juego la técnica. 

We do not look so much at how it looks but at how it works, you can see that it contains a manual rotation system, what we are going to add is the manual rotation system but with programming to have the technique in play 


Paso 2: List of Electronic Components -Lista De Componentes Electrónicos

imagen_2022-11-13_215728376.png

Con la ayuda de este paso podremos identificar los componentes electrónicos necesarios con su respectiva cantidad, teniendo el proyecto de la lampara, entre los componentes tiene que haber una fuente de voltaje, una placa de pruebas, unos componentes luminarios, unos componentes que generen rotaciones/giros, algunos componentes que se oponen en el paso de la corriente para que ciertos componentes no se quemen, un Arduino para la programación y unos componentes que sirvan para transmitir la electricidad. Todo esto hay que tenerlo en cuenta dependiendo de su proyecto. 

With the help of this step we will be able to identify the necessary electronic components with their respective quantity, having the project of the lamp, among the components there must be a voltage source, a test plate, some lighting components, some components that generate rotations / turns, some components that oppose the passage of current so that certain components do not burn, an Arduino for programming and some components that serve to transmit electricity. All this must be taken into account depending on your project. 


Data Sheets - Paso 3: Data Sheets

imagen_2022-11-13_213125319.png
imagen_2022-11-13_213142062.png
imagen_2022-11-13_213215853.png
imagen_2022-11-13_213229358.png

Los Data Sheets o Hoja de Datos sirven para encontrar información más detallada o específica de cierto componente, no es un paso tan relevante si sabes la información necesaria, pero si es bueno tenerlo en cuenta e investigarlo. Buscando en internet Data Sheets de tal componente te aparecerá lo que buscas. 

The Data Sheets or Data Sheet are used to find more detailed or specific information on a certain component, it is not such a relevant step if you know the necessary information, but it is good to take it into account and investigate it. Searching the Internet for Data Sheets of such a component, what you are looking for will appear. 


Sketches- Paso 4: Bocetos

imagen_2022-11-13_213332672.png
imagen_2022-11-13_213351613.png
imagen_2022-11-13_213422171.png

 Con los bocetos podremos tener una idea general e informal de cómo será el Prototipo Funcional, saber como se sostendrán los componentes electrónicos, saber si será una lampara con función de lampara de techo o de escritorio, cómo serán los ensamblajes o subconjuntos, cómo será el modelo de la lampara, etc. 

With the sketches we will be able to have a general and informal idea of ​​what the Functional Prototype will be like, to know how the electronic components will be held, to know if it will be a lamp with a ceiling or desk lamp function, what the assemblies or sub-assemblies will be like, what the lamp model, etc. 


List of Non-Electronic Components - Paso 5: Lista De Componentes No Electrónicos

imagen_2022-11-13_213519109.png
imagen_2022-11-13_213535942.png
imagen_2022-11-13_213551135.png

En este paso anotarías en la lista los componentes no electrónicos que serán necesarios, cuál es su denominación o división, de cuál material estaría hecho y su cantidad. También se tendrían que agregar las herramientas y los componentes para ensamblar (tornillos, clavos, cinta, pegamento, entre otros). 

In this step, you would write down on the list the non-electronic components that will be necessary, what is their denomination or division, what material would they be made of, and their quantity. Tools and components to assemble (screws, nails, tape, glue, etc.) would also have to be added. 


Simulation in Tinkercad - Paso 6: Simulación En Tinkercad

imagen_2022-11-13_213636640.png

En la simulación de la programación y montaje de componentes podemos corroborar con el Protoboard o placa de pruebas, los errores que puede haber con la programación, ya sea por un mal conexionado, cantidad de ohms errada y haga que ciertos componentes se quemen, programación mala, etc. Se puede utilizar la aplicación llamada Tinkercad para simular la programación. 

In the simulation of the programming and assembly of components we can corroborate with the Protoboard or test board, the errors that may exist with the programming, either due to a bad connection, wrong number of ohms and cause certain components to burn, bad programming , etc. You can use the app called Tinkercad to simulate programming. 

Link para observar la simulación: 

Link to watch the simulation: 

https://www.tinkercad.com/things/jXmxQlPtawj-lampara-inteligente-dicharze-ibarra-cabrera/editel 


 Programming - Paso 7: Programación

imagen_2022-11-13_213738114.png

// C++ code​ 

//​ 

#include <Servo.h>​ 

​ 

int Servo1 = 0;​ 

int Servo2 = 0;​ 

​ 

Servo servo_3;​ 

Servo servo_6;​ 

​ 

void setup()​ 

{​ 

pinMode(A0, INPUT);​ 

servo_3.attach(3, 500, 2500);​ 

​ 

pinMode(A1, INPUT);​ 

servo_6.attach(6, 500, 2500);​ 

​ 

pinMode(4, OUTPUT);​ 

pinMode(5, OUTPUT);​ 

pinMode(7, OUTPUT);​ 

pinMode(8, OUTPUT);​ 

pinMode(9, OUTPUT);​ 

pinMode(10, OUTPUT);​ 

pinMode(11, OUTPUT);​ 

}​ 

​ 

void loop()​ 

{​ 

​ 

Servo1 = analogRead(A0);​ 

servo_3.write((map(Servo1,0,1023,0,180)));​ 

​ 

Servo2 = analogRead(A1);​ 

servo_6.write((map(Servo2,0,1023,0,180)));​ 

​ 

​ 

​ 

/*​ 

digitalWrite(4, HIGH);​ 

digitalWrite(5, HIGH);​ 

digitalWrite(7, HIGH);​ 

digitalWrite(8, HIGH);​ 

digitalWrite(9, HIGH);​ 

digitalWrite(10, HIGH);​ 

digitalWrite(11, HIGH);​ 

*/​ 

delay(10); // Delay a little bit to improve simulation performance​ 


Programar todos los componentes electrónicos con ayuda de Arduino y Tinkercad. En la Programación se comprueba los bloques de texto y el texto de la programación para el Arduino, la programación de los Leds, de los Servomotores y los Potenciómetros. 

Program all the electronic components with the help of Arduino and Tinkercad. In the Programming, the text blocks and the programming text for the Arduino, the programming of the LEDs, the Servomotors and the Potentiometers are checked. 



Codes - Paso 8: Códigos

imagen_2022-11-13_213846846.png

Pseudocódigo:​ 

Pseudocode: 

1-Inicio​ 

2-Presionar On, S1 y S2 (Servo 1 y Servo 2) quedan en 0°​ 

3-Encender L (Leds RGB)​ 

4-Presionar Pul1 (Pulsador 1) para sumar 15° y/o presionar Pul2 (Pulsador 2) para restar 15° para S1​ 

5-Presionar Pul 3 (Pulsador 3) para sumar 15° y/o presionar Pul4 (Pulsador 4) para restar 15° para S2​ 

6-Repetir 4 y/o 5 si se quiere sumar y/o restar más​ 

7-Presionar Off si se quiere apagar lámpara​ 

8-Fin​ 

1-Start 

 

2-Press On, S1 and S2 (Servo 1 and Servo 2) remain at 0°​ 

 

3-Turn on L (RGB Leds) 

 

4-Press Pul1 (Button 1) to add 15° and/press Pul2 (Button 2) to subtract 15° for S1​ 

 

5-Press Pul 3 (Button 3) to add 15° and/press Pul4 (Button 4) to subtract 15° for S2​ 

 

6-Repeat 4 and/or 5 if you want to add and/or subtract more 

 

7-Press Off if you want to turn off the lamp 

 

8-End 


 El Pseudocódigo y el Diagrama de Flujo tiene que mandarle señales a la lámpara de como encender y funcionar. 

The Pseudocode and the Flowchart have to send signals to the lamp on how to turn on and function. 

 



Sketches - Paso 9: Croquis

imagen_2022-11-13_213925022.png
imagen_2022-11-13_213941048.png
imagen_2022-11-13_213956551.png
imagen_2022-11-13_214011994.png
imagen_2022-11-13_214027634.png
imagen_2022-11-13_214040685.png

En este paso buscarás las medidas y las dimensiones reales para el prototipo, este paso es fundamental. Hay que tener conocimiento con las Normas IRAM para no tener errores. 

In this step you will look for the actual measurements and dimensions for the prototype, this step is essential. It is necessary to have knowledge with the IRAM Norms in order not to have errors. 


3D Modeling - Paso 10: Modelado 3D  

imagen_2022-11-13_214127088.png
imagen_2022-11-13_214143600.png
imagen_2022-11-13_214200313.png

Utilizar los croquis y armar toda la lámpara- El Modelado 3D te mostrará tu lámpara terminada con medidas reales, con esto verificarás errores con el montaje de componentes o con las medidas. Se puede utilizar Onshape para hacer modelados 3D. Paso importante. 

Use the sketches and assemble the entire lamp- 3D Modeling will show you your finished lamp with real measurements, with this you will verify errors with the assembly of components or with the measurements. Onshape can be used to do 3D modeling. Important step. 

 

 

 

Link para ver todo el modelado: 

Link to see all the modeling: 

https://cad.onshape.com/documents/9ad314edb933b4680e7fe745/w/342d88430ca88fe54e85549e/e/7d805c21b760f42cb2fbde81?renderMode=0&uiState=633dcd0c11ae794f1d4f99c3 


Rapid Prototype - Paso 11: Prototipo Rápido

imagen_2022-11-13_214309391.png
imagen_2022-11-13_214322758.png

Hay que copiar todo lo hecho en el modelado 3D. Realizar un prototipo rápido servirá para testear puntos de mejora con las medidas y con el montaje de componentes, generalmente hecho de cartón porque es más accesible.  

You have to copy everything done in 3D modeling. Carrying out a rapid prototype will serve to test points of improvement with the measurements and with the assembly of components, generally made of cardboard because it is more accessible. 


Fabrication Plans - Paso 12: Planos De Fabricación

imagen_2022-11-13_214423249.png
imagen_2022-11-13_214438495.png
imagen_2022-11-13_214452725.png
imagen_2022-11-13_214506325.png
imagen_2022-11-13_214522827.png
imagen_2022-11-13_214540004.png

Este paso es parecido a los croquis solo que los Planos de Fabricación son más prolijos, hay que armar todas las medidas de los componentes no electrónicos, sirve para ver las medidas reales más específicas y proporcionadas de la lámpara. 

This step is similar to the sketches, only that the Manufacturing Plans are more detailed, you have to assemble all the measurements of the non-electronic components, it serves to see the most specific and proportionate real measurements of the lamp. 

Link para ver los Planos: 

Link to see the Plans: 

https://cad.onshape.com/documents/9ad314edb933b4680e7fe745/w/342d88430ca88fe54e85549e/e/7d805c21b760f42cb2fbde81?renderMode=0&uiState=633dcd0c11ae794f1d4f99c3​ 


Assembly - Paso 13: Montaje

imagen_2022-11-13_214631187.png
imagen_2022-11-13_214645458.png
imagen_2022-11-13_214659969.png

 En la Programación vas colocar los componentes electrónicos al Protoboard y al Arduino uno y vas a testear los componentes y el montaje de componentes, verificar si hay un mal conexionado, mala programación o componentes dañados para poder montarlo al Prototipo Funcional. Para poder programar el montaje físico utilizar Arduino y pegar el texto de la programación del Arduino uno. 

In the Programming you are going to place the electronic components to the Protoboard and the Arduino uno and you are going to test the components and the assembly of components, verify if there is a bad connection, bad programming or damaged components to be able to assemble it to the Functional Prototype. To be able to program the physical assembly, use Arduino and paste the text of the Arduino uno programming. 


Functional Prototype - Paso 14: Prototipo Funcional

imagen_2022-11-13_214754554.png
imagen_2022-11-13_214809512.png
imagen_2022-11-13_214830223.png
imagen_2022-11-13_214849373.png

Último paso y el más importante. En el Prototipo Funcional se tiene que demostrar la programación de componentes y la estructura de la lámpara, vas a montar toda la lámpara, tanto montaje de componentes como toda la carcasa de la lámpara. 

 

Last step and the most important. In the Functional Prototype you have to demonstrate the programming of components and the structure of the lamp, you are going to assemble the entire lamp, both assembly of components and the entire lamp housing. 


Finish - Final

Recomendaciones: 

Recommendations: 

Es un proyecto que, si no hay un gran conocimiento en los distintos pasos que se nombraron, tiene su tiempo. No hay que dejar las cosas a último momento porque puede afectar tu progreso y el mismo proyecto. Es recomendable hacer este trabajo en equipo para poder tener ayuda. Hay que tener un conocimiento intermedio para poder realizar los croquis, bocetos, modelados 3D, programaciones, montajes, etc, y no tener errores. 

It is a project that, if there is not a great knowledge in the different steps that were named, has its time. Do not leave things to the last minute because it can affect your progress and the project itself. It is advisable to do this work as a team in order to have help. You must have intermediate knowledge to be able to make sketches, sketches, 3D models, programming, assemblies, etc., and not have errors. 

Conclusión: 

Conclusion: 

De lo que podemos concluir es que trabajando colaborativamente y con tiempo se puede lograr resultados buenos, este documento es compartido para que otras personas se sumen a este trabajo y que lo puedan realizar o solamente ver lo trabajamos. 

From what we can conclude is that working collaboratively and with time good results can be achieved, this document is shared so that other people join this work and that they can carry it out or just see what we work on. 

¡Muchas gracias por la lectura de nuestro proyecto! 

Thank you very much for reading our project!