tag:blogger.com,1999:blog-8354420558812747452024-02-07T06:49:11.214+01:00Elektronika LSBelektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-835442055881274745.post-45430642339628789962023-03-07T11:15:00.003+01:002023-03-07T12:40:05.960+01:00BALANZA_ELECTRONICA_GRUPO2<p><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjc8nm4vUZfneUIIJqxpPIiTlATpiYMa_fprgRvylOK1aClX-bLr7CRKWxC6Zpiz4iEmvmVEfHRVlY4vgmi55WKdttZBQtHefGn8Y5lSvRRKhtDxlMwPXN3kR1gDZBCwYmwDK_4kllxwAYMRVUqojRLoweKQnKQGVB4lIhu2r1zY9NRRhXt_jR39T7iNQ" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img alt="" data-original-height="135" data-original-width="259" height="67" src="https://blogger.googleusercontent.com/img/a/AVvXsEjc8nm4vUZfneUIIJqxpPIiTlATpiYMa_fprgRvylOK1aClX-bLr7CRKWxC6Zpiz4iEmvmVEfHRVlY4vgmi55WKdttZBQtHefGn8Y5lSvRRKhtDxlMwPXN3kR1gDZBCwYmwDK_4kllxwAYMRVUqojRLoweKQnKQGVB4lIhu2r1zY9NRRhXt_jR39T7iNQ=w129-h67" width="129" /></a> <img height="80" src="https://lh4.googleusercontent.com/IYC759zt8Ujosziouiww9COs0_iSianZNYhoAukqgYckB5IhC6rlNVO5Ml0JfEl7wICT13tDI-Yf0uBo3lS-vdQ6BVYgI3wojiczuJ2URTz8109sfoQ_CVW8iVeiDKkuH_G7MJZwXTINd9AqFbxiS_tMrw=w128-h80" width="128" /></p><div style="text-align: center;"><span style="color: #2b00fe; font-size: x-large;"><u>BALANZA</u></span></div><div style="text-align: center;"><span style="font-size: x-large;"><br /></span></div><div style="text-align: left;"><div style="background-color: white; text-align: justify;"><span face="Trebuchet MS, Trebuchet, sans-serif" style="color: #5e5e5e;"><span style="font-size: 14.85px;"> </span> </span><span style="font-family: helvetica;"> Buenas, somos la empresa IJI creada por el grupo 2 que está compuesto por estas personas; Ibai Omeñaka, Iker Gonzalo y Jagoba Fernandez y hemos desarrollado una balanza como proyecto final en la escuela de La Salle Berrozpe, Andoain, Guipúzcoa. La balanza a la hora de encenderse se conectara a algún Wifi y empezara a mandar valores del peso que estemos poniendo a nuestro ordenador </span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;">En el siguiente video podéis ver una explicación breve del proyecto que podréis completar con la lectura del artículo completo.</span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="266" src="https://www.youtube.com/embed/9JD3yhZjc04" width="320" youtube-src-id="9JD3yhZjc04"></iframe></div><br /><div style="background-color: white; text-align: justify;"><br /></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><div><span style="font-family: helvetica;">Para desarrollar nuestro proyecto hemos tenido que poner a prueba nuestros conocimientos adquiridos en estos 2 años.</span></div><div><span style="font-family: helvetica;"><br /></span></div><div><span style="font-family: helvetica;">Por una parte hemos tenido que crear un programa que se encarga del controlar toda la balanza y para ello hemos usado el programa de Arduino, que nuestro microcontrolador será es capaz de entender y ejecutar cada línea de nuestro programa.</span></div><div><span style="font-family: helvetica;"><br /></span></div><div><span style="font-family: helvetica;">Una vez que ya teníamos el programa hecho tuvimos que crear una placa en Kicad teniendo en cuenta que teníamos que poner componentes electrónicos en base a nuestro microcontrolador y a lo que queríamos que hiciese nuestra balanza y justificar todos los componentes porqué los utilizamos y su función en la placa.</span></div><div><span style="font-family: helvetica;"><br /></span></div><div><span style="font-family: helvetica;">Nuestra placa la alimentamos con una fuente de 12V ya echa y esta alimenta a la fuente que hemos diseñado nosotros, la tensión llega al regulador dándonos 5v de salida para nuestros componentes como por ejemplo el esp32 que es quien nos dará la cantidad de peso que pongamos.</span></div><div><span style="font-family: helvetica;"><br /></span></div><div style="font-size: 14.85px;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgXSZ05eE0qwqKLi1o5ShgPayjJ0GPh4oQl6D5C_PTyQdE5msBBT92VDyO3TzYiLWU7Vtloqrf1UkOUpsogth6LeaCyb6D61j4YIm8aFHkE98hqXNIM1zQ3V86XSu4ge9YKjHNDTgXq0y3ccU4grr3kQtxMYYQWMyML_IwYv3lJgCfFgk5KdKmsdPjwjQ" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: helvetica;"><img alt="" data-original-height="720" data-original-width="1048" height="220" src="https://blogger.googleusercontent.com/img/a/AVvXsEgXSZ05eE0qwqKLi1o5ShgPayjJ0GPh4oQl6D5C_PTyQdE5msBBT92VDyO3TzYiLWU7Vtloqrf1UkOUpsogth6LeaCyb6D61j4YIm8aFHkE98hqXNIM1zQ3V86XSu4ge9YKjHNDTgXq0y3ccU4grr3kQtxMYYQWMyML_IwYv3lJgCfFgk5KdKmsdPjwjQ" width="320" /></span></a></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: helvetica;"><br /></span></div><span style="font-family: helvetica;"><br /><br /></span></div></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;">Esta seria nuestro esquema eléctrico con todos los componentes necesarios para poder hacer este programa y ahora vamos a ver el plano PCB de nuestra placa. Aquí podéis ver todo lo necesario para que la balanza funcione correctamente, podéis ver las partes que tiene la balanza: entradas, que en nuestro caso son los botones y la celda ce carga; Salidas, la pantalla; La fuente de alimentación y el ESP32, que es el que controla todo.</span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;">En la siguiente imagen veremos tanto como las pistas como cada componente donde ira todo colocado, para poder unir todos estos hemos hecho unas pistas y unas vías para poder conectar la cara de arriba con la de abajo. Las pistas rojas serian de la cara de arriba ya que tenemos elementos SMD y las líneas azules de la cara de abajo.</span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /><br /></span><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhBOnu3TmhfVey7Dcga-s2pWajxUN04IosnUAIYrYwJnCJxVz6bpLNAGcInk8ukqUT7smBwnII5MDW8Whj13K2y6kX7T48BNNIxSztCk6duenFB8E31GoIJzQAG7Cx3ZG-OLsTlkEQ3drAlAKCQA41w2MxETdxiprba57AXHKx9ELq43BtjfMdbQGbutw" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: helvetica;"><img alt="" data-original-height="676" data-original-width="520" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEhBOnu3TmhfVey7Dcga-s2pWajxUN04IosnUAIYrYwJnCJxVz6bpLNAGcInk8ukqUT7smBwnII5MDW8Whj13K2y6kX7T48BNNIxSztCk6duenFB8E31GoIJzQAG7Cx3ZG-OLsTlkEQ3drAlAKCQA41w2MxETdxiprba57AXHKx9ELq43BtjfMdbQGbutw" width="185" /></span></a></div></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;">Una vez conseguido nuestros planos pasaríamos a sacar la placa y a estañar los elementos.</span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span id="docs-internal-guid-e891caf7-7fff-8416-55dd-aadb8a9045a7"><span style="font-family: helvetica;"><h2 dir="ltr" style="line-height: 1.8; margin-bottom: 6pt; margin-top: 18pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space: pre-wrap;"><span> </span>- Fuente de alimentación:</span></h2><br /><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">El primer paso para nuestro proyecto fue diseñar una fuente de alimentación. Teníamos claro que elementos íbamos a conectar y que tensión y consumo requerían. Teniendo en cuenta cada uno de ellos, decidimos diseñar una fuente de alimentación con una tensión de salida de 5V DC y capaz de suministrar una corriente de 1.0 A.</span></p><br /><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Aquí los elementos que necesitaremos alimentar con esta tensión:</span></p><ul style="margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;"><li aria-level="1" dir="ltr" style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Pantalla nextion</span></p></li><li aria-level="1" dir="ltr" style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">ESP32 DEVKIT V1</span></p></li></ul><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">La fuente de alimentación que nosotros hemos diseñado esta conectada a una ya diseñada y montada llamada FU-ADPV60A-12 con esto ahorramos el diseñar y el no ocupar tanto.</span></p><br /><br /><h2 dir="ltr" style="line-height: 1.8; margin-bottom: 6pt; margin-top: 18pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space: pre-wrap;"><span> </span>- ESP32 DEVKIT V1:</span></h2><br /><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">El ESP32 es una pequeña placa Wifi compatible con Arduino lista para usar en cualquier proyecto que hemos utilizado para comunicar todas las partes de la balanza, también , así poder conectarnos al WIFI para poder subir los datos a internet. Utilizamos la placa para alimentar la ESP32 y así de ahí alimentar el HX711 y la célula de carga con la fuente regulada que tiene dentro que saca 3.3v. La ESP32 es una muy buena opción para programar una placa de forma barata y con muy buenas prestaciones ya que utiliza un software gratuito Arduino IDE</span></p><br /></span> <img height="180" src="https://lh3.googleusercontent.com/L4b7QYEMUOZzv5JrVSqwpg--qATNaaH9h2HuTLTIujq4Cn7Bith2vwzYkEzlU2WDoHox6tyxGxf2Ok1V0uew4xIOtyLJSKw5JVlcAUKB6fKeT4VWE7shp9khV5sDi50AJVABhYrlpxEXMmqlg8FVzHk" style="font-family: helvetica; margin-left: 0px; margin-top: 0px;" width="177" /><span style="font-family: helvetica;"><br /><h2 dir="ltr" style="line-height: 1.8; margin-bottom: 6pt; margin-top: 18pt;"><span style="font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space: pre-wrap;"><span> </span>- Pantalla Nextion </span><span style="font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space: pre-wrap;">NX4024T032:</span></h2><br /><br /><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Elegimos esta pantalla ya que queríamos interactuar con la pantalla tocándolo y la única táctil era esta además de esto también lo elegimos ya que la ESP puede comunicarse con este fácilmente mediante la conexión UART.</span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><br /></span></p></span><span style="font-family: helvetica;"><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"> <img height="142" src="https://lh5.googleusercontent.com/kf8hbxeq8DweESyLtHyAOEfw_af3PyRalbEyy3zuJpjnzO081kMLeJqWJdvYJ8rOZ0Vtw7bNORxQxQv6sCsdRCUoIjwCT6DrTVfp3dnFehO7cvAESg58l1GkkMQv34HeXenyTBTDXXPF7THghXoGw-w=w241-h142" style="margin-left: 0px; margin-top: 0px;" width="241" /> </p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; white-space: pre-wrap;"><span> </span>- Botones + Resistencias 10k:</span></p><br /><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Los botones los escogimos para tarar y cambiar de unidades pero luego nos dimos cuenta que esto lo podíamos hacer directamente con la pantalla. La finalidad de las Resistencias eran para que los botones al estar abiertos que ninguna tensión vaya hacia el pin destinado y se vaya a tierra ya que esto podría darnos algunos problemas.</span></p><br /></span><span id="docs-internal-guid-022f418b-7fff-c53a-dd21-7fc68746fa3c"><span style="border: none; display: inline-block; height: 159px; overflow: hidden; width: 225px;"> </span></span></span><img height="135" src="https://lh3.googleusercontent.com/NLIOVbgfh6AMDKWobVmIrXFja_cF1RPpmkTBG6QMmEneLY5xGuEKAZJXkhLkMSm-8-WhGxehgReDiVSo5TEHg9OW-ScrJHtpyXK752S4D_4fvg3NJea0JeI-lOkwcc4k0mL98wHuW7Hlbc655ltDCvU=w135-h135" style="font-family: helvetica; margin-left: 0px; margin-top: 0px;" width="135" /> <img height="138" src="https://lh4.googleusercontent.com/f5DXxRJtYFtCLsRiM_Y9EWuelTXR5W0UKTlX6Dk-Naoc0y2BfzC1GedVwli-KcwFYH2ExfXhdhuLPcCXOrKA3XOT1i6eLKR6stowSjD5dKF22N3x0MizcMsmT3OchDa_tZWcv-b60uoR6DUYuqaFpxE=w137-h138" style="margin-left: 0px; margin-top: -39.8038px;" width="137" /> </div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="background-color: transparent; font-family: helvetica; font-size: 12pt; white-space: pre-wrap;"><span> </span>- EH17A Regulador 5v + Condensadores:</span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span><span style="font-family: helvetica;"><br /><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Este regulador lo utilizamos para alimentar la ESP 32 ya que a la salida del regulador salen 5V y la ESP32 funciona con esta alimentación. Los condensadores no los escogimos ya que estamos obligados a poner el que nos dicen</span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"> <img height="112" src="https://lh4.googleusercontent.com/cIHNnhtglyiyGcXPRPJQRpYuySQp7MLV8zcqNjm-9paV8gyZVOR17uoJh1a42Lx7LDbi3d8sfFpZ38n8F7eOr6jk98gyNf0NtlVeEkMvquzgTHqAT6nk2XPXPCAbH5Af1oo3Q2N_TdQ3K3dRxqcAOgs=w112-h112" style="font-size: 14.85px; margin-left: 0px; margin-top: 0px; white-space: normal;" width="112" /> <img height="96" src="https://lh4.googleusercontent.com/H3NyJwi9Q70qT3J57cs71IEOVEruXQ_UzZ1KR3mWf-u24HFLMmZ44QeeJ-w4RtOEiQajSspJJQlWO_bOzYNw3oAg4A6KioEvPr-OiTFSyt1IA7VOeQ8kS6UUtUbLpfCqm3tJFqWLrlr15NWbah5Wals=w111-h96" style="font-size: 14.85px; margin-left: 0px; margin-top: 0px;" width="111" /></span></p></span><span style="font-family: helvetica;"><h2 dir="ltr" style="line-height: 1.8; margin-bottom: 6pt; margin-top: 18pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space: pre-wrap;"><span> </span>- Regletas:</span></h2><br /><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Las regletas nos sirven para unir circuitos, es decir, poder juntar lo que esta fuera de la placa con lo de dentro. En nuestro caso las regletas las utilizamos para poder conectar y alimentar el amplificador HX711 , la celda de carga, la pantalla y los botones.</span></p></span><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span><br /></span></div> <img height="139" src="https://lh6.googleusercontent.com/D_0wVLe4IABtkaijwyB6i6CMeWH8xe_WzjvY8CTUaqv9WymiRSQKmOtVakKf6Y1c6znaG-nyrE_bZmjwqgstYXvAUwrvvWpQ2i8qtbaRTCiu4wtd0YffjGE9s969xbOnQqwTcMbvjzUTF5fn0wFQCSU=w139-h139" style="font-family: helvetica; margin-left: 0px; margin-top: -59.3272px;" width="139" /><span style="font-family: helvetica;"><br /><br /><h2 dir="ltr" style="line-height: 1.8; margin-bottom: 6pt; margin-top: 18pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space: pre-wrap;"><span> </span>- Jack hembra(ALIMENTACIÓN):</span></h2><br /><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">El jack lo usamos para alimentar la placa ya que la fuente de alimentación que enchufamos a 220V la tenemos que convertir a 12v. Mediante el cable con el macho conseguimos conectarlo a nuestro jack y alimentar la placa.</span></p><br /></span> <img height="139" src="https://lh6.googleusercontent.com/g-J1Pwms0Svma_fOTWKYbbnc4VxjFLyKK1v45WtV2xqvzduSqy-7IQaKAjswm-fhznNxEb8Xb3z5oJQPYEuL2qwPbKOuzgobtDR-eNTcD9ycvjRbz67qL63MzA15Cq7V_gM8fX80Od-bjVwKyUM7HDM=w139-h139" style="font-family: helvetica; margin-left: 0px; margin-top: 0px;" width="139" /><span style="font-family: helvetica;"><br /><h2 dir="ltr" style="line-height: 1.8; margin-bottom: 6pt; margin-top: 18pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space: pre-wrap;"><span> </span>- HX711(amplificador de instrumentación/convertidor A/D):</span></h2><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Cogimos el hx711 porque tiene una entrada diferencial para la conexión directa de la señal de salida de la celda de carga, y está diseñado para amplificar y convertir la señal analógica de la celda de carga a una señal digital que se puede leer con una microcontroladora o un microprocesador.</span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"> <img height="179" src="https://lh3.googleusercontent.com/VL94IK7Lwcq0riPuBvu_skQ5R_Abd7AmwlOq4ojrdjtNjj02nyxXS5qNcX5wzsLUEH1BE5dpZH2SIf-eHi-DfC2ewV3LyBqQm-WPXnimsHQWYfVza6E7BRWYumQE8kwQhtpiVyBvIccqqOMo3Pif-L0=w180-h179" style="font-size: 14.85px; margin-left: 0px; margin-top: 0px; white-space: normal;" width="180" /></span></p><h2 dir="ltr" style="line-height: 1.8; margin-bottom: 6pt; margin-top: 18pt;"><span style="background-color: transparent; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space: pre-wrap;"><span> </span>- Celda de carga:</span></h2><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Una celda de carga es un dispositivo que se utiliza para medir la fuerza o la carga aplicada a través de ella y como las celdas de carga se utilizan comúnmente en aplicaciones de pesaje escogimos este sensor para saber el peso. </span></p><div class="separator" style="clear: both; text-align: center;"><span style="border: none; display: inline-block; height: 154px; margin-left: 1em; margin-right: 1em; overflow: hidden; width: 154px;"> <img height="154" src="https://lh4.googleusercontent.com/zMpb1CU4YKHCckY9aihOiQEUd1wIR1_AVv87nrh-sTOrARvdP1lGhl8SiGnrx5VdyeGbXDxJT-wsyqNWe-GZcoaKZ5yKYwQwxV4oVWH7QhISVLTZiLkQjPa9N6gk9sTgLetijfXbiz5Vm1YX0yUeUrY" style="margin-left: 0px; margin-top: 0px;" width="154" /></span></div><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><br /></span></p></span></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><span> </span>Mediante Arduino y Google Sheets conseguimos que los valores de nuestra balanza nos llegue a una tabla Excel, es decir, el programa de Arduino mediante unas librerías y los dos códigos (el de Arduino y el de Google Sheets) logra que mande el peso a la tabla del Excel mediante Wifi.</span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"> </span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"> <img height="102" src="https://lh4.googleusercontent.com/XjeWRBctC7wnkBr0url3ButkDYPr5jA8LpZ_oxsuuuHvWTc_UObk7b6z0sSyebzpnfKRyDu5j3zgoaSyDOC6RYClc2K4fNs-XHiHerWm7WfX1EwhrhlliYWX3SDkhvYVuvIzm1z8SrRwLXaNSzRe8VqReg=w178-h102" style="background-color: transparent; text-align: left;" width="178" /> <span id="docs-internal-guid-b4375c81-7fff-1140-4455-f0f2be88a2d0"><img height="96" src="https://lh4.googleusercontent.com/7y9fSE3E1Twx3hGMuTy8mqOv51W2Q3MxeBZ7ee251rWM6zCdVuj3oNpmuyNxQvqcl_Y5SYAx5LHTv_ZEqxlUUd0wrqFv4AD8YGZg1z5nT-VuASR3tjmRd3pu-kVThgDC4nqq6T74ZgFdQt7f-F0vo9n_Tg=w143-h96" width="143" /></span></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><span style="font-size: 14.85px;"> </span> Mediante estas paginas de internet hemos podido hacer el código de Arduino y de Google sheest:</span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;">- <span style="background-color: transparent; text-align: left;">https://iotdesignpro.com/articles/esp32-data-logging-to-google-sheets-with-google-scripts</span></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><span> </span>La estructura de la Balanza esta hecha mediante una impresora 3D, junto a la aplicación Freecad. En esta aplicación empezamos a dibujar nuestra balanza y al terminar la pasamos a cura para poder imprimir en nuestra impresora 3D<br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span><span style="font-family: helvetica;"><br /></span></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span><span style="font-family: helvetica;"><br /></span></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span id="docs-internal-guid-46d60816-7fff-81b1-643c-6b5c0b58aec1"><span style="font-family: helvetica;"> <img height="246" src="https://lh3.googleusercontent.com/FDoK_B1j9bqtyFukxjUcEAiTnyBzvMaGqyxpqV6SqIfUYJK9mbJCZ_9_sbUEgrkM19CuDuiJWHNgBn5yvO28UKwVUJXJhSjcnUIWzyOYH3c2siUOZ29WDE5BtJvgH8FcklULoV-MEOQ-hYXMLCYUoCh8Rw=w277-h246" width="277" /></span></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; font-size: 14.85px; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><div class="post-body entry-content" id="post-body-7401249711626406261" itemprop="description articleBody" style="line-height: 1.4; position: relative; text-align: start; width: 808.667px;"><div><div style="text-align: justify;"><span style="font-family: helvetica;"><span> </span>Esperemos que este articulo sobre la balanza eléctrica os haya sido útil y muchas gracias por leer nuestro blog, un saludo nos vemos en la próxima.</span></div></div><div style="text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="text-align: justify;"><span style="font-family: helvetica;">Aquí os dejamos el link del programa de Arduino para que podáis probar:</span></div><div style="clear: both;"></div></div><div class="post-footer" style="line-height: 1.6; margin: 0.5em 0px 0px; text-align: start;"></div></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: justify;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: right;"><span style="font-family: helvetica;">Intregantes :</span></div><div style="background-color: white; text-align: right;"><span style="font-family: helvetica;"><br /></span></div><div style="background-color: white; text-align: right;"><span style="font-family: helvetica;">Jagoba Fernandez, Ibai Omeñaka y Iker Gonzalo</span></div><div style="background-color: white; color: #5e5e5e; font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 14.85px; text-align: justify;"><br /></div></div>Jagoba Fernandezhttp://www.blogger.com/profile/13838585550882545433noreply@blogger.com0tag:blogger.com,1999:blog-835442055881274745.post-91963789658480837992022-02-03T19:03:00.000+01:002022-02-03T19:03:10.369+01:00<div><br /> <span style="font-family: trebuchet;"><span style="color: #2b00fe;"><span style="font-size: large;">Diseña tu propia máquina</span></span><br /><br /></span></div><div style="text-align: justify;"><span style="font-family: trebuchet;"> Hola! Somos Haritz Herrera, Unax Alsua y Ekain Goñi, alumnos del primer año de Grado Superior de Mantenimiento Electrónico de La Salle Berrozpe de Andoain, Guipúzcoa. </span><br /><span style="font-family: trebuchet;"></span><br /><span style="font-family: trebuchet;"> El reto que nos propusieron era el de crear una máquina automatizada eléctrica-electrónica que constaba de distintos aspectos que hemos trabajado en anteriores semanas del curso, entre ellos: la programación mediante arduino, tener un movimiento mecánico y el uso de un variador industrial para programar distintas velocidades a dicho movimiento. Por todo ello se nos ocurrió la idea de hacer un parking elevador, entre los proyectos que se nos ocurrieron para cumplir los requisitos, este fue el que más nos llamó más la atención.</span></div><div style="text-align: justify;"><span style="font-family: trebuchet;"> </span></div><div style="text-align: justify;"><span style="font-family: trebuchet;">Aquí os dejamos el esquema eléctrico del proyecto que hemos llevado adelante:</span></div><div style="text-align: justify;"><span style="font-family: trebuchet;"> </span></div><div style="text-align: justify;"><span style="font-family: trebuchet;"> <div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEg7ziaz6gBqu7uHFx0i4LkKGJ9Z7S2E7QEMbOuKgadK7T9rpuODzR0X2dZ1TsEL2GWDPBfYft2pHVY6RjDyyeMVVzElbTVVrUpBFz6KpzCZv9GMsyIV7KTiLzFHY4DFyW-IKKqUciZMaDnCv7wZbUAssJDECbXBu_IwU1VeBsm4r3xh4nYFew4fU4HS5A=s1562" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1056" data-original-width="1562" height="432" src="https://blogger.googleusercontent.com/img/a/AVvXsEg7ziaz6gBqu7uHFx0i4LkKGJ9Z7S2E7QEMbOuKgadK7T9rpuODzR0X2dZ1TsEL2GWDPBfYft2pHVY6RjDyyeMVVzElbTVVrUpBFz6KpzCZv9GMsyIV7KTiLzFHY4DFyW-IKKqUciZMaDnCv7wZbUAssJDECbXBu_IwU1VeBsm4r3xh4nYFew4fU4HS5A=w640-h432" width="640" /></a></div></span></div><div style="text-align: justify;"><span style="font-family: trebuchet;"> </span></div><div style="text-align: justify;"><span style="font-family: trebuchet;">Si os gusta y queréis ver como funciona el proyecto aquí os dejamos el video que hemos preparado para la demostración del funcionamiento del proyecto.</span></div><div style="text-align: justify;"><span style="font-family: trebuchet;"> </span></div><div style="text-align: justify;"><span style="font-family: trebuchet;"></span></div><div style="text-align: justify;"><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="349" src="https://www.youtube.com/embed/Is9Cz9Ktuh8" width="476" youtube-src-id="Is9Cz9Ktuh8"></iframe></div></div><div style="text-align: justify;"></div><div style="text-align: justify;"></div><div style="text-align: justify;"> </div><div style="text-align: justify;">Gracias por la visita a nuestro proyecto.</div><div style="text-align: justify;"></div><div style="text-align: right;">Haritz</div><div style="text-align: right;">Unax</div><div style="text-align: right;">Ekain<br /></div><div style="text-align: justify;"><span style="font-family: trebuchet;"><br /><br /></span></div>elektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.com0La Salle Hiribidea, 5, 20140 Andoain, Gipuzkoa, España43.2203149 -2.018174643.219533060123837 -2.0192474836059571 43.22109673987616 -2.017101716394043tag:blogger.com,1999:blog-835442055881274745.post-74012497116264062612021-05-14T17:28:00.006+02:002021-06-18T09:12:12.410+02:00<p style="text-align: center;"><u><span style="font-size: large;"></span></u></p><span style="color: #2b00fe; font-size: x-large;">LongBoard eléctrico</span><p></p><br /><div style="text-align: justify;">Somos el grupo 2 que está compuesto por estas personas; Bryan Ojeda, Julen Vidal, Lucas Santos y Marta Castellano y hemos desarrollado un Longboard eléctrico como proyecto final en la escuela de La Salle Berrozpe, Andoain, Guipúzcoa. El Longboard eléctrico será controlado por una App que hemos creado que irá conectada al bluetooth que se enlazara el circuito que hemos hecho para el Long.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">En el siguiente video podéis ver una explicación breve del proyecto que podréis completar con la lectura del artículo completo.</div><div style="text-align: justify;"><br /></div><div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"> <div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="364" src="https://www.youtube.com/embed/aJOqvb3jPW4" width="438" youtube-src-id="aJOqvb3jPW4"></iframe></div><br /></span></div><span><a name='more'></a></span><span><br /><div style="text-align: justify;"><br /></div></span><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Para desarrollar nuestro proyecto hemos tenido que poner a prueba nuestros conocimientos adquiridos en estos 2 años.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Por una parte hemos tenido que crear un programa que se encarga del control del longboard y para ello hemos usado el programa de arduino que usa un lenguaje C + + que nuestro microcontrolador será es capaz de entender y ejecutar cada línea de nuestro programa.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Una vez que ya teníamos el programa hecho tuvimos que crear una placa teniendo en cuenta que teníamos que poner más componentes en base a nuestro microcontrolador y a lo que queríamos que hiciese nuestro longboard y justificar todos los componentes.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Nuestra placa la alimentamos con una batería li-po externa de 22,2V que alimenta al micro controlador, al bluetooth y al variador que va conectado a un motor eléctrico que se encargará de mover el longboard.</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijKSDzHVhRbs6WVTW5MNt4EfdJz6czAcg-N8kT7JulDkKWcWhV2ulIL0nGz6An-VJT3O_W2OWiFFLiqOeMdZHKuGs0Hu4EVIajfJIPLc8rwpia45f6Bh41Zkv1m5UHda7fD-xRDbaAnLOy/s750/ESQUEMA+CONT.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="526" data-original-width="750" height="446" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijKSDzHVhRbs6WVTW5MNt4EfdJz6czAcg-N8kT7JulDkKWcWhV2ulIL0nGz6An-VJT3O_W2OWiFFLiqOeMdZHKuGs0Hu4EVIajfJIPLc8rwpia45f6Bh41Zkv1m5UHda7fD-xRDbaAnLOy/w637-h446/ESQUEMA+CONT.PNG" width="637" /></span></a></div><span><br /><div style="text-align: justify;"><br /></div></span><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Explicación del esquema:</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b>Filtro:</b></div><div style="text-align: justify;">Este condensador actúa como filtro, son de 100nF porque en circuitos donde la tensión máxima alcanzará solo los 5V es recomendable usar este tipo de condensadores.</div><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX9AmDJhCHhPTkOWAHEQubESus9vLH5cLezV_J9EcCt1LW_oQZLFfvF-n54-MJyrH5ujxqyueBPx-fTN6xkjbXCIUwgG1uAf0lXqQLbnjT6pb4iVKoIbVOiUxIkH13BYMjXjChIPcS9z7p/s170/filtro.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="51" data-original-width="170" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX9AmDJhCHhPTkOWAHEQubESus9vLH5cLezV_J9EcCt1LW_oQZLFfvF-n54-MJyrH5ujxqyueBPx-fTN6xkjbXCIUwgG1uAf0lXqQLbnjT6pb4iVKoIbVOiUxIkH13BYMjXjChIPcS9z7p/s0/filtro.PNG" /></span></a></div><p></p><div style="text-align: justify;"><b>Reset:</b></div><div style="text-align: justify;">Arduino tiene un pin de reset, que se activa con un 0 entonces hemos conectado a un Pull UP y a un botón conectado a tierra.</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjABJoa9VjP3Qg_OIrx12iFqg9p0VJMXZ1E6lb8axn8BMFWGQ7n9437KzUZVqNk0cIS0t6n4ih_wp8pneAu9bC87Jo8S5kguBN0NWPf7O0HaovM3VXiRYHxjsrJ6wt4TACWGgr1-MFFDux5/s154/reset.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="50" data-original-width="154" height="52" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjABJoa9VjP3Qg_OIrx12iFqg9p0VJMXZ1E6lb8axn8BMFWGQ7n9437KzUZVqNk0cIS0t6n4ih_wp8pneAu9bC87Jo8S5kguBN0NWPf7O0HaovM3VXiRYHxjsrJ6wt4TACWGgr1-MFFDux5/w159-h52/reset.PNG" width="159" /></span></a></div><br /><br /><div style="text-align: justify;"><b>Tiras LED:</b></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Las tiras LED irán conectadas a esta regla, la cual va conectada a la alimentación de la placa DCDC y al pin digital 3 que es un pin PWM con el que podremos controlar el color y el orden de las LEDs.</div><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9fc1nzStB-m0aQS9I_TWuZq3qW8G9x2tFhlTUNEeMfjj4rLFYV_AJI7snJA97hjy3lGQnjILLykfehdl0bjZlsgvP6wiz78Rh7NtlmNtldCUrU1Zen6yH3IiwVx3JYUcewfyaNJ5uBD5f/s520/leds+tira.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="118" data-original-width="520" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9fc1nzStB-m0aQS9I_TWuZq3qW8G9x2tFhlTUNEeMfjj4rLFYV_AJI7snJA97hjy3lGQnjILLykfehdl0bjZlsgvP6wiz78Rh7NtlmNtldCUrU1Zen6yH3IiwVx3JYUcewfyaNJ5uBD5f/s320/leds+tira.PNG" width="320" /></span></a></div><span style="font-family: arial;"><br /></span><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1dMt0vkQlosQXwVWN5whTibF00dLP_r624nkGD564bVp6Y7Juf2Xc4vsIj2pbVTiBt-IuUWtmQpu9taK5a10PtsB8HE1B504X8k-1q5NIpKP9yQ6rp8XNPu_VrnPP4LIedbwd3YnpN2DX/s190/leds.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="71" data-original-width="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1dMt0vkQlosQXwVWN5whTibF00dLP_r624nkGD564bVp6Y7Juf2Xc4vsIj2pbVTiBt-IuUWtmQpu9taK5a10PtsB8HE1B504X8k-1q5NIpKP9yQ6rp8XNPu_VrnPP4LIedbwd3YnpN2DX/s0/leds.PNG" /></span></a></div><p></p><br /><br /><div style="text-align: justify;"><b>Oscilador de cristal:</b></div><div style="text-align: justify;">La conexión para el oscilador está hecha por una resistencia de 1M, un oscilador de 16MHZ y dos condensadores de 22pF. Esta es la frecuencia (velocidad) usada más comúnmente para el funcionamiento masa adecuado de un Atmega.</div><p></p><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlZxabmRAINTUmT3vMLAT0PQ9okCsx93HOhv-yHegN8uoOvXkbeh-12mWdCq1E3iNjDUWaBHj8udoqkuOZEimBh-HkRTl_BVs6J3VC3RrDV3Z_Q_RGjHlEj7pIv4LuFrIL8M3vlwyU4eiB/s195/oscilador.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="77" data-original-width="195" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlZxabmRAINTUmT3vMLAT0PQ9okCsx93HOhv-yHegN8uoOvXkbeh-12mWdCq1E3iNjDUWaBHj8udoqkuOZEimBh-HkRTl_BVs6J3VC3RrDV3Z_Q_RGjHlEj7pIv4LuFrIL8M3vlwyU4eiB/s0/oscilador.PNG" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXgGKo-ESbZfD_XWu-BDYsnQpwvX4ACRv4wkepvkFUnDLNGF0v1Ps0CARNHP0Xt7c7eZYxQllMUCRudp6hPTnFOJGi4FGP2n_dFzrznMaQikemvPorI5RwfYDYDP48LHq1YYrudtVKvkBY/s183/oscilador+con.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="70" data-original-width="183" height="70" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXgGKo-ESbZfD_XWu-BDYsnQpwvX4ACRv4wkepvkFUnDLNGF0v1Ps0CARNHP0Xt7c7eZYxQllMUCRudp6hPTnFOJGi4FGP2n_dFzrznMaQikemvPorI5RwfYDYDP48LHq1YYrudtVKvkBY/w183-h70/oscilador+con.PNG" width="183" /></a></span></div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="background-color: transparent; font-family: arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span></p><div style="text-align: justify;"><b>Pedal del pie:</b></div><div style="text-align: justify;">En esta regleta irá conectado el pulsador del pie, que está conectado a tierra y al pin digital 7 que está programado con un Pull UP.</div><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0yN7-YJV8G2Bi15IG6xCe1nzFWe4b3welXfktJo20YvKlHlJMF-F73qxuZup3NGnZG88SdUAF1U3pjsbOXYoyKcgwaV_4Mo22P5ZZmGFVqtS-sVHStuTVPj_RFRFI7pWGloEjvsrX-WPn/s184/pedal.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="72" data-original-width="184" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0yN7-YJV8G2Bi15IG6xCe1nzFWe4b3welXfktJo20YvKlHlJMF-F73qxuZup3NGnZG88SdUAF1U3pjsbOXYoyKcgwaV_4Mo22P5ZZmGFVqtS-sVHStuTVPj_RFRFI7pWGloEjvsrX-WPn/s0/pedal.PNG" /></span></a></div><br /><div style="text-align: justify;"><b>Variador:</b></div><div style="text-align: justify;">Hemos conectado el pin RPM del variador para poder controlar la velocidad del motor y el GND para hacer común la masa de la placa y del variador.</div><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN8kuxxgGQffkRAmuOnE5SNyBynQDW16YVp8UIt3O0PNP-wtiunmdxUDuReun-hY6Qr5c2YEEuWf09wHwFWSBZh2FGi9iWQV80abam4QNk9dsoZIVzmVC7PLReQBvnvkL2LMsqEg8yUyNo/s587/variador.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="136" data-original-width="587" height="146" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN8kuxxgGQffkRAmuOnE5SNyBynQDW16YVp8UIt3O0PNP-wtiunmdxUDuReun-hY6Qr5c2YEEuWf09wHwFWSBZh2FGi9iWQV80abam4QNk9dsoZIVzmVC7PLReQBvnvkL2LMsqEg8yUyNo/w625-h146/variador.PNG" width="625" /></span></a></div><p></p><br /><br /><div style="text-align: justify;"><b>Bluetooth:</b></div><div style="text-align: justify;">Hemos usado el bluetooth para comunicarnos con la app móvil a través de los pines TX y RX, que en el arduino hemos declarado como los pines 10 y 11.</div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="background-color: transparent; font-family: arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpVDzZJ5HA_vHlQKfyDTwEqgIHuzyBB-CpX0iF1uxtp44mCze7tVqDpvPUkSuMQT_aJVSu1Ykg6c4By3H7Cbzd1BBPrynyD0dQLzg2DmmFPLIPKaRVqp3Zl7jCmnvsHnR1hUbuL0UsLPx_/s521/bluetooth.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="189" data-original-width="521" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpVDzZJ5HA_vHlQKfyDTwEqgIHuzyBB-CpX0iF1uxtp44mCze7tVqDpvPUkSuMQT_aJVSu1Ykg6c4By3H7Cbzd1BBPrynyD0dQLzg2DmmFPLIPKaRVqp3Zl7jCmnvsHnR1hUbuL0UsLPx_/w568-h206/bluetooth.PNG" width="568" /></span></a></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiajyNGl1dP_0u2X-AdJ0znoYxIdHge2R8fiuvoY0GBYKE04rltBfdFLCltOztRvvAXmrhQ2nUrmn8oGNWWYDJSV0R_6tFyRGr6vW2tYMfqMrGADvgXRyBYS2fRR3Mn_ki6FYAKrxo6iHY/s220/bluetooth+conector.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="69" data-original-width="220" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiajyNGl1dP_0u2X-AdJ0znoYxIdHge2R8fiuvoY0GBYKE04rltBfdFLCltOztRvvAXmrhQ2nUrmn8oGNWWYDJSV0R_6tFyRGr6vW2tYMfqMrGADvgXRyBYS2fRR3Mn_ki6FYAKrxo6iHY/s0/bluetooth+conector.PNG" /></span></a></div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="background-color: transparent; font-family: arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span></p><br /><div style="text-align: justify;"><br /></div><b><div style="text-align: justify;"><b>Alimentación del circuito:</b></div></b><div style="text-align: justify;">Hemos usado este regulador de 5V con sus respectivos condensadores conectados a la batería para alimentar el circuito, menos las LEDs.</div><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyl0XfJKD1HV2oucehdIaWAu9J3eVYWaXWWeKWB7pzK4mCgAwZDZ32zuxU_GQ8N8YeCvuRiwRClsb11oxHbvgYMNYgfNn6StDCa_D9gt0YPqwmBTHtXSr5S5KCJ6bO_9jjDxvojpoLBYME/s437/alimentacion.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="116" data-original-width="437" height="106" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyl0XfJKD1HV2oucehdIaWAu9J3eVYWaXWWeKWB7pzK4mCgAwZDZ32zuxU_GQ8N8YeCvuRiwRClsb11oxHbvgYMNYgfNn6StDCa_D9gt0YPqwmBTHtXSr5S5KCJ6bO_9jjDxvojpoLBYME/w400-h106/alimentacion.PNG" width="400" /></span></a></div><p></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj40ZXQm_3hyphenhyphenSN1FCH-4nwO-tpdZ67Iy8jXu5YpVNapX4IpxOScWT8C3s_k0ChovArVouHZhO_1JZ_SNZeImFUQludFSOVxYXXgZ2QW1Tfu4AsuPxyz2YeHVc-nNmzx7b0VLQ345lqH-Vn/s349/alimentacion+cond.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="74" data-original-width="349" height="85" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj40ZXQm_3hyphenhyphenSN1FCH-4nwO-tpdZ67Iy8jXu5YpVNapX4IpxOScWT8C3s_k0ChovArVouHZhO_1JZ_SNZeImFUQludFSOVxYXXgZ2QW1Tfu4AsuPxyz2YeHVc-nNmzx7b0VLQ345lqH-Vn/w400-h85/alimentacion+cond.PNG" width="400" /></span></a></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b>Alimentación para LEDs:</b></div><div style="text-align: justify;">Hemos usado un DCDC para alimentar los LEDs porque consumía mucho haciendo que suba la temperatura del regulador dándonos un mal funcionamiento.</div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="background-color: transparent; font-family: arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="background-color: transparent; font-family: arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRUOcHGhi9FT1KXskFU7KpGO6d1B_SbbGc7RQyI421WwPlHCK8JVypaBn6bFy8pv9rMlzPuy_ryLd-j4CdjFa7uMobo5WylVfCc-vRg32Ra-EIDVWrkHJuJzFkY5JIvkfLQ4miLdjpDWNj/s407/reg+y+con.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="165" data-original-width="407" height="174" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRUOcHGhi9FT1KXskFU7KpGO6d1B_SbbGc7RQyI421WwPlHCK8JVypaBn6bFy8pv9rMlzPuy_ryLd-j4CdjFa7uMobo5WylVfCc-vRg32Ra-EIDVWrkHJuJzFkY5JIvkfLQ4miLdjpDWNj/w427-h174/reg+y+con.PNG" width="427" /></span></a></div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="background-color: transparent; font-family: arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span></p><br /><br /><div style="text-align: justify;"><b>Nivel de batería:</b></div><div style="text-align: justify;">Hemos usado este divisor de tensión conectado al pin analógico A0 porque es necesario poder saber el nivel de batería, porque al Arduino no se le pueden meter más de 5V. Y con el cálculo justo para el valor de las resistencias lo bajaríamos a una escala que arduino podrá leer.</div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial; font-size: 11pt; white-space: pre-wrap;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVYqRlwdyE89tWZd_5s4sFm9GXQukhrlbKzT35KBSwVL1Sj_mJwCeuTiOjPQ0M-BbcfTAqPrx23kpOQGnJzTY3hDc2NHkjfTOe8Ap_F2jATaIsYsViJ7FtyBHY1I-VmF6ZTH5giYtmVCsA/s622/esquema+dcdc.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="440" data-original-width="622" height="457" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVYqRlwdyE89tWZd_5s4sFm9GXQukhrlbKzT35KBSwVL1Sj_mJwCeuTiOjPQ0M-BbcfTAqPrx23kpOQGnJzTY3hDc2NHkjfTOe8Ap_F2jATaIsYsViJ7FtyBHY1I-VmF6ZTH5giYtmVCsA/w648-h457/esquema+dcdc.PNG" width="648" /></span></a></div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial;"><br /></span></p><span style="font-family: arial;"><br /><span><span style="font-size: 14.6667px; white-space: pre-wrap;">Aparte tenemos otra placa que también va alimentada con la misma batería de 22,2V y que tiene una fuente de alimentación regulable que es la encargada de alimentar las tiras Led.
</span><div class="separator" style="clear: both; font-size: 14.6667px; text-align: center; white-space: pre-wrap;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV-fc61Od5EdBPlukvK5RHv66Ujcx31yF-tNlOSiI_gmWIJqKv0Vaq0y1dzhlLSaYMGIW2J0Qwb3igcVrwL_mgK8f_1YyhmboUUqQ9DdSe22sY5PxPDjbKMjccXQGXFRr0kXMtEl83MoYn/s569/pcb.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="445" data-original-width="569" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV-fc61Od5EdBPlukvK5RHv66Ujcx31yF-tNlOSiI_gmWIJqKv0Vaq0y1dzhlLSaYMGIW2J0Qwb3igcVrwL_mgK8f_1YyhmboUUqQ9DdSe22sY5PxPDjbKMjccXQGXFRr0kXMtEl83MoYn/s320/pcb.PNG" width="320" /></a></div>
<div class="separator" style="clear: both; font-size: 14.6667px; text-align: left; white-space: pre-wrap;"><div class="separator" style="clear: both; text-align: right;"><br /></div><br /></div>
</span></span><div style="text-align: justify;">Después, tuvimos que mirar como hacer para mover el motor y buscar que Variador sería compatible con nuestro motor, con este variador podemos controlar la velocidad del motor y programar su rampa de subida en nuestro caso para acelerar y de bajada, para frenar el motor. Para ello hemos utilizado una pantalla LCD multifunciones que también sirve para ver el nivel de la batería.</div><div style="text-align: justify;"><br /></div><span style="font-family: arial;"><span><div class="separator" style="clear: both; font-size: 14.6667px; text-align: center; white-space: pre-wrap;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkl5z8vyDSghq9P_Y6TiKJNUI6_UFNiodS-oMPMKDaVaM_nUw9-h0-YwTuR_-5EYzzoDXDa6hKexqJTCXAUWORwKaPVI1JfitjiGI7WsbItmrDRbMyH-5YpztXtK0SgOgKJnOjzVbkX0C1/s289/variador.PNG" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="144" data-original-width="289" height="145" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkl5z8vyDSghq9P_Y6TiKJNUI6_UFNiodS-oMPMKDaVaM_nUw9-h0-YwTuR_-5EYzzoDXDa6hKexqJTCXAUWORwKaPVI1JfitjiGI7WsbItmrDRbMyH-5YpztXtK0SgOgKJnOjzVbkX0C1/w292-h145/variador.PNG" width="292" /></a></div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL7TuePipaoufgPq83uZYQw-x4zIFsp0vlTZGLlxep00p4yZjQL-rbY6cEa967VNuCqLeTsafWO5x0ywx74UQengEpQ1WIIF4e49SLya9eHc1DGAWn2GVwcIuq6cMRgYb1isd9shhGlwNR/s181/variador+cable+programador.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="145" data-original-width="181" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL7TuePipaoufgPq83uZYQw-x4zIFsp0vlTZGLlxep00p4yZjQL-rbY6cEa967VNuCqLeTsafWO5x0ywx74UQengEpQ1WIIF4e49SLya9eHc1DGAWn2GVwcIuq6cMRgYb1isd9shhGlwNR/s0/variador+cable+programador.PNG" /></a></div></span></span><div><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6EgkvrY8dp8Hjh1lhkNZY1YSdo3cgqOZ4t-1xA1E8sh2_0q3RBJLTcO0GE9Zs6W_RlTTHo2olsFRiDx8dDBhtpZWqrEsOPSEae4-pkkUzmoFlEB3_JWXM90xxXGMR5Zu40RTYHArwuwYf/s227/programador+variador.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="142" data-original-width="227" height="178" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6EgkvrY8dp8Hjh1lhkNZY1YSdo3cgqOZ4t-1xA1E8sh2_0q3RBJLTcO0GE9Zs6W_RlTTHo2olsFRiDx8dDBhtpZWqrEsOPSEae4-pkkUzmoFlEB3_JWXM90xxXGMR5Zu40RTYHArwuwYf/w287-h178/programador+variador.PNG" width="287" /></span></a></div><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span></div><div><span style="font-family: arial;"><br /></span></div><div><div style="text-align: justify;">El motor que hemos usado es un motor eficiente y de alta fiabilidad que utiliza cojinetes de doble blindaje, imanes de neodimio sinterizado y un estator que garantiza un buen bobinado y muy constante en todo momento este motor va conectado al variador.</div><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><div style="text-align: justify;"> </div><br /></span><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguh7sEGPXo7iI1ljs-LvgeUyGWry8KmB23Sp9dsNizcxqfP3zMZaoHi6RkIjYyjpNCI5yKBafpvLsoOO28u34eISiKgIOpSm3hDg0hnhOH0o4d15FdsCGORNGLf-3lBD-li6053JGX7LTK/s299/esuqema+mtor.PNG" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="254" data-original-width="299" height="198" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguh7sEGPXo7iI1ljs-LvgeUyGWry8KmB23Sp9dsNizcxqfP3zMZaoHi6RkIjYyjpNCI5yKBafpvLsoOO28u34eISiKgIOpSm3hDg0hnhOH0o4d15FdsCGORNGLf-3lBD-li6053JGX7LTK/w235-h198/esuqema+mtor.PNG" width="235" /></span></a></div></div></div><div><span style="font-family: arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"><br /></span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGyDesPpCujU139nAk30zA3cFkZM2C-7k2-V5aryk8XwZQewb-tBhb3pq5-Wtf71kIQcW2GBESKtp_w8XJsPoPdhumeWC8rsjA0yZFV9RGLR-bC-4IOk7DWJavq4WZaLa4QETKIlkS4MB-/s339/motor.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="221" data-original-width="339" height="193" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGyDesPpCujU139nAk30zA3cFkZM2C-7k2-V5aryk8XwZQewb-tBhb3pq5-Wtf71kIQcW2GBESKtp_w8XJsPoPdhumeWC8rsjA0yZFV9RGLR-bC-4IOk7DWJavq4WZaLa4QETKIlkS4MB-/w297-h193/motor.PNG" width="297" /></a></span></div><div><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span></div><div><div style="text-align: justify;"><br /></div> <div style="text-align: justify;">Para poder comunicarnos con la placa y acelerar o frenar el longboard tuvimos que poner un bluetooth que se conecta a nuestro dispositivo que en nuestro caso es el móvil.</div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2W2EkOnTiXvWJUJOViUAiKhtzFzL-PzSxVzPnavw8cwTDmxUd05QZlHcz0C7-ew3IbNaFMdCk3uBbbxRjFXxdkw0axn2J5v58J6ua5ExbhSEFBZW7J4Uzcisg159Xmttcf7dL3geffOjX/s226/bluetot.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="147" data-original-width="226" height="141" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2W2EkOnTiXvWJUJOViUAiKhtzFzL-PzSxVzPnavw8cwTDmxUd05QZlHcz0C7-ew3IbNaFMdCk3uBbbxRjFXxdkw0axn2J5v58J6ua5ExbhSEFBZW7J4Uzcisg159Xmttcf7dL3geffOjX/w217-h141/bluetot.PNG" width="217" /></span></a></div><p></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial;"><br /></span></p><div style="text-align: justify;">En el móvil, tuvimos que crear una aplicación en la appInventor, hacer un sketch y programarlo.</div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"></span></p><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihA2Y5f5kw2PrLgoRDMPiABlal47Fgsrvjd6deSLQ49bBKUPet-CANIOCnYpG3rPU1h_XP2_OlKLkECnSdu7ti1kDTe6JAkv23RBqkZpBRNHCBFZ6RLsoV1fKuSpwIrpxbSlg_EzEFhNxw/s732/app+inventor.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="414" data-original-width="732" height="292" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihA2Y5f5kw2PrLgoRDMPiABlal47Fgsrvjd6deSLQ49bBKUPet-CANIOCnYpG3rPU1h_XP2_OlKLkECnSdu7ti1kDTe6JAkv23RBqkZpBRNHCBFZ6RLsoV1fKuSpwIrpxbSlg_EzEFhNxw/w515-h292/app+inventor.PNG" width="515" /></a></span></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div style="text-align: justify;">Aquí es donde explicamos las diferentes partes de los blocs de app inventor. Esta parte del bloc de app inventor es donde programamos para que aparezca los diferentes tipos de dispositivos bluetooth que tenemos guardado en el móvil.</div><p></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-6K2w89HIynYb5YuGux2HWhQ9y_paLzkN8M3ZOilwxOwn0M5-PB06e2eSonL5WUP1W001LRDtl7DQs4clhXFmuj0Mx4dk4dIzAq73CPG9A8KT6Ju16EoqAdsmVWtzzCN-kkE8tVzfR8x-/s774/bloque+app1.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="91" data-original-width="774" height="66" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-6K2w89HIynYb5YuGux2HWhQ9y_paLzkN8M3ZOilwxOwn0M5-PB06e2eSonL5WUP1W001LRDtl7DQs4clhXFmuj0Mx4dk4dIzAq73CPG9A8KT6Ju16EoqAdsmVWtzzCN-kkE8tVzfR8x-/w558-h66/bloque+app1.PNG" width="558" /></span></a></div><p></p><div style="text-align: justify;">Esta parte del bloc es donde nos aparece en la pantalla de la app si está conectado o no al bluetooth si está conectada nos aparecerá conexión correcta y si no nos aparecerá conexión incorrecta.</div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"></span></p><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"></span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE3RZ5uLTBrOA8rAivEWiPF9OcnQrdh-mMTCY_Lopanib91wD1xxiggNPGR4U7l9EM1F4lfiiSRqoGvTTlQYlv6hqEflJ-HxBmT89xO5dmJTm90ndk2hpNxkHGGQDbPs4ZhKQ6n2j2k3_J/s768/bloque+app2.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="217" data-original-width="768" height="143" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE3RZ5uLTBrOA8rAivEWiPF9OcnQrdh-mMTCY_Lopanib91wD1xxiggNPGR4U7l9EM1F4lfiiSRqoGvTTlQYlv6hqEflJ-HxBmT89xO5dmJTm90ndk2hpNxkHGGQDbPs4ZhKQ6n2j2k3_J/w510-h143/bloque+app2.PNG" width="510" /></a></span></div><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span><p></p><div style="text-align: justify;">Aquí es donde recibimos los datos del divisor de tensión para nos dar el nivel de batería y aparezca en la app.</div><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwxuClc8-N-6Wqm9VI5j4cMi2HJQpmR22vChl1gRTTiicG1s3QHE03oePRda9uCF93vv2M8shGYWLF18L89WC8v1NQVzEKC72zfcFu-A9-elKUSFQ_LHrBci5ZoqLuJAOkVVTXlpiWeREe/s1046/bloque+app3.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="149" data-original-width="1046" height="93" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwxuClc8-N-6Wqm9VI5j4cMi2HJQpmR22vChl1gRTTiicG1s3QHE03oePRda9uCF93vv2M8shGYWLF18L89WC8v1NQVzEKC72zfcFu-A9-elKUSFQ_LHrBci5ZoqLuJAOkVVTXlpiWeREe/w652-h93/bloque+app3.PNG" width="652" /></span></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div style="text-align: justify;">Esta parte del bloc es donde si programa el deslizador para que nos envíe o valor de 0 a 255.</div><div style="text-align: justify;"><br /></div><span style="font-family: arial;"><div class="separator" style="clear: both; font-size: 14.6667px; text-align: center; white-space: pre-wrap;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiZKkuh-XMtgSZLqYlXGHki3y-qo1iKR9MS9hcRvK3kFxXRP9OAsl0xciv2iY9PcHUOFzpWkyZT5dMsaJfdsr80yYhFqCPXY1acyidQoD8KZNGBg13PdCz6knrpDqQpLrZlDzpNY9WplRg/s925/bloque+app4.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="214" data-original-width="925" height="151" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiZKkuh-XMtgSZLqYlXGHki3y-qo1iKR9MS9hcRvK3kFxXRP9OAsl0xciv2iY9PcHUOFzpWkyZT5dMsaJfdsr80yYhFqCPXY1acyidQoD8KZNGBg13PdCz6knrpDqQpLrZlDzpNY9WplRg/w653-h151/bloque+app4.PNG" width="653" /></a></div><div style="font-size: 14.6667px; white-space: pre-wrap;"><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span></div><div style="font-size: 14.6667px; white-space: pre-wrap;"><span style="font-family: arial; font-size: 14.6667px; white-space: pre-wrap;"><br /></span></div></span>En los siguientes enlaces podréis ver los programas de arduino y los programas de appinventor: <span style="font-family: arial;"><div style="font-size: 14.6667px; white-space: pre-wrap;"><u><b><br /></b></u></div></span><b><u>Arduino:</u></b><span style="font-family: arial;"><div style="font-size: 14.6667px; white-space: pre-wrap;"><br /></div><div><span style="font-size: 14.6667px; white-space: pre-wrap;">https://github.com/elektronikalsb/ElectricLong/tree/main/Arduino</span></div><div><span style="font-size: 14.6667px; white-space: pre-wrap;"><u><b><br /></b></u></span></div></span><b><u>Appinventor:</u></b><span style="font-family: arial;"><div style="font-size: 14.6667px; white-space: pre-wrap;"><br /></div><div><span style="font-size: 14.6667px; white-space: pre-wrap;">https://github.com/elektronikalsb/ElectricLong/tree/main/AppInventor</span></div><div style="font-size: 14.6667px; white-space: pre-wrap;"><br /></div></span><div style="text-align: justify;">Por último pusimos 2 tiras LED RGB en cada costado del patinete que lo programamos en 3 colores y que se encendieran como una barra de velocidad, mientras más rápido íbamos más luces se encenderán, También hemos puesto un pulsador que frenará el long si nos caemos o dejamos de pulsar.</div></div><div><p></p><div style="text-align: justify;"><span style="font-family: arial; font-size: 11pt; white-space: pre-wrap;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1_Puu2HFQGwkOI4CZALUkRE5_A_TgpO7cKWlsrgPD6Gy64iiO9A1kOWPnNOCkWQc9QCs_qAM02gTfntqowPWd6u4goibCtjJwcudUVZeplVrstBKCdlFBDOsWV_YpOxEMyiQ-lPCt2wbs/s535/long.PNG" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: arial;"><img border="0" data-original-height="349" data-original-width="535" height="289" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1_Puu2HFQGwkOI4CZALUkRE5_A_TgpO7cKWlsrgPD6Gy64iiO9A1kOWPnNOCkWQc9QCs_qAM02gTfntqowPWd6u4goibCtjJwcudUVZeplVrstBKCdlFBDOsWV_YpOxEMyiQ-lPCt2wbs/w442-h289/long.PNG" width="442" /></span></a></div><span style="font-family: arial;"><div style="text-align: justify;"><br /></div></span><div style="text-align: justify;">Esperemos que este articulo sobre el LongBoard eléctrico os haya sido útil y muchas gracias por leer nuestro blog, un saludo nos vemos en la próxima.</div></div></div></div>Anonymousnoreply@blogger.com0La Salle Hiribidea, 5, 20140 Andoain, Gipuzkoa, España43.2202529 -2.0181217.777747077690655 -37.17437 68.662758722309349 33.13813tag:blogger.com,1999:blog-835442055881274745.post-33699481609897946222021-03-02T10:09:00.002+01:002021-04-19T11:56:48.856+02:00<p style="text-align: left;"><span style="color: #2b00fe; font-family: verdana; font-size: large;"> ZAVAIK SOLUCIONES INTELIGENTES</span></p><p style="text-align: justify;"><span style="font-family: verdana;">Somos Aitor Zabaleta, Iker Carvajo y Asier Valderrama, estudiantes de segundo curso del Ciclo Superior de Mantenimiento Electrónico, en La Salle Berrozpe, Andoain, Gipuzkoa. Nuestro proyecto es ZAVAIK SOLUCIONES INTELIGENTES. </span></p><p></p><div class="separator" style="clear: both; text-align: justify;"><span style="font-family: verdana;">Nuestro proyecto pretende hacer cualquier dispositivo de la vida cotidiana, en un dispositivos inteligentes que se pueda comunicar con Alexa.</span></div><p style="text-align: justify;"><span style="font-family: verdana;">Os dejamos un pequeño video para que podáis entender en qué consiste nuestro proyecto. En el video, además de presentarnos y ver el funcionamiento</span></p><p style="text-align: justify;"></p><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="357" src="https://www.youtube.com/embed/qDouRCAkcN8" width="482" youtube-src-id="qDouRCAkcN8"></iframe></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><br /> <p></p><p style="text-align: justify;"><span></span></p><a name='more'></a><span style="font-family: verdana;"><br /></span><p></p><p style="text-align: justify;"><span style="font-family: verdana;"><b>¿EN QUE CONSISTE? </b></span></p><p style="text-align: justify;"><span style="font-family: verdana;">En nuestro caso con Alexa, lo que queremos es controlar una bombilla no inteligente como las que nos podemos encontrar en cualquier casa, oficina, etc; y convertirla en una bombilla inteligente y conseguir encender y apagarla interactuando mediante voz con Alexa. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">La idea de este proyecto surge de que hoy en día en la mayoría de las casas se están implementando dispositivos relacionados con la domótica por lo que nosotros decidimos crear algo vinculado con esto. En la domótica uno de los dispositivos que no cambia apenas, es el uso de Alexa de Amazon con el que puedes controlar diferentes dispositivos. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">Por otro lado queremos medir mediante un sensor de corriente no invasivo diferentes aparatos y con esto recibir la intensidad máxima que circula y ver el consumo de este aparato, además de que interactuando con la Alexa, esta información que capta el sensor la sube a una hoja de Excel de Google drive. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">Como hemos dicho antes, nuestro prototipo consta de dos partes, por un lado tenemos una placa con el que controlamos el encendido y apagado de la bombilla como de un led interno del NodeMCU ESP8266. Además también podemos descargar la APP desde play store de cualquier móvil y añadiendo aquí tanto el led como la bombilla como dispositivos podemos también controlar activando y desactivando desde la aplicación estos dos dispositivos. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">Para poder mantener la comunicación entre el ESP8266 y la Alexa, ambos tienen que estar conectados al mismo wifi. También hay que añadir tanto el led como la bombilla a la APP de Alexa para poder crear una interacción y poder encender y apagar tanto el led como la bombilla mediante Alexa. Una vez que tenemos los dispositivos añadidos, lo único que tenemos que decir para que se encienda tanto el led como la bombilla es: "Alexa enciende</span></p><p style="text-align: justify;"><span style="font-family: verdana;">led" o "Alexa enciende bombilla" y en el caso de que queramos apagarlas tendremos que decir lo siguiente, "Alexa apaga led" o "Alexa apaga bombilla". Como hemos dicho anteriormente el encendido y apagado también se puede controlar mediante la APP de Alexa. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">Por otro lado, con la otra placa controlamos lo que es el tema del sensor, tanto recibir la información como hacer los diferentes cálculos para que te nos de tanto el consumo como la intensidad máxima del aparato que estemos midiendo. Además de subir esta información a un Excel de Google drive para poder tener la información al momento y poder verlo a tiempo real esta información. Igual que la placa que enciende y apaga la bombilla, el ESP8266 de esta placa también tiene que estar conectado al mismo wifi para poder mantener la comunicación, Además en este caso también tenemos que añadir el dispositivo del sensor a la APP de Alexa para crear una interacción de voz con Alexa y pueda mandar la información cada vez que se lo pidamos. Para mandar la información que capta el sensor SCT013 tendremos que decir "Alexa enciende sensor", además de que de la manera que hemos programado también cada 5 minutos te manda la información que has captado en ese momento para poder visualizar por ejemplo al cabo del día el consumo del dispositivo. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">Este sensor, el SCT013-30A es un sensor no invasivo de efecto hall que mide la corriente y con esto lo que conseguimos es medir el consumo eléctrico de cualquier aparato electrónico.</span></p><p style="text-align: justify;"><span style="font-family: verdana;">A continuación os explicaremos más detalladamente los diferentes componentes que hemos utilizado para la fabricación de la placa para encender y apagar tanto la bombilla como el led.</span></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaMybDJUrF4aC2a4dZri6CLxoo5vHj8XhyBVQGLOhfcRXtxVwnZG7OU-N_Nn7jhMzY39ZaU0XGXnAo2O7DC2ymEkqkagL2xsA2IhUec3O4bgVT2v-WzG-KN6oJRj3ukOUWy1_ydZyR4-SG/s813/RELE.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="391" data-original-width="813" height="309" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaMybDJUrF4aC2a4dZri6CLxoo5vHj8XhyBVQGLOhfcRXtxVwnZG7OU-N_Nn7jhMzY39ZaU0XGXnAo2O7DC2ymEkqkagL2xsA2IhUec3O4bgVT2v-WzG-KN6oJRj3ukOUWy1_ydZyR4-SG/w640-h309/RELE.JPG" width="640" /></a></div><br /><div class="separator" style="clear: both; text-align: justify;"><br /></div><span><p style="font-family: times;"><span style="font-family: verdana; text-align: justify;">Como se puede observar, en este circuito nos encontramos con dos regletas (J3 y J1). J3 es para alimentar la placa; esto es, conectaremos directamente a un enchufe de 230V, y J1 es para la salida de la placa; esto es, de aquí saldrán los 230V que accionaran la bombilla. </span></p></span><p></p><p style="text-align: justify;"><span style="font-family: verdana;">Al alimentar la placa, nos encontramos con una fuente de alimentación de AC-DC cuyo fin es lograr 5V (CC) de 230V (CA) de entrada. Con esos 5V, por un lado alimentaremos la placa ESP8266 mediante el pin VIN (pin 15), y por otro lado alimentaremos el relé. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">Entre el ESP8266 y el relé hay unos componentes cuya función es proteger las dos partes del circuito entre sí, es decir entre el ESP8266 y la parte de los contactos del relé. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">El diodo está colocado paralelo a los pines de la bobina del relé, a su vez este diodo está colocado inversamente y esto se usa para que la bobina al trabajar en conmutación, cuando está cargado y el transistor pasa a estar en modo corte, la bobina tiende a descargarse y se descargue mediante el diodo. En nuestro caso, hemos utilizado el diodo 1N4118, pero en un principio queríamos utilizar el 1N4007 pero este no estaba disponible en stock en ninguna de las paginas para comprar componentes electrónicos en SMD, por lo que decidimos cambiar al diodo 1N4118 ya que este si que estaba disponible en SMD. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">Con el optoacoplador U2 conseguimos aislar los dos circuitos, ya que si en la parte del circuito donde se encuentra el relé hay un cortocircuito el optoacoplador aísla el ESP8266 para que este no se estropee. Hemos escogido este optoacoplador ya que en nuestro caso se tenía que alimentar a 5V y después de ver en diferentes proveedores de componentes electrónicos, vivimos que escogiendo este optoacoplador PC817 tardaría menos tiempo en llegarnos y viendo la hoja de características nos valdría para nuestro circuito.</span></p><p style="text-align: justify;"><span style="font-family: verdana;">Y las dos resistencias que están en el circuito, están para limitar la corriente y tener un menor consumo.</span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX8Cby2dXNXi632uQN1OnYJ-arRxw3ambu7Qc5q8M_hUasMfr1i74gfT_trL_bu7QhAE6G1LI-kyJJQcadwfsjGrDZiog8eJXgwcFlqRwmObwrpDDwzG9ukaP6j-d_nSJdMNvuoImQhyphenhyphen6Z/s816/SCT.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="328" data-original-width="816" height="258" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX8Cby2dXNXi632uQN1OnYJ-arRxw3ambu7Qc5q8M_hUasMfr1i74gfT_trL_bu7QhAE6G1LI-kyJJQcadwfsjGrDZiog8eJXgwcFlqRwmObwrpDDwzG9ukaP6j-d_nSJdMNvuoImQhyphenhyphen6Z/w640-h258/SCT.JPG" width="640" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><p style="text-align: justify;"><span style="font-family: verdana;">Como se puede observar, en este circuito nos encontramos con dos regletas (J1 y J2). J1 es para alimentar la placa; esto es, conectaremos directamente a un enchufe de 230V, y J2 es para conectar los dos cables del sensor de corriente. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">Al alimentar la placa, nos encontramos con una fuente de alimentación de AC-DC cuyo fin es lograr 5V (CC) de 230V (CA) de entrada. Con esos 5V alimentaremos la placa ESP8266 mediante el pin VIN (15). </span></p><p style="text-align: justify;"><span style="font-family: verdana;">El sensor de corriente no invasivo nos da una señal de salida entre -1V a +1V. Como la placa ESP8266 no permite voltajes de valor negativo, con el circuito que se encuentra a la derecha de la imagen elevaremos nuestra señal del sensor hasta conseguir valores positivos. Con dos resistencias del mismo valor creamos un divisor de tensión. Metiendo una tensión de 3,3V en el divisor, entre las dos resistencia conseguiremos una tensión de V=3,3/2 = 1,65V. Esta tensión se le añade a la tensión de salida del SCT-013, consiguiendo aumentar el punto de referencia, por lo que ya no tendremos tensiones de valor negativo. Por otro lado, tenemos el condensador que se encarga de estabilizar la señal; es decir, evita cambios bruscos de la señal y por otro lado en caso de que se nos acople el ruido en la señal, con el condensador derivaremos este ruido a masa. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">A la hora de decidir el valor para las dos resistencias tener en cuenta que deben de tener el mismo valor y preferiblemente tiene que ser de un valor alto para tener un menor consumo de corriente. En nuestro caso hemos colocado dos resistencias de 100KΩ y un condensador de entre 10uF y 100uF. </span></p><p style="text-align: justify;"><span style="font-family: verdana;">El pcb layout, es el plano general del circuito impreso, tal y como va a quedar al fabricar el pcb. </span></p><p><span style="font-family: verdana;">Línea Roja: Top Copper. </span></p><p><span style="font-family: verdana;">Línea Azul: Bottom Copper. </span></p><p><span style="font-family: verdana;">Círculo dorado: Vía para unir ambas caras. </span></p><p><span style="font-family: verdana;">Agujero rosa y gris: conexión eléctrica número 1 y 2 del componente. Rosa área de conexión y lo gris agujero. </span></p><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-JaPFHh7erjE/YD36yfzaMzI/AAAAAAAAABc/sIhI2cER_dI9D4ep9EtJM39o1oNXF3PcACLcBGAsYHQ/s1032/PCB_RELE.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="642" data-original-width="1032" height="369" src="https://1.bp.blogspot.com/-JaPFHh7erjE/YD36yfzaMzI/AAAAAAAAABc/sIhI2cER_dI9D4ep9EtJM39o1oNXF3PcACLcBGAsYHQ/w593-h369/PCB_RELE.JPG" width="593" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-bMDBX-56xcc/YD36yVBYJuI/AAAAAAAAABY/KJyyfpxHXo8IGeiJKsBrcsOYiDXy0bzlwCLcBGAsYHQ/s1004/placa_sct.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="318" data-original-width="1004" height="186" src="https://1.bp.blogspot.com/-bMDBX-56xcc/YD36yVBYJuI/AAAAAAAAABY/KJyyfpxHXo8IGeiJKsBrcsOYiDXy0bzlwCLcBGAsYHQ/w590-h186/placa_sct.PNG" width="590" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><p style="text-align: justify;"><span style="font-family: verdana;">A continuación, os mostraremos una imágenes de las 4 piezas que hemos diseñado nosotros e impreso nosotros en impresora 3D, estas piezas las utilizamos para envolver nuestras placas.</span></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-TdiJ3ATSFzQ/YD37l1_V_AI/AAAAAAAAABo/wcDSizhedRQspbDqaBK-pIPOlwqNKSKewCLcBGAsYHQ/s574/ENSABLAJE%2BRELE.JPG" style="font-family: times; margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="470" data-original-width="574" height="223" src="https://1.bp.blogspot.com/-TdiJ3ATSFzQ/YD37l1_V_AI/AAAAAAAAABo/wcDSizhedRQspbDqaBK-pIPOlwqNKSKewCLcBGAsYHQ/w273-h223/ENSABLAJE%2BRELE.JPG" width="273" /></a><a href="https://1.bp.blogspot.com/-k0rdjk1sCiY/YD37meSpScI/AAAAAAAAAB0/ikrRemOG28kJ-GqMshAfa0Rg9w8FyOIMwCLcBGAsYHQ/s590/ENSABLAJE%2BSCT.JPG" style="font-family: times; margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="577" data-original-width="590" height="238" src="https://1.bp.blogspot.com/-k0rdjk1sCiY/YD37meSpScI/AAAAAAAAAB0/ikrRemOG28kJ-GqMshAfa0Rg9w8FyOIMwCLcBGAsYHQ/w243-h238/ENSABLAJE%2BSCT.JPG" width="243" /></a></div><span><div class="separator" style="clear: both; font-family: times; text-align: center;"><br /></div></span><div class="separator" style="clear: both;"><span><div class="separator" style="clear: both; font-family: times; text-align: center;"><a href="https://1.bp.blogspot.com/-eSLSrGqlgL0/YD37mq9IJ0I/AAAAAAAAAB4/vT_JS1txeMwPcezdQTMvYrDDSL9lnf4GwCLcBGAsYHQ/s634/RELE%2BENSABLAJE%2BEXPLOSIONADO.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="634" data-original-width="498" height="320" src="https://1.bp.blogspot.com/-eSLSrGqlgL0/YD37mq9IJ0I/AAAAAAAAAB4/vT_JS1txeMwPcezdQTMvYrDDSL9lnf4GwCLcBGAsYHQ/s320/RELE%2BENSABLAJE%2BEXPLOSIONADO.JPG" /></a><a href="https://1.bp.blogspot.com/-n5DQgldlDng/YD37l09FMrI/AAAAAAAAABw/d-29uqXeE7ggW30_5PEqWCrirmW-PRrnACLcBGAsYHQ/s613/ENSABLAJE%2BSCT%2BEXPLOSIONADO.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="613" data-original-width="430" height="325" src="https://1.bp.blogspot.com/-n5DQgldlDng/YD37l09FMrI/AAAAAAAAABw/d-29uqXeE7ggW30_5PEqWCrirmW-PRrnACLcBGAsYHQ/w228-h325/ENSABLAJE%2BSCT%2BEXPLOSIONADO.JPG" width="228" /></a></div><div class="separator" style="clear: both; font-family: times; text-align: center;"><br /></div><div class="separator" style="clear: both; font-family: times; text-align: center;"><a href="https://1.bp.blogspot.com/-LByl_GLHqFY/YD37nCm8ydI/AAAAAAAAACE/4-IkFC0sadA1vw55jQEq-QaBXHf8gfe9ACLcBGAsYHQ/s745/base%2Brele.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="556" data-original-width="745" height="208" src="https://1.bp.blogspot.com/-LByl_GLHqFY/YD37nCm8ydI/AAAAAAAAACE/4-IkFC0sadA1vw55jQEq-QaBXHf8gfe9ACLcBGAsYHQ/w278-h208/base%2Brele.JPG" width="278" /></a><a href="https://1.bp.blogspot.com/-9PSahJd4BPY/YD37l2dGW8I/AAAAAAAAABs/wcjsD63F3-o0Jx5zqCIMwU5JfCIG_M1DQCLcBGAsYHQ/s880/BASE%2BSCT.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="713" data-original-width="880" height="193" src="https://1.bp.blogspot.com/-9PSahJd4BPY/YD37l2dGW8I/AAAAAAAAABs/wcjsD63F3-o0Jx5zqCIMwU5JfCIG_M1DQCLcBGAsYHQ/w237-h193/BASE%2BSCT.JPG" width="237" /></a></div><div class="separator" style="clear: both; font-family: times; text-align: center;"></div><br /><br /><div class="separator" style="clear: both; font-family: times; text-align: center;"><a href="https://1.bp.blogspot.com/-1r_bjh6wRZs/YD37mukjMhI/AAAAAAAAAB8/ZUIRgXg4P9IcbUR6hOs8OiqfPdHafC53ACLcBGAsYHQ/s535/TAPA%2BRELE.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="535" data-original-width="520" height="257" src="https://1.bp.blogspot.com/-1r_bjh6wRZs/YD37mukjMhI/AAAAAAAAAB8/ZUIRgXg4P9IcbUR6hOs8OiqfPdHafC53ACLcBGAsYHQ/w249-h257/TAPA%2BRELE.JPG" width="249" /></a><a href="https://1.bp.blogspot.com/-FeSleUat3TU/YD37m0dG2vI/AAAAAAAAACA/Kf0Cr90kxJUZ_AcxUdtbVOlKeaM3-fiWgCLcBGAsYHQ/s733/TAPA%2BSCT.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="598" data-original-width="733" height="228" src="https://1.bp.blogspot.com/-FeSleUat3TU/YD37m0dG2vI/AAAAAAAAACA/Kf0Cr90kxJUZ_AcxUdtbVOlKeaM3-fiWgCLcBGAsYHQ/w280-h228/TAPA%2BSCT.JPG" width="280" /></a></div><br /><br /><div style="text-align: justify;"><span style="font-family: verdana;">En el siguiente enlace podéis encontrar el código de Arduino para encender y apagar tanto el led como la bombilla</span></div></span><span><div class="separator" style="clear: both; font-family: times; text-align: center;"><span style="font-family: verdana; text-align: justify;"><br /></span></div></span><span style="font-family: verdana;"><div style="text-align: center;"><a href="https://github.com/elektronikalsb/dispInteligentesAlexa/tree/main/Alexa_Bombilla_Inteligente">https://github.com/elektronikalsb/dispInteligentesAlexa/tree/main/Alexa_Bombilla_Inteligente</a></div></span><span><div class="separator" style="clear: both; font-family: times; text-align: center;"><span style="font-family: verdana; text-align: justify;"><br /></span></div></span><div style="text-align: justify;"><span style="font-family: verdana;">En el siguiente enlace podéis encontrar el código de Arduino para recibir y enviar la información al Excel sobre la información que recibe el sensor SCT013.</span></div><span><div class="separator" style="clear: both; font-family: times; text-align: center;"><span style="font-family: verdana; text-align: justify;"><br /></span></div><p style="clear: both; text-align: center;"><span style="font-family: verdana; text-align: justify;"><a href="https://github.com/elektronikalsb/dispInteligentesAlexa/tree/main/Alexa_Medidor_Energia_Inteligente">https://github.com/elektronikalsb/dispInteligentesAlexa/tree/main/Alexa_Medidor_Energia_Inteligente</a></span></p></span></div><div style="text-align: justify;"><span style="font-family: verdana;">Esperamos que os guste y que os pueda servir de guía para futuros proyectos. Gracias.</span></div><div class="separator" style="clear: both; text-align: justify;"><br /></div><div style="text-align: justify;"><br /></div><div class="separator" style="clear: both; text-align: justify;"><br /></div><div style="text-align: justify;"><br /></div>Anonymousnoreply@blogger.comLa Salle Hiribidea, 5, 20140 Andoain, Gipuzkoa, España43.2202529 -2.0181243.220057440392594 -2.0183882209014894 43.2204483596074 -2.0178517790985109tag:blogger.com,1999:blog-835442055881274745.post-90327811629466814622018-05-07T09:22:00.001+02:002023-02-22T11:52:26.890+01:00<h2 style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif" style="color: blue; font-size: x-large;">ERIZAIN</span></h2>
<div style="text-align: justify;">
<span face=""helvetica neue" , "arial" , "helvetica" , sans-serif"><br /></span></div>
<div style="text-align: justify;">
<span face=""helvetica neue" , "arial" , "helvetica" , sans-serif">Imanol Lopez, Mikel Manzano y Joseba Agirre, alumnos de grado superior de electrónica en La Salle Berrozpe Andoain, hemos creado este proyecto pensado para mejorar calidad de vida de la gente que toma muchos medicamentos a diario, facilitando esta tarea gracias a las nuevas tecnologías. Ongi etorri Erizain!!</span><b id="docs-internal-guid-04e48147-e17c-7770-a43e-3fd63a02ae92" style="font-weight: normal;"><br /></b>
</div>
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><img height="86" src="https://lh6.googleusercontent.com/lfRoFn3vpJF1GGcr_gnT3KAS_CE4DmG1TolXUZa1b-lvbHuZMsVMoJuiZvgpZcVXdlcDsli2XBa-Xw4bhggglfODWtu5Xin6sUxFy0OwR3-1JeSStYPZVSzCnq8bOINmcVwDQ-xT" style="border: medium none; transform: rotate(0rad);" width="226" /></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<span face=""trebuchet ms" , sans-serif">Éste es vídeo explicativo del proyecto:</span><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/yCbIbedoCdw/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/yCbIbedoCdw?feature=player_embedded" width="320"></iframe></div>
<br />
<a name='more'></a><br /><br />
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif">Erizain es un dispensador de pastillas con conexión a internet. Gracias a la conexión a internet el médico y el paciente pueden llevar un control exhaustivo de todos los tratamientos del paciente, ya sean temporales o continuos. Hemos utilizado un Arduino Yun, que tiene chip de wifi incorporado, y el servicio temboo para poder acceder al calendario de google asociado a una cuenta de gmail, que en este caso sería la del paciente. Gracias al acceso al calendario de google podemos utilizar los eventos para cada toma en concreto. Estos eventos son fácilmente programables, pudiendo repetirlos cada ciertas horas para las tomas regulares y también ajustar la fecha de inicio y final de cada tratamiento.</span></div>
<br />
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: white; color: black; font-family: "arial"; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><img height="114" src="https://lh5.googleusercontent.com/UzAdrgw97UgZHUrHO7zt3p3FeFL2x8qj-dbie4SBnLJM61t7GzsdtLVBlsxTXMKoPAn1AdNzXdxZxJ1tkeVIPqpnQU7qooO-cieqkH7CuSP_Yv3SnE8L5OkeecmIUfK_kl170sas" style="border: medium none; transform: rotate(0rad);" width="422" /></span></div>
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: white; color: #434343; font-family: "arial"; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;">Los tres pilares del proyecto Erizain</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<br />
<br />
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif">Nos hemos marcados unos objetivos desde el inicio en del proyecto, siendo algunos de estos objetivos prioritarios y otros secundarios, pues era importante definir desde el principio las prioridades y centrarnos en estas para después intentar añadir mejoras.</span></div>
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif"><br /></span></div>
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif"><br /></span></div>
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif">Para entender mejor el concepto de erizain hemos creado un esquema general del proyecto.</span></div>
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif"><br /></span></div>
<img height="358" src="https://lh3.googleusercontent.com/tmwLbmLSaKIp-indNGBQojaW5RSboZcE0O-eSYvM4O2nvLkyQ1sSo7qKnlOS-fGT_YzGC1uI7CMyAvQfsAQ2AtDenRql3l0-cmLvAsP_cPblFmWBclSsVQFmB9r8Yjd-G4IVrRKF" width="640" /><br />
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: white; color: #5e5e5e; font-family: "arial"; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;">Esquema general de Erizain</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<br />
<span face=""trebuchet ms" , sans-serif">Hemos utilizado diferentes componentes para la realización del prototipo, que listamos a continuación:</span><br />
<br />
<ul>
<li><span face=""trebuchet ms" , sans-serif">Fuente de alimentación con soporte de batería </span></li>
<li><span face=""trebuchet ms" , sans-serif">Arduino Yun </span></li>
<li><span face=""trebuchet ms" , sans-serif">Reproductor mp3 DFPlayer mini </span></li>
<li><span face=""trebuchet ms" , sans-serif">Altavoz genérico 3W, 4Ω </span></li>
<li><span face=""trebuchet ms" , sans-serif">Pantalla Nextion 4,3” </span></li>
<li><span face=""trebuchet ms" , sans-serif">Servomotores SG90 </span></li>
<li><span face=""trebuchet ms" , sans-serif">Pulsador</span></li>
</ul>
<br />
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif">Teniendo en cuenta el tamaño de componentes de nuestro proyecto decidimos que la mejor opción era la de crear una placa a modo de shield para el Arduino Yun, es decir, una placa que se acoplara directamente encima de la placa Arduino.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif">El tema de la alimentación nos ha dado algún problema, ya que nuestra idea era de proveer a erizain de sistema de alimentación de red con soporte de batería. Esta batería surtirá corriente a erizain en casos como apagones o microcortes eléctricos. Lamentablemente, pese a que los cálculos sobre el consumo máximo de Erizain lo realizamos tirando por lo alto, el altavoz utilizado generaba provocaba picos de corriente con los cuales no contábamos y el sistema de alimentación se quemó. Ante este contratiempo decidimos sustituir la alimentación por una fuente DC 5V 2A, parecida a la de los cargadores de móvil, con la cual no tuvimos ningún problema.</span></div>
<br />
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;">
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #5e5e5e; font-family: "arial"; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; margin-left: 1em; margin-right: 1em; text-decoration: none; vertical-align: baseline; white-space: pre;"><img height="461" src="https://lh6.googleusercontent.com/8EcQKitlY_vc-7Snz8xEEuNZQz9LDD9ZSSMxFsNKA0H2cvZKFTQx29xdfhyVKkZnjojntqLpukMLJVxFCWGA7d2x3geFm5pHAceuZWWjq_OAPSMy4M1Kalt68ZEgFNnoQA1Tjb5O" style="border: medium none; transform: rotate(0rad);" width="662" /></span></div>
</div>
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: white; color: #5e5e5e; font-family: "arial"; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;">Esquema eléctrico de Erizain</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #5e5e5e; font-family: "arial"; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; margin-left: 1em; margin-right: 1em; text-decoration: none; vertical-align: baseline; white-space: pre;"><img height="379" src="https://lh4.googleusercontent.com/pkvvhE69tzpuOdCVNYD0hq7lgg26lhj84WHbpY7iLa7M9dR76ZsgbqcMo8t8xfcDQCAWrWnTeyewjDB1RSajI0X2NqHo-HLqbL_FHBY2frCd7jKh6X80LjVrMcX1nMVAfEwkD0bx" style="border: medium none; transform: rotate(0rad);" width="302" /></span></div>
</div>
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: white; color: #5e5e5e; font-family: "arial"; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;">Diseño PCB de Erizain</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<br />
<br />
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif">La parte de la programación de Arduino ha sido bastante complicada, pero finalmente hemos conseguido escribir el código para que Erizain funcione de la manera deseada. A continuación un enlace con todo el código <a href="https://github.com/elektronikalsb/Erizain" target="_blank">código de Arduino</a> explicado con comentarios y el diagrama de flujo que resume su funcionamiento.</span></div>
<div style="text-align: justify;">
<br /></div>
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;">
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #5e5e5e; font-family: "arial"; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; margin-left: 1em; margin-right: 1em; text-decoration: none; vertical-align: baseline; white-space: pre;"><img height="249" src="https://lh4.googleusercontent.com/oolqr-Q_rVORWdi7XQ2qkos3EOyqy0c-mbqmxwCY6cPrknfJfn1YyW1LhzqWd83FB_R5F1cHVLuIEku4WoeXOjJQgEVpkwdBB2_rUijadHuG5Uf4GBJaO3_yoe9x3OjxGAMG5tO4" style="border: medium none; transform: rotate(0rad);" width="666" /></span></div>
</div>
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: white; color: #5e5e5e; font-family: "arial"; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;">Diagrama de flujo de Erizain</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif">Finalmente el proyecto Erizain con sus dificultades ha salido adelante, y en un futuro se podrían añadir diferentes mejoras con un poco más de tiempo y dedicación. Algunas de las futuras mejoras que hemos pensado para el futuro de Erizain los las siguientes:</span><br />
<span face=""trebuchet ms" , sans-serif"><br /></span></div>
<div style="text-align: justify;">
<b style="font-weight: normal;"><img alt="Resultado de imagen de battery charger logo" height="69" src="https://lh3.googleusercontent.com/zo6wBbcLXLixf8nSA2us3DaNKGHiDWb7Ei2xsgDBZ0e3NoS9KOlD7FWp641EuK_m4KkcEUJlMdmoD8WYLbpEoJ849788e0CSRT-KJo3TsEH05opJMXLSTAXYiU_aF1wNRDQr_4qe" style="-webkit-transform: rotate(0.00rad); border: medium none; transform: rotate(0rad);" width="69" /></b></div>
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif">Fuente de alimentación con soporte de batería</span></div>
<br />
<div style="text-align: justify;">
<a href="https://lh6.googleusercontent.com/v8hmfR-uaytpDwRG5n3xz65ludVwlSK6-aiWOrTIKRTrp2HgL6qwqJdO4rXZG8q58I-j-gUST-lLvUXz9RlU9qhAxtps0HY8okM97XuWFxatSaiW4SWXI-22bnzcIkoiwejYRmNR" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Resultado de imagen de google calendar" border="0" height="69" src="https://lh6.googleusercontent.com/v8hmfR-uaytpDwRG5n3xz65ludVwlSK6-aiWOrTIKRTrp2HgL6qwqJdO4rXZG8q58I-j-gUST-lLvUXz9RlU9qhAxtps0HY8okM97XuWFxatSaiW4SWXI-22bnzcIkoiwejYRmNR" style="border: medium none; transform: rotate(0rad);" width="141" /></a></div>
<br />
<div style="text-align: justify;">
<br /></div>
<span style="border-color: initial; border-image: initial; border-width: initial; font-weight: bold; transform: rotate(0rad);"></span><br />
<div style="text-align: justify;">
</div>
<span style="border-color: initial; border-image: initial; border-width: initial; font-weight: bold; transform: rotate(0rad);">
</span>
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif"><br /></span>
<span face=""trebuchet ms" , sans-serif"><br /></span>
<span face=""trebuchet ms" , sans-serif"><br /></span>
<span face=""trebuchet ms" , sans-serif">Acceder al calendario de google sin servicios de pago</span><br />
<span face=""trebuchet ms" , sans-serif"><br /></span></div>
<div style="text-align: justify;">
<img alt="Resultado de imagen de pantalla tactil logo" height="69" src="https://lh6.googleusercontent.com/w0k0S_7CF0nKT9D8-zFWZRocRATeFZ9l_la4omsDjv5PesERRPtuTlPVvpXyxlUipNW4GaKY9Io5WBT7ziFcqYYlDFNmI1Qrhznl7bVIMDP3Nlwv_I39K8lJ4fIcCwrISW7Dq6rw" style="-webkit-transform: rotate(0.00rad); border: medium none; transform: rotate(0rad);" width="69" /></div>
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif">Pantalla táctil multifunción.</span></div>
<div style="text-align: justify;">
<span face=""trebuchet ms" , sans-serif"><br /></span></div>
<div style="text-align: right;">
<span face=""trebuchet ms" , sans-serif">Mikel Manzano</span></div>
<div style="text-align: right;">
<span face=""trebuchet ms" , sans-serif">Joseba Agirre</span></div>
<div style="text-align: right;">
<span face=""trebuchet ms" , sans-serif">Imanol Lopez</span></div>
Anonymousnoreply@blogger.com020140 Andoáin, Guipúzcoa, España43.2186367 -2.021197000000029243.1954912 -2.0615375000000293 43.241782199999996 -1.9808565000000291tag:blogger.com,1999:blog-835442055881274745.post-56290963536904265992018-03-22T12:29:00.000+01:002023-02-22T11:52:23.956+01:00<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<h2>
<span style="color: blue; font-family: "trebuchet ms" , sans-serif; font-size: x-large;">STOLEN BIKE</span></h2>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Naiara, Javi y Ander, estudiantes de segundo año de mantenimiento electrónico de La Salle Berrozpe, hemos creado un prototipo de un proyecto para intentar solventar un problema actual que cada vez se da más, la sustracción de todo tipo de bicis en núcleos urbanos y no urbanos. Hemos denominado a nuestro proyecto <b>STOLEN BIKE.</b></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><b><br /></b>
</span></div>
<div style="text-align: center;">
<div style="text-align: center;">
<span id="docs-internal-guid-36de031a-f5bc-7d2d-4551-e2461cd047b2" style="font-family: "trebuchet ms" , sans-serif;"><img height="129" src="https://lh3.googleusercontent.com/IauAOpY__KPyfK_7Kr_hyFmHF6UFf_mg_I31_ZBneHJRkBPkvuWQvI9F3sL9hecqzdvska8syuE7dY4j6a83Pxzggqmj8Dm7DVtj8DG14o-kG6_IHVqC5Cncm37RdsV9vNPrqu-A" style="border: none; transform: rotate(0rad);" width="185" /></span></div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Hemos hecho un vídeo explicativo del proyecto:</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/Iy1ol9R8ZRE/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/Iy1ol9R8ZRE?feature=player_embedded" width="320"></iframe></div>
<br /></div>
</div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"></span><br />
<a name='more'></a><span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Básicamente, nuestro proyecto nos envía un SMS avisándonos del robo de la bici en caso de que:</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<ul>
<li style="text-align: justify;"><span style="font-family: "trebuchet ms" , sans-serif;">La bici recibe una sacudida mientras está candada.</span></li>
<li style="text-align: justify;"><span style="font-family: "trebuchet ms" , sans-serif;">La ubicación de la bici ha cambiado mientras estaba candada. </span></li>
</ul>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">En caso de querer conocer la ubicación de nuestra bici en cualquier momento, basta con llamar al número de la SIM que tenemos introducida en el dispositivo, y nos devolverá un SMS con el enlace para abrirlo directamente con un click en la aplicación de Google Maps.</span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div style="text-align: center;">
<div style="text-align: center;">
<span id="docs-internal-guid-36de031a-f5bd-c0c3-12b1-be052b4f1754"><span style="font-family: "trebuchet ms" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><img height="418" src="https://lh5.googleusercontent.com/6ruU9xGe2QQEF0XezxVE_YZ2j3c6uALGIaWaFZNyN09t6PcvzZI6V6pFwfbpZUwUH2Zmszya-sDPtnf5ZPBiub1M_52KmJUjLclxs83FVnte77poF4GAtWatM0dOYrmGI9FPybd4" style="border: none; transform: rotate(0rad);" width="363" /></span></span></div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
</div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-family: "arial";"><span style="font-family: "trebuchet ms" , sans-serif; font-size: 14.6667px; white-space: pre-wrap;">Para realizar nuestro dispositivo, hemos necesitado los siguientes módulos, además de la electrónica necesaria para ponerlo todo en marcha:</span></span></div>
</div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-size: 14.6667px; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></span></div>
</div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-size: 14.6667px; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "trebuchet ms" , sans-serif;"><b>HC-06</b></span></span></div>
</div>
<div style="text-align: center;">
<div style="text-align: center;">
<span id="docs-internal-guid-36de031a-f5be-5897-651d-97dc1b9ca74a" style="font-family: "trebuchet ms" , sans-serif;"><img height="148" src="https://lh3.googleusercontent.com/Up-vJ0iaJBk0-I1fmtxsV0oMQGBUfNFEOCJ237Cjljq30NuJ4Nz6Lug4wwFHoPUdnO00lAOLVgMMrY1cLWDfZ99YcEOR6fJGc8ILFm4qgxi1U8ubvxt5AAMVxtv1K_lEnscdaqb4" style="border: none; transform: rotate(0rad);" width="148" /></span></div>
</div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">El módulo bluetooth HC-06 es el módulo que se encarga de la comunicación bluetooth entre un dispositivo móvil con la app que hemos programado, y nuestro proyecto. Esta comunicación permitirá activar el bloqueo, desactivar el bloqueo y reiniciar el sistema de seguridad en caso de que salte la alarma. </span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">No es un módulo para nada complicado de utilizar. Funciona con comandos AT, aunque en realidad estos comandos sólo se utilizan para configurar diferentes opciones del módulo, tales como el nombre que muestra el dispositivo, la velocidad a la que funcionará (por defecto 9600 baudios), su pin… pero a la hora de programar el programa en Arduino, no se usan comandos AT y hay una extensa documentación en internet tanto en castellano como en inglés con instrucciones de programación, por ejemplo en prometec. </span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<span id="docs-internal-guid-36de031a-f5c0-01eb-ff55-6f477cf063eb"><span style="color: #1155cc; font-family: "trebuchet ms" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><a href="https://www.prometec.net/bt-hc06/" style="text-decoration-line: none;">https://www.prometec.net/bt-hc06/</a></span></span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<b><span style="font-family: "trebuchet ms" , sans-serif;">MPU6050</span></b></div>
</div>
<div style="text-align: center;">
<div style="text-align: center;">
<span id="docs-internal-guid-36de031a-f5c0-3a64-c873-8dbcdf76bd6b" style="font-family: "trebuchet ms" , sans-serif;"><img height="320" src="https://lh4.googleusercontent.com/PwOOd38puBlbVYFNWmMmqs7MeJyj5LNx0FwfOxCAvZ-2mgoCGkX-CSj-D-oA3ztYXDnnZo198BFueDB6SrPzi3PFmtPBpEgd6AE2gnwuB2qD3tCGW_AstQWF2cREa9nu0IRBc_K6" style="border: none; transform: rotate(0rad);" width="255" /></span></div>
</div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">El módulo MPU6050 es una unidad de medición inercial (IMU por sus siglas en inglés) que nos sirve para determinar la posición relativa que tiene, como las diferentes fuerzas que recibe. Combina un acelerómetro y un giroscopio, y el principal problema que tiene es que es muy preciso y que la lectura de datos en bruto es algo compleja. </span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">La comunicación es mediante I2C, lo cual nos ha venido muy bien puesto que utilizamos comunicación serie en tres módulos diferentes (HC06, SIM900 y GPS Adafruit), pero hay que tener en cuenta todas las librerías que hay que incluir en el programa y consultar información acerca de este tipo de comunicación. </span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Hay mucha información acerca de este módulo, pero la documentación más clara es, a mi parecer, la de la página de Luis Llamas. </span></div>
</div>
<div>
<div style="text-align: justify;">
<span id="docs-internal-guid-36de031a-f5c0-f078-19fe-2cfc900fe61a"><span style="color: #1155cc; font-family: "trebuchet ms" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><a href="https://www.luisllamas.es/arduino-orientacion-imu-mpu-6050/" style="text-decoration-line: none;">https://www.luisllamas.es/arduino-orientacion-imu-mpu-6050/</a></span></span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<b><span style="font-family: "trebuchet ms" , sans-serif;">SIM900</span></b></div>
</div>
<div style="text-align: center;">
<div style="text-align: center;">
<span id="docs-internal-guid-343a75cd-f5c1-dae3-548b-f12374caf5af" style="font-family: "trebuchet ms" , sans-serif;"><img height="288" src="https://lh4.googleusercontent.com/95L5Eg39saTliz0oAwI740V9M9n3G2Pb15zBPpkeABIqlO0v1ST656tR_zY6PO2BuMyVjfadEJrEs5dxIQQM_OsCa0FM2lSM67y6m5Dj_Jt1CEp3U1RsqzRlqpwfZHMV96I3Wj0d" style="border: none; transform: rotate(0rad);" width="288" /></span></div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">El módulo SIM900 es el encargado de la comunicación mediante llamadas y SMS entre el dispositivo y el número que queramos. Este módulo se encarga de mandarnos un SMS en caso de: </span></div>
</div>
<div>
<ol>
<li style="text-align: justify;"><span style="font-family: "trebuchet ms" , sans-serif;">La bici está candada y recibe una fuerte sacudida durante un breve periodo de tiempo. </span></li>
<li style="text-align: justify;"><span style="font-family: "trebuchet ms" , sans-serif;">La bici está candada y el GPS detecta que su ubicación ha cambiado.</span></li>
<li style="text-align: justify;"><span style="font-family: "trebuchet ms" , sans-serif;">En cuanto llamemos al número de teléfono de la SIM introducida desde el número que hemos predefinido en el código.</span></li>
</ol>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Este módulo es algo peculiar a la hora de programarlo, puesto que funciona únicamente mediante comandos AT, y para la programación hay que crear una función que se encargue de enviar estos comandos a la SIM900 mediante comunicación serie. En nuestro caso, los parámetros de entrada de la función son por un lado el comando AT que le queremos enviar, por otro lado la respuesta que esperamos del módulo cuando reciba ese comando, y por último el tiempo máximo de espera (también denominado timeout) que tendrá esa espera de respuesta por parte del módulo. De esta manera, la función nos devolverá un true o false dependiendo de si la respuesta ha sido la esperada o no, y sabremos por ejemplo si un SMS se ha enviado de manera correcta, si el módulo se ha conectado correctamente a la red, si el PIN introducido es correcto o no… </span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Hay mucha documentación en internet, pero la más extensa (que incluye la lista entera de comandos AT que tiene el módulo) está en prometec. </span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855"></span><br /></span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855"><a href="https://www.prometec.net/indice-gprs/" style="text-decoration-line: none;"><span style="color: #1155cc; font-family: "trebuchet ms" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;">https://www.prometec.net/indice-gprs/</span></a></span></div>
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855" style="font-family: "trebuchet ms" , sans-serif;">
</span>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855"><span style="color: #1155cc; font-family: "trebuchet ms" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><a href="https://www.prometec.net/comandos-at-gsm-gprs-gps/" style="text-decoration-line: none;">https://www.prometec.net/comandos-at-gsm-gprs-gps/</a></span></span></div>
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855"><span style="font-family: "trebuchet ms" , sans-serif;">
</span></span>
<br />
<div>
<div style="text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855"><span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></span></div>
</div>
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855">
</span>
<br />
<div>
<div style="text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855"><span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></span></div>
</div>
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855">
</span>
<br />
<div>
<div style="text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855"><b><span style="font-family: "trebuchet ms" , sans-serif;">GPS ADAFRUIT</span></b></span></div>
</div>
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855">
</span>
<div style="text-align: center;">
<div style="text-align: center;">
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855"><span id="docs-internal-guid-a4e26049-f5c3-034e-7958-8bacbde11979" style="font-family: "trebuchet ms" , sans-serif;"><img height="196" src="https://lh6.googleusercontent.com/3jFhD_rEu-kZCDnTgUHiFrByIjlohlpDSLmnDQszuatEfrtokkSg7CNq9GXwHmJz4ze2O1VJ9ex6o2jfrcGEsYkvAHyyXYrgPQQ2iHR5J77HrctGMMVdz3F4327WXK1_7P74k88L" style="border: none; transform: rotate(0rad);" width="257" /></span></span></div>
</div>
<span id="docs-internal-guid-a4e26049-f5c2-a183-d14d-0032c9827855">
</span><div style="text-align: center;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">La programación de este módulo GPS sí que es algo compleja, y no hay mucha documentación disponible en internet, aunque la información oficial ofrecida por la empresa Adafruit es muy completa. Hay que emplear diferentes funciones para hacer funcionar este módulo: por un lado debemos obtener la sentencia completa de las coordenadas que nos envía el módulo (también denominado sentencia NMEA). Esta sentencia tiene que ser correcta, así que hay que realizar unas cuantas mediciones para intentar depurar posibles fallos lo máximo posible. Tras recibir una sentencia completa que sea correcta, debemos depurar esta sentencia eliminando caracteres innecesarios y quedándonos con dos float: latitud, y longitud. </span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">La documentación oficial está en la siguiente página y es de gran utilidad.</span></div>
</div>
<div>
<div style="text-align: justify;">
<a href="https://cdn-learn.adafruit.com/downloads/pdf/adafruit-ultimate-gps.pdf" style="font-size: 11pt; white-space: pre-wrap;"><span style="font-family: "trebuchet ms" , sans-serif;">https://cdn-learn.adafruit.com/downloads/pdf/adafruit-ultimate-gps.pdf</span></a></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">La aplicación para el móvil la hemos creado utilizando la plataforma appinventor, y tiene la siguiente estética:</span></div>
</div>
<div style="text-align: center;">
<div style="text-align: center;">
<span id="docs-internal-guid-a4e26049-f5c3-b16e-8c2d-6c788fb0066c"><span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><img height="322" src="https://lh5.googleusercontent.com/0MvaoSah6BB7wvpxPG9F7OKrsVWSS0BYDWdysh3V7c6ddzoGKqnOHymMA2rlmfpuFE1PgDsCGEKyq7KDarjm9S42LNJa7gXHfwywVeqxpP0TobEIREmZJahOqfivylbns2CwRG4s" style="border: none; transform: rotate(0rad);" width="245" /><img height="317" src="https://lh6.googleusercontent.com/krPMWg4vGzcpLEsW3mpQuKlDx5u5eznkvKh-kPyDdAE1QYk0rfqhqLzpBMddBYEfxJnd0_JWoAPWAFBO0JuY6y7jquJzmhLRhEPmx0Yo2MCzTk08xIL2tjYZvjKhA1hzI3giEbow" style="border: none; font-size: 12pt; text-align: left; transform: rotate(0rad);" width="242" /></span></span></div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
</div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "trebuchet ms" , sans-serif;">Su manejo es muy sencillo:</span></span></div>
</div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76"><br /></span>
</span></div>
<div dir="ltr" style="margin-left: 0pt;">
<table style="border-collapse: collapse; border: none; text-align: justify;"><colgroup><col width="129"></col><col width="533"></col></colgroup><tbody>
<tr style="height: 0pt;"><td style="background-color: #cccccc; border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; font-family: "trebuchet ms" , sans-serif; font-size: 14pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">BOTÓN</span></div>
</td><td style="background-color: #cccccc; border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; font-family: "trebuchet ms" , sans-serif; font-size: 14pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">DESCRIPCIÓN</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><img height="107" src="https://lh4.googleusercontent.com/Da2_Zpo2marzYlE5RdDaMB1T3R2zGt7FXBu3y4Evow-tsXAoOdbNt35vzTAwAAHkR6rNaXisS57dg-Ng1RHuZzRMFMUqt0aIiL1IHxjN-jeoqX-SIKtLEOQmzFUISzTqQGsfTCrP" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="117" /></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 14pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">CANDAR BICI:</span></div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Pulsar el botón para candar la bici. La bici queda bloqueada para que cuando detecte algún movimiento brusco nos mande un aviso al movil. Para poder candar la bici hay que estar vinculado al dispositivo (Conectar Bluetooth).</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><img height="104" src="https://lh3.googleusercontent.com/ycBFQzxtUXoECN8uLyNNegqmGtaoalejZ-7rS283us0v0kJexpSszKG-v78kjh5q1TOXhfc_pmdzcJxl5rzuhpAYN5vVlIWWjK825182vzoBh00VJcFx6LuAv7JkLTwh5RyPefrQ" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="111" /></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 14pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">DESCANDAR BICI:</span></div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Pulsar el botón para desbloquear la bici. La APP seguirá conectada con la bici pero si nota movimientos bruscos no nos avisará.</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><img height="104" src="https://lh3.googleusercontent.com/jdbAYypCpZFLTcf1wCLflxDkosjWfPp19tRmbSN2uYbW_k9Z3UYTK_oFZAFiOjBwt-79ybtmbHgVzKJiFwN3-PqAH_FsHHOy6zmmy_p7prKnzW77r9Y8krczbS6_JLAvr1EHYtqC" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="112" /></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 14pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">BUSCAR BICI:</span></div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Pulsar el botón para buscar la ubicación de la bicicleta. Nos lleva a la página Web de Google Maps donde tenemos que poner las coordenadas que nos manda la bici por SMS y podremos encontrar la bici.</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><img height="105" src="https://lh3.googleusercontent.com/BltetRtNzZx5OQ4SmoBxTRq4M3szYOei80DtJ8VfI4Kj0b7xP8DCL9mZ5gL5WNq7h1bKkl9ujCmkSiVzGd03M9reaBTcnXrX6bSUm_dU_PhtL9ojN-xn7-BZY_LzQZHNq1CKhXQZ" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="105" /></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 14pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">RESETEAR BICI:</span></div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Pulsar el botón para resetear la bici. Al resetear la bici, se reinician todos los módulos.</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><img height="102" src="https://lh6.googleusercontent.com/2Jt3-uBQP1VwIF6dyl2mwVGZoH0pguRoTzywobjz4AelRfbd-LLMABzDGGS2tTUpre8kOKpfIa0ntWMYZkvjGxEwBZ3Q0LJT6UDD4QKcF3rhEHtdXqruomE3tjiJ5LpHbynskvVN" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="108" /></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 14pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">CONECTAR BLUETOOTH:</span></div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Pulsar el botón para conectarse con el dispositivo. Nos muestra una lista con los Bluetooth disponibles, seleccionamos el del dispositivo y se conectará automáticamente.</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><img height="103" src="https://lh4.googleusercontent.com/LmiR2RoLK8SF5raQZlv_jxvtA0EEbEAMwc2eHVHDsDnHXitGPrSOZwQxm7E6qMTUwrL1soo7uExGWnHuQkevunII8sHGya_30xRRwsAj0hcKdt7JJlPkDobdK9ko2o5YRkouWX_z" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="110" /></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 14pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">DESCONECTAR BLUETOOTH:</span></div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Pulsar el botón para desconectar el Bluetooth y desvincularse del dispositivo.</span></div>
</td></tr>
</tbody></table>
</div>
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76" style="font-family: "trebuchet ms" , sans-serif;">
</span>
<br />
<div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76" style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76"><span style="font-family: "trebuchet ms" , sans-serif;">
</span></span>
<br />
<div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76"><span style="font-family: "trebuchet ms" , sans-serif;">Para el que quiera entender más a fondo el programa, añadimos también los diagramas de flujo que </span></span></div>
</div>
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76">
</span>
<br />
<div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76"><span style="font-family: "trebuchet ms" , sans-serif;">ayudan a comprender el programa al detalle. </span></span></div>
</div>
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76">
</span>
<br />
<div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76"><span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></span></div>
</div>
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76">
</span>
<div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76"><span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></span></div>
</div>
<span id="docs-internal-guid-a4e26049-f5c4-a843-e7e3-f58cce39bc76">
</span><div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<b><span style="font-family: "trebuchet ms" , sans-serif;">PROGRAMA GENERAL </span></b></div>
</div>
<div dir="ltr" style="margin-left: 0pt; text-align: center;">
<div style="text-align: center;">
<span id="docs-internal-guid-a4e26049-f5c5-83b1-1ab9-6186d3fb221f"><span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><img height="388" src="https://lh5.googleusercontent.com/cKdJfAiEb-IwMDke65j_g_Vcxh5mKRfbXYS221cnLPPUiuKzwalg286EG8LcoGSHRc24qB6dVkiyNEj4XVsm8QYNgKQvdyd3EyP8EqpmqjEqQFNy9wPrHeicaAV3wRyv8vtZnHqn" style="border: none; transform: rotate(0rad);" width="560" /></span></span></div>
</div>
<div dir="ltr" style="margin-left: 0pt; text-align: center;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
</div>
<div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"></span><br /></span></div>
<div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Dejamos a disposición de todo el mundo tanto el código de Arduino como el de la aplicación:</span></div>
</div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">
</span></div>
<div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<div style="text-align: center;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><b>ARDUINO CODE: <span style="color: red;"><a href="https://github.com/elektronikalsb/LSB20172018/blob/master/StolenBike/ArduinoCode/StolenBike_code.ino" target="_blank">Stolen Bike Arduino Code</a></span></b></span></div>
</div>
</div>
<span style="vertical-align: baseline;"></span><br />
<span style="vertical-align: baseline;">
</span>
<div dir="ltr" style="margin-left: 0pt;">
<div style="text-align: justify;">
<div style="text-align: center;">
<span style="font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><b><span style="font-family: "trebuchet ms" , sans-serif;">APP CODE: </span></b></span><span style="color: blue; font-family: Trebuchet MS, sans-serif;"><b><u>AppInventor Code</u></b></span></div>
</div>
</div>
<br /><span style="font-family: Trebuchet MS, sans-serif;">Esperamos que os sirva de ayuda. Un Saludo.<br /><div style="text-align: right;">
Ander Chaparro</div>
<div style="text-align: right;">
Naiara Valverde</div>
<div style="text-align: right;">
Javi Godoy</div>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="text-align: left;">
<span id="docs-internal-guid-36de031a-f5be-5897-651d-97dc1b9ca74a" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></span></div>
</div>
Anonymousnoreply@blogger.com0La Salle Hiribidea, 5, 20140 Andoain, Gipuzkoa, España43.2199125 -2.018519100000048641.3651045 -4.6003061000000489 45.0747205 0.56326789999995119tag:blogger.com,1999:blog-835442055881274745.post-40352989787577646312017-05-21T08:00:00.000+02:002023-02-22T11:52:20.945+01:00<span style="color: blue; font-family: "trebuchet ms" , sans-serif; font-size: x-large;">HORNO NZ</span><br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Nuestro equipo está formado por 4 integrantes, Mehdi, Iñaki, Jorge e Imanol. Nuestro trabajo ha consistido en recrear el funcionamiento de un horno industrial simulado con una maqueta de fischertechnik.</span></div>
<span style="font-family: "trebuchet ms" , sans-serif;">
</span>
<br />
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms", sans-serif;"><br /></span>
<span style="font-family: "trebuchet ms", sans-serif;">Aquí debajo os dejamos el vídeo del funcionamiento de nuestro proyecto:</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i9.ytimg.com/vi/qx3jqC2Nd6g/default.jpg?sqp=CIT79cgF&rs=AOn4CLCpqV94LB-e7VBm06LHNqkaVxhYFQ" frameborder="0" height="266" src="https://www.youtube.com/embed/qx3jqC2Nd6g?feature=player_embedded" width="320"></iframe></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms", sans-serif;"></span><br />
<a name='more'></a>La dificultad de este trabajo ha sido que teníamos que combinar el uso de un arduino y de un PLC en este proyecto y sabiendo esto nos pusimos manos a la obra. Lo primero que hemos hecho ha sido observar el funcionamiento del horno mediante vídeos que nos proporcionaba el propio fabricante. Este consiste en lo siguiente:<span style="font-family: "trebuchet ms" , sans-serif;"></span><br />
<span style="font-family: "trebuchet ms" , sans-serif;">
</span>
<br />
<div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<span style="font-family: "trebuchet ms" , sans-serif;">
</span>
<br />
<div>
<span style="font-family: "trebuchet ms" , sans-serif;">Primero una grúa con aspiración al vacío nos deja la pieza en una bandeja, la cual es detectada por un fototransistor. Con esto ponemos en funcionamiento nuestro sistema, la puerta del horno se abrirá y la bandeja en la cual posamos la pieza comenzará a moverse hacia el interior del horno. Esta se detendrá cuando toque el fin de carrera situado en el interior de este. Con esto cerraremos la puerta y el horno empezará a funcionar, a su vez por otra parte un aspirador comenzará a ir hacia el horno, este nos servirá para transportar la pieza hacia la corona giratoria. Una vez el aspirador llegue al horno este acabara su proceso de cocción y se abrirá, así dejando salir a la bandeja . Una vez esta salga el aspirador cogerá la pieza y la transportará hacia la corona giratoria. Cuando llegue dejará la pieza en la corona giratoria y está la llevara a una sierra que emula el corte de una pieza y cuando acabe la corona volverá a girar y mediante un cilindro de simple efecto moverá la pieza a una cinta transportadora. Cuando la pieza cruce el fototransistor situado al final de la cinta se acabará el proceso y todo volverá a su posición inicial.</span><br />
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<span style="font-family: "trebuchet ms" , sans-serif;">El esquema de entradas salidas es el siguiente:</span><br />
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "trebuchet ms" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLDX6FFSALin8oaIHSjigDXLNpSKT5StXKFWS2t8bfByFW5erHekRposJ29IBtzCcdggMuhdyHrZQiaRV0psECvskUrpUzq0rZWFgEhCfabPjV5wuhu3yQW35czqbJCRVTtHOFiALsAJyr/s1600/entradas+y+salidas.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLDX6FFSALin8oaIHSjigDXLNpSKT5StXKFWS2t8bfByFW5erHekRposJ29IBtzCcdggMuhdyHrZQiaRV0psECvskUrpUzq0rZWFgEhCfabPjV5wuhu3yQW35czqbJCRVTtHOFiALsAJyr/s1600/entradas+y+salidas.JPG" /></a></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">El esquema de conexiones que hemos seguido en el PLC:</span></div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "trebuchet ms" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZlZnMP4yzEUozXJQC0KWbuLDLGV36Y-w-BFotdvdwucmTRnhPRvsdvTLEQd-5e4TFhBdvIKj5-oUWSou75rmEBBixjwxU4-LQwt9clN-Bzwa_FbO1-4XNkscgwgstn7HnIe5_yFbwkt9/s1600/conexionado.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="436" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZlZnMP4yzEUozXJQC0KWbuLDLGV36Y-w-BFotdvdwucmTRnhPRvsdvTLEQd-5e4TFhBdvIKj5-oUWSou75rmEBBixjwxU4-LQwt9clN-Bzwa_FbO1-4XNkscgwgstn7HnIe5_yFbwkt9/s640/conexionado.JPG" width="640" /></a></span></div>
<span style="font-family: "trebuchet ms" , sans-serif;">El esquema para conectar el arduino y PLC es este:</span><br />
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "trebuchet ms" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjag27uVC9TdR5N3UfnQxhvOwMMevaRzvnX-Ju_JKI1MvpRMWBysPsgFTejXSHbqJBxkpvjEUzP5SGiSD5ukxUL7BC-EaN-fqBi7wzRBBhwhUVaFKRYqaqZNp-urwvHEBbTMynytOnUN_ZZ/s1600/Copia+de+2z9fpy9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="486" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjag27uVC9TdR5N3UfnQxhvOwMMevaRzvnX-Ju_JKI1MvpRMWBysPsgFTejXSHbqJBxkpvjEUzP5SGiSD5ukxUL7BC-EaN-fqBi7wzRBBhwhUVaFKRYqaqZNp-urwvHEBbTMynytOnUN_ZZ/s640/Copia+de+2z9fpy9.jpg" width="640" /></a></span></div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<span style="font-family: "trebuchet ms" , sans-serif;">Finalmente os ponemos el código de Arduino que hemos utilizado como ejemplo de programación. El link al mismo es:</span><br />
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<span style="font-family: "trebuchet ms" , sans-serif;"><a href="https://github.com/elektronikalsb/LSB20162017/blob/master/HornoNz/HornoNz.ino" target="_blank">https://github.com/elektronikalsb/LSB20162017/blob/master/HornoNz/HornoNz.ino</a></span><br />
<br />
<span style="font-family: "trebuchet ms" , sans-serif;">Esperemos que os haya sido de interés y si tenéis cualquier duda quedamos a vuestra disposición.</span><br />
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div style="text-align: right;">
<span style="font-family: "trebuchet ms" , sans-serif;">Escrito por:</span></div>
<br />
<div style="text-align: right;">
<span style="font-family: "trebuchet ms" , sans-serif;">Imanol Martinez</span></div>
<div style="text-align: right;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: right;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<span style="font-family: "trebuchet ms" , sans-serif;">
</span></div>
elektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.com020140 Andoáin, Guipúzcoa, España43.219915341955584 -2.018523216247558643.219192341955583 -2.0197837162475585 43.220638341955585 -2.0172627162475587tag:blogger.com,1999:blog-835442055881274745.post-26088446698907436712017-02-27T17:26:00.000+01:002017-02-27T23:40:16.349+01:00<h2>
<span style="color: blue; font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Flash-ear un ESP-01</span></h2>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Esta entrada va ser un pequeño manual de como cambiar el firmware del famoso ESP-01 que es una de las muchas formas que tiene de presentarse el ESP8266. Este pequeño módulo nos sirve para dar conectividad wifi a nuestros proyectos con Arduino, normalmente acompañará al famoso Arduino Uno.</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Esta entrada viene motivada por algunos problemas que me he encontrado a la hora de trabajar con este módulo, en concreto mi experiencia fué que hice algunas pruebas para un curso con un módulo y cuando compré diez unidades más ninguno de lo nuevos funcionaba con los programas que había hecho. Mi primera reacción fué la de pensar que estaban mal, pero ¿diez módulos estropeados? me parecía increíble con lo que comenzé la odisea de ver que es lo que estaba mal. No voy a relatar toda la experiencia pero en mi caso el problema era que los módulos que había comprado traían un firmware diferente al que yo necesitaba, que era, el que hace que el módulo responda a los comandos AT. </span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">En el camino encontré esta página en la que se pueden encontrar los firmwares para estos módulos. De las que he encontrado es la que a mi parecer tiene los firmwares más actualizados. La página en cuestión es esta de <a href="http://www.electrodragon.com/w/Category:ESP8266_Firmware_ToolChain" target="_blank">electrodragon</a>. Ahí podréis elegir el que más os convenga a cada uno. </span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Bueno, entrando en harina lo que vamos a necesitar para hacer esto es lo siguiente, un conversor de USB a TTL, que si además es capaz de dar una tensión de alimentación de 3,3V mejor que mejor. Esta tensión de 3,3V es necesaria ya que el módulo ESP-01 funciona a esta tensión de alimentación y en caso de el conversor nos tenga la posibilidad de alimentar al módulo a esta tensión tendremos que hacernos nosotros mismos este cambio de tensión mediante un regulador lineal. En mi caso el que yo utilizo es <a href="http://www.ebay.es/itm/FT232RL-FTDI-USB-a-TTL-Conversor-Serial-3-3-5V-Arduino-Pro-Mini-cable-C0007-/201569171845?hash=item2eee757985:g:DOkAAOSwLF1X~KFv" target="_blank">este</a>:</span><br />
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4P379sVZBS4CCgIKVH8gNSPLPP-fPKq0hpU46636qPDIAmmpGxJar03yMJEGNSKn8l3-iN1n9E00A7iRuCsjJRyQ8keS9-FYMHZ915hIvBpAw3LWp53ZJt5mG2pGHz7V2oEyR-7y___al/s1600/usbttl.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="138" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4P379sVZBS4CCgIKVH8gNSPLPP-fPKq0hpU46636qPDIAmmpGxJar03yMJEGNSKn8l3-iN1n9E00A7iRuCsjJRyQ8keS9-FYMHZ915hIvBpAw3LWp53ZJt5mG2pGHz7V2oEyR-7y___al/s320/usbttl.PNG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">USB-TTL</td></tr>
</tbody></table>
<span style="font-family: "trebuchet ms" , sans-serif;">Ahora nos queda averiguar cuales son las conexiones que tenemos que hacer para tener todo preparado. Para ello tenemos que saber que son cada una de las patas del ESP-01, para ello os dejo esta imagen:</span><br />
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsAfBG2triFVciDUZO6_uovn9Zqi4lQE5sWgjxyAePUiP_WlCGJ4tpKthIQX0f9xfM7zhq-QssGAQmtsWCxZx94aMlE05uH4Shhsv32nFAEmKZUgbJdGUo4VMabc3XC7ch2rhFtTq8aNhp/s1600/ConESP-01.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="183" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsAfBG2triFVciDUZO6_uovn9Zqi4lQE5sWgjxyAePUiP_WlCGJ4tpKthIQX0f9xfM7zhq-QssGAQmtsWCxZx94aMlE05uH4Shhsv32nFAEmKZUgbJdGUo4VMabc3XC7ch2rhFtTq8aNhp/s320/ConESP-01.PNG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Conexiones ESP-01</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<span style="font-family: "trebuchet ms" , sans-serif;">la conexiones que vamos a hacer son las siguientes:</span><br />
<br />
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Pin Tx con el RX USB.</span></li>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Pin RX con el TX USB.</span></li>
<li><span style="font-family: "trebuchet ms" , sans-serif;">CH_PD lo conectamos a 3,3V.</span></li>
<li><span style="font-family: "trebuchet ms" , sans-serif;">GPIO0 lo conectamos a masa.</span></li>
<li><span style="font-family: "trebuchet ms" , sans-serif;">GND a masa.</span></li>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Y Vcc a 3,3V.</span></li>
</ul>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;">El programa que vamos a utilizar para llevar a cabo el flasheo es ESP8266Flasher. Os dejo una captura de pantalla del mismo:</span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9U0bmwX3uV6kaiT8gje1yWXCDeTtblRdb4YvQM6eBTDTpyQmX0QgqVhxs26JZ_LqXpRBN0jaHlCl0IhYcRuk0cR5SrGGA11NkPz1YHh3Cs9ItGCSPePjJyB-124mDM8h8xiz-dxtkexc3/s1600/esp8266.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="228" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9U0bmwX3uV6kaiT8gje1yWXCDeTtblRdb4YvQM6eBTDTpyQmX0QgqVhxs26JZ_LqXpRBN0jaHlCl0IhYcRuk0cR5SrGGA11NkPz1YHh3Cs9ItGCSPePjJyB-124mDM8h8xiz-dxtkexc3/s400/esp8266.PNG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">ESP8266Flasher</td></tr>
</tbody></table>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;">Pinchando en Bin podremos elegir el fichero binario para cambiar el firmware de nuestro ESP8266 elegimos el COM correspondiente a nuestro conversor y procedemos a darle a download. Si todo está correcto empezará el proceso. Una vez haya acabado el proceso lo único que tenemos que hacer es reiniciar el modulo, simplemente apagandolo y todo estará listo para que podamos hacer conexiones mediante comandos AT con el ESP8266.</span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;">Para que no tengáis que andar buceando por internet buscando el software y el binario necesario os dejo un enlace a una <a href="https://drive.google.com/open?id=0BzUDPTNTpbpNenVkRDlKNkE5aWM" target="_blank">carpeta compartida</a> en la que os pongo el último firmware que yo he utilizado.</span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;">Espero que os sea de ayuda, y nos vemos en la siguiente entrada.</span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;">Un Saludo.</span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: right;">
<span style="font-family: "trebuchet ms" , sans-serif;">Josema Fernandez.</span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
</div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
elektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.com0tag:blogger.com,1999:blog-835442055881274745.post-34097908954970174062016-03-15T17:51:00.000+01:002016-05-29T00:19:26.759+02:00<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<span style="color: blue; font-family: "arial" , sans-serif; font-size: x-large; line-height: 150%;">eOntzia</span><br />
<span style="font-family: "arial" , sans-serif; line-height: 150%;"><br /></span>
<span style="font-family: "arial" , sans-serif; line-height: 150%;">Mikel Díez, Jonathan Arizala y Medhi Amara, en colaboración con 5 estudiantes más de otros centros de enseñanza, hemos creado este proyecto pensado para mejorar la gestión de los residuos, y en consecuencia, la sostenibilidad y el medio ambiente. Ongi etorri eOntzia!!</span><br />
<span style="font-family: "arial" , sans-serif; line-height: 150%;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga8r96bBkyeF3DUGAKaFYqzFwNjHH5J2uzj5gR1RxkFGfL62Rl9CK4wneNT7QQs9xgjsvKFmbnFV5MWofqsypX8zm8cpb2uIxjj9MW-YAHrAHklp3zG0X7OFelWrzWDVjBxYaO0kRyfDu3/s1600/logo.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga8r96bBkyeF3DUGAKaFYqzFwNjHH5J2uzj5gR1RxkFGfL62Rl9CK4wneNT7QQs9xgjsvKFmbnFV5MWofqsypX8zm8cpb2uIxjj9MW-YAHrAHklp3zG0X7OFelWrzWDVjBxYaO0kRyfDu3/s200/logo.JPG" width="165" /></a></div>
<div style="text-align: center;">
<span style="font-family: "arial" , sans-serif; font-size: x-small; line-height: 150%;"><i>Logo de eOntzia</i></span></div>
<span style="font-family: "arial" , sans-serif; line-height: 150%;"><br /></span>
<span style="font-family: "arial" , sans-serif; line-height: 150%;">Éste es vídeo explicativo del proyecto. </span><br />
<span style="font-family: "arial" , sans-serif; line-height: 150%;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/s_vi/phuHdeXda_Y/default.jpg?sqp=CIyAproF&rs=AOn4CLBFgG7kYdQ-U2wRAdtgRw9TFTh4XA" frameborder="0" height="266" src="https://www.youtube.com/embed/phuHdeXda_Y?feature=player_embedded" width="320"></iframe></div>
<span style="font-family: "arial" , sans-serif; line-height: 150%;"><br /></span>
<br />
<a name='more'></a><br />
<br />
<span style="font-family: "arial" , sans-serif; line-height: 150%;"><br /></span>
<span style="font-family: "arial" , sans-serif; line-height: 150%;">eOntzia
es un dispositivo encargado de medir la capacidad de los containers
de basura para avisar a una aplicación informática mediante un
envío de datos previamente obtenidos a través de un sensor de
ultrasonidos que ese cubo se encuentra a la capacidad que deseemos
(nivel programado) para su posterior recogida.</span><br />
<span style="font-family: "arial" , sans-serif; line-height: 150%;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu44GcWh-8KwDkFzQCph4kFW2DPJ6WP_1oaVYx2Igk1qXsXpEokk5kDF9TkOKqEhWLWSWdy0apHnzOjNSsvtg4qtAYCqYAUwHDhVdyjmRuQKFvzHtgQKeZFZtd3AkJAUJe-sPeKlTRaAye/s1600/esquema.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="158" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu44GcWh-8KwDkFzQCph4kFW2DPJ6WP_1oaVYx2Igk1qXsXpEokk5kDF9TkOKqEhWLWSWdy0apHnzOjNSsvtg4qtAYCqYAUwHDhVdyjmRuQKFvzHtgQKeZFZtd3AkJAUJe-sPeKlTRaAye/s200/esquema.JPG" width="200" /></a></div>
<div style="text-align: center;">
<span style="font-family: "arial" , sans-serif; font-size: x-small; line-height: 150%;"><i>Esquema-idea general del proyecto eOntzia</i></span></div>
</div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: "arial" , sans-serif;">La placa del módulo eOntzia se
alimenta por una batería LiPo de 3 celdas de 11,1V y 2,2A. Mediante
esta batería podemos alimentar el resto de componentes y sensores
que componen el circuito.</span></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: "arial" , sans-serif;">Comenzamos por la fuente de
alimentación. En ella hemos empleado dos reguladores, un 4940V5 low
drop para 5V y un LM1119 para 3,3V con los respectivos condensadores
tal y como se indican en los datasheet de los fabricantes de ambos
componentes (300 nF y 100nF en la entrada y salida respectiva del
4940V5, y 22pF a la salida del LM1117). La decisión fundamental de
estos componentes ha venido dada por la capacidad que posee el 4940V5
de paso de corriente (1,5A) necesaria para alimentar la mayoría de
los módulos y sensores, en concreto, el módulo de GSM/GPRS
Libellium sim900, que requiere algo más de 1A cada vez que manda o
recibe algún SMS.</span><br />
<span style="font-family: "arial" , sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM3FcYxgu17R4OEEUirGo5VMQ47_4NeQ9Yf-Sm0v4JCUPtIT22WLzCCpnb4_y9IUxagaMAjT8mtv-BM-TqNLrIN29-ldEzKijqZwixNqtwVt3N7-AJoOjThypCHNEogApRLASYO3QCUM5V/s1600/fa.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM3FcYxgu17R4OEEUirGo5VMQ47_4NeQ9Yf-Sm0v4JCUPtIT22WLzCCpnb4_y9IUxagaMAjT8mtv-BM-TqNLrIN29-ldEzKijqZwixNqtwVt3N7-AJoOjThypCHNEogApRLASYO3QCUM5V/s320/fa.JPG" width="320" /></a></div>
<div style="text-align: center;">
<span style="font-family: "arial" , sans-serif; font-size: x-small;"><i>Esquema de la fuente de alimentación (5V y 3,3V)</i></span></div>
</div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: "arial" , sans-serif;">El cerebro de este proyecto es el chip
Atmega 328P, microcontrolador comúnmente usado en los Arduinos Unos.
Este chip necesita 5V para su funcionamiento. El voltaje, como se ha
mencionado anteriormente, viene dado gracias al regulador low drop
4940V5. El Atmega 328P posee 13 entradas/salidas digitales, y 6
entradas/salidas analógicas, las digitales se activan y desactivan
con pulsos de 5V. Inicialmente, la configuración según el datasheet
del fabricante, el chip lleva conectado un pulsador de reset a la
patilla número 1, y un oscilador de 16Mgz con una resistencia en
paralelo de 1MOhm. El cristal además necesita 2 condensadores de
22pF. Señalar también que entre el pin de tensión de 5V (7) y GND
(8) hay que conectar un condensador de 100 nF.</span></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: "arial" , sans-serif;">El conexionado de los pines digitales
de este proyecto consta de esta manera: módulo GSM/GPRS (D0, D1,
D2), sensor de humo YG-1006 (D5), módulo GPS (D8, D9), sensor
ultrasonido SRF-05 (D10, D11), módulo Wifi esp8266 (D12, D13). Por
otro lado, hemos utilizado los pines analógicos A1, A2 y A3 para
comprobar el estado de la batería. Mediante unos divisores de
tensión compuestos por resistencias de 10K, conectamos cada celda de
la LiPo a estos pines. La primera celda directamente a A3 (3,7V) ya
que el máximo permitido por este microcontrolador son 5V, la segunda
celda a A2 (7,4V) con dos resistencias de 10K y la tercera celda a A3
(11,1V) con 3 resistencias de 10K. Con todo esto y un poquito de
programación, sabremos en todo momento el porcentaje de batería de
nuestro módulo.</span><br />
<span style="font-family: "arial" , sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjW0E59_pnH8TLPhHcs2NtxIY_TcFgZHBROWfmcyXr4HB8UErFUv4EEmvPEe7BGpw6KiWViIX9ZATGw11IsWd2dVVSScS4zco98rp-dWMSMT4X4ouTqRZcleKi536ZdH_SuqC2lGgwiFeF/s1600/bateria.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjW0E59_pnH8TLPhHcs2NtxIY_TcFgZHBROWfmcyXr4HB8UErFUv4EEmvPEe7BGpw6KiWViIX9ZATGw11IsWd2dVVSScS4zco98rp-dWMSMT4X4ouTqRZcleKi536ZdH_SuqC2lGgwiFeF/s200/bateria.JPG" width="196" /></a></div>
<div style="text-align: center;">
<span style="font-family: "arial" , sans-serif; font-size: x-small;"><i>Medidor de batería LiPo 3 celdas (11,3V)</i></span></div>
</div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: "arial" , sans-serif;">El conexionado de los módulos es muy
sencillo, toda la comunicación de estos elementos con el Atmega 328P
se produce a través de los pines Rx y Tx. Por defecto, los pines Rx
y Tx son los digitales D0 y D1 del Atmega 328P. Mediante la librería
SoftwareSerial podemos asignar pines “virtuales” Rx y Tx a
cualquiera de los pines digitales restantes. De esta forma hemos
podido asignar a un mismo controlador varios módulos que puedan
transmitir y recibir datos. De esta manera, la configuración que
obtenemos es la siguiente: módulo GSM/GPRS (D0-Rx, D1-Tx,D2-power o
encendido del módulo mediante un pulso de 2 segundos de duración),
sensor de humo YG-1006 (D5), módulo GPS (D8-Rx, D9-Tx), sensor
ultrasonido SRF-05 (D10-trigger, D11-echo), módulo Wifi esp8266
(D12-Tx, D13-Rx). </span>
<br />
<span style="font-family: "arial" , sans-serif;"><br /></span>
<span style="font-family: "arial" , sans-serif;"> </span><span style="line-height: 150%;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHnhp4vzQauF60oZXYmcd5ISyTCfRNIXN25fzl3N5EdHRe2LNIk070m39kZBaxm6x-bDdxv1LmR4orKVgWdqui6T9JABrChKBdaW7BPYzc8ffcrTOqcjisyUhFmqa6vvIjFiKjNxk3Uqky/s1600/atmega.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHnhp4vzQauF60oZXYmcd5ISyTCfRNIXN25fzl3N5EdHRe2LNIk070m39kZBaxm6x-bDdxv1LmR4orKVgWdqui6T9JABrChKBdaW7BPYzc8ffcrTOqcjisyUhFmqa6vvIjFiKjNxk3Uqky/s320/atmega.JPG" width="320" /></a></div>
<br />
<div style="text-align: center;">
<span style="font-family: "arial" , sans-serif; font-size: x-small;"><i>Conexionado de pines en Atmega 328P</i></span></div>
<div style="text-align: center;">
<br /></div>
</div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: "arial" , sans-serif;">Todos los sensores y módulos, a
excepción del módulo Wifi, funcionan con una tensión de 5V. El
Esp8266 funciona con una tensión de 3,3V. Esta tensión es la que
obtenemos a la salida del regulador LM1117, del que posteriormente
tenemos conectado el módulo Wifi. Este módulo tiene un pulsador
reset al que conectamos el PD_CH, y sirve básicamente para alimentar
el chip del módulo y resetearlo en caso de que éste se bloquee o no
funcione correctamente.</span></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: "arial" , sans-serif;">El funcionamiento del módulo es
simple, el ultrasonido cada cierto tiempo (dependiendo de la
programación) mide y recoge un dato. Este dato es mandado a una App,
que será la que lo visualice en nuestro ordenador. El envío lo
realiza bien el módulo Wifi ó el módulo Gsm. A su vez, el módulo
dispone de un sensor de humo que en caso de detectar llama mandará
5V al atmega que mediante la programación nos avisará a la App, y
un módulo GPS que indica la geolocalización de cada contenedor. En
la App nos aparecerá en un mapa la ubicación del contenedor y
pinchando en cada uno que nos interese, se nos desglosará la
información detallada del cubo en cuestión.</span><br />
<span style="font-family: "arial" , sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8mKqI-8Idf-X2tK2qXyRgrOGBdg82JgHQWejxnrGESX1Iz9SQweZ1rhEFWbaKSYOCp7UIYmudWi2mxefCdNxpzdZGe9I6qnSyXJN41sgfyH7dvq1Hltgg2Z42_vvu86_xCu6TF7l7P0xL/s1600/demo.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8mKqI-8Idf-X2tK2qXyRgrOGBdg82JgHQWejxnrGESX1Iz9SQweZ1rhEFWbaKSYOCp7UIYmudWi2mxefCdNxpzdZGe9I6qnSyXJN41sgfyH7dvq1Hltgg2Z42_vvu86_xCu6TF7l7P0xL/s400/demo.JPG" width="400" /></a></div>
<div style="text-align: center;">
<span style="font-family: "arial" , sans-serif; font-size: x-small;"><i>La App de eOntzia</i></span></div>
</div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<div style="line-height: 150%;">
<span style="font-family: "arial" , sans-serif;">Por último, para saber si el módulo
funciona y manda los datos correctamente, necesitamos un ordenador.
En caso de no tenerlo, el módulo posee tres luces led que nos
indicarán de forma simple y muy visual 3 estados. La luz verde que
funciona con normalidad, la luz roja, cuando empiece a parpadear,
indicará que la batería comienza a agotarse, y por último el led
amarillo, que nos indicará cuando se encienda que se ha conectado a
una dirección IP. El código de este proyecto es libre, y lo podéis ver en el siguiente enlace.</span></div>
<div style="line-height: 150%; text-align: center;">
<span style="font-family: "arial" , sans-serif;"><a href="https://www.blogger.com/goog_1304040228"><br /></a></span></div>
<div style="text-align: center;">
<span style="font-family: "arial" , sans-serif;"><span style="line-height: 24px;"><a href="https://github.com/elektronikalsb/LSB21052016/blob/master/eOntzia/eOntzia.ino">https://github.com/elektronikalsb/LSB21052016/blob/master/eOntzia/eOntzia.ino</a></span></span></div>
<div style="line-height: 150%;">
<span style="font-family: "arial" , sans-serif;"><br /></span>
<span style="font-family: "arial" , sans-serif;">Mikel Díez, Jonathan Arizala y Medhi Amara.</span></div>
<div style="line-height: 150%;">
<span style="font-family: "arial" , sans-serif; font-size: x-small;"><i>(Alumnos de 2º curso de Grado Superior de Mantenimiento Electrónico).</i></span></div>
</div>
<br />
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
Unknownnoreply@blogger.com020140 Andoain, Gipuzkoa, España43.219512376414464 -2.019265809509306643.216619376414464 -2.0243083095093066 43.222405376414464 -2.0142233095093065tag:blogger.com,1999:blog-835442055881274745.post-14939452458134759972016-02-22T09:13:00.001+01:002016-02-22T09:13:06.758+01:00<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<div style="text-align: left;">
<h2>
<span style="background-color: transparent; color: blue; font-family: "arial"; font-size: x-large; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">FURGOTIKA</span></h2>
</div>
</div>
<b id="docs-internal-guid-a0e0aa3b-3506-ab1b-8c57-0ae1e373b347" style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Somos el grupo 1 de la clase de segundo de mantenimiento electrónico de La Salle Berrozpe y en las siguientes líneas vamos a dar una pequeña explicación sobre nuestro proyecto. </span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Nuestro proyecto consistirá en hacer una centralita para vehículos camperizados, sobretodo furgonetas camperizadas, ya que ha habido un considerable aumento de estas furgonetas a nivel de Europa. </span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Los camper son vehículos derivados de furgonetas para uso campista (de ahí la denominación).</span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 6pt; margin-top: 6pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="287px;" src="https://lh5.googleusercontent.com/fuxy1qB-yULnJaz6A77V0052LSMn71sKnDTRIEvSMud7I7W4RHRKypAIjeISYUrukgRmH-ER3VNt5cUAKLZ1D11aGOJJWi9omVJtAfXnj6AN8r0lH-XH8HUBo5OC5KSKoNeTxD_N" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="381px;" /></span></div>
<b style="font-weight: normal;"></b><br />
<a name='more'></a><b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 6pt; margin-top: 6pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Hoy en día, la gente utiliza cualquier tipo de furgoneta para habilitarla a tal fin. En los campings de todo el mundo cada día es más fácil ver este tipo de vehículos.</span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">El principal objetivo de nuestro proyecto será tener el control de los diferentes sensores que añadiremos en un solo punto de control, para poder así facilitar la comodidad y control al usuario. Para poder manejar todos los sensores y actuadores utilizaremos una placa de arduino mega, que nos ofrece más E/S digitales y analógicas que cualquier otra placa arduino.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Así pues nosotros crearemos un circuito impreso en modo de shield para adecuar sensores con la pantalla táctil. Y así tener todo en un espacio más reducido. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Sensores</span><span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Sensor de Gas y Humo</span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="224px;" src="https://lh4.googleusercontent.com/cfalvcam9Fc4U29wp1lL7_eVrf0-UHiJfTf81ow9Yp_rSklBxnP61CSwHzDWoaw5v1_XF2wu1J0QLYDrCI2wOmUZXcjsEsSjLIHi9BSdVd78SC9HwXUXuNgxM2MrTvmqx9FbDrts" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="224px;" /></span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Este sensor es el sensor MQ-2, por una parte nos detecta tanto el butano como el propano que son los dos tipos de gases que son usados para cocinar. Para posibles fugas que se puedan producir en nuestra furgoneta. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Sensor de Nivel de depósito de agua</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="167px;" src="https://lh6.googleusercontent.com/75o28bJuXT2yNXlPbuBfoe4fYoWs1NmUSdYIPaWQCsqM-LNbz27a6VXmHnPqfDQcmnFJvPI88AOlAhd6evDHjT7NUqe4JPgHBmAuszKaOLLKRK0FegIpjngdDR6qQDYNwko1t8cZ" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="223px;" /></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Este es el sensor Etape que es un sensor que nos da un nivel preciso en cada momento. Este sensor lo utilizaremos para controlar el nivel del depósito de agua.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Sensor de Corriente y Voltaje</span></div>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 7pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="165px;" src="https://lh4.googleusercontent.com/yX5Q8Z54ciEcfpWsKsub8FI0hlVy4c2wGpL2vSKouJsi-ldnSqlZdkP0VrWUXJxElswt10e3jvMSzd1vottmzk4GG23APFiSzXwVeoj44JnK98tI95b22d-8MoE5Oz9oLicrMBhe" style="border: none; transform: rotate(0rad);" width="257px;" /></span><img height="169px;" src="https://lh6.googleusercontent.com/QVim9uTqcLryM842g3ZSZqjVIWPTZE85kfEYOhwgFyjGjX2JVSfIgwk4gKuBLwLwfaABvuu08J4kLEGrYgoT7ObrC8MHv1FfOqwHu4vd760BoqmjoU1a9flJQSlb08OsvXHJQyBc" style="border: none; transform: rotate(0rad);" width="303px;" /></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Mediante estos sensores controlaremos en consumo de de nuestra furgoneta. Tendremos dos sensores para este control, en de voltaje y corriente. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Sensor de Temperatura </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="157px;" src="https://lh3.googleusercontent.com/ZWlo_P521G0CNJtWvcJd1p8QeW5ZpKWxEs9gefeVKl2hewXC8rPJfxmWjcmrQCRto6jMoIRs0PYGjd803szxMmhUg0uC9EULoGUWYwcfo8EMNAx73yDswO3utNtPEiMQgx_ycb1Q" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="210px;" /></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">El DHT22 es un sensor básico, de bajo coste que mide tanto temperatura y humedad. Se utiliza un sensor de humedad capacitivo y un termistor para medir la temperatura. Mediante este sensor podremos controlar la temperatura del vehiculo.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">GPS</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 7pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="171px;" src="https://lh6.googleusercontent.com/bv4BPtsD22HvJ8DaQdWlEgFUUcrSn-rqDh904K3aV8YNOkxY2lKGxFrOGfW3aCeWTY3TeS6c-NoJ7k6HgbLk9TWGT2PthoTnHz9fdw1LmFXFmuKiICuxNnTBznJuBGWlYWrDCbcR" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="224px;" /></span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 7pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">También instalaremos un GPS, su función es la de localizar la furgoneta en caso de que no la encontremos. Nos llegarán las coordenadas a nuestro dispositivo y solo tendremos que copiarlas en google maps para localizarlas.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Funciones capaces de hacer</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Iluminación</span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="176px;" src="https://lh5.googleusercontent.com/uxs3yo1JRa5ut_6WIdtinVfreDxwkgzkqezFYN0OKJ-z0tWybxBf7S9lLyGA0nPS4FQsx35BnUsrEwuHkK2D4-sXMSOuJ65saIX1fMLxwqmf6UqjjjS60o4oObqJl2AlMWAvJ1F4" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="176px;" /></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Para la iluminación utilizaremos una tira led la cual diseñaremos un circuito donde los activaremos mediante una serie de transistores. Así podremos iluminar la furgoneta. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">WIFI</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Una de las grandes ventajas que ofrecemos y hará que nuestro producto sea diferente a todas la demás centralitas, es que, tenemos dos tipos de control sobre ello. Un modo de ello es que todos los sensores y actuadores están conectados a una red wifi. La ventaja de este será que podríamos tener el control de la furgoneta a distancia. Un claro ejemplo de este, sería activar la calefacción en invierno a distancia para cuando tu llegues a ella, tener la temperatura adecuada. El otro modo es mediante una pantalla táctil, por la cual podremos ver y activar todos los sensores y actuadores.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Pantalla táctil de 5” </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="170px;" src="https://lh6.googleusercontent.com/oZUuYNNFVAAnfl9mb1srNXfj9CwefkosXnz9GOFyQYooVzaiqGhGuVk9JBmg0Rtg50-PmR4dns3v-PJjIck9F-DtDyHGRJNVnVatESOU7khfUJm8F56Tbo8Wliftik12nodjyRzh" style="border: none; transform: rotate(0rad);" width="481px;" /></span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Mediante esta pantalla táctil visualizamos todos nuestros sensores. También podremos activar algunas de las funciones de la furgoneta. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ESQUEMA DE SENSORES</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="329px;" src="https://lh3.googleusercontent.com/oiBKatmWfDKzMZc4UmS8Ops65ylJik1FSElIYNENVJBSCBXoQuZYCZ_VSvTP6keAuNSiJ6HdpSWWgd909P0i4zwXhPbByEbMdeGVCV4Jcu2itPHIM4oUuq6qSdbri25U0Yq_tAlj" style="border: none; transform: rotate(0rad);" width="527px;" /></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">En este proyecto vamos a aprender muchas cosas ya que estamos trabajando con muchos puntos diferentes de la electrónica. En la parte de los sensores tenemos la programación, todos los sensores son diferentes, lo que nos exigirá un programa por cada sensor, elevando el nivel de dificultad. </span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">También vamos a tener ciertas dificultades con las comunicaciones, ya que comunicar tantos sensores a la vez va a ser complicado y si además añadimos una red wifi más aún.</span></div>
<div dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Al tener que diseñar una placa, vamos a aprender a utilizar PROTEUS un software de diseño muy potente para el diseño de placa electrónicas. </span></div>
<br />
<div dir="ltr" style="margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<div style="line-height: 1.8;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Esperamos cumplir nuestros objetivos y tener una planificación adecuada ya que hay muchas cosas que hacer y nuestro tiempo es limitado. </span></div>
<div style="line-height: 1.8;">
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<span style="background-color: transparent; color: black; font-family: Arial, Helvetica, sans-serif; vertical-align: baseline;"><span style="background-color: white;"><span style="line-height: 20.79px;">Proyecto creado por Mikel Rueda, Jon Urretabizkaia y Oier Alonso, alumnos del Grado Superior de Mantenimiento Electrónico de La Salle Berrozpe Andoain.</span></span></span></div>
<div>
<span style="background-color: transparent; color: black; font-family: "arial"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-835442055881274745.post-42018124001639992102016-01-25T08:40:00.000+01:002016-01-25T08:40:46.420+01:00<div style="text-align: justify;">
<h2>
<b><u><span style="color: blue; font-family: "trebuchet ms" , sans-serif; font-size: x-large;">E-Ontzia</span></u></b></h2>
</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-jMKl2O4HwkhXAg0nYrXUVviW_qO_L_kOMdF2xkVTE82tCIhl-yn3XlbID6p8RbMfpQdWRD_qzq_PRFFPVvsez6YDIm1belWrmD7JC1Nx361itkliuPHIocLKt_9x0hg-Bz5i6ZtF1Og/s1600/564ec9c29f63987735756124_create_thumb.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-jMKl2O4HwkhXAg0nYrXUVviW_qO_L_kOMdF2xkVTE82tCIhl-yn3XlbID6p8RbMfpQdWRD_qzq_PRFFPVvsez6YDIm1belWrmD7JC1Nx361itkliuPHIocLKt_9x0hg-Bz5i6ZtF1Og/s1600/564ec9c29f63987735756124_create_thumb.png" /></a> <span style="font-family: "trebuchet ms" , sans-serif;"> La evolución del ser humano ha ido de la mano de la evolución tecnológica. Las personas nos hemos ayudado de máquinas y de la tecnología contemporánea para facilitar las tareas, producir más, y en general, para vivir mejor. A día de hoy, en pleno siglo XXI, la revolución tecnológica que la sociedad ha experimentado en estas dos últimas décadas ha sido la mayor de la historia si se compara al resto de épocas. Internet, entre otras ha sido el pilar fundamental. La red, todos estamos conectados a ella, tanto personas como máquinas, Internet ha sido la clave de esta revolución y son muchas las aplicaciones que podemos obtener de la nube.</span><br />
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<span style="font-family: "trebuchet ms" , sans-serif;"> Como decimos, muchas de estas tecnologías se han aplicado a sectores como sanidad, industria, educación, infraestructuras, ocio, etc. revolucionándolas de tal forma que los límites que antes se creían infranqueables, ahora han quedado atrás. Por ejemplo, a la hora de construir una autopista, los topógrafos estudiaban el terreno, la vía aérea ha sido muy empleada para cuadricular terrenos, y normalmente se ha empleado el uso de helicópteros, con su consiguiente gasto. Ahora, un simple dron dotado de una cámara puede hacer ese trabajo, y de una forma más eficiente. La tecnología ayuda a la eficiencia, de esta forma somos más competitivos y como resultado, la progresión del avance en cualquier campo es mayor. </span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbFwbZj-_LWMc2l0R5LlSRB4lPuX3SXK2TGIlLpR9NEmM28Pl-iwuVs_U-TRvWTdZLX9UmWkJFX-aAfl85MRiZtrtTon-9c_bRYXnQ5lari8tg5yudM0uLwFE_r5XKoAr0YGqpa0MeyvE/s1600/Captura.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="459" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbFwbZj-_LWMc2l0R5LlSRB4lPuX3SXK2TGIlLpR9NEmM28Pl-iwuVs_U-TRvWTdZLX9UmWkJFX-aAfl85MRiZtrtTon-9c_bRYXnQ5lari8tg5yudM0uLwFE_r5XKoAr0YGqpa0MeyvE/s640/Captura.PNG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<a name='more'></a><br />
<br />
<span style="font-family: "trebuchet ms" , sans-serif;">A pesar de haber cultivado éxitos tangibles en muchísimos aspectos de la vida diaria, la tecnología se está aplicando cada vez más a la gestión de grandes superficies, como por ejemplo ciudades, donde millares de personas necesitan cada vez más gestionar la información en tiempo real para ser más eficientes. Ahora, por ejemplo, podemos ver mediante una aplicación, en nuestros dispositivos móviles, ordenadores o tabletas la situación exacta de un autobús, y a qué hora pasará éste por determinada parada. Luminaria, semáforos, gestión de aguas, gestión energética, ocio (reservas en hoteles, restaurantes...), etc… todo está controlado milimétricamente por la tecnología. En definitiva, un sistema lo suficientemente eficiente para facilitarnos toda la información que se nos antoje a golpe de vista y con un solo dedo. </span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> Por otro lado, desde hace unos pocos años, observando el medio, nos hemos dado cuenta de los mensajes que nos ha estado y sigue lanzando la Madre Naturaleza. Nuestro planeta está “enfermo” debido a la contaminación. Contaminación que ha surgido de la revolución tecnológica, sobre todo de la vivida en los últimos 50-60 años. Antes los límites tecnológicos habían impedido tomar cartas en el asunto, hoy en día, con la tecnología existente, el uso de energías renovables es un hecho que cada vez va ganando más peso entre la comunidad. </span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIes_IjoWvWeHg8cTPOoYOrbL78eEWcGRlBuBS8u2tZW6I5aVzlraTJtSuxb9Dfk3bIaeV1cFm-Ld7duhGuetIqDWzkCseaokkJaJGVS0PBVmY_52xubw3vNg14cXqMj8bnzSdbg9hMkk/s1600/Captura.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="161" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIes_IjoWvWeHg8cTPOoYOrbL78eEWcGRlBuBS8u2tZW6I5aVzlraTJtSuxb9Dfk3bIaeV1cFm-Ld7duhGuetIqDWzkCseaokkJaJGVS0PBVmY_52xubw3vNg14cXqMj8bnzSdbg9hMkk/s200/Captura.PNG" width="200" /></a></div>
<span style="font-family: "trebuchet ms" , sans-serif;">Las grandes urbes poco a poco se están tecnificando, buscando la eficiencia energética, precisamente porque es en estas grandes aglomeraciones de edificios y personas donde más contaminación se genera que va directamente a la atmósfera fomentando el famoso cambio climático. Edificios eficientes energéticamente gracias a los nuevos materiales empleados en la construcción, paneles solares que ayudan a generar energía “limpia” cuya fuente es el sol, etc… transportes públicos con sistemas eléctricos o híbridos, coches impulsados por gas, electricidad, …</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> Como consecuencia, y para cambiar la situación que estamos viviendo, muchas ciudades han empezado a utilizar la tecnología para gestionar sus residuos. Aunque el camino por recorrer todavía es muy grande, la primera piedra ya está colocada. Lo fundamental es que la ciudadanía está concienciada con este problema, un asunto que nos atañe a todos, y que es uno de los principales rompecabezas de este siglo. Desde las administraciones públicas se han empezado a colocar los medios para que esta toma de conciencia sea un hecho y no una idea. Tanto las viejas generaciones acostumbradas a meter todo en una bolsa, como las actuales tenemos que aprender de la importancia de esta práctica para, en un futuro, poder legarla a las próximas generaciones.</span><br />
<div style="text-align: justify;">
</div>
</div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> Es aquí donde entra el proyecto E-ONTZIA, un sistema de control de residuos que permite saber en tiempo real, entre otras cosas, la ubicación exacta y el estado de llenado de cada cubo contenedor así como controlar el volúmen de residuos que se va generando en cada área de la ciudad o municipio para su posterior recogida.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b><u><span style="font-family: "trebuchet ms" , sans-serif;">JUSTIFICACIÓN DEL PROYECTO</span></u></b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCbVmEObGwS2_Dhhd-vKap9ehy5yG3VAhuG2fwVb4EhYKgd04Uc-g_YKus0PKo9ShvMP4fYltiMY1IG90MnSIA_S5kG1rkqIfcih_xONuCB_Z3WQYxzLBulF3QPXXO4CVTXhqvLrty9Uo/s1600/Captura.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="244" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCbVmEObGwS2_Dhhd-vKap9ehy5yG3VAhuG2fwVb4EhYKgd04Uc-g_YKus0PKo9ShvMP4fYltiMY1IG90MnSIA_S5kG1rkqIfcih_xONuCB_Z3WQYxzLBulF3QPXXO4CVTXhqvLrty9Uo/s320/Captura.PNG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="font-size: 12.8px;"><br />
<span style="font-size: small; text-align: justify;"><b>Esquema del proyecto E-ontzia</b></span></td></tr>
</tbody></table>
<span style="font-family: "trebuchet ms" , sans-serif;">El objetivo de este proyecto ha venido un poco de la experiencia personal vivida al contemplar cómo varios puntos donde se encuentran ubicados los contenedores de residuos se ven colapsados llegando a invadir las aceras con bolsas y demás restos de desechos, dando una imagen de insalubridad o dejadez en algunos puntos. </span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> Existe una problemática real con la gestión de los desechos, y a la vez un problema cada vez mayor con las emisiones de CO2 de los vehículos. Está claro que las emisiones producidas por un par de camiones no es mucha, pero, ¿cuál sería la cantidad de CO2 emitida por todos los camiones existentes dedicados a la recogida en cualquier parte del estado? Si así contribuimos a mejorar la calidad del medioambiente, hemos alcanzado nuestro objetivo. </span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Este proyecto persigue tanto monitorizar los contenedores de residuos, para realizar una recogida eficiente, planificando rutas en base a los datos obtenidos en algunos municipios donde la recogida no es diaria, esto es, ir cuando es necesario (con el ahorro de costes en combustible y emisiones que supone) o controlar determinados puntos negros donde se genera muchísima basura.</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<b><span style="font-family: "trebuchet ms" , sans-serif;">CONSECUENCIAS</span></b></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">Este proyecto supondrá consecuencias a corto-medio plazo. Destacamos:</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
</div>
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Crear un sistema de recogida eficiente, basado en la implantación de un módulo portátil (E-ONTZIA) para convertir en ”inteligente” cualquier contenedor de basura. </span></li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div style="text-align: justify;">
</div>
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">El dispositivo y la interfaz servirán para crear rutas de recogida optimizadas, con el consiguiente ahorro de tiempo y combustible.</span></li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div style="text-align: justify;">
</div>
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">En zonas de difícil acceso, acudir en el momento de llenado evitando entorpecer el tráfico de la zona, entre otras. </span></li>
</ul>
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Monitorizar y recoger los datos obtenidos de cada contenedor al que se le haya acoplado el módulo. Así, sabremos, entre otras cosas, periodicidad de llenado, volúmenes generados por área, etc… para luego tomar las decisiones pertinentes en cuanto a mejoras se refiere (añadir más contenedores, por ejemplo).</span></li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div style="text-align: justify;">
</div>
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Crear un producto tecnológico que sirva para fomentar la creación de puestos de trabajo, y porque no, una empresa que se dedique a su producción e implementación en colaboración con organismos públicos. </span></li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div style="text-align: justify;">
</div>
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Mejorar nuestros conocimientos y competencias dentro del ámbito empresarial. Creación de un plan de empresa.</span></li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div style="text-align: justify;">
</div>
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Cuidado y mantenimiento de nuestro patrimonio medioambiental así como el fomento de una mentalidad más ecológica.</span></li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div style="text-align: justify;">
</div>
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Aportar activamente capital intelectual al sistema de gestión de residuos de nuestra ciudad, y de cualquier ciudad.</span></li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
</div>
<ul>
<li><span style="font-family: "trebuchet ms" , sans-serif;">Mejorar la calidad de la ciudad y de la ciudadanía en general. Es un servicio con valor añadido para el uso común.</span></li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<br />
<div style="text-align: justify;">
<b><u><span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></u></b></div>
<div style="text-align: justify;">
<b><u><span style="font-family: "trebuchet ms" , sans-serif;">DESCRIPCIÓN TECNICA</span></u></b></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> El proyecto consiste en crear una placa electrónica que contenga un chip ATMega328P (el “cerebro” del módulo) a la que irán conectados una serie de sensores y placas de comunicación vía WIFI o GSM/GPRS para que puedan enviar los datos obtenidos de esas mediciones a una interfaz web que el usuario pueda controlar y visualizar en tiempo real. </span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<span style="font-family: "trebuchet ms" , sans-serif;">E-ONTZIA es un sistema portátil de medición de la capacidad de los contenedores de residuos versátil y modular, es decir, se puede moldear a gusto de cada cliente y se adecua a sus necesidades. Como ventaja principal, cabe destacar su bajo coste y su movilidad o adaptabilidad ya que es ajustable en cualquier tipo de contenedor existente.</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> </span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> Con este sistema se pretende mapear y ubicar todos los contenedores de residuos en los que nos interese controlar el estado de llenado, ya sea en grandes ciudades, o bien, en pequeños municipios alejados y perdidos en zonas rurales. En la aplicación web se podrá ver un mapa del área con cada contenedor representado por puntos y diferentes colores para saber su estado de capacidad.</span></div>
<div style="text-align: justify;">
<br /></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRyqz2kC63oqz_qkxE49bCXIXRjgfbdxwCm5UUeDMPQwfpLmxZeWKZ-XzwPf8fxqxvMdhf2P8QzEoqwC71SU7hmDG8Uf1j5mTDS1jtrhYvrQSnLVSX_eqSvK9Cb5mUpeHVfU-KmeY-5po/s1600/Captura.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRyqz2kC63oqz_qkxE49bCXIXRjgfbdxwCm5UUeDMPQwfpLmxZeWKZ-XzwPf8fxqxvMdhf2P8QzEoqwC71SU7hmDG8Uf1j5mTDS1jtrhYvrQSnLVSX_eqSvK9Cb5mUpeHVfU-KmeY-5po/s1600/Captura.PNG" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: small; text-align: justify;"><b>Arduino Uno y sensor de distancia (SRF05) y detección de humo (MQ-7)</b></span></td></tr>
</tbody></table>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;">La idea es buscar la eficiencia en la recogida de los residuos generados. Por ejemplo, partiendo de una red WiFi en la ciudad, (actualmente se están desarrollando cada vez más en numerosas ciudades, ya que se enfocan sobre todo a la gestión de los bienes de uso general de la ciudadanía) y ayudados por un un sistema informático, este software rediseña las rutas de recogida cada día en base a qué puntos tienen más carga y dónde se encuentran. </span> </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJnoFPEi-ZKNSCYwTsbqZQNIhrgt1dbaXvaUlPJfiWpwvEngcTJE_yEwWegrIm87eKD-W3Es626-30itks9WWETFaa0gGnAY2lVAwY5POH5CBqcoaTHHZME7KZl_n5T71Mjt7uJNLRk5Q/s1600/Captura.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="146" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJnoFPEi-ZKNSCYwTsbqZQNIhrgt1dbaXvaUlPJfiWpwvEngcTJE_yEwWegrIm87eKD-W3Es626-30itks9WWETFaa0gGnAY2lVAwY5POH5CBqcoaTHHZME7KZl_n5T71Mjt7uJNLRk5Q/s400/Captura.PNG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: small; text-align: justify;"><b>Módulos de comunicación Libelium Sim900 GSM y Wi-Fi ESP8266</b></span></td></tr>
</tbody></table>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> Tampoco hay que olvidarse de los que se encuentran en los pueblos alejados de ellas, o incluso de los que se encuentran algo más dispersos. Al ser municipios donde puede que haya problemas para obtener una buena cobertura WI-FI, para este tipo de situaciones, utilizaremos la banda GSM/GPRS para mandar los datos que lean los sensores.</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> A continuación, una breve descripción de los sensores y módulos que irán instalados en el dispositivo E-ONTZIA:</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><b>Sensor ultrasónico:</b> mediante este sensor, se controla el estado de la capacidad del contenedor. Está programado para que cada cierto tiempo transcurrido, realice una medición que será recogida por el ATMega328P.</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><b>Sensor de humo:</b> medirá la cantidad de monóxido de carbono. Su función principal es la prevención de fuego dentro del contenedor (destinado a los de almacenaje de papel, por ejemplo).</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><b>Módulo GPS:</b> para controlar la ubicación del contenedor. Un mapa virtual desde la web nos mostrará su localización exacta.</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><b>Módulo GSM/GPRS:</b> su función principal es mandar mediante SMS los datos del contenedor ubicados en zonas alejadas en aquellos lugares donde la cobertura WI-FI sea mala o nula</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><b>Módulo WIFI: </b>sirve para mandar los datos obtenidos a través de una conexión inalámbrica, pensado sobre todo para los contenedores de núcleos urbanos con buena cobertura.</span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> De la recogida y procesamiento de datos se encarga nuestro equipo informático. Mediante una aplicación web, se puede visualizar el parque de los contenedores de forma cómoda a golpe de ratón, con imágenes, gráficas, etc… Todo muy visual e intuitivo para un uso fácil de la interfaz. La aplicación es privada, es decir, requiere de un usuario y una contraseña para poder acceder. Una vez dentro de la aplicación, el responsable de la empresa puede ver en un mapa todos los dispositivos que tenga activos. Además, el usuario tiene la posibilidad de situarse en dichos puntos para ver la información de cada dispositivo, como porcentaje de llenado, estado de la batería, entre otras. </span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif;"> El trabajador, filtrando los datos dependiendo de su necesidad, puede consultar cada dispositivo individualmente, tanto por porcentaje de llenado como por barrio, todo ello para facilitar la visualización de los datos. La aplicación dispone de un apartado de configuración o panel de control, en el cual se puede modificar diferentes aspectos de los dispositivos. Para finalizar, el software es capaz de generar las rutas de recogida dependiendo del porcentaje de llenado de los contenedores, procurando que sean las más eficientes posibles, así como de realizar avisos a los bomberos en caso de incendio de algún contenedor.</span><br />
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span>
<span style="font-family: "trebuchet ms" , sans-serif;">Proyecto creado por Mehdi Amara, Jonathan Arizala y Mikel Diez, alumnos del Grado Superior de Mantenimiento Electronico de La Salle Andoain.</span></div>
Unknownnoreply@blogger.com020140 Andoain, Gipuzkoa, España43.219559287296036 -2.019244351837187443.218112787296036 -2.0217658518371873 43.221005787296036 -2.0167228518371876tag:blogger.com,1999:blog-835442055881274745.post-85059910418842128762015-06-12T12:51:00.003+02:002015-06-12T12:51:39.667+02:00NURSE (Nursing's Unattended Robotic Service)<b><span style="color: blue; font-family: Trebuchet MS, sans-serif; font-size: x-large;">NURSE</span></b><br />
<b><span style="color: blue; font-family: Trebuchet MS, sans-serif;">Nursing's Unattended Robotic Service</span></b><br />
<span style="font-size: large;"><b><br /></b></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqlUlLOTJdEZfTJHfrxIscslH0QciT2F89P83memfaJ9waAD3g17xepddZLpOXddlwPab16dYx9E0B4Cc8m02UlYJIwq0x8t0tkR9FB72zXcgxBz2Tp6EPQ747t_z17yw5wntnJK9L668/s1600/Nurse.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="116" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqlUlLOTJdEZfTJHfrxIscslH0QciT2F89P83memfaJ9waAD3g17xepddZLpOXddlwPab16dYx9E0B4Cc8m02UlYJIwq0x8t0tkR9FB72zXcgxBz2Tp6EPQ747t_z17yw5wntnJK9L668/s200/Nurse.jpg" width="200" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/4ByDNulnoOM/0.jpg" src="https://www.youtube.com/embed/4ByDNulnoOM?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<div style="text-align: justify;">
<span style="font-size: large;"><b><br /></b></span></div>
<div style="text-align: justify;">
Ion Munarriz, Adur Bernaola eta Ander Lorente, en colaboración con tres alumnos de Don Bosco de </div>
<div style="text-align: justify;">
Renteria, hemos llevado a cabo este ambicioso proyecto para acercar los pacientes de avanzada edad </div>
<div style="text-align: justify;">
o con problemas de movilidad y personal médico por medio de la nube.</div>
<div style="text-align: justify;">
<br />
<a name='more'></a><br /></div>
<div style="text-align: justify;">
El objetivo del proyecto viene marcado por las necesidades surgidas en consecuencia del envejecimiento progresivo de la población en los países con un nivel de desarrollo avanzado. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Es aquí donde la telemedicina empieza a cobrar un papel relevante ya que la implementación de sus servicios pueden aportar mejoría con las soluciones tecnológicas actualmente disponibles mejorando aspectos cualitativos, cuantitativos y de eficiencia.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Los pacientes, médicos, cuidadores y la familia serán los grandes beneficiados, ya que su situación será más confortable y eficiente. La conciliación de la vida familiar se verá también beneficiada, debido a que el paciente no necesita ser ingresado.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
La automatización de las mediciones de constantes vitales en el entorno del paciente, dando una respuesta rápida y eficaz a sus necesidades, puede mejorar muchísimo su calidad de vida. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGedNesVdCZn1BotDBnwD10g1z13HCWxPBdl4VOd5tcFitEKWOlXKq_CINPB7y5H7oek-nEvN20TQOk8buBYV4tPRNUNUvGPAbOguKqetczrV_NDNjHb5KPGA6Uy8YkOGR_bnEuc_hzLs/s1600/finaal.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="220" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGedNesVdCZn1BotDBnwD10g1z13HCWxPBdl4VOd5tcFitEKWOlXKq_CINPB7y5H7oek-nEvN20TQOk8buBYV4tPRNUNUvGPAbOguKqetczrV_NDNjHb5KPGA6Uy8YkOGR_bnEuc_hzLs/s1600/finaal.png" width="320" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
En cuanto a nuestro producto, a continuación se detallan tanto la parte del hardware como del software y el ensamblado final.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz65n02as_rJ-RxHNL6QzYfGPXoSOyjzO7LQ8VyXrWGHCw71-9-795Is-pVOq_g6RWjlwEv3cee7ZvEZ62TYJAp-ndzNIISFHsA72G6WgRWvCWsPALXl5TXq0CXZ-BOSdGYjt1ehA-BGU/s1600/captura+final.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz65n02as_rJ-RxHNL6QzYfGPXoSOyjzO7LQ8VyXrWGHCw71-9-795Is-pVOq_g6RWjlwEv3cee7ZvEZ62TYJAp-ndzNIISFHsA72G6WgRWvCWsPALXl5TXq0CXZ-BOSdGYjt1ehA-BGU/s1600/captura+final.JPG" width="249" /></a></div>
<div style="text-align: justify;">
<br /></div>
HARDWARE<br />
<br />
En cuanto al hardware, hay que apuntar que nuestro sistema se basa en la placa Arduino, tomando como referencia el modelo UNO. Hemos diseñado nuestra propia placa de Arduino, la cual se muestra a continuación:<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1PUql21Lz4t2uzX5GrBusVB7GkTGdbPaGuACHBPhUg7A6SprAyucthI7T8zpuKSJwXEMcAGH5aRzFOQ50eE20BUXJpehdd9OypUfhGwCRzLPnH8EBBYZXmMricR9fvDkDXzFNXuHW9cg/s1600/arduino.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="227" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1PUql21Lz4t2uzX5GrBusVB7GkTGdbPaGuACHBPhUg7A6SprAyucthI7T8zpuKSJwXEMcAGH5aRzFOQ50eE20BUXJpehdd9OypUfhGwCRzLPnH8EBBYZXmMricR9fvDkDXzFNXuHW9cg/s1600/arduino.JPG" width="400" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihx7q5ohWGmgA7xx0xedDl5IrP5P3NrUSTuzV7tTirqjZjTE9Gf-pKsi1c6XxxG9iS2qspvY_GfdvXU-8rQ-3HzzomUZdXpux784ukn1Nkiyryb9F0lWoMKRLV1i8f9TWgnhZzDFmscvc/s1600/ares.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="146" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihx7q5ohWGmgA7xx0xedDl5IrP5P3NrUSTuzV7tTirqjZjTE9Gf-pKsi1c6XxxG9iS2qspvY_GfdvXU-8rQ-3HzzomUZdXpux784ukn1Nkiyryb9F0lWoMKRLV1i8f9TWgnhZzDFmscvc/s1600/ares.JPG" width="200" /></a></div>
<span style="font-size: x-small;"> Diseño en Proteus Ares</span><br />
<br />
<br />
<br />
<br />
<br />
<span style="font-size: xx-small;"> </span><span style="font-size: x-small;"> </span><br />
<span style="font-size: x-small;"><br /></span>Sobre el Arduino, se colocará la placa e-Health, a la cual se le conectarán los sensores de glucosa, flujo de aire y temperatura.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiof-ll4E3RMGuY6Ww_1VLe3sBSb1on6dVDpP-dN_IjJ9SruM66Jhpnqf0JDyykQ03XiuuKcbYvrASMFF5ZjD4Gj6a3NzpAdK8Mr8OeITMUB21THd6IE4qEMhOmc3fnNMXXQuoVhGLOkA/s1600/e-health.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiof-ll4E3RMGuY6Ww_1VLe3sBSb1on6dVDpP-dN_IjJ9SruM66Jhpnqf0JDyykQ03XiuuKcbYvrASMFF5ZjD4Gj6a3NzpAdK8Mr8OeITMUB21THd6IE4qEMhOmc3fnNMXXQuoVhGLOkA/s1600/e-health.JPG" width="320" /></a></div>
<br />
<br />
<br />
Sobre esta placa se coloca la pantalla táctil que nos facilitará hacer las mediciones, así como la transmisión de datos a otro Arduino para que sean finalmente subidos a la red.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7sHkJaTIvqUzF6wsjz7c7wcb3A2tOurr82HX4SUReZrhPrdoTLtMz0SzNUCWMG_jY66c-YfutvR2vNjsYMPgB0_JRkwnQyrkSd2OZZ-X95YZqBe-HTnL_3NWQezTTtNsiRsPjYzQlN_0/s1600/tft.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="189" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7sHkJaTIvqUzF6wsjz7c7wcb3A2tOurr82HX4SUReZrhPrdoTLtMz0SzNUCWMG_jY66c-YfutvR2vNjsYMPgB0_JRkwnQyrkSd2OZZ-X95YZqBe-HTnL_3NWQezTTtNsiRsPjYzQlN_0/s1600/tft.JPG" width="320" /></a></div>
<br />
Para las mediciones, utilizamos los sensores compatibles con la placa e-Heatlh.<br />
<br />
Glucómetro:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxq5e0UWIr4FGQiLSEeqS7dEl0UiIThcToHtVWd9Kg1g4pq7iNf1UHt4yc4mJ9rO4OGFcpXvQw7ANQyXMonvGEFx3rtlIHoVWBQs6apTdNxwUzSgQPHWGnYhEA-CDJcU6X_OvkG4FF5A/s1600/glucometro.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxq5e0UWIr4FGQiLSEeqS7dEl0UiIThcToHtVWd9Kg1g4pq7iNf1UHt4yc4mJ9rO4OGFcpXvQw7ANQyXMonvGEFx3rtlIHoVWBQs6apTdNxwUzSgQPHWGnYhEA-CDJcU6X_OvkG4FF5A/s1600/glucometro.JPG" width="320" /></a></div>
Sensor de flujo de aire:<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAcRqG5_y4zvRjamzTquSEA94YVe9j2w9rduclfi7ScaBEM77ZzLDFzi0Cng7TtCYvjQ4UsHYGb-cYGssqsnd5WeYZ3bxtf6eNIn1COyUGR6cehuat0gqp2H8Y0tixWiGP5KEZ69u0IVw/s1600/aire.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="313" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAcRqG5_y4zvRjamzTquSEA94YVe9j2w9rduclfi7ScaBEM77ZzLDFzi0Cng7TtCYvjQ4UsHYGb-cYGssqsnd5WeYZ3bxtf6eNIn1COyUGR6cehuat0gqp2H8Y0tixWiGP5KEZ69u0IVw/s1600/aire.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Sensor de temperatura:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu8fD69OLc6av8cIA4f2rScjG0N6p2vjCYcff3CaQ6K0l93XYkf7SC7EH60Yn9EGpw2dubpbjZD1kRtaEsvN6qZD691G8y-Mt-_Rur90XPAjtHASfUtTYDp64C0dON7BmCRaszccRSM_g/s1600/tempe.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu8fD69OLc6av8cIA4f2rScjG0N6p2vjCYcff3CaQ6K0l93XYkf7SC7EH60Yn9EGpw2dubpbjZD1kRtaEsvN6qZD691G8y-Mt-_Rur90XPAjtHASfUtTYDp64C0dON7BmCRaszccRSM_g/s1600/tempe.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<br />
Para transmitir los datos obtenidos y procesados a Internet, utilizaremos la WiFi Shield para Arduino.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir89HAdcLxG_8G2xFugSlfUG-kRdZPUnk-UoGxgm5XzKVftmuX-qElDJ12hEuHe9IBClrdrNLhOCu4K9Maz7VqRZVApvJ-9w-ot8oddDjX29X7XgGrDrwnOwHCMQA17BRyAlxNConhwQQ/s1600/wifi+shield.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir89HAdcLxG_8G2xFugSlfUG-kRdZPUnk-UoGxgm5XzKVftmuX-qElDJ12hEuHe9IBClrdrNLhOCu4K9Maz7VqRZVApvJ-9w-ot8oddDjX29X7XgGrDrwnOwHCMQA17BRyAlxNConhwQQ/s1600/wifi+shield.jpg" width="320" /></a></div>
<br />
Cuando el médico decida y prescriba la dosis necesaria para el paciente, los servomotores se encargarán de suministrar la pastilla al paciente.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWtqygSM7VK1BhKuGXRy2TnWO6obaVzp0Y0dseHqhC8fj6GsLSTZ9osI2mTyY9E3rVmLOsrPoL4ZlWGq24yA3y3mYdVvGvinSbao88oYQiW93FBA71UcmT-CEICu7rO5RlaW32519WyY0/s1600/servo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWtqygSM7VK1BhKuGXRy2TnWO6obaVzp0Y0dseHqhC8fj6GsLSTZ9osI2mTyY9E3rVmLOsrPoL4ZlWGq24yA3y3mYdVvGvinSbao88oYQiW93FBA71UcmT-CEICu7rO5RlaW32519WyY0/s1600/servo.jpg" width="320" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-C-1mgAurbWe9Kl_LJgPLHT6Cr5CIIF3p4LK2kIppprHqO0mdXT4085VJjXHT5l1lZ6n7lZh4CgfgNDy1-oBaMeSAx5gd2LfWTk8_g7Od4fJiFfVbtx-5ckpZkpoLeku3zyBtsu4c_s4/s1600/IMG_20150115_141428.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-C-1mgAurbWe9Kl_LJgPLHT6Cr5CIIF3p4LK2kIppprHqO0mdXT4085VJjXHT5l1lZ6n7lZh4CgfgNDy1-oBaMeSAx5gd2LfWTk8_g7Od4fJiFfVbtx-5ckpZkpoLeku3zyBtsu4c_s4/s1600/IMG_20150115_141428.jpg" width="120" /></a></div>
<br />
<br />
SOFTWARE<br />
<br />
En cuanto al software, hemos creado una página web, donde se almacenarán los datos del paciente y al que el médico tendrá acceso.<br />
<br />
<a href="http://nurse.esy.es/">http://nurse.esy.es/</a><br />
<br />
Después de visualizar los datos, el médico prescribirá la medicación y la anotará en Google Calendar, por lo que se suministrará el día y hora deseados.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<img border="0" height="92" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUAGWTrgNWyyj4xDGks6o9eyfCBt-S9b8Yhm_a0EJxG9zW5K-G60L9wUAf7fxWQ_0BUJGN95Dn_OM6bbd59ieEEbeqCwKZf4DxR9aQUBvMGsBFdA7nwmuD5_fEfsxXqX1oCHAb0pNtQXE/s1600/google-calendar_logo.jpg" width="320" /></div>
<br />
<a href="https://www.google.com/calendar">https://www.google.com/calendar</a><br />
<br />
<br />
A la hora de programar los Arduinos, hemos utilizado diferentes librerías para ayudarnos en la programación:<br />
<br />
- eHealth<br />
- Servo<br />
- Seeed_TFT_v2.0<br />
- WiFi<br />
- WiFiClient<br />
- Temboo<br />
- TembooAccount<br />
- Adafruit_GFX<br />
- Adafruit_ILI9341<br />
- Adafruit_STMPE610<br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-835442055881274745.post-76904412517191778182015-04-18T19:37:00.000+02:002015-04-18T19:37:52.662+02:00<div style="text-align: justify;">
<span style="color: blue; font-family: Trebuchet MS, sans-serif; font-size: x-large;">DroneCar S.L.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">Somos Axular Iparragirre, David Cartón y Borja De La Iglesia, nuestro grupo de estudios es el responsable del proyecto de crear un coche dirigido mediante un teléfono móvil. Para ello hemos utilizado un coche que ya tenia uno de nosotros en casa y el cual hemos desmontado para hacerle los cambios planteados para sacar adelante el proyecto.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<div style="text-align: center;">
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/mVNvQtAusrA/0.jpg" frameborder="0" height="266" src="http://www.youtube.com/embed/mVNvQtAusrA?feature=player_embedded" width="320"></iframe></div>
<br /></div>
</div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Principalmente nos hemos dedicado a la programación y a la creación de la placa que hará que funcione el coche.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">A continuación explicaremos el hardware y el software que hemos utilizado para crear nuestro proyecto.</span></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<a name='more'></a><span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<h3>
<i><span style="font-family: Trebuchet MS, sans-serif;">HARDWARE</span></i></h3>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Para empezar, hemos creado nosotros mismos nuestra placa, utilizando el programa ISIS y después el ARES para poder crear la PCB con la cual funcionamos. Le conectaremos la Raspberry Pi, que es la que hace que funcione la conexión wifi a la cual nos conectamos con el móvil, es la que transmite la información a nuestra placa. En ella esta el Atmega328p, el cual hemos programado con Arduino, donde damos la ordenes para que funcionen los diferentes elementos conectados a la placa.</span></div>
</div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISNVkPe14aEUH0L8vQOEBmAkL2joyFIDe2KoPgY0D0GuO96IoUmuxAy6IjvYm9aHcqVKz09yx35FwNFmn92mIH9LTVtPluAGCJHfYYMAREeiY0hCz79JNeWwuEAv4ekRZbcHaZ5h1DGOU/s1600/Placa_Ares.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISNVkPe14aEUH0L8vQOEBmAkL2joyFIDe2KoPgY0D0GuO96IoUmuxAy6IjvYm9aHcqVKz09yx35FwNFmn92mIH9LTVtPluAGCJHfYYMAREeiY0hCz79JNeWwuEAv4ekRZbcHaZ5h1DGOU/s1600/Placa_Ares.PNG" height="171" width="320" /></span></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Para las pruebas antes de iniciar con nuestra placa hemos utilizado un Arduino UNO, del cual hemos sacado las ideas principales para poder hacer después nuestra placa.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">En el siguiente enlace podréis encontrar todas las características del Arduino UNO</span></div>
</div>
<div>
<a href="http://www.arduino.cc/en/Main/arduinoBoardUno" target="_blank"><span style="font-family: Trebuchet MS, sans-serif;">http://www.arduino.cc/en/Main/arduinoBoardUno</span></a></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi63wwgQkzpm45F2EapioZkYTDF1iNxHHi32fZ1yR97AvsVxzobU0tQbsXavBrAJP_dkl-NaYTCltYIKBSllHKMUK-K2mK4ioXDdTI3RfTMX7PqEM4cDxnoqa6hu1EotpY8EfWxJhwJjeim/s1600/IMG_20150223_103053.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi63wwgQkzpm45F2EapioZkYTDF1iNxHHi32fZ1yR97AvsVxzobU0tQbsXavBrAJP_dkl-NaYTCltYIKBSllHKMUK-K2mK4ioXDdTI3RfTMX7PqEM4cDxnoqa6hu1EotpY8EfWxJhwJjeim/s1600/IMG_20150223_103053.jpg" height="240" width="320" /></span></a></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">A continuación diseñamos nuestra placa.</span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrmUeGkzz7zoOOpKMXV4ySNCDUpL646EKt_P9KGi10ZXVz_i9_a4d0kH_p2GB2ejm4mP6daTKC5gKuBLlinsYJjN6aoEXWoyPSTthVpGVT0_RaOEKlBzgpdcO9zTnwImPwQpJnMQyhMu98/s1600/Circuito.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrmUeGkzz7zoOOpKMXV4ySNCDUpL646EKt_P9KGi10ZXVz_i9_a4d0kH_p2GB2ejm4mP6daTKC5gKuBLlinsYJjN6aoEXWoyPSTthVpGVT0_RaOEKlBzgpdcO9zTnwImPwQpJnMQyhMu98/s1600/Circuito.PNG" height="223" width="320" /></span></a></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> El Micro-controlador ATMEGA328P, es el elemento principal de nuestro proyecto, gracias a el podremos controlar todos los elementos salvo la cámara que estará conectada a la Raspberry pi, con la cual mediante el teléfono móvil mandaremos la distintas ordenes que interpretara nuestro Atmega.</span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivxtt6vP_-AaHe25ka6EUEwnLXQhE507U0mfRHFNnDiptlG2DePoYl226w_Iyc4jAbX4pcKS2CDKm5qFb_QDOZ05lEnDImvedeohdAijUzaZ3SofFKfgnyzZoUvMKbzoSpdR825a_vFEPW/s1600/Raspberry.jpg" height="171" style="margin-left: auto; margin-right: auto;" width="320" /></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></td></tr>
<tr><td class="tr-caption" style="text-align: justify;"><span style="font-family: Trebuchet MS, sans-serif; font-size: small;">Dependiendo de la señal que le llegue a nuestro micro-controlador, activara distintas salidas con las que haremos funcionar, luces, motores, modulo de audio y los sensores, dependiendo de su programación.</span></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span>Para que todo esto llegue a funcionar, en nuestra placa junto con el micro-controlador, tendremos un regulador LM3940 para conseguir una salida de 3,3v, que sera de donde se alimentara el somo14D, gracias al cual podremos seleccionar y reproducir cualquier reproducción de audio que nosotros queramos.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-zSF3YuyQYXhW8QoogpI1HDvcF9w03dvDa72hkFmFGx_aCKQqPMUosDRsm4om90kw2jpo8vJUETEhK5AgCYXSSac4vth84Jiuo-Km8MtyvHb7gM02dT8nj-5jGUE-iwg0LVjWVBSD9bAh/s1600/IMG_20150223_102840.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-zSF3YuyQYXhW8QoogpI1HDvcF9w03dvDa72hkFmFGx_aCKQqPMUosDRsm4om90kw2jpo8vJUETEhK5AgCYXSSac4vth84Jiuo-Km8MtyvHb7gM02dT8nj-5jGUE-iwg0LVjWVBSD9bAh/s1600/IMG_20150223_102840.jpg" height="240" width="320" /></span></a></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8ZzUDJcRL2cyque7TdXLIHuQuuwxiT_niKE8qmgagM0uY6sL9a1rk5zyyYmmY9yMqGB1Fh6RJ93tiYagWOKaP33cVL6jwVbCzt63mypNdnX98LLVjVXzxIlH-0WH3aE-e3w8YVEOhdi5W/s1600/somo14d.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8ZzUDJcRL2cyque7TdXLIHuQuuwxiT_niKE8qmgagM0uY6sL9a1rk5zyyYmmY9yMqGB1Fh6RJ93tiYagWOKaP33cVL6jwVbCzt63mypNdnX98LLVjVXzxIlH-0WH3aE-e3w8YVEOhdi5W/s1600/somo14d.PNG" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">El botón de Reset es para Resetear el micro -controlador. El oscilador sirve para que a la hora de programar podamos calcular el tiempo que tarda en realizar cada operación, para conseguir una onda constante se filtra la señal por dos condensadores. El condensador que esta en la alimentación del micro controlador es para evitar los picos de tensión repentinos que pueden llegar a aparecer. El led del Power indicara cuando este funcionando el ATMEGA y el otro led será el que encenderá cuando se active alguna de las salidas.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Los motores están conectados al Atmega mediante el circuito integrado L293D, con el cual nos permite controlar la potencia de los motores bi-direccionales con los dos puentes H que forma, para ayudar a su frenada mediante su propia inercia y que no frenen bruscamente evitando cualquier posible daño en ellos.</span></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBgW3iouqOee2pHx7raNoauR5Hpjchowcrmaj5P7UJB9z40_dOXlV1EZzi5cwkAv_TnccsQJA3KtBt3qgtNh8ygNggLn2rjqoUX-iSaIgKuDyXyeQ-gH4korKC5rZUB9eIvFL6Sj8CY0TS/s1600/l293d-esquema.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBgW3iouqOee2pHx7raNoauR5Hpjchowcrmaj5P7UJB9z40_dOXlV1EZzi5cwkAv_TnccsQJA3KtBt3qgtNh8ygNggLn2rjqoUX-iSaIgKuDyXyeQ-gH4korKC5rZUB9eIvFL6Sj8CY0TS/s1600/l293d-esquema.PNG" /></span></a></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Para evitar que el coche se choque contra los obstáculos, no nos vale solo con el l293d sino que hemos introducido dos sensores sfr05, son sensores que funcionan mediante ultrasonido, los cuales utilizan los pines echo y trigger para leer la distancia que hay hacia el obstáculo y si es inferior a la de seguridad se pararan los motores.</span></div>
</div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigI7PNaCX29rX0vl2spH4cceWHWKsjP_f3PrN_LmFE_z11qHwgwN53FXF2mDUC5gZE0rkzHQtnaU4X-_M6WiszMk9hnbbwbd3wunL_1tzGnvXqjGV6s124uBzkdhYR-4ZMKx4QKBNa4l9v/s1600/sfr05_b.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigI7PNaCX29rX0vl2spH4cceWHWKsjP_f3PrN_LmFE_z11qHwgwN53FXF2mDUC5gZE0rkzHQtnaU4X-_M6WiszMk9hnbbwbd3wunL_1tzGnvXqjGV6s124uBzkdhYR-4ZMKx4QKBNa4l9v/s1600/sfr05_b.PNG" height="152" width="400" /></span></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Para conseguir que todo esto funcione es necesario tres tipos de programación, los cuales explicaremos en el siguiente apartado.</span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<h4 style="clear: both; text-align: left;">
<i><span style="font-family: Trebuchet MS, sans-serif;">SOFTWARE</span></i></h4>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Para que nuestro proyecto funcione hemos seguido unas pautas a la ora de lograr su funciona miento. Lo primero que hemos hecho a sido la programación de los elementos por separado y probarlos con el Arduino.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Ejemplo:</span></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDWtdY44e5BFZ2L18tkvnki4tnNc8xclBxJPCgx1gJY701UsdVCyN4xP2DBVT00BAAV4mw3NjAqmy6SqIwPrIUHTkhJLYXSL9ukhXY15e3Nxvequ2ZIw6fOlEGCU0FimlUZJKqE6OaLzxS/s1600/IMG_20141125_132158.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDWtdY44e5BFZ2L18tkvnki4tnNc8xclBxJPCgx1gJY701UsdVCyN4xP2DBVT00BAAV4mw3NjAqmy6SqIwPrIUHTkhJLYXSL9ukhXY15e3Nxvequ2ZIw6fOlEGCU0FimlUZJKqE6OaLzxS/s1600/IMG_20141125_132158.jpg" height="240" width="320" /></span></a></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Una vez probados los componentes del proyecto nos introducimos a la programación en Python, para poder hacer luego la conexión Tx-Rx entre la Raspberry Pi y el Arduino y así probar que la comunicación entre el Atmega y la Raspberry Pi se establece con el único problema de un ligero retardo entre el envío de la orden y su ejecución.</span></div>
</div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8GLpT36lobSyURnhUhav0HrL21ULcE2qTcR528uU4Z57xV1VNG0VP_sxOQjozw5YSJJLUpGwbunYHfVuBNrw1x5K1BF6mxXEvM6pjAlCihS0Hr3APNKFI3G-w6N3T74IUVcCOfD8PUnx0/s1600/IMG_20141128_131252.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8GLpT36lobSyURnhUhav0HrL21ULcE2qTcR528uU4Z57xV1VNG0VP_sxOQjozw5YSJJLUpGwbunYHfVuBNrw1x5K1BF6mxXEvM6pjAlCihS0Hr3APNKFI3G-w6N3T74IUVcCOfD8PUnx0/s1600/IMG_20141128_131252.jpg" height="240" width="320" /></span></a></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Después de que todos los programas funcionen bien, los juntamos en uno solo y nos ponemos con la programación en android mediante la aplicación app inventor 2, a la cual se accede por Internet, esta consiste en una programación por bloques con la cual mandamos las señales a la Raspberry Pi, la cual los interpretara y mandara las ordenes al Atmega.</span></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha2n1IvUQ6w9DbI1oj4jQujMs2uYodYYSD4dmiSQIG7e9oRgTYDVorz1LXPhvO-y3MbLhR0YbK2hC5Xp01tzymbWavTwjWIHvQvz-CF6LqVu4-Ht7LiMl9EKn8cyrhBEOzXD2WFNM89yus/s1600/prog_android.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha2n1IvUQ6w9DbI1oj4jQujMs2uYodYYSD4dmiSQIG7e9oRgTYDVorz1LXPhvO-y3MbLhR0YbK2hC5Xp01tzymbWavTwjWIHvQvz-CF6LqVu4-Ht7LiMl9EKn8cyrhBEOzXD2WFNM89yus/s1600/prog_android.PNG" height="323" width="400" /></span></a></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Con el simulador que trae el programa logramos los mismos resultados que si lo hiciéramos mediante el móvil.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Aquí esta el enlace para bajar la aplicación --> <a href="http://goo.gl/N5SDQl">http://goo.gl/N5SDQl</a></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<h4>
<span style="font-family: Trebuchet MS, sans-serif;">
PRODUCTO:</span></h4>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9oVw4hAznH5RRyOBRKWaRz9XbSbFpv8l2YThj_l8bwezAlBET2F99A6DwZ6BEnXACF9Fah_4-aHKY8kgimT1aRousrAYRhuDvmmrwVUwdt70HS94M6XXD9LH-zvZM7LGSRdgIEtirTjE9/s1600/IMG_20150303_084430.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Trebuchet MS, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9oVw4hAznH5RRyOBRKWaRz9XbSbFpv8l2YThj_l8bwezAlBET2F99A6DwZ6BEnXACF9Fah_4-aHKY8kgimT1aRousrAYRhuDvmmrwVUwdt70HS94M6XXD9LH-zvZM7LGSRdgIEtirTjE9/s1600/IMG_20150303_084430.jpg" height="240" width="320" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Aquí os dejamos los enlaces de los programas:</span></div>
<br />
<div style="text-align: justify;">
<span style="font-family: 'Trebuchet MS', sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: 'Trebuchet MS', sans-serif;"> Este es el programa de Arduino que con el que esta programado el Atmega -- </span><a href="http://goo.gl/FUt9pO" style="font-family: 'Trebuchet MS', sans-serif;" target="_blank">http://goo.gl/FUt9pO</a></div>
<br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Este es el programa con el que mediante urls le indicamos a la Raspberry Pi que parte del programa tiene que ejecutar -- <a href="http://goo.gl/4OQtFt" target="_blank">http://goo.gl/4OQtFt</a></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Programa con el que esta programada la Raspberry Pi -- <a href="http://goo.gl/T7ooGS" target="_blank">http://goo.gl/T7ooGS</a></span></div>
<span style="font-family: Trebuchet MS, sans-serif;"> </span><br />
<br /></div>
Unknownnoreply@blogger.com020140 Andoain, Gipuzkoa, España43.219574924248555 -2.019265809509306643.216681924248554 -2.0243083095093066 43.222467924248555 -2.0142233095093065tag:blogger.com,1999:blog-835442055881274745.post-87204998309720457592015-03-14T20:15:00.000+01:002015-03-14T20:17:18.054+01:00<span style="color: blue; font-family: Trebuchet MS, sans-serif; font-size: x-large;">ETXE DOMOTIKOA </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYkVP-ebXQI5l4i4Yy8hi-YiXU6KrJWAPz0waXzY8UJdMG9pG8HIsTFAhWaOmoIz5QfkTj09ZThimJy2_aSIWd0B6vUksetndNZhazh0mRVLotYlTFzeALxxaXU8bhAzKZNkQ09tp5Na4/s1600/logo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYkVP-ebXQI5l4i4Yy8hi-YiXU6KrJWAPz0waXzY8UJdMG9pG8HIsTFAhWaOmoIz5QfkTj09ZThimJy2_aSIWd0B6vUksetndNZhazh0mRVLotYlTFzeALxxaXU8bhAzKZNkQ09tp5Na4/s1600/logo.png" height="280" width="320" /></a></div>
<br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Auritz Alkorta, Julen Caminos eta Imanol Iglesias ikasleak etxe domotiko baten sisteman oinarritu gara proiektu hau burutzeko garaian. Etxea mugikor bidez kontrolatzen saiatu gara eta horretarako maketa txiki bat egin dugu etxe bat irudikatuz.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/2rmC8vvWlGs/0.jpg" frameborder="0" height="266" src="http://www.youtube.com/embed/2rmC8vvWlGs?feature=player_embedded" width="320"></iframe></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Egunerokotasunean oso eraginkorra izan daiteke, batez ere gure bizimodua errazteko, bai alarma sistema aldetik, bai kontsumo neurketa kontrolatzetik eta abar.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Gehien bat plaka elektronikoan eta programazioan zentratu gara eta eginiko prototipoaren maketan. Jarraian aipatu eta azalduko dugu gure proiektua egiteko erabili ditugun oinarrizko hardware eta software sistemak.</span></div>
<br />
<br />
<a name='more'></a><br />
<b><br /></b>
<br />
<div style="text-align: justify;">
<b><b><span style="font-family: Trebuchet MS, sans-serif;">HARDWARE:</span></b></b></div>
<br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Proiektu edo prototipoaren hardwarea guk diseinaturiko plaka eta Ethernet Shield-a dira. Plaka ARES-en diseinatu dugu, alimentazio iturri lineal bat, arduino bat, kontsumo sentsorearen irakurketa burutzeko eskema bat eta irteerak sare elektrikora lotzeko releez osatu dugu.</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEF6szqz_qPDMk0VoppcFHHPpzyQ4IfG7dT7owRT8Au9prTfihsLtw4KhFzSSmy3u1PfFiTxPVhvP0VSd19xqQEdfTtoz_ArpbJ1dfhRu-Sct530ceLlxSvf1U9D8GZ-bXcsG9vdOW2K8/s1600/gdx.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEF6szqz_qPDMk0VoppcFHHPpzyQ4IfG7dT7owRT8Au9prTfihsLtw4KhFzSSmy3u1PfFiTxPVhvP0VSd19xqQEdfTtoz_ArpbJ1dfhRu-Sct530ceLlxSvf1U9D8GZ-bXcsG9vdOW2K8/s1600/gdx.png" height="208" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS7f5ukyDi3b71RwFBqFikk9Oecaqe3NU33CTWVzX2Z_Wa0mNz6ttTyvxCE5HyLZpBuspXgvyRzLjWStzrCgJGb-05IE2K51BXvKcxw3eQ6YrSsLBdB1yd3eBxe2Dbzj7sfMD0hk0tJHE/s1600/asf.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS7f5ukyDi3b71RwFBqFikk9Oecaqe3NU33CTWVzX2Z_Wa0mNz6ttTyvxCE5HyLZpBuspXgvyRzLjWStzrCgJGb-05IE2K51BXvKcxw3eQ6YrSsLBdB1yd3eBxe2Dbzj7sfMD0hk0tJHE/s1600/asf.png" height="231" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Kontrola egiteko Atmega 328P-PU mikro bat erabiliko dugu, arduino bidez programatuko duguna. Aipatu bezala mikroa kanpoan programatuko dugu eta ondoren ipini gure zirkuituan. Ondoren router bat ipini nahi dugu eta mugikorretik kontrolatu gure etxe domotikoa, horretarako shield-a behar da.</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBYYetI-U7BkQ-_dOQMwU6tlTEfuu-nJu49arUzT4_WmCF7KpWLpUX6NWyllJMZPxyrEOoqcKKZQ_k0BS44zZ-qptAgHR6ORjUMi4uKntXMcCKHCEtq_HTeuoA_W5r5wvDBRezsnXx7oc/s1600/KN.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBYYetI-U7BkQ-_dOQMwU6tlTEfuu-nJu49arUzT4_WmCF7KpWLpUX6NWyllJMZPxyrEOoqcKKZQ_k0BS44zZ-qptAgHR6ORjUMi4uKntXMcCKHCEtq_HTeuoA_W5r5wvDBRezsnXx7oc/s1600/KN.png" height="297" width="320" /></a></div>
<br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><b>ETHERNET SHIELD:</b></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><b><br /></b></span></div>
</div>
<div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Sareko konexioa egiteko erabiliko dugu (RJ45). Guk eginiko plakaren gainean (arduinoren ordezkoa) ipiniko dugu. Eta ICSP konexioa eta mikroaren 4,6 eta 10.pinak nahiko ditu arduino eta shield-a elkartzeko.</span></div>
</div>
</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKoLadbH9Tr8a8srAqY5k3Uo1XE2wBveSFOsqTiFX1toeGwBs9hR1-GsufC3_q2eobTLNWqrNzHje3Yniayyw_vcdKNYiWZ2pc1GSYU_nKb50bJG5GV9DYw8ypk8pxCqjWbjcFtaoZLr4/s1600/HC.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKoLadbH9Tr8a8srAqY5k3Uo1XE2wBveSFOsqTiFX1toeGwBs9hR1-GsufC3_q2eobTLNWqrNzHje3Yniayyw_vcdKNYiWZ2pc1GSYU_nKb50bJG5GV9DYw8ypk8pxCqjWbjcFtaoZLr4/s1600/HC.png" height="256" width="320" /></a></div>
<div>
<br /></div>
<div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Gure kasuan, bi programa ezberdin sortu ditugu. Lehenengoa arduinoko programa izan da, atmega 328P pikaren programazioa eta bigarrena mobileko aplikazioa izan da, APP inventor programa erabili dugu.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">Gure etxe-domotikoan ditugun sarrerak eta irteerak:</span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<b><span style="font-family: Trebuchet MS, sans-serif;">SARRERAK:</span></b></div>
</div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<div>
<br />
<ul>
<li><span style="font-family: 'Trebuchet MS', sans-serif;">MUGIMENDU SENTSOREA:</span></li>
</ul>
</div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Mugimendu sentsore hau aukeratu dugu, arduinoarentzako prestatuta dagoelako. </span><span style="font-family: 'Trebuchet MS', sans-serif;">Arduinoaren web pagina batean aurkitu genuen,argazkian ikusten dugun bezela 3 pin ateratzen dira sentsoretik.</span></div>
</div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgacAO_Xmfv3FtABF5XhQKCFsAwWIpGRwHFwAl3YGzlMj3G9PpX_vSjQe5eUSTGXo3qbVy0BU3nSEa-VGj-ZeRpkpSasWz-yyXijS0ifq2lvcMlCiCxUHxi6cPLQ_kFFGDwfWw_bSlbyqY/s1600/lkb.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgacAO_Xmfv3FtABF5XhQKCFsAwWIpGRwHFwAl3YGzlMj3G9PpX_vSjQe5eUSTGXo3qbVy0BU3nSEa-VGj-ZeRpkpSasWz-yyXijS0ifq2lvcMlCiCxUHxi6cPLQ_kFFGDwfWw_bSlbyqY/s1600/lkb.png" height="153" width="200" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">-Negatibo(-) </span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">-Positibo(+)</span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;">-Seinalea</span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Sentsorea martxan egoteko alimentatu egin behar dugu 5v-rekin eta zerbait detektatzen duenean inpulso bat ematen du (5s tik– 200s ra) seinalearen pin-etik (3,3v).Detektorea 7 metrora detektatzen du eta 100 graduko anguloan. Arduinoan sarrera digital bat du.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<br />
<ul>
<li><span style="font-family: 'Trebuchet MS', sans-serif;">KEAREN SENTSOREA:</span></li>
</ul>
</div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Detektore hau aukeratu dugu arduinoarentzako prestatuta dagoelako, mugimendu sensorea bezala.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Berez detektorea gas detektore bat da, bainan isobutanoa, metanoa, alkola, hidrogenoa, kea eta beste hainbat gauza detektatu ditzake.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Detektore hau gure eskemako besteak bezala 5 voltiota lan egiten du.Irteera analogikoa du.</span></div>
</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmXX77ZM_aTU4n0K_jxpoNeBZnUuzzeZ1OWTJFXMJZ1K3eyDZjWg69uGaRGLwqzAWs1UkH-F2CHSYK_oKMiB2VTKD3I9uEhyliFUwUE0D7ENeEeS6IDcnO1eXTecOzIuMBrqD-B7DBsic/s1600/hjv+kh.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmXX77ZM_aTU4n0K_jxpoNeBZnUuzzeZ1OWTJFXMJZ1K3eyDZjWg69uGaRGLwqzAWs1UkH-F2CHSYK_oKMiB2VTKD3I9uEhyliFUwUE0D7ENeEeS6IDcnO1eXTecOzIuMBrqD-B7DBsic/s1600/hjv+kh.png" height="187" width="200" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div style="text-align: justify;">
<br />
<ul>
<li><span style="font-family: 'Trebuchet MS', sans-serif;">KONTSUMO ELEKTRIKOAREN SENTSOREA:</span></li>
</ul>
</div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Sentsoreak ez du alimentaziorik behar, kablea sentsore barrutik dijoanez bakarrik alimentatzen da, magnetismo bidez.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Sentsoreak ateratzen duen seinalea oso txikia da eta gainera alternoa da. Horregatik zirkuito bat egin behar dugu seinalea rectifikatzeko (alternatik zuzena bihurtzeko) eta amplifikatzeko.</span></div>
</div>
</div>
<div>
<div style="text-align: justify;">
<br /></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl09r-89pTwBT594T90Xc56iNqeraU-g1zfGYSIPfJ01Ar5Rh38gfsx88EKMHIUSuGI6PPXkm-nGT7DT9p61ixub8bcO92XUxfNUJgfw9q9jFKQzBFTZ3siq7PPW1QCe_MOJ0vcQwzxnA/s1600/LIV.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl09r-89pTwBT594T90Xc56iNqeraU-g1zfGYSIPfJ01Ar5Rh38gfsx88EKMHIUSuGI6PPXkm-nGT7DT9p61ixub8bcO92XUxfNUJgfw9q9jFKQzBFTZ3siq7PPW1QCe_MOJ0vcQwzxnA/s1600/LIV.png" height="181" width="200" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
<div style="text-align: justify;">
<br />
<ul>
<li><span style="font-family: 'Trebuchet MS', sans-serif;">TENPERATURA SENTSOREA:</span></li>
</ul>
</div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Sentsoreak 4 eta 30 voltio artean lan egiten du, bere tenperatura rangoa -55tik 150gradutara da. Sentsore hau arduinoko sarrera analogikora konektatu beharra dago, zeren tenperaturaren arabera seinale aldakor bat bidaliko du arduinora.Seinale hori programaren bidez kalkulatu eta irakurriko dugu.</span></div>
</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfjoq6ic6k4VNy5iKgp1suCfgU1DzBgXdHVoryQi2Z8vVZuXYvGeaDoD-zS5amWzSS7FQCkZmiNCO4u_nOaqD-sUiPkhyphenhyphen1wI_sobRAMPCXx_9Pyq2f9UAe64rEHEYA53tCMHtLlp04vLA/s1600/KJVJ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfjoq6ic6k4VNy5iKgp1suCfgU1DzBgXdHVoryQi2Z8vVZuXYvGeaDoD-zS5amWzSS7FQCkZmiNCO4u_nOaqD-sUiPkhyphenhyphen1wI_sobRAMPCXx_9Pyq2f9UAe64rEHEYA53tCMHtLlp04vLA/s1600/KJVJ.png" height="302" width="320" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div style="text-align: justify;">
<b><span style="font-family: Trebuchet MS, sans-serif;">IRTEERAK:</span></b></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<br />
<ul>
<li><span style="font-family: 'Trebuchet MS', sans-serif;"> SIRENA:</span></li>
</ul>
</div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Sirena deitzein diogu baina "zunbadore" bat da, gure ideia kearen sentsoreak kea detektatzen dunean “sirena” jotzea da.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<br />
<ul>
<li><span style="font-family: 'Trebuchet MS', sans-serif;">LANPARA:</span></li>
</ul>
</div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Gure lanpara 220V-koa da eta sentsoreak zerbait detektatzen duenean lanpara piztuko da. Aukeratu dugun bonbilla halogena da.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<br />
<ul>
<li><span style="font-family: 'Trebuchet MS', sans-serif;">ENTXUFEA:</span></li>
</ul>
</div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Gure maketan bi entxufe jarriko ditugu, bi entxufe normal 230V-koak, nahi ditugun gauzak konektatzeko.</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<br />
<ul>
<li><span style="font-family: 'Trebuchet MS', sans-serif;">BENTILADOREA:</span></li>
</ul>
</div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Bentiladorea 220V-takoa da eta rele baten bidez martxan jarriko da, mikroak agintzen dionean.</span></div>
</div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div>
<div style="text-align: justify;">
<b><span style="font-family: Trebuchet MS, sans-serif;">SOFTWARE:</span></b></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">Lehen aipatu dugun moduan bi programa erabili ditugu prototipoa burutzeko.Lehen programa Atmega328p-a programatzeko erabili dugu, honekin plakako sarrera eta irteerak kontrolatzen ditugu.Bestetik App Inventor 2-an mobileko aplikazioa egin dugu bloke programa bidez eta berarekin eta ethernet-aren laguntzaz (arduino,router eta mobieleko konexioa egiteko elementua) lortzen dugu Atmega 328p-arekin konexioa egitea.Horrela datuak jaso eta bidaltzen ditugu Url moduan(argia piztu,itzali,tenperatura,kontsumoa...).</span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Atmega328p-a Arduino Uno-rekin programatu dugu. Lehenik libreriak definitu ditugu,ondoren programan zehar erabiliko ditugun bariableak.Jarraian hasierakoa funtzioa (void setup) , interrupzioaren funtzioa (void Mugi) , kontsumoaren funtzioa (float smoothread ) eta azkenik programa nagusia (void loop).Hona hemen eginiko programa: </span></div>
<br />
<br />
<span style="font-family: Trebuchet MS, sans-serif;"><a href="https://github.com/elektronikalsb/LSB20142015/blob/master/etxe%20home/Arduino/AMAIERAKO_PROIEKTUA.ino">https://github.com/elektronikalsb/LSB20142015/blob/master/etxe%20home/Arduino/AMAIERAKO_PROIEKTUA.ino</a></span></div>
<div>
<br /></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuALm8GGNocAoL6YvmJd09oWIu6iCpPKjcRpNf6Sryua6ZfykPCXTPjBKWJ4kMrK87DGVKBvmaAW7t2gV1UVg4Ka5w_FyilFy8bTFGczhjREG43AwWglwLOdCOc7vtvs80a_vFoXJNQkI/s1600/ArduinoUnoSmd450px.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuALm8GGNocAoL6YvmJd09oWIu6iCpPKjcRpNf6Sryua6ZfykPCXTPjBKWJ4kMrK87DGVKBvmaAW7t2gV1UVg4Ka5w_FyilFy8bTFGczhjREG43AwWglwLOdCOc7vtvs80a_vFoXJNQkI/s1600/ArduinoUnoSmd450px.jpg" height="225" width="320" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Mobileko aplikazioa berriz App inventor 2-an egin dugu.Bloke programa bidez egina dago eta hona hemen eginiko programaren azalpena eta programa:</span></div>
<br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> <a href="https://github.com/elektronikalsb/LSB20142015/blob/master/etxe%20home/App/amaierakoproiektua_copiar.aia" rel="nofollow">https://github.com/elektronikalsb/LSB20142015/blob/master/etxe%20home/App/amaierakoproiektua_copiar.aia</a></span></div>
</div>
<div>
<div style="text-align: justify;">
<br /></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI4rrNw8tQMCr_GXlXUVliIQ5xTfbnVzqiTUGXFG0ar1eWtc37Mhdn-tImTluwjfOFoveURsykeFkDTI97qRg5ivZsKQAd08MG4YLzfGH-4i3S4solQtQVLvHdZgBnIel3trqRKSgKGOg/s1600/gfhs.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI4rrNw8tQMCr_GXlXUVliIQ5xTfbnVzqiTUGXFG0ar1eWtc37Mhdn-tImTluwjfOFoveURsykeFkDTI97qRg5ivZsKQAd08MG4YLzfGH-4i3S4solQtQVLvHdZgBnIel3trqRKSgKGOg/s1600/gfhs.png" height="320" width="197" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Bi programen lotura router bidez egin dugu, Ethernet Shield-etik RJ45 kablea routerrera konektatu dugu eta ondoren IP finko bat ipini eta sare berdinera konektatu gara. Arduinoko programako IPa eta APP-koa berdinak ipini ditugu eta horrela konexioa lortu.</span></div>
<div style="text-align: justify;">
<br /></div>
<br />
<br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Hemen uzten dizuegu ISIS-eko eskema:</span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwGI5JRLZK1BYOqJPSdDqERBaI5MEDfLEJo8cluywOwmptCWyUIEcFo3aqlnK-Iz_xx1YfM91C-kppjx2HIyBTxFNNUhdQDJ8lGwjgZK_DFu8Bfyb_VXhKPNzeONujnBUAB00v8yTe-28/s1600/isi.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwGI5JRLZK1BYOqJPSdDqERBaI5MEDfLEJo8cluywOwmptCWyUIEcFo3aqlnK-Iz_xx1YfM91C-kppjx2HIyBTxFNNUhdQDJ8lGwjgZK_DFu8Bfyb_VXhKPNzeONujnBUAB00v8yTe-28/s1600/isi.png" height="393" width="640" /></a></div>
<br /></div>
</div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
<div>
<br /></div>
<div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Espero dugu gustatu izana.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: right;">
<span style="font-family: Trebuchet MS, sans-serif;">Egileak: Julen Caminos</span></div>
<div style="text-align: right;">
<span style="font-family: Trebuchet MS, sans-serif;"> Imanol Iglesias</span></div>
<div style="text-align: right;">
<span style="font-family: Trebuchet MS, sans-serif;"> Auritz Alkorta</span></div>
</div>
Unknownnoreply@blogger.com020140 Andoain, Gipuzkoa, España43.219574924248555 -2.019222894165068343.216681924248554 -2.0242653941650683 43.222467924248555 -2.0141803941650682tag:blogger.com,1999:blog-835442055881274745.post-41066774109806238692015-03-14T19:58:00.000+01:002015-03-14T19:58:22.168+01:00<span style="color: blue; font-family: Trebuchet MS, sans-serif; font-size: x-large;">PREMIO NACIONAL DON BOSCO, PREMIO A LA INVESTIGACIÓN</span><br />
<br />
<span style="font-family: Trebuchet MS, sans-serif;"><div style="text-align: justify;">
Esta semana una alumno de electrónica, Ion Munarriz, y un profesor, Mikel Camacho, han participado en la XXVIII edición del "Premio Nacional Don Bosco a la investigación e innovación tecnológica" junto a varios alumnos y profesores del centro Don Bosco. Ion y su compañero (Asier Duran de Don Bosco) han presentado el proyecto NURSE que consiste básicamente en facilitar la medicación en domicilio de los pacientes a través de un robot que el médico controla a través de la nube e internet. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Ha sido un proyecto desarrollado durante todo el curso con la ayuda de los profesores (Josema Fernandez, David Muñoz y Mikel Camacho) y esta semana lo han presentado en Zaragoza. Han participado 60 proyectos y NURSE ha llegado a la final. Esta tarde hemos sabido que han obtenido el "premio a la investigación" que les permitirá trabajar durante toda una semana con un equipo de investigadores.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Hemos podido hablar tanto con Ion como con el profesor Mikel y ambos están muy contentos con la experiencia y con el premio obtenido.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Aquí podéis ver la entrega de premios.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/0u8MrQE5dFU/0.jpg" src="http://www.youtube.com/embed/0u8MrQE5dFU?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
</span>elektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.com020140 Andoain, Gipuzkoa, España43.219543650339524 -2.019265809509306643.216650650339524 -2.0243083095093066 43.222436650339525 -2.0142233095093065tag:blogger.com,1999:blog-835442055881274745.post-15942533703526595722015-02-04T13:42:00.000+01:002015-02-04T13:43:58.657+01:00<h2>
<span style="color: blue; font-family: Trebuchet MS, sans-serif; font-size: large;">Mantenu Elektronikoan ETHAZI Proiektua</span></h2>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Mantenu Elektronikoko zikloan, bigarren urtez, ETHAZI proiektua martxan dagoela ospatzeko empreseei bideratutako aurkezpena egingo da Otsailak 25ean. Hona hemen finalista diren ikasleek prestatutako bideoa!!! </span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Aurrera Mutillak!!!!</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://ytimg.googleusercontent.com/vi/-496UF7rpEE/0.jpg" frameborder="0" height="266" src="http://www.youtube.com/embed/-496UF7rpEE?feature=player_embedded" width="320"></iframe></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
elektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.com020140 Andoain, Gipuzkoa, España43.219574924248555 -2.019308724853544843.216681924248554 -2.0243512248535449 43.222467924248555 -2.0142662248535448tag:blogger.com,1999:blog-835442055881274745.post-76264220722737161392014-05-12T12:18:00.003+02:002014-05-12T12:20:32.778+02:00<span style="background-color: white; color: blue; font-family: 'Trebuchet MS', sans-serif; font-size: large; text-transform: uppercase;">Android proiektua La Salle Berrozpen</span><br />
<br />
<span style="font-family: Trebuchet MS, sans-serif;">Gure departamentuko irakasle batek Android proiektu batean </span><span style="font-family: 'Trebuchet MS', sans-serif;">parte hartzen ari da</span><span style="font-family: 'Trebuchet MS', sans-serif;">, "Android prozesu industrialen kontrolarako", eta EITB-ko Teknopolis programa saio bat egin du proiektu horren inguruan.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">Hona hemen saioa:</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/LfW8KZW5ADw?feature=player_embedded' frameborder='0'></iframe></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>elektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.com0tag:blogger.com,1999:blog-835442055881274745.post-76290342431017065122014-03-24T09:45:00.000+01:002014-03-24T09:52:42.986+01:00<div style="text-align: justify;">
<span style="background-color: white; color: blue; font-family: 'Trebuchet MS', sans-serif; font-size: large; text-align: start; text-transform: uppercase;">Estación meteorológica Inomet</span><br />
<br />
Los alumnos Ion Arbizu, Jon Fernandez y Mikel Jimenez de electrónica hemos desarrollado una estación meteorológica basada en la tecnología de Arduino, que recoge las condiciones ambientales mediante seis sensores y envía estos datos a través de una red Wifi, pudiendo así visualizar los datos de la forma que queramos. En nuestro caso, hemos desarrollado dos programas diferentes, en los cuales un uno podremos ver los datos en el portal web www.xively.com y en el otro, los datos de la estación estarán reflejados en una APP Android propia.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjdkqPmQOhOxKqBUp2-9CrJFiQaL4p6pUJQhiRVq_NknUcbx3LAqdCp4GWVFi8FPNcPZZ0Js7RhZ2O83yiNl41Uyr_4m4tT07yzXn12b5p3OScbKCXwEt2YQpA0MBnlfM9ngRHVNBu23s/s1600/inomet_im.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjdkqPmQOhOxKqBUp2-9CrJFiQaL4p6pUJQhiRVq_NknUcbx3LAqdCp4GWVFi8FPNcPZZ0Js7RhZ2O83yiNl41Uyr_4m4tT07yzXn12b5p3OScbKCXwEt2YQpA0MBnlfM9ngRHVNBu23s/s1600/inomet_im.png" height="180" width="320" /></a></div>
<div style="text-align: justify;">
<b></b><br />
<a name='more'></a><b>HARDWARE:</b></div>
<div style="text-align: justify;">
<b><br /></b></div>
<div style="text-align: justify;">
A continuación profundizando un poco más, os expondremos los componentes de este proyecto, y su funcionamiento. Para empezar, como ya hemos mencionado, nos basaremos en la tecnología de Arduino. Para ello disponemos del Arduino Uno y del Arduino Wifi Shield. Arduino es un micro-controlador, de plataforma electrónica abierta, para la creación de prototipos. Puede tomar información del entorno a través de sus pines de entrada, con toda una gama de sensores. También es capaz de controlar pequeños actuadores, tales como luces, motores, etc. En nuestro caso el único actuador es el Arduino Wifi Shield.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip3DfgO7hV1Bs-EfpjhM7Wt7Cx4AvII61OtTVN6pqWMkK6WRsvoN_ng9G2bEHPJk8nF9J68tYI49JTThVPYrgdHdZrBSCTYRY_w59PS7AkoV3u1lYgzH2nOLZYYZzjUxf4_aGJ-jToxzQ/s1600/ArduinoUno_R3_Front_450px.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip3DfgO7hV1Bs-EfpjhM7Wt7Cx4AvII61OtTVN6pqWMkK6WRsvoN_ng9G2bEHPJk8nF9J68tYI49JTThVPYrgdHdZrBSCTYRY_w59PS7AkoV3u1lYgzH2nOLZYYZzjUxf4_aGJ-jToxzQ/s1600/ArduinoUno_R3_Front_450px.jpg" height="221" width="320" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
El Wifi Shield conecta al Arduino a Internet o a una red Wifi de forma inalámbrica, con unas sencillas plantillas de programación, a las que se les puede añadir el programa que queramos. </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFxmGHOETzejzhIIAiiyqedTwcOSqhj8-biH-_LJYksmPXPB0VgCJ0ZWD56nETzWfKOK55tn7FP5l3X4hhX46CQWMGQBrFCTOURq06-IvWCoojhLml-bx5c5dwbv9VaOgj6WNGAacZlPk/s1600/arduino_WiFi_shield-500x500.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFxmGHOETzejzhIIAiiyqedTwcOSqhj8-biH-_LJYksmPXPB0VgCJ0ZWD56nETzWfKOK55tn7FP5l3X4hhX46CQWMGQBrFCTOURq06-IvWCoojhLml-bx5c5dwbv9VaOgj6WNGAacZlPk/s1600/arduino_WiFi_shield-500x500.jpeg" height="320" width="320" /></a></div>
<div style="text-align: justify;">
En nuestro caso hemos creado dos programas en dos plantillas diferentes del Wifi Shield. El primero es el programa de Xively, viene como ejemplo en la librería del Wifi Shield, y el otro es una plantilla de "servidor web", para enviar los datos por JSON a una APP, también ejemplo en dicha librería. Una vez configuradas estas plantillas con los credenciales de la red, incluiremos el programa propio, que en nuestro caso leerá los valores de los sensores, y los enviará a a su destino a través de la red.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Para la lectura de las condiciones ambientales contamos con los siguientes sensores:</div>
<div style="text-align: justify;">
<b>1. Anemómetro:</b> sensor de velocidad del viento. Es un molinillo que da dos impulsos por cada vuelta cuando el viento lo hace girar. Este impulso lo metemos al Arduino por una entrada digital, y le indicamos que por cada dos pulsos ha dado una vuelta completa. De este modo, y con unos sencillos cálculos matemáticos tendremos la velocidad en km/h.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi01UOPQAvm5lveRN93uqKf6MZw5Yl8OTyDruYOieiXbIldwMOe_rRB6LkDod38eUqZ_7VwYwj1teWPEN_a_p1z9U6_cSXeNiUkqJu04XIreBXbWO5Uv6z6vdN-KCLdvBgZSAadiiD8w6Y/s1600/accesorios_anemometro-01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi01UOPQAvm5lveRN93uqKf6MZw5Yl8OTyDruYOieiXbIldwMOe_rRB6LkDod38eUqZ_7VwYwj1teWPEN_a_p1z9U6_cSXeNiUkqJu04XIreBXbWO5Uv6z6vdN-KCLdvBgZSAadiiD8w6Y/s1600/accesorios_anemometro-01.jpg" height="200" width="200" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>2. Sensor de lluvia:</b> es un sensor analógico. Consta de una placa en la cual hay impresas dos pistas, que no se tocan entre ellas. Cuando cae una gota de agua en la placa, comunica estas dos pistas modificando así el valor del sensor. Así será como sabremos si llueve o no llueve.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCebuezab2zrZBr7LBzOdaJ5MWl2G1Fz_dD9nVGi7YlgmFd27RexV5gOXVoR5nvLIa0VUbE4eXlmiKGDM8NvMdniP5sVDX_YmNaIiFK6x1lv5Oe-FsyuUyylyon2Ew3Dux3RXvW5c9B7k/s1600/sku_187199_3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCebuezab2zrZBr7LBzOdaJ5MWl2G1Fz_dD9nVGi7YlgmFd27RexV5gOXVoR5nvLIa0VUbE4eXlmiKGDM8NvMdniP5sVDX_YmNaIiFK6x1lv5Oe-FsyuUyylyon2Ew3Dux3RXvW5c9B7k/s1600/sku_187199_3.jpg" height="200" width="200" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>3. Sensor de luminosidad:</b> para detectar la cantidad de luz ambiental usaremos un foto-transistor, actuando la luz como base. La pata del emisor será la que nos entregue el valor de la luz del ambiente. A más luz, mayor señal. La señal en todos los sensores analógicos oscila entre 0 y 1023. Dividiendo este valor entre 10'23 tendremos un valor sobre cien, es decir, el porcentaje de cantidad de luz ambiental.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4EwhRmdIElMZN5AVvs42sVPSp1cU0-FRFN8Ylqbo4xbgPE3_mvrm7kAzjT0D-FA4OcU6cJhG_7kXaUu_0oJP78vb-wUIRoCVdUMw8eNy9vgdkQaTTpcRU2KTihE1bdfNfg3rOE99k4Y/s1600/images.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_4EwhRmdIElMZN5AVvs42sVPSp1cU0-FRFN8Ylqbo4xbgPE3_mvrm7kAzjT0D-FA4OcU6cJhG_7kXaUu_0oJP78vb-wUIRoCVdUMw8eNy9vgdkQaTTpcRU2KTihE1bdfNfg3rOE99k4Y/s1600/images.jpg" height="200" width="200" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>4. Sensor de temperatura y humedad:</b> este sensor se llama DHT22. Es un sensor digital y requiere de librerías propias para su correcto funcionamiento. Mide la temperatura y la pasa a ºC. También mide la temperatura y la muestra en % como humedad relativa (Imagen en foto del Inomet Shield).</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>5. Sensor de presión barométrica:</b> BMP085, este también es digital, por lo que al igual que el anterior, requiere de sus librerías, que facilitan mucho el trabajo con ellos. Este detector nos aportará información sobre: temperatura, presión y altitud. Nosotros solo haremos caso a la presión. Este dato se puede mostrar en Pascales o mili bares (Imagen en foto del Inomet Shield).</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>6. Sensor de contaminación:</b> o MQ135, analógico. Mide algunos factores de la polución del medio. Como hemos mencionado antes, al ser analógico dará un valor de 0-1023, siendo este ultimo el máximo de contaminación. Después como hemos hecho en otros sensores, pasamos este dato a porcentaje (Imagen en foto del Inomet Shield).</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Todos estos sensores estarán organizados en un Shield de fabricación propia, el cual, alimenta a todos los componentes según sus especificaciones, y dispone la señal de los detectores de forma que cada uno de ellos vaya a una entrada del Arduino. Esta tarjeta solo contiene cuatro sensores: DHT22, MQ135, BMP085 y el sensor de lluvia, del cual la placa detectora estará en el exterior. Los demás sensores requieren estar en el exterior, por lo que se conectarán a la tarjeta por regletas. Este Shield se puede montar en el Arduino Uno directamente, o también se puede montar sobre el Shield Wifi, que a su vez va montado sobre el Arduino. Las tres tarjetas usan la misma disposición de pines.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0G6JwjgT8OHatw7R77oTtj2mLLkfo9FI7DsiEU1Cn9qOVnGJQOHCxO-A9MdEYh_rpCFrlKDJFJOY7fmGCXV6JKwdsfq8GdfpDOAZi6R7T-WAlZ44gU-8VSbH6JEK-VCdweKS-vdLMtis/s1600/FOTO_shield.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0G6JwjgT8OHatw7R77oTtj2mLLkfo9FI7DsiEU1Cn9qOVnGJQOHCxO-A9MdEYh_rpCFrlKDJFJOY7fmGCXV6JKwdsfq8GdfpDOAZi6R7T-WAlZ44gU-8VSbH6JEK-VCdweKS-vdLMtis/s1600/FOTO_shield.png" height="258" width="320" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>SOFTWARE:</b></div>
<div style="text-align: justify;">
<b><br /></b></div>
<div style="text-align: justify;">
Como hemos mencionado antes, hemos creado dos programas diferentes a partir de los ejemplos que nos ofrecen las diferentes librerías de Arduino.<br />
<br />
En el primer programa leemos los valores de los sensores y los subimos a una web (www.xively.com)</div>
<div style="text-align: justify;">
usando la red Wifi. Esta web nos permite ver los datos de los sensores y ademas crear un gráfico con el histórico.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Para la confección del programa hemos usado el ejemplo "Wifi_Multiple_DataString_UpLoad" de la librería Xively (esta librería se debe descargar). </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Ya en el programa, en primer lugar, debemos definir las librerías, tanto las del Arduino, como las de los sensores, Wifi, Xively,etc... Importante, para ello estas librerías deben estar en la carpeta "libraries" de Arduino. Acto seguido, se deben definir las variables, que serán las encargadas de guardar los valores de los sensores, en nuestro caso son 7 variables ya que medimos 7 condiciones ambientales. Seguido, se deben introducir los credenciales de la red Wifi a la que nos queremos conectar, además del numero API de Xively. Este numero es la dirección de nuestra cuenta en Xively, para que los datos se suban a esa cuenta.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Después, se definen los DataStreams, son los datos que vamos a enviar (los datos de las variables). En primer lugar se deben definir la cantidad de DataStreams que hay en nuestro programa, para poder identificar a cada dato con su numero correspondiente y después de debe definir si el dato que se envía es texto o dato numérico. Estos DataStreams se envían al FEED, que también hay que definirlo. Es un código de nuestra cuenta de Xively.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
A continuación, se inicializan el Wifi Shield y los sensores digitales para que empiecen a funcionar. Si conseguimos conectarnos en la terminal del Arduino veremos los datos de la conexión (IP...), si no se ha conectado automáticamente lo reintentará.. Finalmente se hace una lectura de los sensores, y los valores recogidos se suben a nuestra cuenta de Xively. Este ultimo proceso se repite constantemente, para que los datos se vayan actualizando.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
En la imagen siguiente vemos el resultado, vemos como quedan los datos en la web. En el siguiente enlace podréis ver nuestro código completo. <a href="https://github.com/elektronikalsb/LSB201314/blob/master/Xively_Programa_Multiple_Texto/Xively_Programa_Multiple_Texto.ino">Codigo Arduino Xively</a></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIOm1gnoQyj0-fwp3-wV3l9VH_tACqaNerZzyqhuVNDe8AHAq-epw46luMUOPWoZz-ZLuhmJZyQBiGRNRhIxXOYgCKaf7xbyKALXLDECG3vAIx0rtn5M1zqMlQaZmCfyePFBGAUD0Hfc8/s1600/xively_vista.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIOm1gnoQyj0-fwp3-wV3l9VH_tACqaNerZzyqhuVNDe8AHAq-epw46luMUOPWoZz-ZLuhmJZyQBiGRNRhIxXOYgCKaf7xbyKALXLDECG3vAIx0rtn5M1zqMlQaZmCfyePFBGAUD0Hfc8/s1600/xively_vista.png" height="251" width="400" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Por último, en el siguiente programa utilizaremos el ejemplo de la librería Wifi "WifiWebServer". En esta ocasión el programa es más sencillo que el anterior. Los datos se envían en formato JSON. En ese paquete de datos se envía el nombre de la variable y su valor. Estos datos después se pueden visualizar en el navegador dirigiéndose a la IP que se le da al Arduino, o incluso aprovechar los datos y mostrarlos en una APP de Android, como es nuestro caso.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Para la confección de la programación, en primer lugar debemos definir las librerías que se vayan a utilizar. Posteriormente declaramos las variables, en este caso también son 7, las mismas que en el programa anterior. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Ahora para conectarnos a la red Wifi que deseemos, metemos el nombre de dicha red y su contraseña. Después de esto, es la hora de inicializar el arduino, el Shield Wifi y los sensores digitales que tenemos, de no hacerlo así, no conseguiremos que que la estación funcione correctamente.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Una vez estemos conectados a la red Wifi, lo podremos ver en la terminal de Arduino. En ella aparecerán los datos de la conexión, como por ejemplo la IP. Esta IP es la que debemos utilizar para ver los datos ya que será ahí donde se envíen los datos.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Por último, el Arduino estará esperando a que algún cliente le haga la petición, en ese momento, este le mandara el paquete de datos, haciendo posible la visualización de los datos. Después de haberlos enviado, automáticamente sale el cliente, y no vuelve a haber ningún cliente hasta que se vuelva ha hacer la petición de datos.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
En el siguiente enlace encontrareis el código que hemos creado para Arduino: <a href="https://github.com/elektronikalsb/LSB201314/blob/master/Servidor_Web_Arduino_JSON/Servidor_Web_Arduino_JSON.ino">Arduino Servidor Web JSON</a>. A continuación os mostramos el resultado de nuestro trabajo, la visualización del los datos en una aplicación para Android propia.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhREvQZ7mjO2dnNaKF5EBGht9gnCBweY1p5d9i2akYtN9beSmwpUPqenD4eZ9EcSwXIh3B2Oz6IMpHJeKhA074UfYH63qhenkhAozEdij8N8z0GjYLawuMcYLXtWEOJZ0Yatc5xe3cIzQQ/s1600/apk.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhREvQZ7mjO2dnNaKF5EBGht9gnCBweY1p5d9i2akYtN9beSmwpUPqenD4eZ9EcSwXIh3B2Oz6IMpHJeKhA074UfYH63qhenkhAozEdij8N8z0GjYLawuMcYLXtWEOJZ0Yatc5xe3cIzQQ/s1600/apk.png" height="320" width="240" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Aquí os dejamos el vídeo y el link del vídeo explicativo que hemos subido a Youtube: <a href="http://www.youtube.com/watch?v=BrwJKAudW3M">Estación Inomet</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/BrwJKAudW3M?feature=player_embedded' frameborder='0'></iframe></div>
<br /></div>
<div style="text-align: justify;">
<br />
Esperamos que os haya resultado interesante y os hayáis divertido tanto como lo hemos hecho nosotros con este proyecto.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Saludos.<br />
<br />
<div style="text-align: right;">
Jon Fernandez, Ion Arbizu y Mikel Jimenez</div>
<div style="text-align: right;">
La Salle Berrozpe G2E</div>
<br /></div>
Unknownnoreply@blogger.com920140 Andoain, Guipúzcoa, España43.219559921677032 -2.019296965606713543.218113421677032 -2.0218184656067133 43.221006421677032 -2.0167754656067136tag:blogger.com,1999:blog-835442055881274745.post-56059571993079928762014-03-17T00:00:00.000+01:002014-03-17T00:00:04.281+01:00<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-align: justify;">
<h2 style="background-color: white; color: #939393; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin: 0.5em 0px; position: relative; text-align: start; text-transform: uppercase;">
<span style="color: blue; font-family: 'Trebuchet MS', sans-serif;"><span style="font-size: x-large;">Elevadores LAR S.L</span></span></h2>
<div>
<span style="color: blue; font-family: 'Trebuchet MS', sans-serif; font-size: large;"><br /></span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"> </span> Somos alumnos de La Salle Berrozpe de Andoain y estamos cursando Mantenimiento Electrónico de Grado Superior. Nuestros nombres son Erik Lekuona, Jon Rodriguez y Mikel Altuna.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 150%;"> La empresa LAR S.L
te ofrece un elevador novedoso con 5 plantas, </span><span style="line-height: 150%;">l</span><span style="line-height: 150%;">a
curiosidad que te ofrecemos es poder manejar el elevador desde un
dispositivo móvil que nos permite el manejo del elevador desde éste.</span></span></div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif; line-height: 150%;"> Nuestro
elevador tendrá un novedoso módulo bluetooth que nos
permita conectarnos a éste sin necesidad de tener ningún
pulsador a la vista. Las nuevas tecnologías de vez en
cuando fallan, es posible que no le llegue señal a nuestro
dispositivo móvil o que éste esté sin batería.</span></div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-align: justify;">
<span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 150%;"> En
el caso de que ocurra alguna de estas circunstancias
explicadas anteriormente, colocaremos 6 pulsadores para que
estén alimentados.</span></div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-align: justify;">
<span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 150%;"> Vamos
a lanzar al mercado un producto novedoso que será un elevador
con bluetooth, los creadores de este producto somos LAR S.L.
Nuestro mercado estará dirigido a la gente discapacitada con
movilidad reducida. Hemos pensado que les sería de gran
ayuda para hacer una vida cotidiana más fácil, de este modo
no tendrían la dependencia de la tercera persona.</span><br />
<span style="color: #333333; font-family: Arial, Helvetica, sans-serif; line-height: 150%;"> </span></div>
<div align="JUSTIFY" class="western" style="margin-bottom: 0cm;">
<div style="line-height: 150%;">
</div>
<div class="separator" style="clear: both; line-height: 150%; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_2WLBfqnV8G8A1LhSP5k1B7YTOv2dLGi0jue1DBAZgBtacffCCTv0hGjXSylRDofc5dCfThZzDelsThenY8d4r3jxLtA6zKk_bPRvdD9xD_vjqbDJtZGZf1zDXwu_Bp-GlwSjlSYYm90G/s1600/d10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Arial, Helvetica, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_2WLBfqnV8G8A1LhSP5k1B7YTOv2dLGi0jue1DBAZgBtacffCCTv0hGjXSylRDofc5dCfThZzDelsThenY8d4r3jxLtA6zKk_bPRvdD9xD_vjqbDJtZGZf1zDXwu_Bp-GlwSjlSYYm90G/s1600/d10.jpg" height="200" width="161" /></span></a></div>
<div>
<div style="line-height: 150%;">
<b><u><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></u></b><span style="font-family: Arial, Helvetica, sans-serif;"> A continuación podréis visualizar un vídeo con el funcionamiento del elevador:</span></div>
<div style="text-align: center;">
<div class="separator" style="clear: both; text-align: center;">
<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://i1.ytimg.com/vi/V17IU_lKArs/0.jpg" height="266" width="320"><param name="movie" value="https://www.youtube.com/v/V17IU_lKArs?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="320" height="266" src="https://www.youtube.com/v/V17IU_lKArs?version=3&f=user_uploads&c=google-webdrive-0&app=youtube_gdata" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
</div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 150%;">En caso de que os interese leer y utilizar lo mencionado en el video anterior</span><span style="line-height: 24px;">,</span><span style="line-height: 150%;"> que </span><span style="line-height: 24px;">sepáis</span><span style="line-height: 150%;"> que </span><span style="line-height: 24px;">tenéis</span><span style="line-height: 150%;"> la opción de leer las especificaciones de "hardware" y "software" de aquí en adelante:</span></span><br />
<div style="line-height: 150%;">
<b><u><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></u></b></div>
<div style="line-height: 150%;">
<b><u><span style="font-family: Arial, Helvetica, sans-serif;"></span></u></b></div>
<a name='more'></a><b><u><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></u></b>
<br />
<div style="line-height: 150%;">
<b style="line-height: 150%;"><u><span style="font-family: Arial, Helvetica, sans-serif;">HARDWARE</span></u></b></div>
</div>
<div style="line-height: 150%;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 150%;"> A continuación les explicamos los componentes que hemos utilizado para este elevador:</span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 150%;"><br /></span></span></div>
<div style="line-height: 150%;">
<span style="font-family: Arial, Helvetica, sans-serif; line-height: 150%;"><i><u>Tarjeta principal</u></i></span></div>
<div style="text-align: start;">
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 150%;"> </span></span><span style="font-family: Arial, Helvetica, sans-serif; line-height: 24px;">Fuente de alimentación: tenemos una entrada de 24V y a la vez necesitamos 5V de corriente continua para alimentar algunos componentes, para ello hemos necesitado un regulador de 7805 CT. Para mejorar la señal hemos puesto 2 condensadores de 330 µF.</span><br />
<div align="JUSTIFY" style="line-height: 24px; margin-bottom: 0cm;">
<span style="font-size: small;"><span style="color: black;"><span style="font-family: Arial, Helvetica, sans-serif;"> También tenemos 6 relés para la señal de detectores, necesitábamos que la señal de 24V de detector lo convertiera en 5V. Los 24V de señal van a la bobina y uno de los contactos N.A va alimentada a 5V. Así conseguimos que al micro controlador le llegue la señal debidamente.</span></span></span></div>
<div align="JUSTIFY" style="line-height: 24px; margin-bottom: 0cm;">
<span style="font-size: small;"><span style="color: black;"><span style="font-family: Arial, Helvetica, sans-serif;"> Por otra parte tenemos dos conmutadores para controlar el sentido del motor, el funcionamiento de estos sería el siguiente: el micro controlador nos manda una señal de 5V y este va a la base del transistor, el colector tenemos alimentada a 24V para poder amplificar la señal a 24V. El emisor llevamos a una resistencia de carga y luego a GND, para que haya diferencia de tensión. La señal que tenemos en el colector llevamos a la bobina del conmutador y luego utilizamos uno de los contactos abiertos alimentada a 24V para la maniobra de motor. También tenemos un diodo para proteger la bobina de sobre cargas.</span></span></span></div>
<div align="JUSTIFY" style="line-height: 24px; margin-bottom: 0cm;">
</div>
<div align="JUSTIFY" style="line-height: 24px; margin-bottom: 0cm;">
<span style="font-size: small;"><span style="color: black;"><span style="font-family: Arial, Helvetica, sans-serif;"> Tenemos un dispositivo bluetooth llamado JY-MCU para poder controlar nuestro elevador por cualquier dispositivo bluetooh que tenga android. Este, recibe y manda los datos que le llegan desde puerto serie de micro controlador. Para ello hace falta que se alimente a 5V y GND. Tiene RX para recibir datos y TX para transmitir datos.</span></span></span></div>
</div>
</div>
<div style="text-align: start;">
<div class="separator" style="clear: both; text-align: center;">
</div>
<span style="font-family: Arial, Helvetica, sans-serif; line-height: 19.200000762939453px;"><br /></span></div>
<div style="text-align: start;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="line-height: 150%;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgElBWrwwGJavr_dgO3fW7GEXZNcToVWPGv6d14tNs9PgVVBK4cgWKkF-vm30K5OMs0jZj__MMDttPUGv3N1zzedkWulW-EMiuzQnvVzSG2mQyICGzoPMjk4Sy3OrIK0EsPVvhf2jskNf2a/s1600/PLACA+PRINCIPAL.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Arial, Helvetica, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgElBWrwwGJavr_dgO3fW7GEXZNcToVWPGv6d14tNs9PgVVBK4cgWKkF-vm30K5OMs0jZj__MMDttPUGv3N1zzedkWulW-EMiuzQnvVzSG2mQyICGzoPMjk4Sy3OrIK0EsPVvhf2jskNf2a/s1600/PLACA+PRINCIPAL.png" height="163" width="200" /></span></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="line-height: 150%;">
<i><u><span style="font-family: Arial, Helvetica, sans-serif;">Tarjeta de pulsadores</span></u></i></div>
<div style="line-height: 150%;">
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: Arial, Helvetica, sans-serif;"> Esta construida por
seis diodos LED rojos, estos son los indicadores de los pulsadores, es decir para saber a que piso hemos querido mandar el elevador. Estos indicadores los controlamos gracias al puerto C del microcontrolador. Para ello hemos necesitado 6 arrays smd de 220 Ohm y estos van a GND para que haya diferencia de tensión.</span></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: Arial, Helvetica, sans-serif;"> Por otra parte tenemos el puerto A del micro controlador, para controlar la señal del pulsador, el otro extremo va a smd array de 10K de carga que termina en GND para que haya diferencia de tensión.<span style="line-height: 150%;"></span></span></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq9SUQWMkyC-DL9xHqWUF45GPCB4jc4bmADePigdvDgdJs5CYuFOXjusq3NFLn4SeXk0xnDHd6lsGqTwrp9XPvdkg8qezxZzLOkwgcW7lLtyqEjVXsJALY6jCA1lZuUWhT2W3mfPYmsDi9/s1600/PLACA+DE+PULSADORES.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Arial, Helvetica, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq9SUQWMkyC-DL9xHqWUF45GPCB4jc4bmADePigdvDgdJs5CYuFOXjusq3NFLn4SeXk0xnDHd6lsGqTwrp9XPvdkg8qezxZzLOkwgcW7lLtyqEjVXsJALY6jCA1lZuUWhT2W3mfPYmsDi9/s1600/PLACA+DE+PULSADORES.png" height="192" width="200" /></span></a></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
</div>
<div style="text-align: start;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="line-height: 150%;">
<i><u><span style="font-family: Arial, Helvetica, sans-serif;">Tarjeta de detectores</span></u></i><br />
<span style="font-family: Arial, Helvetica, sans-serif;"> Esta construida por un diodo LED verde, una resistencia SMD de 180 Ohm y por una regleta de dos pines. El funcionamiento de esté es el siguiente: indicar en que piso se encuentra nuestro elevador. Para ello el puerto B de nuestro micro controlador le manda la señal al diodo y el otro extremo va a la resistencia terminando en GND para que haya una diferencia de tensión.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9rKBhuwSqrTzNkEtiq2u4EJHlUYyCRk31lyUNOSI7pSs5IkCovZS4cobh9xdmu_tMGkEnVPV95xYw9mfShdjJaNglbsGbksLAXvVjGtwz_y5NibdEd_Ma7LdQeInZEoB2xuVZF0FE_7ex/s1600/placa+de+detectores.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Arial, Helvetica, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9rKBhuwSqrTzNkEtiq2u4EJHlUYyCRk31lyUNOSI7pSs5IkCovZS4cobh9xdmu_tMGkEnVPV95xYw9mfShdjJaNglbsGbksLAXvVjGtwz_y5NibdEd_Ma7LdQeInZEoB2xuVZF0FE_7ex/s1600/placa+de+detectores.png" height="169" width="200" /></span></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
</div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 1cm;">
<b><u><span style="font-family: Arial, Helvetica, sans-serif;">SOFTWARE</span></u></b></div>
<div align="JUSTIFY" class="western" style="margin-bottom: 1cm;">
<div style="line-height: 150%;">
<span style="font-family: Arial, Helvetica, sans-serif;"> El programa que hemos realizado en lenguaje C esta en el siguiente enlace, con sus respectivos comentarios para poder entender bien :</span></div>
<span style="line-height: 24px;"><span style="font-family: Arial, Helvetica, sans-serif;"> <a href="https://sites.google.com/site/elevadorlar/">https://sites.google.com/site/elevadorlar/</a></span></span><br />
<span style="line-height: 24px;"><span style="font-family: Arial, Helvetica, sans-serif;"> La aplicación de Google App Inventor, que hemos tenido que utilizar para manejar el elevador mediante bluetooth en android es el siguiente:</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOuA_ipoRpaZoJP66mujclvloQCEbPx61W7j_rAHP9mn0ZLtdPRTiov5_yTeXgjs2z_tNNYoYJ6DZe4JiedRwyaXKXUNecQMbXMR31_HLKZjHEfur4oISLdqRTP71E2es7cSn12zU6Ne9X/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Arial, Helvetica, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOuA_ipoRpaZoJP66mujclvloQCEbPx61W7j_rAHP9mn0ZLtdPRTiov5_yTeXgjs2z_tNNYoYJ6DZe4JiedRwyaXKXUNecQMbXMR31_HLKZjHEfur4oISLdqRTP71E2es7cSn12zU6Ne9X/s1600/10.png" height="297" width="640" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib5cff2oNYERbHmLXpjPfAUwJRdqkPRXu0zIaUI4PVD8NdZqToV9dIFbSOyV7ja9LVCG_5PGgPa6rLuzAAheQeEHbELFsoOceQQhHWzAiKG1W5KVw5libMhT522OT73BlvYWnOHaSmDIHo/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Arial, Helvetica, sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib5cff2oNYERbHmLXpjPfAUwJRdqkPRXu0zIaUI4PVD8NdZqToV9dIFbSOyV7ja9LVCG_5PGgPa6rLuzAAheQeEHbELFsoOceQQhHWzAiKG1W5KVw5libMhT522OT73BlvYWnOHaSmDIHo/s1600/11.png" height="315" width="640" /></span></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 24px;"><br /></span><span style="line-height: 24px;"> </span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 24px;"><br /></span></span></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGnsVeYyARfp2_Z6p6Ilx-V-9ZYKnHJHTNOTXiEzbOxBuA9OptC4WfrF8_ti1TXyFEbZ8Goib_ftirCkJCX2uCywejhnNGnQTfzHTA2acW5ZOElsd-NYXZSXMw9qDdwn9Puj014qrWIdnf/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: Arial, Helvetica, sans-serif;"></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: justify;">
<b><u><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></u></b></div>
<div style="text-align: center;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
Unknownnoreply@blogger.com020140 Andoain, Guipúzcoa, España43.219591195577721 -2.01923259259035643.21814469557772 -2.0217540925903559 43.221037695577721 -2.0167110925903562tag:blogger.com,1999:blog-835442055881274745.post-81977238577615462062014-01-04T15:56:00.003+01:002014-01-04T16:32:57.918+01:00<h2>
<span style="color: blue; font-family: Trebuchet MS, sans-serif; font-size: x-large;">SketchUp -3D-Proteus</span></h2>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Una de las cosas que dá mas imagen de profesionalidad a una placa de circuito impreso es que la visualización en 3D sea correcta. Proteus, en este caso Ares que es la parte de este software que nos permite hacer circuitos impresos, nos brinda la posibilidad de hacer una visualización 3D de nuestra placa. El problema viene cuando somos nosotros lo que hacemos los encapsulados de nuestros componentes, en ese momento la visualización de dichos componentes se convierte en unos cuadros rojos que deslucen toda la visualización 3D de la placa. Hay una forma sencilla de mejorar esto, y es haciendo los modelos 3D de los componentes de nuestro circuito impreso y luego insertándolos en el programa Ares. Para que podáis hacer esto os he preparado un vídeo tutorial que creo que os resultará de bastante ayuda.</span></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/efTqhcLQAwQ?feature=player_embedded' frameborder='0'></iframe></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Un Saludo.</span></div>
<div style="text-align: right;">
<span style="font-family: Trebuchet MS, sans-serif;">Josema Fernandez</span></div>
elektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.com020140 Andoain, Guipúzcoa, España43.2190439 -2.01953300000002443.2074724 -2.0397030000000238 43.230615400000005 -1.999363000000024tag:blogger.com,1999:blog-835442055881274745.post-50199060073983118122013-11-21T08:00:00.000+01:002013-11-29T08:49:50.683+01:00<div align="LEFT" class="western" style="margin-bottom: 0cm;">
<h2>
<span style="color: blue; font-family: Trebuchet MS, sans-serif; font-size: x-large; line-height: 19px;">Arduino 007: Modulo Bluetooth JY-MCU</span></h2>
</div>
<div class="western" style="margin-bottom: 0cm; text-align: left;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><span style="font-size: 10pt; line-height: 150%;"> </span><b style="font-size: 16pt; line-height: 150%; text-indent: 1cm;">Introducción
a la tecnología</b></span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Bluetooth es una
especificación industrial para WPAN (redes inalambricas de área
personal) que hace posible la transmisión de voz y dato entre
diferentes dispositivos mediante radiofrecuencias.</span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif; font-size: small;"><b>¿Que es Bluetooth?</b></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif; text-indent: 1cm;"><span style="line-height: 150%;">Es un dispositivo
universal, valido para la conexión de todo tipo de </span>periféricos<span style="line-height: 150%;">.</span></span></div>
<div style="text-align: justify;">
<b style="font-size: 16pt; line-height: 150%; text-align: left; text-indent: 1cm;"><span style="font-family: Trebuchet MS, sans-serif;">Funcionamiento</span></b></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Cada dispositivo deberá
ser equipados con un microchip llamado Transceptor que transmite y
recibe en la frecuencia de 2.4GHz, disponible en todo en el mundo.</span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Ademas de los datos,
están disponibles tres canales de voz. Cada dispositivo tiene una
dirección única de 48bits.</span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Interferencia: Minimiza
la interferencia potencial al emplear saltos rápidos en frecuencia =
1600 veces por segundo.</span></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSyssSaSL978HbIQiH-T6Ai8jZ3ruqar7InUdRwW9N-p55huw09qoAMQzdHjM75NReEH_f7OO0N_zUo0wHmMiEUZN_TTEjP2AIKtKQUROylCvIvW_fuSic2Vh87fsIjDKTi6jPIZvmQFLi/s1600/24.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="155" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSyssSaSL978HbIQiH-T6Ai8jZ3ruqar7InUdRwW9N-p55huw09qoAMQzdHjM75NReEH_f7OO0N_zUo0wHmMiEUZN_TTEjP2AIKtKQUROylCvIvW_fuSic2Vh87fsIjDKTi6jPIZvmQFLi/s320/24.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; line-height: 150%; text-align: justify; text-indent: 1cm;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><span style="font-size: 10pt; line-height: 150%; text-align: justify; text-indent: 1cm;"></span></span></div>
<a name='more'></a><span style="font-family: Trebuchet MS, sans-serif;"><span style="font-size: 10pt; line-height: 150%; text-align: justify; text-indent: 1cm;"> </span><span style="line-height: 150%; text-align: justify; text-indent: 1cm;"><span style="line-height: 150%;"> </span></span></span><br />
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><b style="font-size: 16pt; line-height: 150%; text-align: justify; text-indent: 1cm;">Controlador
Bluetooth</b></span></div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;">Nivel de
radiofrecuencia:</span></div>
</div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<div style="text-align: left;">
<br /></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKl14FUItq7M4qT_Wip_M9iQXUlFY9A9h6GYzra0lfKtlqGUn9tRN36LWZdcfZ9K6ukD6JdLnC167c-3_DaxKxKwHkxNV_aX2Ld_hX_VVuGNs7iRCOhU5y3UFyqb9KxtHeg-IsJHXLqx0R/s1600/25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="152" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKl14FUItq7M4qT_Wip_M9iQXUlFY9A9h6GYzra0lfKtlqGUn9tRN36LWZdcfZ9K6ukD6JdLnC167c-3_DaxKxKwHkxNV_aX2Ld_hX_VVuGNs7iRCOhU5y3UFyqb9KxtHeg-IsJHXLqx0R/s320/25.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif; line-height: 150%; text-indent: 1cm;">Dos o mas dispositivos
Bluetooth que usan el mismo canal forma un picored.</span></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif;">El maestro (Master) es
el responsable de la sincronizacion entre los dispositivos de la
piconet, su reloj y saltos de frecuencia controla al resto de
dispositivos.</span></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif;">Los esclavos
simplemente se sincronizan y siguen la secuencia de saltos
determinada por el maestro.</span></div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0BiJXsAC9PN47eZLFnCbUemQ1NvGrSCMI_E-ttHxt0p3CnE482d06uNcpOtXdkODBOJbOvhMjShrqF55ITIju6EFnEf64GB8h247RgEz3I8_Nj2xP0BKlhiPfafcjIjiSSLtOG46WsM-4/s1600/23.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0BiJXsAC9PN47eZLFnCbUemQ1NvGrSCMI_E-ttHxt0p3CnE482d06uNcpOtXdkODBOJbOvhMjShrqF55ITIju6EFnEf64GB8h247RgEz3I8_Nj2xP0BKlhiPfafcjIjiSSLtOG46WsM-4/s1600/23.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: center; text-indent: 1cm;">
<div style="text-align: left;">
<b style="font-size: 16pt; line-height: 150%; text-align: justify; text-indent: 1cm;"><span style="font-family: Trebuchet MS, sans-serif;">Frecuencias
en el mundo</span></b></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Normalmente se disponen
de 79 canales de comunicación para el Bluetooth, aunque hay algunos
países en los que los canales están limitados.</span></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2B436AYkWO6fYy55jetb2TkHe1_CM9EiRCXYMgBJf0iKRNiLjKMwppTqgLLdzqoRsg7XfzzG7RxDTEu35ImEHuFPDuEqJwhwq4GeFCR5Sq4hHwniMR0R3vRgFKjEdNuEw2GJ4y5RiBGDy/s1600/26.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="89" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2B436AYkWO6fYy55jetb2TkHe1_CM9EiRCXYMgBJf0iKRNiLjKMwppTqgLLdzqoRsg7XfzzG7RxDTEu35ImEHuFPDuEqJwhwq4GeFCR5Sq4hHwniMR0R3vRgFKjEdNuEw2GJ4y5RiBGDy/s320/26.jpg" width="320" /></a></div>
<div align="CENTER" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<br /></div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif; line-height: 150%; text-indent: 1cm;">La diferencia del
Bluetooth pretende que todas las aplicaciones sean capaces de operar
entre si. Para comunicarse con otros dispositivos se debe de avisar a
un hardware especifico, que incluye un modulo de banda base, asi como
otro modulo de radio y antena.</span></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif;">Hay varios módulos de
software donde garantizaran que sean capaces de operar entre
practicas alojadas en diferentes dispositivos.</span></div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRSMRL9bfkZfsL6NmY4SyRNLARWjrFE_-AyfmZSA09gELeCvPrL7XKLGLZYAc2UxPJxhSx4fRDl1c33IAzA_6rJ4D4tp5HCqrwfXeO7NYqBy04SNJv8eSDDgwBSl5fhny36UIGTmep0T0u/s1600/27.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="130" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRSMRL9bfkZfsL6NmY4SyRNLARWjrFE_-AyfmZSA09gELeCvPrL7XKLGLZYAc2UxPJxhSx4fRDl1c33IAzA_6rJ4D4tp5HCqrwfXeO7NYqBy04SNJv8eSDDgwBSl5fhny36UIGTmep0T0u/s320/27.jpg" width="320" /></a></div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<br /></div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: center; text-indent: 1cm;">
<div style="text-align: left;">
<b style="font-size: 16pt; line-height: 150%; text-indent: 1cm;"><span style="font-family: Trebuchet MS, sans-serif;">Link
Manager (LM) y Link Manager Protocol (LMP)</span></b></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;">El Link Manager es el
sistema que consigue crear la conexión entre dispositivos. Se
encarga del establecimiento, la autentificación y la configuración.</span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;">El Link Manager
localiza a otros dispositivos y se comunica con ellos gracias al
protocolo de gestión del enlace ( LMP ). Para hacer su función, el
LM utiliza los servicios incorporados en el controlador de enlace. </span>
</div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0.5cm; text-align: center; text-indent: 1cm;">
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif; font-size: 16pt;"><b>L2
CAP</b></span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify;">
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"> El cargo del L2CAP
incorporan:</span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"> 1- División y
reensamblado de paquetes. Reconoce paquetes hasta 64kb.</span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"> 2- Multiplexion de
varias fuentes de paquetes.</span></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"> 3- Entrega una buena
misión para la transmisión unidireccional a otros dispositivos
Bluetooth.</span></div>
</div>
<div align="CENTER" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 16pt;"><b><br /></b></span></span></div>
<div align="CENTER" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 16pt;"><b>Radio
del Bluetooth</b></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIQepSA3HTIK69x06y_TLNHkv_9wb51p_nQmBdgfO1uDiegdYcenipKBK7NDvssBjo9X9PcggfP0cIqzDgw0Ud6LmayYIjp9ChWicIGUSq2IwPCmy3xQzkg8VG1usHnbXlhXZ2Did_Ea7D/s1600/28.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="107" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIQepSA3HTIK69x06y_TLNHkv_9wb51p_nQmBdgfO1uDiegdYcenipKBK7NDvssBjo9X9PcggfP0cIqzDgw0Ud6LmayYIjp9ChWicIGUSq2IwPCmy3xQzkg8VG1usHnbXlhXZ2Did_Ea7D/s320/28.jpg" width="320" /></a></div>
<div style="line-height: 150%; margin-bottom: 0.5cm; text-align: center; text-indent: 1cm;">
<b style="font-size: 16pt; line-height: 150%; text-align: justify; text-indent: 1cm;"><br /></b>
<br />
<div style="text-align: justify;">
<b style="font-size: 16pt; line-height: 150%; text-align: justify; text-indent: 1cm;"><b style="font-size: 16pt; line-height: 150%; text-indent: 1cm;"><span style="font-family: Trebuchet MS, sans-serif;">Modulo
Bluetooth JY-MCU</span></b></b></div>
</div>
<div style="line-height: 150%; margin-bottom: 0cm; text-align: justify; text-indent: 1cm;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Funciona como un puerto
serie inalambrico, que funciona a una velocidad 9600 bits por
segundos para la transmisión de datos en serie. </span>
</div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK47r1ZuI0k8cXFrCpSilQGB7aOaELDsVfPkA2miRdw7etaO3yauMQ2Pa6EfkhIk52JmG9M6Jba9Ysu0Is1KuLikVaKQomvMmAqv9avfvyYpsKCvdzZq-JZ1NV9DtnyL7uLhqPT41XzFmW/s1600/29.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK47r1ZuI0k8cXFrCpSilQGB7aOaELDsVfPkA2miRdw7etaO3yauMQ2Pa6EfkhIk52JmG9M6Jba9Ysu0Is1KuLikVaKQomvMmAqv9avfvyYpsKCvdzZq-JZ1NV9DtnyL7uLhqPT41XzFmW/s1600/29.jpg" /></a></div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<br /></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif;">Para conectarnos al
modulo necesitaremos la dirección mac ( IP del ordenador ).</span></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif;">Después de buscar en
Internet encontraremos una aplicación para saber la dirección del
mac la aplicación es Amarino 2.0.apk.</span></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif;">Los pines digitales Rx
y Tx del arduino sirven para conectarnos a través del puerto serie.</span></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif;">Si los utilizamos para
conectarnos por el puerto serie nos los podremos utilizar ni como
entradas ni como salidas.</span></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
</div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif;">El modulo bluetooth
tiene 4 pines uno de alimentación de 5V, uno de GND, otro de
transmisión de datos TxD (transmite al arduino las señales a través
del puerto serie) y por ultimo el RxD (éste recibe las señales que
le manda el dispositivo móvil).</span></div>
<div align="JUSTIFY" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<span style="font-family: Trebuchet MS, sans-serif;">El conexionado de este
modulo es el siguiente</span></div>
</div>
</div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-6OoZNuTTgCE/UmDb_Iho54I/AAAAAAAAABA/laQC9rVxg7g/s1600/Fritzing.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="303" src="http://2.bp.blogspot.com/-6OoZNuTTgCE/UmDb_Iho54I/AAAAAAAAABA/laQC9rVxg7g/s1600/Fritzing.png" width="400" /></a></div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<div style="text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; line-height: 150%;"> </span><span style="font-family: Trebuchet MS, sans-serif; line-height: 150%; text-indent: 1cm;">Realizaremos
un programa con el cual le mandaremos una señal desde el teléfono
móvil al modulo JY-MCU y éste transmite los datos por la patilla
TxD por el puerto serie al arduino.</span></div>
<div class="western" style="line-height: 150%; margin-bottom: 0cm; text-align: justify;">
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">La
patilla TxD ira al a la pin Rx del arduino. La patilla RxD ira al pin
Tx del arduino y las patillas GND y Vcc irán a sus respectivos pines
del arduino.</span></div>
</div>
<div align="JUSTIFY" class="western" style="line-height: 150%; margin-bottom: 0cm; text-indent: 1cm;">
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: center;">
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dxaJ_Ubgbh4znOIZAVKbfD9b4H2YJEc5VU2ImprPuDrqi6rDVKmuxfJPSBZXYUoDXQa1og6bmGMcGD6MXOQdw' class='b-hbp-video b-uploaded' frameborder='0'></iframe></div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
</div>
<div align="LEFT" class="western" style="margin-bottom: 0cm;">
<pre class="prettyprint linenums"><span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;">int ledpin=9;</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;">char val;</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;">void setup()</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;">{</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> pinMode(ledpin,OUTPUT);</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> Serial.begin(9600);</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;">}</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;">void loop()</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;">{</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> if(Serial.available())</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> {</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> val=Serial.read();</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> }</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> if(val=='1')</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> {</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> digitalWrite(ledpin,HIGH);</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> delay(1000);</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> }else{</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> digitalWrite(ledpin,LOW);</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;"> }</span>
<span style="color: #222222; font-family: trebuchet ms, sans-serif; font-size: x-small;">}</span>
</pre>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div align="LEFT" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 10pt;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyr1br2DtDwLBZddheVCJOGeGw_bUsLAzSvL6L9-OS9LDEFMNJfdGc5AECjajc7hXVXFs1GZZZiqZ2qjAo6yfor0kRx7pok1GvfI1In4einA7d8mLO1aWVzfxVpwONwi_zgtjMNhgZdD5j/s1600/30.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyr1br2DtDwLBZddheVCJOGeGw_bUsLAzSvL6L9-OS9LDEFMNJfdGc5AECjajc7hXVXFs1GZZZiqZ2qjAo6yfor0kRx7pok1GvfI1In4einA7d8mLO1aWVzfxVpwONwi_zgtjMNhgZdD5j/s1600/30.jpg" /></a></div>
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 10pt;"><br /></span></span></div>
<div align="LEFT" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 10pt;"><br /></span></span></div>
<div align="LEFT" class="western" style="line-height: 150%; margin-bottom: 0cm;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyJNbq_olI-kQPg8RwhEd9FI3eY2VD5paUnqcISiscReAYZE-t-aHWKw0qKVA2yXs_kos7YEP3w7_KV_ahJL-h_OoD9C_7Y-WqGIq-tVmPFUfN5WD1begxicQkqaYUq1TX1jUjZn5BFitP/s1600/31.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyJNbq_olI-kQPg8RwhEd9FI3eY2VD5paUnqcISiscReAYZE-t-aHWKw0qKVA2yXs_kos7YEP3w7_KV_ahJL-h_OoD9C_7Y-WqGIq-tVmPFUfN5WD1begxicQkqaYUq1TX1jUjZn5BFitP/s320/31.jpg" width="320" /></a></div>
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 10pt;"><br /></span></span></div>
Unknownnoreply@blogger.com020140 Andoain, Guipúzcoa, España43.2190439 -2.01953300000002443.2074724 -2.0397030000000238 43.230615400000005 -1.999363000000024tag:blogger.com,1999:blog-835442055881274745.post-75734818268356839722013-11-12T08:00:00.000+01:002013-11-12T13:40:09.487+01:00<div>
<h2>
<span style="color: blue; font-family: Trebuchet MS, sans-serif; font-size: large; font-weight: normal;">Arduino 006: Conectar Arduino por wifi mediante WIFLY.</span></h2>
</div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">En esta práctica vamos a conectar nuestro Arduino por wifi mediante el modulo wifly. Para ello los componentes que vamos a utilizar son: la placa Arduino UNO, la placa de comunicación XBee y el módulo wifly. Además necesitaremos una red wifi para poder conectarnos a ella.</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU0qIJo6ErmAG6Vl198IQ1Avb8A7B0F-_B2CNobsEFyR16cYjyCrDkPRkkOAgYLhnYpPVQVpZCjrwWceaNVwfnukqfctBmxXZNADaZq6m-a3LIPqRa3QAvmc_SMSXyfB7ewAVWibicrjg/s1600/images.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU0qIJo6ErmAG6Vl198IQ1Avb8A7B0F-_B2CNobsEFyR16cYjyCrDkPRkkOAgYLhnYpPVQVpZCjrwWceaNVwfnukqfctBmxXZNADaZq6m-a3LIPqRa3QAvmc_SMSXyfB7ewAVWibicrjg/s1600/images.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">La conexión wifi la podemos realizar de dos formas diferentes: manualmente y programando.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"></span><br />
<a name='more'></a><span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: 'Trebuchet MS', sans-serif;"> </span><u style="font-family: 'Trebuchet MS', sans-serif;">MANUALMENTE</u></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> La conexión de forma manual la haremos mediante el programa TeraTerm y en tiempo real. Para ello tenemos que cargar un Sketch vació en el micro-controlador lo que nos permitirá que se acceda a la configuración del wifly directamente. </span><span style="font-family: 'Trebuchet MS', sans-serif;">Para cargar el programa tendremos que tener los jumpers de la placa de comunicación XBee en la posición USB</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Skecth que debemos cargar:</span></div>
<pre class="prettyprint linenums">
void setup() { }
void loop() { }
</pre>
<div style="text-align: justify;">
<span style="font-family: 'Trebuchet MS', sans-serif;"> Después de cargar el programa, abrimos el programa TeraTerm y seleccionamos el puerto serie que tiene el Arduino. Para entrar en el modo comando y así poder programar el módulo tendremos que introducir $$$ (de forma rápida). A continuación nos saldrá el texto CMD y comenzaremos a configurar el modulo. Aquí os dejamos un vídeo que hemos realizado nosotros con los pasos que hay que seguir para configurar el modulo wifly y establecer la conexión.</span></div>
<div style="text-align: justify;">
<span style="font-family: 'Trebuchet MS', sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/XOvUFg--f78?feature=player_embedded' frameborder='0'></iframe></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> <u>CON PROGRAMA</u></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> En este caso realizaremos la configuración del modulo wifly mediante la programación del micro-controlador. Básicamente las instrucciones de configuración del modulo wifly son las mismas tanto en la forma manual como en la de programa, la diferencia es que en esta ocasión en vez de cargar un Skecth vació, tendremos que programar dichas instrucciones.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Para cargar el programa los jumpers deberán estar en la posición USB como antes y una vez cargado el programa deberemos cambiarlos a la posición XBEE.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Skecth que debemos cargar:</span><br />
<pre class="prettyprint linenums"><span style="font-family: 'Trebuchet MS', sans-serif;">#include <SoftwareSerial.h></span>
<span style="font-family: Trebuchet MS, sans-serif;">#include <WiFly.h></span>
<span style="font-family: Trebuchet MS, sans-serif;">#include <SPI.h></span>
<span style="font-family: 'Trebuchet MS', sans-serif;">char recibe[150];</span>
<span style="font-family: Trebuchet MS, sans-serif;">int i = 0;</span>
<span style="font-family: Trebuchet MS, sans-serif;">SoftwareSerial SerialWiFly(7,8);</span>
<span style="font-family: Trebuchet MS, sans-serif;">void setup() {</span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.begin(9600);</span>
<span style="font-family: Trebuchet MS, sans-serif;"> SerialWiFly.begin(9600);</span>
<span style="font-family: Trebuchet MS, sans-serif;"> configuraWifi();</span>
<span style="font-family: Trebuchet MS, sans-serif;">}</span>
<span style="font-family: Trebuchet MS, sans-serif;">void loop(){}</span>
<span style="font-family: Trebuchet MS, sans-serif;">void configuraWifi(){</span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.print("$$$");</span>
<span style="font-family: Trebuchet MS, sans-serif;"> respuesta();</span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.print("set ip dhcp 1\r");</span>
<span style="font-family: Trebuchet MS, sans-serif;"> respuesta();</span>
<span style="font-family: Trebuchet MS, sans-serif;"> </span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.print("set ip protocol 2\r");</span>
<span style="font-family: Trebuchet MS, sans-serif;"> respuesta();</span>
<span style="font-family: Trebuchet MS, sans-serif;"> </span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.print("set wlan join 0\r");</span>
<span style="font-family: Trebuchet MS, sans-serif;"> respuesta();</span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.print("set wlan phrase maiki44frtk\r");</span>
<span style="font-family: Trebuchet MS, sans-serif;"> respuesta();</span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.print("join LSB_Elektronika\r"); </span>
<span style="font-family: Trebuchet MS, sans-serif;"> respuesta();</span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.print("save\r");</span>
<span style="font-family: Trebuchet MS, sans-serif;"> respuesta();</span>
<span style="font-family: 'Trebuchet MS', sans-serif;">}</span>
<span style="font-family: Trebuchet MS, sans-serif;">void respuesta(){</span>
<span style="font-family: Trebuchet MS, sans-serif;"> delay(2000);</span>
<span style="font-family: Trebuchet MS, sans-serif;"> i=0;</span>
<span style="font-family: Trebuchet MS, sans-serif;"> // Recibe la respuesta del Wifly</span>
<span style="font-family: Trebuchet MS, sans-serif;"> while (SerialWiFly.available()!=0) {</span>
<span style="font-family: Trebuchet MS, sans-serif;"> recibe[i]=SerialWiFly.read();</span>
<span style="font-family: Trebuchet MS, sans-serif;"> i++;</span>
<span style="font-family: Trebuchet MS, sans-serif;"> }</span>
<span style="font-family: Trebuchet MS, sans-serif;"> recibe[i]='@';</span>
<span style="font-family: Trebuchet MS, sans-serif;"> //Escribe la respuesta por el puerto Serie</span>
<span style="font-family: Trebuchet MS, sans-serif;"> i=0;</span>
<span style="font-family: Trebuchet MS, sans-serif;"> while(recibe[i] != '@'){</span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.print(recibe[i]);</span>
<span style="font-family: Trebuchet MS, sans-serif;"> recibe[i]=' ';</span>
<span style="font-family: Trebuchet MS, sans-serif;"> i++;</span>
<span style="font-family: Trebuchet MS, sans-serif;"> }</span>
<span style="font-family: Trebuchet MS, sans-serif;"> recibe[i]='\0';</span>
<span style="font-family: Trebuchet MS, sans-serif;"> Serial.println(recibe);</span>
<span style="font-family: Trebuchet MS, sans-serif;">
</span><span style="font-family: 'Trebuchet MS', sans-serif;"> // Vacia el buffer</span>
<span style="font-family: Trebuchet MS, sans-serif;"> SerialWiFly.flush();</span>
<span style="font-family: Trebuchet MS, sans-serif;"> delay(1000);</span>
<span style="font-family: Trebuchet MS, sans-serif;">}</span></pre>
<span style="font-family: Trebuchet MS, sans-serif;"> Esperamos que os haya gustado y os sirva de ayuda en vuestros proyectos.</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif;"><br /></span>
<br />
<div style="text-align: right;">
<span style="font-family: 'Trebuchet MS', sans-serif;"> Autores: Jon Fernandez, Ion Arbizu y Mikel Jimenez</span></div>
</div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<br /></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>Unknownnoreply@blogger.com020140 Andoain, Guipúzcoa, España43.2190439 -2.01953300000002443.2190439 -2.019533000000024 43.2190439 -2.019533000000024tag:blogger.com,1999:blog-835442055881274745.post-9635541688826188852013-11-08T14:00:00.000+01:002013-11-12T09:08:25.813+01:00<h2>
<span style="font-size: x-large; font-weight: normal;"><span style="color: blue; font-family: Trebuchet MS, sans-serif;">ARDUINO 005: MODULO XBEE </span><span style="font-family: Trebuchet MS, sans-serif;"> </span></span></h2>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Para este ejercicio vamos a utilizar una plataforma de Arduino UNO, un modulo XBEE con un protocolo llamado ZigBee (conjunto de tecnología de alto nivel de transmisión inalámbrica, de bajo consumo. Su objetivo es la comunicación de dos o varios objetivos de baja tasa de envío de datos).</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Estos módulos tienen un alto potencial de comunicación entre ellos, con lo cual, en sitios cerrados pueden llegar a transmitir hasta 30 metros entre dos objetivos, en sitios exteriores hasta 100 metros y con los módulos Xbee PRO podría llegar hasta 1.5 kilómetros de transmisión.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Los módulos ZigBee, también llamados mochilas, se deberán de conectar a la placa Xbee Shield y por lo tanto esta conectarse a la de Arduino. El modulo Xbee Shield al conectar en la placa de Arduino, deja algunos puertos fuera de la utilidad, con lo cual, estos puertos pueden ser utilizados por sensores u otro tipo de componente que desee.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> En esta imagen podemos observar como va situado la placa Xbee, encima de la placa Xbee Shield y por lo tanto como van los pines situados y nombrados en cada pin. Otro de los factores fundamentales sera la transmisión de nuestro PC a la placa Arduino. Lo haremos mediante la conexión de USB que tenemos en los dos objetivos. Al transmitir los datos de un objetivo a otro, se necesita que los jumpers, en la imagen mencionados, estuviesen en modo USB, si no estuviesen en este modo no se transmitiría ningún dato propuesto. Al finalizar la transmisión, debemos cambiar los jumpers a modo Xbee para que la transmisión se pueda comenzar y las placas pudiesen comunicarse.</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhasWbkLGu19Cta0p2m1Lc20uyQ5Wtu8-VszL8c3nuAqnzEzBLIlD-MfM27B4yN6vcvFN_gMw4VEsgd5sy7iY-2QwgAHC4sDOkgWY6fCE1OnIjzZkSb7skIkS48agWkKJLUdLPDGjryPaY/s1600/Placa+shield+y+xbee.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhasWbkLGu19Cta0p2m1Lc20uyQ5Wtu8-VszL8c3nuAqnzEzBLIlD-MfM27B4yN6vcvFN_gMw4VEsgd5sy7iY-2QwgAHC4sDOkgWY6fCE1OnIjzZkSb7skIkS48agWkKJLUdLPDGjryPaY/s400/Placa+shield+y+xbee.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<a name='more'></a><br /><br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">El modulo Xbee funciona a 3.3v y se comunica a Arduino mediante un puerto serie. En la placa de Arduino podemos comunicar los objetivos mediante antenas. Existen diferentes modelos de antenas para Xbee, la integrada, la wire y externa.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Todas tienen la misma configuración y todas ejercen en el mismo ámbito de trabajo. En estos modelos se pueden hacer varias funciones, se pueden hacer redes de comunicación punto a punto,que consiste en la conexión de dos objetivos entre si, la comunicación de punto a multipunto, que consiste en la conexión de un punto (emisor) y la recepción de varios objetos (receptores).</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Hay dos tipos de modulos, S1 y S2, este ultimo tiene la caracteristica de que permiten hacer redes mesh, permiten la union de los objetivos aunque estos no esten en el rango de cobertura, sin embargo los S1 no pueden hacer ese funcionamiento.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> La comunicación entre los objetivos sera hace de una banda libre de 2.4Ghz y la velocidad de transmisión entre los objetivos es de 256Kbps. Hay distintos tipos de redes; la red coordinador, consiste en formar una unica red. La red de routers, es un modo que crea y mantiene la información sobre la red, la mejor ruta para poder transmitir un paquete de información. Y la ultima la red end devices, estos dispositivos no pueden enrutar paquetes.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> Los distintos modos de operación se pueden diferenciar en cuatro modos. Modo transparente, es el enlance entre dos modulos. Modo de bajo consumo, sleep mode para apagar por pin. Modo de comandos, comandos AT son para la configuración de parámetros o leen el módulo local. En la serie2 es posible enviar comandos AT remotamente desde un módulo a otro.Para configurar un XBee, tenemos que usar sólo 2 pines, TX, RX y GND del módulo. Se puede configurar el módulo usando el programa XCTU (en nuestro caso no lo hemos necesitado), o a través de un programa como <i>HyperTerminal</i> de Windows o similar.Para el módulo XBee /Xbee-Pro entrar en el modo de comando, escriba tres caracteres “+ + +” (no presione el <ENTER>) en el <i>Terminal</i> X-CTU o <i>HyperTerminal</i>. Si el módulo a recibido correctamente el comando, se confirma enviando un mensaje <i>Aceptar</i>. El módulo es capaz de recibir órdenes de leer o escribir.</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6ekFUiN23jwuzgJ1jsLKVlhbP8GZ6d7m3_kvhgxNLWti_qXAUzfiuQIwJCyvM1Lt6hdevraFRAfeZfEDbqxjEx2BdqW9YK7T60q4tL0Q0krHgqbYM56DGsxz4cxahq8a9Bs0vKjStFYg/s1600/comandos+AT.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="127" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6ekFUiN23jwuzgJ1jsLKVlhbP8GZ6d7m3_kvhgxNLWti_qXAUzfiuQIwJCyvM1Lt6hdevraFRAfeZfEDbqxjEx2BdqW9YK7T60q4tL0Q0krHgqbYM56DGsxz4cxahq8a9Bs0vKjStFYg/s320/comandos+AT.png" width="320" /></a></div>
<br />
<ul>
<li><span style="color: black;"><span style="font-size: 11pt;"><span style="font-family: Trebuchet MS, sans-serif;"><i style="font-weight: bold;">ATMY</i></span></span></span><span style="color: black;"><span style="font-family: Trebuchet MS, sans-serif; font-size: 11pt;"><i>: muestra el nombre asignado al xbee.</i></span></span></li>
<li><b style="background-color: white; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="color: black;"><span style="font-size: 11pt;"><i>ATID</i></span></span></b><span style="background-color: white; color: black; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="font-size: 11pt;"><i>:
muestra el PAN id.</i></span></span></li>
<li><b style="background-color: white; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="color: black;"><span style="font-size: 11pt;"><i>ATDL</i></span></span></b><span style="background-color: white; color: black; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="font-size: 11pt;"><i>:
muestra el nombre del radio con el cual nos comunicaremos.</i></span></span></li>
<li><b style="background-color: white; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="color: black;"><span style="font-size: 11pt;"><i>ATBD</i></span></span></b><span style="background-color: white; color: black; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="font-size: 11pt;"><i>:
muestra la tasa de transferencia en baudios.</i></span></span></li>
<li><b style="background-color: white; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="color: black;"><span style="font-size: 11pt;"><i>ATWR</i></span></span></b><span style="background-color: white; color: black; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="font-size: 11pt;"><i>:
graba nuestra nueva </i></span></span><span style="background-color: white; color: black; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="font-size: 11pt;"><i>configuración</i></span></span><span style="background-color: white; color: black; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="font-size: 11pt;"><i>
al xbee</i></span></span></li>
<li><b style="background-color: white; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="color: black;"><span style="font-size: small;"><i>ATCN</i></span></span></b><span style="background-color: white; color: black; font-family: 'Trebuchet MS', sans-serif; line-height: 0.58cm;"><span style="font-size: small;"><i>: </i></span></span><i style="background-color: white; font-family: 'Trebuchet MS', sans-serif; font-size: 11pt; line-height: 0.58cm;">cierra
el modo comando.</i></li>
</ul>
<br />
<div style="background: #ffffff; border: none; line-height: 0.58cm; margin-bottom: 0cm; padding: 0cm;">
<span style="background-color: transparent; color: #2f2f2f; font-family: 'Times New Roman', serif;"><br /></span></div>
<div style="background: #ffffff; border: none; line-height: 0.58cm; margin-bottom: 0cm; padding: 0cm;">
<div style="text-align: justify;">
<span style="background-color: transparent; color: #2f2f2f; font-family: 'Times New Roman', serif;"> </span><span style="font-family: Trebuchet MS, sans-serif;"><span style="background-color: transparent; color: #2f2f2f;"> El comando API especifica cómo se envían los comandos, respuestas de mando y
los mensajes de estado del </span><span style="background-color: transparent; color: #2f2f2f;">módulo
y recibidos desde el módulo.</span></span></div>
</div>
<div style="margin-bottom: 0cm;">
<div style="text-align: justify;">
<span style="color: #2f2f2f; font-family: Trebuchet MS, sans-serif;"> Estructura
general de transmisión de datos por medio del modo API:</span></div>
</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4LVTGZRJcm-BLzEHGHpxJ3cwEplsjb7rc07_piU_IwV0zJ7IyxUV4M9GxgM73VkIk3IKX_-nOsUC6FFTGpe-SKDt1n9wybEa6qaYoOtZxiaPaMAIORv3ZpZIH43xh7pKlmb0HlLlomrI/s1600/Estrucutura+basica+API.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="79" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4LVTGZRJcm-BLzEHGHpxJ3cwEplsjb7rc07_piU_IwV0zJ7IyxUV4M9GxgM73VkIk3IKX_-nOsUC6FFTGpe-SKDt1n9wybEa6qaYoOtZxiaPaMAIORv3ZpZIH43xh7pKlmb0HlLlomrI/s1600/Estrucutura+basica+API.png" width="320" /></a></div>
<div style="margin-bottom: 0cm;">
<span style="color: #2f2f2f; font-family: 'Times New Roman', serif;"><br /></span></div>
<div style="margin-bottom: 0cm;">
<div style="text-align: justify;">
<span style="color: black;"><span style="font-family: Times New Roman, serif;"> </span><span style="font-family: Trebuchet MS, sans-serif;">Donde
el Byte 4, nos indica que tipo de mensaje se envía
o se recibe por medio de un valor que determina el frame, según la
siguiente tabla: </span></span>
</div>
</div>
<div style="background: #ffffff; border: none; line-height: 0.58cm; margin-bottom: 0cm; padding: 0cm;">
<i style="font-family: Georgia, serif; font-size: 11pt; line-height: 0.58cm;"><br /></i></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_HeJo1THop6k9Q_pQe1k7qeyxeJzTrlUGgS-HUhoO-JIsSXvJpmPi5NOk-aL1ttSNqRfCzNYe3R_LNkT3ETfbdA8kT22er9xbtrNeHwtln0V7jEEDw2NLqpSNz7pxYYYskVAkyRGFke0/s1600/comandos+API.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_HeJo1THop6k9Q_pQe1k7qeyxeJzTrlUGgS-HUhoO-JIsSXvJpmPi5NOk-aL1ttSNqRfCzNYe3R_LNkT3ETfbdA8kT22er9xbtrNeHwtln0V7jEEDw2NLqpSNz7pxYYYskVAkyRGFke0/s1600/comandos+API.png" width="264" /></a></div>
<div style="background: #ffffff; border: none; line-height: 0.58cm; margin-bottom: 0cm; padding: 0cm;">
<i style="font-family: Georgia, serif; font-size: 11pt; line-height: 0.58cm;"><br /></i></div>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; border: none; margin-bottom: 0cm; padding: 0cm;">
<div style="text-align: justify;">
<span style="font-size: 15px; line-height: 0.58cm;"><span style="font-family: Georgia, serif;"> </span><span style="font-family: Trebuchet MS, sans-serif;"> Este programa es el que utilizaremos para que un arduino de los dos que vamos a utilizar, reciba los datos que le mandemos del otro objeto y haga lo siguiente </span></span><span style="font-family: Trebuchet MS, sans-serif;"><span style="font-size: 15px; line-height: 21.90625px;">función</span><span style="font-size: 15px; line-height: 0.58cm;">. Encender y apagar todos los leds que hemos seleccionado, a la vez cada segundo. En el cual le seleccionamos esa </span><span style="font-size: 15px; line-height: 21.90625px;">acción en la que veremos el otro ejercicio mas adelante. Cuando reciba una "H" desde el otro Arduino los leds se encenderan y cuando reciba una "L" los leds se apagaran.</span></span><br />
<br /></div>
</div>
<pre class="prettyprint linenums">int led10 = 5;
int led9 = 4;
int led6 = 3;
int led3 = 2;
int incomingByte;
void setup() {
Serial.begin(9600);
pinMode(led10, OUTPUT);
pinMode(led9, OUTPUT);
pinMode(led6, OUTPUT);
pinMode(led3, OUTPUT);
}
void loop() {
if (Serial.available() > 0) {
incomingByte = Serial.read();
if (incomingByte == 'H') {
digitalWrite(led3, HIGH);
}
if (incomingByte == 'L') {
digitalWrite(led3, LOW);
}
if (incomingByte == 'H') {
digitalWrite(led6, HIGH);
}
if (incomingByte == 'L') {
digitalWrite(led6, LOW);
}
if (incomingByte == 'H') {
digitalWrite(led9, HIGH);
}
if (incomingByte == 'L') {
digitalWrite(led9, LOW);
}
if (incomingByte == 'H') {
digitalWrite(led10, HIGH);
}
if (incomingByte == 'L') {
digitalWrite(led10, LOW);
}
}
}
</pre>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; border: none; margin-bottom: 0cm; padding: 0cm;">
<div style="text-align: justify;">
<span style="font-family: Georgia, serif;"><span style="font-size: 15px; line-height: 21.90625px;"><br /></span></span></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; border: none; margin-bottom: 0cm; padding: 0cm;">
<span style="font-family: Trebuchet MS, sans-serif;">Este es el programa que antes hemos mencionado, en el cual, manda dos señales, una "H"(HIGH) y otra de "L"(LOW). Esto hace que los leds del Arduino que recibe los datos mediante el Xbee se encienden y se apaguen cada segundo.</span></div>
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilhO2r7BurvAo9ZRNeqG5GCloDiqhIBdAvlbMMaSXCEGKA9hpEAlN-NyI9JS8kulfEYGoYJ0cO8C3iXQ1BPGXjAMxglouaXcHxPx3n5eLbt4_TCuHJAtog0Y7BsQEOidRK0eVv4OuJN4A/s1600/programa+%2528envia%2529.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilhO2r7BurvAo9ZRNeqG5GCloDiqhIBdAvlbMMaSXCEGKA9hpEAlN-NyI9JS8kulfEYGoYJ0cO8C3iXQ1BPGXjAMxglouaXcHxPx3n5eLbt4_TCuHJAtog0Y7BsQEOidRK0eVv4OuJN4A/s1600/programa+%2528envia%2529.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; border: none; margin-bottom: 0cm; padding: 0cm;">
<span style="font-family: Georgia, serif;"><span style="font-size: 15px; line-height: 21.90625px;"><br /></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> En esta imagen podemos observar como esta montado y su funcionamiento. Como están conectados los 4 leds con sus respectivas resistencias de 220 Ohm. Conectados a 4 pines del Arduino los cuales utilizamos en nuestro programa. Los ánodos de los leds los conectamos a cada pata de las resistencias que tenemos y otra pata de la resistencia a cada pin que vamos a utilizar. El cátodo de los leds los conectamos a un punto en común el cual ira al pin del GND (ground) de la placa de Arduino.</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihQX71OCTtWubguPbfsRyPeItm5tJ0jzAFDwSJbbTdPUe4o4VezmE74rbEHt7lUd9l1QWyTjiQqU-AJk4h6Pkqeb3bS5RXksFVblc_g6qNk-M5wUvYS_B-AD6R4n8eUuMFHW3htFXAhmM/s1600/X-Bee+fritzing+-+copia.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihQX71OCTtWubguPbfsRyPeItm5tJ0jzAFDwSJbbTdPUe4o4VezmE74rbEHt7lUd9l1QWyTjiQqU-AJk4h6Pkqeb3bS5RXksFVblc_g6qNk-M5wUvYS_B-AD6R4n8eUuMFHW3htFXAhmM/s1600/X-Bee+fritzing+-+copia.png" width="223" /></a></div>
<br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Lo interesante seria ver con nuestros propios ojos el montaje que tenemos en este ejercicio y también las consecuencias de ello.</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> En este primer vídeo podemos observar que creamos los ejercicios en el Arduino y sus consecuencias, en este vídeo la explicación es muy básica. </span></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/1mJmH1Am28Q?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"> En este programa se cordina con el anterior pero un ejercicio mas complejo, en el cual hemos utilizado la anterior forma con 4 leds.</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/4GeUJunZQMo?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;"> Esperemos que os haya sido de utilidad.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<br />
<div style="text-align: right;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: right;">
<span style="font-family: Trebuchet MS, sans-serif;"> Autores: Alexander Criado</span></div>
<div style="text-align: right;">
<span style="font-family: Trebuchet MS, sans-serif;"> Ander Iñigo</span></div>
<div style="text-align: right;">
<span style="font-family: Trebuchet MS, sans-serif;"> Maite Villarrolain</span></div>
<br />
<br />Unknownnoreply@blogger.com020140 Andoain, Guipúzcoa, España43.2190439 -2.01953300000002443.2074724 -2.0397030000000238 43.230615400000005 -1.999363000000024tag:blogger.com,1999:blog-835442055881274745.post-3206097728034739282013-06-20T11:55:00.000+02:002013-06-20T11:55:50.226+02:00<span style="font-size: medium;"><span style="color: blue;"><u><span style="font-family: "Trebuchet MS", sans-serif;">ARDUINO 004: SENSOR DE LUMINOSIDAD</span></u></span></span><br />
<br />
<div style="text-align: justify;">
<span style="font-size: medium;"><span style="color: blue;"><span style="color: black;"><span style="font-family: "Trebuchet MS", sans-serif;"> <span style="font-size: small;">Para este ejemplo vamos a utilizar un fototransistor, un diodo led y como no nuestro Arduino UNO. Además de estos componentes vamos a necesitar varias resistencias para que el led y el fototransistor puedan funcionar. </span></span></span></span></span></div>
<div style="text-align: justify;">
<span style="color: blue; font-size: small;"><span style="color: black;"><span style="font-family: "Trebuchet MS", sans-serif;"> Lo que pretendemos hacer en este ejemplo es medir la luminosidad ambiental, mediante el fototransistor y reflejar ese efecto en un diodo led. Es decir, cuando el fototransistor detecte que hay poca luz el diodo led emitirá poca luz mientras que cuando el fototransistor detecte mucha luz el diodo led emitirá más luz. </span></span></span></div>
<div style="text-align: justify;">
<span style="color: blue; font-size: small;"><span style="color: black;"><span style="font-family: "Trebuchet MS", sans-serif;"><span style="color: blue;"> <span style="color: black;"> La conexión del fototransistor es la siguiente:</span></span></span></span></span></div>
<div style="text-align: justify;">
<span style="font-size: medium;"><span style="color: blue;"><span style="color: black;"><span style="font-family: "Trebuchet MS", sans-serif;"><span style="color: blue;"><span style="color: blue;"> </span></span></span></span></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Wfn2s6s6Z8wuSXeYJCRJadaCyXpWcih-msfd7pDWN0FAVTbykZsZxU4OXmDeiC0LrpNmPPIMXKRpvGMhDN1XiHaX7HAmMmkfOuYS_DoaJLXOaSAvlM3p_G618p-rijardhKXyLZDIQLo/s1600/conexionfototransistor.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Wfn2s6s6Z8wuSXeYJCRJadaCyXpWcih-msfd7pDWN0FAVTbykZsZxU4OXmDeiC0LrpNmPPIMXKRpvGMhDN1XiHaX7HAmMmkfOuYS_DoaJLXOaSAvlM3p_G618p-rijardhKXyLZDIQLo/s1600/conexionfototransistor.jpg" height="264" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: justify;">
<span style="font-size: medium;"><span style="color: blue;"><span style="color: black;"><span style="font-family: "Trebuchet MS", sans-serif;"><span style="color: blue;"><span style="color: blue;"> <span style="color: black; font-size: small;">Como podemos observar en el gráfico la luz incidente en el transistor hará que aumente o disminuya la corriente en el emisor del transistor con lo que hará que la tensión en la resistencia R cambie. Si esa tensión la medimos mediante un PIN Analógico-Digital del Arduino ya podemos saber si hay mucha luz, tensión en A0 más cerca de 5V, o hay poca luz, tensión en A0 más cerca de 0V. </span></span></span></span></span></span></span></div>
<div style="text-align: justify;">
<span style="font-family: "Trebuchet MS", sans-serif; font-size: small;"> El montaje que vamos hacer en nuestro arduino es el que se representa en la siguiente imagen:</span></div>
<div style="text-align: justify;">
<br />
<br />
<br />
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8VfyPlG9a3b9jCHImEghLHjBVJPqVooyOzs6E_oT5J0C3sQLjbkMVEEdk5DmgO0JOTNspiHk4U4LIxBhPdhWvuvoLxdv8Pn3xvzGhrHw5xAN6bVXrRgoXv6mP2AbH2UgGD1YVy1mAO6jd/s1600/Ander_i%C2%A7igo_Sensor_de_Luz.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8VfyPlG9a3b9jCHImEghLHjBVJPqVooyOzs6E_oT5J0C3sQLjbkMVEEdk5DmgO0JOTNspiHk4U4LIxBhPdhWvuvoLxdv8Pn3xvzGhrHw5xAN6bVXrRgoXv6mP2AbH2UgGD1YVy1mAO6jd/s1600/Ander_i%C2%A7igo_Sensor_de_Luz.png" height="400" width="371" /></a></div>
<span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"> </span></span><br />
<span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"> El programa para controlar nuestro montaje es:</span></span><br />
<br />
<pre class="prettyprint linenums">int pinSensor = A0; //Entrada para el potenciometro
int ledPin = 6; // selecciona el pin para el LED
void setup()
{
pinMode(ledPin, OUTPUT);
}
void loop()
{
int valor_pot = analogRead(A2); //lee el valor del sensor
int valor_luz = int((float(valor_pot) * 255.0) / 1023.0);
//marca la luminosidad
analogWrite(ledPin, valor_luz);
//da el valor del temporizador al led
delay(30); // detiene el programa por un tiempo
} </pre>
<span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"> </span></span><br />
<div style="text-align: justify;">
<span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"> Introducimos lo primero, la selección del Pin del Led (int ledPin = 6),así marcaremos la salida para conectarla al Led. A continuación, pondremos void setup() <span style="font-size: medium;"><span style="font-size: small;">para</span> </span>inicializar o cargar el programa si no aparece, void setup(), marca error y no podremos realizar el ejercicio. Void loop() lo colocamos seguido a void setup(), el apartado donde se realiza la lógica del programa. Dentro del ejercicio, las operaciones serán variadas, por ejemplo int valor_pot = analogRead(A2), con esta operaciones leeremos el valor del fototransistor, cuanto es el valor que obtenga el sensor se lo marcara al led también. Int valor_luz = int((float(valor_pot) * 255.0) / 1023.0), marca la luminosidad, la operación consiste en que el valor de luz sea el valor del sensor. AnalogWrite(ledPin, valor_luz), esta operación da el valor de luz del sensor al led y así sincronizar las dos partes. Delay(30), detiene el tiempo del programa durante un tiempo ajustado por nosotros, el tiempo puede variar a opinión de cada uno.</span></span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"> Bueno y si ahora os preguntáis para que puede servir este montaje, es que se utiliza más de lo que creemos, y sólo os tenéis que preguntar que hace vuestro smartphone. Si os fijáis bien veréis que la pantalla se ilumina más cuando hay mucha luz y que se ilumina menos cuando hay poco luz. De esta forma podemos ahorrar batería en un móvil.</span></span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"> Esperamos que os haya parecido interesante este pequeño montaje. Agur hasta la próxima entrada.</span></span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: right;">
<span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;">Ander Iñigo G1E </span></span></div>
<div style="text-align: justify;">
<br /></div>
<span style="font-size: small;"><span style="font-family: "Trebuchet MS",sans-serif;"> </span></span>elektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.com020140 Andoain, Guipúzcoa, España43.2190439 -2.01953300000002443.2074724 -2.0397030000000238 43.230615400000005 -1.999363000000024tag:blogger.com,1999:blog-835442055881274745.post-43878250344249297312013-05-24T17:00:00.000+02:002013-10-17T23:00:12.876+02:00<br />
<div class="western" style="margin-bottom: 0cm;">
<span style="color: blue;"><u><span style="font-family: "Trebuchet MS",sans-serif;"><span style="font-size: x-large;"><span style="font-size: large;">Arduino 003: Controlar
un LED con un potenciómetro</span></span></span></u></span></div>
<div class="western" style="margin-bottom: 0cm;">
<br />
<span style="font-family: "Trebuchet MS",sans-serif;"><span style="font-size: small;"> Con este programa lograremos encender, apagar y controlar un diodo emisor de luz. Para ello, necesitaremos una placa de Arduino (en este caso usaremos una placa Arduino Uno), un diodo emisor de luz, una resistencia de 220 Ohm y por ultimo un potenciómetro. <br /> Para utilizar el potenciómetro, necesitaremos una entrada analógica y no digital. Y para que la luminosidad del LED pueda variar, la salida debe ser PWM, ya que de no ser así, solo lograríamos encenderlo con 5V y apagarlo con 0V. No conseguiríamos una tensión intermedia.<br /> El conexionado es el siguiente:</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJhVK_m7vjrqjSrtNz2Vq2NMoY_1VjOftJrYe7zcMXhSfBsJ502nwSn5IrTjhKBIB-wm6ZJrOdf9WpvzuaOJQIoJVuvQxKoMHQBit6UFZIDSPghHJhFUO0hYkYTAwAXygCOVPZFqzqgjfe/s1600/FRITZING.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJhVK_m7vjrqjSrtNz2Vq2NMoY_1VjOftJrYe7zcMXhSfBsJ502nwSn5IrTjhKBIB-wm6ZJrOdf9WpvzuaOJQIoJVuvQxKoMHQBit6UFZIDSPghHJhFUO0hYkYTAwAXygCOVPZFqzqgjfe/s1600/FRITZING.png" width="372" /> </a></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: "Trebuchet MS",sans-serif;"><span style="font-size: small;">y el programa para que el esquema funcione es el siguiente: </span></span></div>
<div class="western" style="margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"><u><br /></u></span></div>
<pre class="prettyprint linenums">int pinSensor = A0; //Entrada para el potenciometro
int pinLed = 9; //Selecionamos pin para el Led
int valorSensor = 0; //Variable para el valor del sensor
void setup(){
pinMode(pinLed, OUTPUT); //Establecemos el pin como salida
}
void loop(){
// Leemos el valor del sensor y lo almacenamos:
valorSensor = analogRead(pinSensor);
// Establecemos el valor analogico para la salida PWM
analogWrite(pinLed, valorSensor/4);
//Detenemos el programa durante 30 milisegundos
delay(30);
} </pre>
<br />
<div style="text-align: justify;">
<span style="font-family: "Trebuchet MS",sans-serif;"><span style="font-size: small;"> En las tres primeras lineas de programación declararemos las variables, dándoles un nombre e indicando el pin al que los conectaremos. La entrada del pot. al ser analógica, será la A0. La salida del LED, corresponde al pin 9, el cual es un PWM. La tensión de salida de este pin oscila entre 5 y 0V.<br /> En la sección del ”void setup” indicaremos si las variables son de entrada o salida. En este caso, la variable de nuestro LED, será de salida.<br /> El programa comienza a partir del “void loop”. Comenzaremos leyendo el valor del potenciómetro, como un valor analógico. Después, encenderemos el LED, con el analogRead, con el valor que nos este dando el potenciómetro. De esta forma, conseguiremos controlar la luminosidad del diodo LED, gracias al potenciómetro.</span></span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: right;">
<span style="font-family: "Trebuchet MS",sans-serif;"><span style="font-size: small;">Autor: Jon Fernandez (G1E) </span></span></div>
elektronikaLSBhttp://www.blogger.com/profile/03317284969410453547noreply@blogger.com020140 Andoain, Guipúzcoa, España43.2190439 -2.01953300000002443.2074724 -2.0397030000000238 43.230615400000005 -1.999363000000024