tag:blogger.com,1999:blog-52324536293506404812024-03-13T21:49:08.588+01:00Hacking MazdaInterpretación y gestión del bus CAN de Mazda y los proyectos hardware y software asociados.Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-5232453629350640481.post-25748643470679240142012-10-24T16:52:00.002+02:002012-10-24T16:52:53.490+02:00Montaje final<div dir="ltr" style="text-align: left;" trbidi="on">
Bueno,pues aprovechando el verano he acabado de montar todo el conjunto y le tengo funcionando. Iré actualizando el Centrafuse, quizás le compre un disco duro SSD para que arranque más rápido, ponerle más RAM... ya veremos. Estas son las fotos del proceso:<br />
<br />
La 'dock' montada en el fondo de la guantera: <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-kl5cA51hgo8/UF4IoyZQiSI/AAAAAAAACT4/Mfp5gbcy89A/s1600/IMGP0064.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-kl5cA51hgo8/UF4IoyZQiSI/AAAAAAAACT4/Mfp5gbcy89A/s400/IMGP0064.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Fijación de la 'dock' a la guantera: <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-LhKbcidnjn8/UF4IqTQ46TI/AAAAAAAACUA/6v3ZPs6dU1E/s1600/IMGP0066.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-LhKbcidnjn8/UF4IqTQ46TI/AAAAAAAACUA/6v3ZPs6dU1E/s400/IMGP0066.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Radio MVH-1400UB desmontada, un circuito bastante reducido:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-DjwrhJ4kO6Q/UF4IvU-izFI/AAAAAAAACUY/vzNVKJfrFF0/s1600/IMGP0069.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-DjwrhJ4kO6Q/UF4IvU-izFI/AAAAAAAACUY/vzNVKJfrFF0/s400/IMGP0069.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
La parte superior con el frontal montado. Aprovecho parte de la tapa para hacer el soporte del frontal:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-I5bf8KwPDQQ/UF4IxI3h-PI/AAAAAAAACUg/TYVASHXXY5Y/s1600/IMGP0070.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-I5bf8KwPDQQ/UF4IxI3h-PI/AAAAAAAACUg/TYVASHXXY5Y/s400/IMGP0070.JPG" width="400" /></a></div>
<br />
El cenicero y encendedor del Mazda, donde montaré el frontal de la radio:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-wD986Se5IoU/UF4I1OZ3NjI/AAAAAAAACUw/9gC-nGt7ObY/s1600/IMGP0072.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-wD986Se5IoU/UF4I1OZ3NjI/AAAAAAAACUw/9gC-nGt7ObY/s400/IMGP0072.JPG" width="400" /></a></div>
<br />
Preparamos el plástico para montar el soporte con masilla epoxi: <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-6AK-IKYLRnc/UF4I3eqHscI/AAAAAAAACU4/mpuZlY42cOs/s1600/IMGP0073.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-6AK-IKYLRnc/UF4I3eqHscI/AAAAAAAACU4/mpuZlY42cOs/s400/IMGP0073.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Soporte junto con la masilla con la forma de la pieza de plástico:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-qJLaDuf3d40/UF4I45Nvz1I/AAAAAAAACVA/Gu_OMpgVGn0/s1600/IMGP0079.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-qJLaDuf3d40/UF4I45Nvz1I/AAAAAAAACVA/Gu_OMpgVGn0/s400/IMGP0079.JPG" width="400" /></a></div>
<br />
Aplicamos un poco de resina de poliester: <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-w8JGOk9LCsM/UF4I6nBG-LI/AAAAAAAACVI/OzRii1z0ua8/s1600/IMGP0080.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-w8JGOk9LCsM/UF4I6nBG-LI/AAAAAAAACVI/OzRii1z0ua8/s400/IMGP0080.JPG" width="400" /></a></div>
<br />
Resina de poliester lijada: <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Nx8Z4LR6zA0/UF4I8noluyI/AAAAAAAACVQ/Zo-jxsJxcms/s1600/IMGP0081.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-Nx8Z4LR6zA0/UF4I8noluyI/AAAAAAAACVQ/Zo-jxsJxcms/s400/IMGP0081.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Desoldamos el conector de la radio:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-cqopKPVBS4Y/UF4I-EYgQlI/AAAAAAAACVY/E555_-2CZL0/s1600/IMGP0082.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-cqopKPVBS4Y/UF4I-EYgQlI/AAAAAAAACVY/E555_-2CZL0/s400/IMGP0082.JPG" width="400" /></a></div>
<br />
Lo cableamos y lo montamos sobre el soporte. Este paso realmente me costó una semana ya que primero lo hice con cable plano y no funcionó. Tuve que analizar con el osciloscopio y determinar todas las señales para saber como cablearlas (USB, comunicaciones serie, alimentaciones, audios, control de pantalla, pulsadores y dial, etc..). Elegí el cable apropiado para cada señal e hice un circuito adaptador para el conector:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-bQEMG05SErs/UF4I_4JkvwI/AAAAAAAACVg/54nRWzIEdHw/s1600/IMGP0083.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-bQEMG05SErs/UF4I_4JkvwI/AAAAAAAACVg/54nRWzIEdHw/s400/IMGP0083.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Cableado a través del hueco del mechero:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-OypsmSuMm2Q/UF4JB3gPDKI/AAAAAAAACVo/3gzvLgXPHs0/s1600/IMGP0084.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-OypsmSuMm2Q/UF4JB3gPDKI/AAAAAAAACVo/3gzvLgXPHs0/s400/IMGP0084.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Cableado al circuito de la radio:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-zWJsgULHMrw/UF4JDjUDRII/AAAAAAAACVw/f19xRQbVQ3Q/s1600/IMGP0085.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-zWJsgULHMrw/UF4JDjUDRII/AAAAAAAACVw/f19xRQbVQ3Q/s400/IMGP0085.JPG" width="400" /></a></div>
<br />
Soporte del frontal montado sobre el plástico. Esta con cinta de doble cara que se utilizan para montar LCD's, así que queda muy fuerte. Originalmente estaba la resina de poliester pintada de negro pero no me gustó el acabado y pegué sobre la resina una fina lámina de plástico mate:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-6Wv8XgsFjJc/UF4JFvILJvI/AAAAAAAACV4/MSjmk4SCbD8/s1600/IMGP0086.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-6Wv8XgsFjJc/UF4JFvILJvI/AAAAAAAACV4/MSjmk4SCbD8/s400/IMGP0086.JPG" width="400" /></a></div>
<br />
Soporte con el frontal de la radio montado <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ilZjxpSpZXw/UF4JHZYPqsI/AAAAAAAACWA/i8ewUog5n5w/s1600/IMGP0087.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-ilZjxpSpZXw/UF4JHZYPqsI/AAAAAAAACWA/i8ewUog5n5w/s400/IMGP0087.JPG" width="400" /></a></div>
<br />
Cableado hasta la parte trasera de la guantera: <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-W9MJsogzVWU/UF4JPZmbDUI/AAAAAAAACYk/QZBxBc2ALJo/s1600/IMGP0120.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://4.bp.blogspot.com/-W9MJsogzVWU/UF4JPZmbDUI/AAAAAAAACYk/QZBxBc2ALJo/s640/IMGP0120.JPG" width="480" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-WpUMuREQCoI/UF4JJCn7TBI/AAAAAAAACWI/0_oBCq2Oty4/s1600/IMGP0088.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-W9MJsogzVWU/UF4JPZmbDUI/AAAAAAAACWY/Js8ojgDAxRk/s1600/IMGP0120.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
Dock cableada, alimentaciones, LCD, USB's, bluetooth...:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ZlTFloJXy0Y/UF4JR6QB6jI/AAAAAAAACWg/yvrK47x8WMM/s1600/IMGP0121.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-ZlTFloJXy0Y/UF4JR6QB6jI/AAAAAAAACWg/yvrK47x8WMM/s400/IMGP0121.JPG" width="400" /></a></div>
<br />
El GPS es uno que tenía para el Nokia 6600 que funciona con bluetooth. Le quité la batería y lo conecté a la salida de alimentación del PC que enclava el relé que hay en el dock. Al arrancar el PC se activa el módulo GPS. Funciona realmente bien ya que es uns Sirf III:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-8JW5EEmoOxk/UF4JTb5rtUI/AAAAAAAACWo/EBwaE0nMX1Y/s1600/IMGP0122.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-8JW5EEmoOxk/UF4JTb5rtUI/AAAAAAAACWo/EBwaE0nMX1Y/s400/IMGP0122.JPG" width="400" /></a></div>
<br />
La radio queda escondida en vertical detrás del LCD:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-4dr2xIas4_8/UF4JWG9tQNI/AAAAAAAACWw/RNK1CwKhtwk/s1600/IMGP0123.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-4dr2xIas4_8/UF4JWG9tQNI/AAAAAAAACWw/RNK1CwKhtwk/s400/IMGP0123.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Pantalla montada con la radio detrás y el módulo GPS:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-lXgE4WU_x80/UF4Jam_2QvI/AAAAAAAACXA/dCNVkeyL6SQ/s1600/IMGP0125.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-lXgE4WU_x80/UF4Jam_2QvI/AAAAAAAACXA/dCNVkeyL6SQ/s400/IMGP0125.JPG" width="400" /></a></div>
<br />
Frontal de la radio montado bajo el control del clima:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-NjLilLKREDQ/UF4JgwQLCdI/AAAAAAAACXQ/bVcgsB0gHwU/s1600/IMGP0127.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-NjLilLKREDQ/UF4JgwQLCdI/AAAAAAAACXQ/bVcgsB0gHwU/s400/IMGP0127.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Así queda la pantalla con la radio: </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-TJYSNmkndX8/UF4JjpCatiI/AAAAAAAACYw/DhrkDjFGNHU/s1600/IMGP0128.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://4.bp.blogspot.com/-TJYSNmkndX8/UF4JjpCatiI/AAAAAAAACYw/DhrkDjFGNHU/s640/IMGP0128.JPG" width="480" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Sin flash. Realmente la pantalla se ve muy bien, la retroiluminación led sirve de mucho con luz diurna. De noche es necesario el control de la retroiluminación mediante el propio mando de control de la luz del cuadro del coche para que no deslumbre.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-m_O03uk-z_E/UF4JlsT237I/AAAAAAAACY0/7VflV4ZqwAA/s1600/IMGP0129.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://3.bp.blogspot.com/-m_O03uk-z_E/UF4JlsT237I/AAAAAAAACY0/7VflV4ZqwAA/s640/IMGP0129.JPG" width="480" /></a></div>
<br />
Actualmente tengo el Centrafuse 3, pero próximamente compraré el 4 e intentaré hacer un skin personificado. Y por ahora poco más, irá evolucionando si le añado alguna cámara USB, el lector de OBD, etc... Cuando tenga el Centrafuse 4 iré viendo que plug-in's le pongo.<br />
Ha sido un largo camino, sobre todo con la integración de la pantalla pero creo que ha valido la pena a la vista de la integración y la dock que me permite no tener que comprarme otro PC al usar el HTPC y no sufrir por dejarlo en la calle con el PC dentro. Espero que os haya gustado esta integración.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-TJYSNmkndX8/UF4JjpCatiI/AAAAAAAACXY/BG_t4tTapW4/s1600/IMGP0128.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
</div>
Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com0tag:blogger.com,1999:blog-5232453629350640481.post-11298486630338046842012-08-05T13:46:00.000+02:002012-08-05T13:47:11.228+02:00Circuito de alimentación<div dir="ltr" style="text-align: left;" trbidi="on">
Para que el Carputer se active al dar la alimentación he diseñado un pequeño circuito en el que se monta un relé que durant5e unos segundos da tensión al PC y también un pulso de encendido. Para ello he añadido un conector al dock y cableado una salida de 5v y el pulsador de encendido.<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="http://1.bp.blogspot.com/-7eiL_WtqePI/UB5TUXpFg6I/AAAAAAAACTI/Jo4IEhJB1r4/s1600/IMGP0060.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://1.bp.blogspot.com/-7eiL_WtqePI/UB5TUXpFg6I/AAAAAAAACTI/Jo4IEhJB1r4/s400/IMGP0060.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Conector DB9 con cableado de alimentación y encendido.</td></tr>
</tbody></table>
De esta manera al dar el contacto el pulso activará el relé, el PC se encenderá y lo enclavará. Este relé también da paso a la alimentación del LCD. Cuando quitas el contacto el PC sigue encendido y solo desenclava el relé cuando apagas el PC. Esta función es muy importante ya que puedo necesitar usar el PC con el coche apagado y si conectara el relé directamente al encendido tendría que asegurarme que he pagado el PC antes de quitar el contacto o lo apagaría de modo no seguro pudiendo perder datos.<br />
También tiene otra ventaja añadida que es el asegurarse que no queda nada consumiendo de la batería. Una vez se ha abierto el relé no queda ni el PC ni la pantalla conectados a la batería y así evito que se descargue. Si el PC no está en el dock el relé se activará solo durante un par de segundos y luego se abrirá ya que no habrá alimentación de enclavamiento. Aquí dejo el esquema y el PCB por si a alguien le sirve:<br />
<div style="text-align: center;">
<span style="font-size: large;"><b><a href="https://docs.google.com/open?id=0Bxc1GCcbUyixZFBNUkZ6am9YdGs">Esquema Carputer starter</a></b></span></div>
<div style="text-align: center;">
<span style="font-size: large;"><b><a href="https://docs.google.com/open?id=0Bxc1GCcbUyixM1FhYlJkMC1iMkU">PCB Carputer starter</a></b></span></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
Y así es como queda:<span id="goog_635898084"></span><span id="goog_635898085"></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="http://2.bp.blogspot.com/-3AxQ8Le2rwM/UB5TVkNabpI/AAAAAAAACTQ/bpFtFHewPpc/s1600/IMGP0062.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://2.bp.blogspot.com/-3AxQ8Le2rwM/UB5TVkNabpI/AAAAAAAACTQ/bpFtFHewPpc/s400/IMGP0062.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Carputer starter montado sobre la dock.</td></tr>
</tbody></table>
<div style="text-align: left;">
Otra posibilidad es que en vez de conectar la señal de encendido a la general del coche usar la salida de remote de la radio, así no encenderá siempre el PC al arrancar el coche, solo cuando se active esta señal. Es muy probable que lo haga de esta manera ya que no siempre vas a querer que arranque el PC al montarte en el coche, por ejemplo en un trayecto corto.</div>
</div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com0tag:blogger.com,1999:blog-5232453629350640481.post-81081096664786602422012-07-07T19:11:00.002+02:002012-07-07T19:11:52.526+02:00Dock para el PC<div dir="ltr" style="text-align: left;" trbidi="on">
Al decidirme a montar el PC en el Mazda me surgió la duda de como iba a actualizar software, música, etc y como iba a hacer para no dejar el PC cada noche en el coche con el peligro de que lo roben. Entonces decidí que el PC debería ser extraible fácilmente y pensé en una especie de dock-station que se usa en los portátiles. Este es el proceso de creación de esa dock:<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="http://3.bp.blogspot.com/-OFvRttJLzD0/T_hhpQ4Vt9I/AAAAAAAACQA/a6KZZKn43tY/s1600/IMGP0039.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://3.bp.blogspot.com/-OFvRttJLzD0/T_hhpQ4Vt9I/AAAAAAAACQA/a6KZZKn43tY/s400/IMGP0039.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Situación del PC en la guantera</td></tr>
</tbody></table>
<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="http://2.bp.blogspot.com/-qhz0dT80OBc/T_hhl1IaO1I/AAAAAAAACP4/16w_urpy--s/s1600/IMGP0037.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://2.bp.blogspot.com/-qhz0dT80OBc/T_hhl1IaO1I/AAAAAAAACP4/16w_urpy--s/s400/IMGP0037.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Desde la tapa trasera de la guantera se puede acceder a los conectores.</td></tr>
</tbody></table>
<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="http://2.bp.blogspot.com/-PRI3vFl8C7c/T_hhtRMGYGI/AAAAAAAACQI/xi6cVdfagNo/s1600/IMGP0040.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://2.bp.blogspot.com/-PRI3vFl8C7c/T_hhtRMGYGI/AAAAAAAACQI/xi6cVdfagNo/s400/IMGP0040.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Conectores macho-hembra colocados</td></tr>
</tbody></table>
Usé varios conectores macho hembra, de jack para audio, de los usb y el adaptador HDMI-DVI para que quedasen integrados en el dock. El conector DB9 añadido es para llevar las señales del botón de encendido al PC, así como para sacar una señal de +5v para el enclavamiento del relé del circuito de encendido (en otro post mostraré el diseño de este circuito) y posibles ampliaciones (salida de control de ventilador extra, conexión del sensor de IR para el mando a distancia, etc...).<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-XFgIF5Rmc6g/T_hhxRtfXyI/AAAAAAAACQQ/VDTwi6N9Rn4/s1600/IMGP0041.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></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="http://2.bp.blogspot.com/-XFgIF5Rmc6g/T_hhxRtfXyI/AAAAAAAACQQ/VDTwi6N9Rn4/s1600/IMGP0041.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://2.bp.blogspot.com/-XFgIF5Rmc6g/T_hhxRtfXyI/AAAAAAAACQQ/VDTwi6N9Rn4/s400/IMGP0041.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Coloqué un film para que la masilla epoxi no se pegara al PC</td></tr>
</tbody></table>
<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="http://4.bp.blogspot.com/-vIhfoDR15TY/T_hh0mHIFXI/AAAAAAAACQY/cDY3tYCg-EQ/s1600/IMGP0043.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://4.bp.blogspot.com/-vIhfoDR15TY/T_hh0mHIFXI/AAAAAAAACQY/cDY3tYCg-EQ/s400/IMGP0043.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">También unas tuercas con una arandela quedarán integradas dentro del dock para poder fijarlo.</td><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<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="http://3.bp.blogspot.com/-g1Uto2OolbE/T_hh74SFk5I/AAAAAAAACQo/3INtAJiUpqw/s1600/IMGP0046.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://3.bp.blogspot.com/-g1Uto2OolbE/T_hh74SFk5I/AAAAAAAACQo/3INtAJiUpqw/s400/IMGP0046.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Masilla recién colocada</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Qvzk7FuHngw/T_hh_pCe6BI/AAAAAAAACQw/FZzoADCwe30/s1600/IMGP0047.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-Qvzk7FuHngw/T_hh_pCe6BI/AAAAAAAACQw/FZzoADCwe30/s400/IMGP0047.JPG" width="400" /></a></div>
<br />
<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="http://4.bp.blogspot.com/-odRtsyi-_d4/T_hiHqhyXTI/AAAAAAAACRA/G9nvUDZ1ZcE/s1600/IMGP0049.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://4.bp.blogspot.com/-odRtsyi-_d4/T_hiHqhyXTI/AAAAAAAACRA/G9nvUDZ1ZcE/s400/IMGP0049.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<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="http://4.bp.blogspot.com/-BjPD8LgWuSg/T_hiD2otryI/AAAAAAAACQ4/4Dymsz1Qaak/s1600/IMGP0048.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://4.bp.blogspot.com/-BjPD8LgWuSg/T_hiD2otryI/AAAAAAAACQ4/4Dymsz1Qaak/s400/IMGP0048.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Dock seca y dura como una piedra.</td></tr>
</tbody></table>
<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="http://1.bp.blogspot.com/-2-9lmFWbzAg/T_hiLvIVGoI/AAAAAAAACRI/peRUwHvx_4M/s1600/IMGP0050.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://1.bp.blogspot.com/-2-9lmFWbzAg/T_hiLvIVGoI/AAAAAAAACRI/peRUwHvx_4M/s400/IMGP0050.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Planteamiento del soporte de la dock</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-f_0kPXe7elA/T_hiNlsYSmI/AAAAAAAACRQ/4bvU-vAy8u8/s1600/IMGP0052.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-3YI25x7lzNs/T_hiPYg01yI/AAAAAAAACRY/c7LHpZ7vnpo/s1600/IMGP0053.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-3YI25x7lzNs/T_hiPYg01yI/AAAAAAAACRY/c7LHpZ7vnpo/s400/IMGP0053.JPG" width="400" /></a></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="http://3.bp.blogspot.com/-f_0kPXe7elA/T_hiNlsYSmI/AAAAAAAACRQ/4bvU-vAy8u8/s1600/IMGP0052.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://3.bp.blogspot.com/-f_0kPXe7elA/T_hiNlsYSmI/AAAAAAAACRQ/4bvU-vAy8u8/s400/IMGP0052.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Dock montada sobre el soporte</td></tr>
</tbody></table>
<span id="goog_1517544544"></span><span id="goog_1517544545"></span>Este soporte de madera DM irá encajado al fondo de la guantera, está cortado en la medida exacta. Aún queda por resolver como fijarlo pero no será muy complicado.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-eA32ZCdWyr8/T_hiQpTgTNI/AAAAAAAACRg/3miSPssyacg/s1600/IMGP0054.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-eA32ZCdWyr8/T_hiQpTgTNI/AAAAAAAACRg/3miSPssyacg/s400/IMGP0054.JPG" width="400" /></a></div>
<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="http://1.bp.blogspot.com/-kXvT9fFx--w/T_hiSKFGDCI/AAAAAAAACRo/_XvsGKm-YGA/s1600/IMGP0055.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://1.bp.blogspot.com/-kXvT9fFx--w/T_hiSKFGDCI/AAAAAAAACRo/_XvsGKm-YGA/s400/IMGP0055.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Resultado</td></tr>
</tbody></table>
AL final ha quedado un Dock bastante correcto, hay que hacer algo de fuerza al montar y desmontar el PC, por lo que el soporte de madera deberá ir bien fijado a los laterales de la guantera. También tengo que pensar si en esa unión con la guantera añado algún tipo de silentblock para darle algo de elasticidad y que no quede tan rígido, me preocupa que las vibraciones del coche tengan algún efecto sobre los conectores, hdd, lector de CD, etc..<br />
<br />
Para solucionar el tema del amplificador iba a montar un ampli que tengo de 100+100 pero claro, no me cabe en la guantera así que tendría que pasar todo el cableado al maletero y es algo que no me apetece la verdad. Para solucionar esto y otro problema que es la falta de radio en el PC voy a usar una radio de coche sin lector de CD, así podré usarla de amplificador para el PC y a la vez tendré una radio siempre disponible aunque no haya encendido el PC o lo haya dejado en casa. Esta radio sin CD me permitirá colocar la carátula debajo de los mandos del clima y lo que es el cuerpo de la radio en sí lo podré colocar detrás de la pantalla, con todo el cableado de altavoces, antena, etc. Solo tengo que preocuparme de cablear los contactos de la carátula extraible al cuerpo de la radio, sin necesidad de cablear nada al maletero ni los altavoces. Le he echado un ojo a esta de Pioneer por 60€ MVH-1400UB:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-xRXGFO3XUkA/T_hsHrH1dXI/AAAAAAAACR0/eGEKWz-B-PU/s1600/mvh-1400ub.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="151" src="http://3.bp.blogspot.com/-xRXGFO3XUkA/T_hsHrH1dXI/AAAAAAAACR0/eGEKWz-B-PU/s400/mvh-1400ub.jpg" width="400" /></a></div>
<br />
<span id="goog_1517544566"></span><span id="goog_1517544567"></span><br />
http://www.pioneer.eu/es/products/25/121/61/MVH-1400UB/index.html<br />
Pero en verdad hay unas cuantas radios de coche chinas sin CD que servirían, pero me ha gustado esta mira.<br />
Ya se que tanta historia con el PC para acabar montando una radio de coche, pero me soluciona el tema del ampli y la sintonización de radio. El PC es para usar el manos libres, escuchar música desde el hdd (o videoclips) el GPS, internet por 3G, cámaras de visión trasera-delantera con posibilidad de grabar, películas, etc... Son muchas ventajas que pocas radios son capaces de tenerlo todo, barato y modificable y la verdad que el tema de la radio con el Centrafuse es algo con pocas posibilidades de solucionarlo por menos de 100€ con muy pocas opciones a elegir.<br />
Próximo post supongo que será la integración del dock en la guantera, el diseño del circuito de encendido o puede que la integración de la radio/usb en el coche, ya veremos.<br />
<br /></div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com0tag:blogger.com,1999:blog-5232453629350640481.post-517429576236789892012-03-10T12:16:00.000+01:002012-03-11T12:57:24.574+01:00Acabando el TFT<div dir="ltr" style="text-align: left;" trbidi="on">
Dos meses después de haber conseguido el marco del TFT completo he podido acabar la pantalla con todos sus componentes. A la hora de montar el touch este cabía demasiado justo y han perecido 2 touchs por el camino hasta que he retocado el encaje de resina epoxi para que se ajuste perfectamente. También en la búsqueda del sistema de ajuste de la retroiluminación ha caido una placa de control de los leds. Así que he tenido que esperar un tiempo a que me llegara el material, ya que se tramitan como muestras de ingeniería.<br />
Para la integración de la electrónica, ya que no he pensado en hacer un open-frame (caja metálica donde alojar la electrónica) a medida he optado por montar toda la electrónica sobre la espalda del LCD aprovechando la masilla epoxi. He añadido un control del brillo de la pantalla que me permitirá ajustarlo mediante las señales del coche de luces encendidas y la señal PWM de regulación de iluminación del cuadro de mandos del coche. Tiene un potenciómetro que me permite fijar el mínimo de iluminación, aquí el esquema: <a href="https://docs.google.com/open?id=0Bxc1GCcbUyixa0VDQlVhY3hTNG12bFhQV1BYSlp3QQ">https://docs.google.com/open?id=0Bxc1GCcbUyixa0VDQlVhY3hTNG12bFhQV1BYSlp3QQ</a> Este es el montaje:<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="http://3.bp.blogspot.com/-BX31QshNEUQ/T1svA1qD6zI/AAAAAAAABug/GaxHn6tvYiw/s1600/IMGP0028.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://3.bp.blogspot.com/-BX31QshNEUQ/T1svA1qD6zI/AAAAAAAABug/GaxHn6tvYiw/s400/IMGP0028.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Placas de control de retroiluminación y LCD</td></tr>
</tbody></table>
<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="http://4.bp.blogspot.com/-1Xfg71DDSqA/T1svD91UbGI/AAAAAAAABuo/CnuNChF6Jj8/s1600/IMGP0029.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://4.bp.blogspot.com/-1Xfg71DDSqA/T1svD91UbGI/AAAAAAAABuo/CnuNChF6Jj8/s400/IMGP0029.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Placa de conexión y alimentación, y placa de conexión del touch.</td><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<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="http://3.bp.blogspot.com/-dEV2ekv_Nj4/T1svG1jMP8I/AAAAAAAABuw/V7KkOK-qHe8/s1600/IMGP0034.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://3.bp.blogspot.com/-dEV2ekv_Nj4/T1svG1jMP8I/AAAAAAAABuw/V7KkOK-qHe8/s400/IMGP0034.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Cableado del conjunto.</td></tr>
</tbody></table>
Ahora con la pantalla acabada ya estoy metido en la configuración del PC (centrafuse, gps, radio, etc...). También tengo pensado en hacer una placa anexa al PC para que alimente la pantalla al encenderse, filtrar la alimentación de la batería y conseguir un apagado seguro. Para ello he añadido un conector DB9 a la trasera del PC y lo cablearé a la placa base (pulsador on/off, alimentación, led encendido, receptor IR, ventilador...)<br />
Otro campo de batalla es la integración en la guantera para lo que voy a usar un sistema de dock-station que me permita llevarme el PC a casa como si fuera una radio de coche. La idea es montar todos los conectores trasero de modo macho hembra y hacer una base trasera con todos esos conectores usando masilla epoxi. Veremos como queda<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="http://2.bp.blogspot.com/-hiUT2Rgk-zk/T1s1-vIvvSI/AAAAAAAABu4/rG1t-m1E9jw/s1600/IMGP0033.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://2.bp.blogspot.com/-hiUT2Rgk-zk/T1s1-vIvvSI/AAAAAAAABu4/rG1t-m1E9jw/s400/IMGP0033.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Planteamiento conector dock</td></tr>
</tbody></table>
<br />
Y por ahora nada más, a ver si voy avanzando un poco y consigo ir probando Centrafuse, RoadRunner, INav, etc.. Lástima que no haya un fork del MythTv para Carputers.</div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com0tag:blogger.com,1999:blog-5232453629350640481.post-80948635030266133082011-12-21T12:12:00.000+01:002011-12-21T21:38:38.437+01:00Montaje del TFT<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
En esta entrada voy a explicar el montaje de la pantalla LCD-TFT sobre el marco DIN2 de <a href="http://www.metraonline.com/part/Mazda_Dash_kit_95-7504">METRA 95-7504</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-uTyxpmd_964/TlTMEE6TKuI/AAAAAAAABNg/58ZmwsXe5oo/s1600/Metra_95-7504_lg.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="115" src="http://1.bp.blogspot.com/-uTyxpmd_964/TlTMEE6TKuI/AAAAAAAABNg/58ZmwsXe5oo/s400/Metra_95-7504_lg.jpg" width="400" /></a></div>
La pantalla que usaré será una de 8" <a href="http://www.msc-ge.com/en/produkte/dis/tft/44-www.html?next=ext&ext=1000806">G080Y1-T01</a>, con retroiluminación led, 800x480 16:9, 600 cd/m^2 y contraste 600:1. La membrana táctil al final montaré una resistiva de 5 contactos, ya que la capacitiva que podía conseguir era algo más grande que la pantalla y me complicaba el montaje. Aquí están la pantalla y el touch:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-nJX12x6waYs/TlsqbX80gcI/AAAAAAAABN8/RSnRqtQ1Xbs/s1600/IMGP0269.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-nJX12x6waYs/TlsqbX80gcI/AAAAAAAABN8/RSnRqtQ1Xbs/s400/IMGP0269.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-PCQa-BxqyI8/TlsrEEUDrhI/AAAAAAAABOA/AzIHnY9Jo74/s1600/IMGP0270.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-PCQa-BxqyI8/TlsrEEUDrhI/AAAAAAAABOA/AzIHnY9Jo74/s400/IMGP0270.JPG" width="400" /></a></div>
<br />
La pantalla llevará la controladora montada detrás, por lo que quedará el conjunto con un perfil muy estrecho. Aquí unas fotillos de como se ve, incluso con la luz fluorescente de cara mantiene la luminosidad:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-sivtpvNyFS8/TuyZq8GyWRI/AAAAAAAABlE/qqqcpdkaKrw/s1600/IMGP0293.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-sivtpvNyFS8/TuyZq8GyWRI/AAAAAAAABlE/qqqcpdkaKrw/s400/IMGP0293.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-SSLzgvS4CKw/TuyZxnfQc_I/AAAAAAAABlM/jUbTXh7gip4/s1600/IMGP0295.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-SSLzgvS4CKw/TuyZxnfQc_I/AAAAAAAABlM/jUbTXh7gip4/s400/IMGP0295.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-gstJSz0KR0g/TuyZ0lqf-LI/AAAAAAAABlQ/BZ5izmsLZe0/s1600/IMGP0296.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-gstJSz0KR0g/TuyZ0lqf-LI/AAAAAAAABlQ/BZ5izmsLZe0/s400/IMGP0296.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-YhvcAy6nGbQ/TuyZ35D85JI/AAAAAAAABlU/iBH9RRr7Uj8/s1600/IMGP0297.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-YhvcAy6nGbQ/TuyZ35D85JI/AAAAAAAABlU/iBH9RRr7Uj8/s400/IMGP0297.JPG" width="400" /></a></div>
Y una prueba con el sintonizador de TDT:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-gQ2xw23ec90/TuyZ-N8gCdI/AAAAAAAABlc/Ag40Z1-KL0c/s1600/IMGP0299.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-gQ2xw23ec90/TuyZ-N8gCdI/AAAAAAAABlc/Ag40Z1-KL0c/s400/IMGP0299.JPG" width="400" /></a></div>
<br />
Como la pantalla es de 8" 16:9 no cabe en el hueco DIN2 del marco METRA, así que he de adaptar este marco a la pantalla. Para ello he mandado cortar 3 metacrilato con el tamaño exacto de la pantalla, del touch y del área visible de la pantalla, a modo de dummy para rellenar tranquilamente de masilla sin manchar la pantalla:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Iw5P2RjnWSU/TlsooBlR2kI/AAAAAAAABN4/Sj7JfJDfuNk/s1600/IMGP0268.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-Iw5P2RjnWSU/TlsooBlR2kI/AAAAAAAABN4/Sj7JfJDfuNk/s400/IMGP0268.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Luego los he pegado juntos centrándolos en la posición exacta que irá pegado el touch al TFT y el área visible. El metacrilato correspondiente al área visible será el que quede a la vista después de rellenar con masilla epoxi.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-vMWBPcKCVhM/TuyZZfx5frI/AAAAAAAABkk/AZgqofztaP8/s1600/IMGP0285.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-vMWBPcKCVhM/TuyZZfx5frI/AAAAAAAABkk/AZgqofztaP8/s400/IMGP0285.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-qKkndKYevRo/TuyZbfpH9DI/AAAAAAAABko/KQGqndzm9Vo/s1600/IMGP0286.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-qKkndKYevRo/TuyZbfpH9DI/AAAAAAAABko/KQGqndzm9Vo/s400/IMGP0286.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Para hacer caberel conjunto en el marco he de cortar el plástico sobrante, también una lijada fina a donde va a ir alojada la masilla para que agarre bien:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-qxFGkFdk_N4/TuyZdzgEwvI/AAAAAAAABks/5SDoSu0BSkQ/s1600/IMGP0287.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-qxFGkFdk_N4/TuyZdzgEwvI/AAAAAAAABks/5SDoSu0BSkQ/s400/IMGP0287.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-sLrWI-FA-Ds/TuyZfOmsOMI/AAAAAAAABkw/yGjIZFdjHWU/s1600/IMGP0288.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-sLrWI-FA-Ds/TuyZfOmsOMI/AAAAAAAABkw/yGjIZFdjHWU/s400/IMGP0288.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Para posicionar el metacrilato le creo unas soportes pegados con cola de PVC:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-jI_Gwirpr4g/TuyZkBLJryI/AAAAAAAABk4/_LGBpbTecFU/s1600/IMGP0290.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-jI_Gwirpr4g/TuyZkBLJryI/AAAAAAAABk4/_LGBpbTecFU/s400/IMGP0290.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/--_ybes1f8GY/TuyaTv0lBBI/AAAAAAAABls/NmFfr10Sb2I/s1600/IMGP0303.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/--_ybes1f8GY/TuyaTv0lBBI/AAAAAAAABls/NmFfr10Sb2I/s400/IMGP0303.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-0hITqrG8PEY/TuyaWWQI2pI/AAAAAAAABlw/yjWSu9gPK6M/s1600/IMGP0304.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-0hITqrG8PEY/TuyaWWQI2pI/AAAAAAAABlw/yjWSu9gPK6M/s400/IMGP0304.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-8tPPsPLT0is/TuyaZm2YSVI/AAAAAAAABl4/1_kq_Uym9f0/s1600/IMGP0306.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-8tPPsPLT0is/TuyaZm2YSVI/AAAAAAAABl4/1_kq_Uym9f0/s400/IMGP0306.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Relleno con masilla epoxi:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-t1coVuk0C34/Tuyae_Ip-dI/AAAAAAAABmA/kRX-AWGL_5Q/s1600/IMGP0308.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-t1coVuk0C34/Tuyae_Ip-dI/AAAAAAAABmA/kRX-AWGL_5Q/s400/IMGP0308.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-NR1Bk3yy3RQ/TuyahG1dsVI/AAAAAAAABmE/cpZY7S-A-Jo/s1600/IMGP0309.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-NR1Bk3yy3RQ/TuyahG1dsVI/AAAAAAAABmE/cpZY7S-A-Jo/s400/IMGP0309.JPG" width="400" /></a></div>
<br />
Retiro el metacrilato:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-2T6se8vx4FE/TuyaixYUQ4I/AAAAAAAABmI/P6PnW-ELo7k/s1600/IMGP0310.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-2T6se8vx4FE/TuyaixYUQ4I/AAAAAAAABmI/P6PnW-ELo7k/s400/IMGP0310.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Y pasamos a lijar:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-sSTbH5XCGng/TuyakRJdsXI/AAAAAAAABmM/FfW0WPzBFeY/s1600/IMGP0311.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-sSTbH5XCGng/TuyakRJdsXI/AAAAAAAABmM/FfW0WPzBFeY/s400/IMGP0311.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Sc8TkCXodZI/TuyalTpMgMI/AAAAAAAABmQ/qQWhaY6KGq8/s1600/IMGP0312.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-Sc8TkCXodZI/TuyalTpMgMI/AAAAAAAABmQ/qQWhaY6KGq8/s400/IMGP0312.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-6SEO1fV5BRE/Tuyam7flTjI/AAAAAAAABmU/UfkiLaBvEN0/s1600/IMGP0313.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-6SEO1fV5BRE/Tuyam7flTjI/AAAAAAAABmU/UfkiLaBvEN0/s400/IMGP0313.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-6kCe2iav9bM/TuyaqYnK7uI/AAAAAAAABmY/9HMksuDxgss/s1600/IMGP0314.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-6kCe2iav9bM/TuyaqYnK7uI/AAAAAAAABmY/9HMksuDxgss/s400/IMGP0314.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
La masilla epoxi es fantástica, dura como una piedra, agarra perfectamente sobre el plástico ABS, se lija muy bien, no se agrieta. Una maravilla trabajar con este material.</div>
<div class="separator" style="clear: both; text-align: left;">
Una pequeña presentación de la pantalla sin el touch:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ioRGo64J45s/Tuyarcd2euI/AAAAAAAABmc/6MCxTGMeSP4/s1600/IMGP0315.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-ioRGo64J45s/Tuyarcd2euI/AAAAAAAABmc/6MCxTGMeSP4/s400/IMGP0315.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Rellenado de los pequeños detalles con masilla de poliester y lijado fino:</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-aBa9DAgflfw/TuyaspliLzI/AAAAAAAABmg/NuVHEV8Ovbk/s1600/IMGP0316.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-aBa9DAgflfw/TuyaspliLzI/AAAAAAAABmg/NuVHEV8Ovbk/s400/IMGP0316.JPG" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-0OvhmTWETLg/TuyayHoJUsI/AAAAAAAABmo/Q40kZbE-llg/s1600/IMGP0318.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-vWFeRZkeeUU/TuyavvfS2SI/AAAAAAAABmk/kTDCtM9vzyE/s1600/IMGP0317.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-vWFeRZkeeUU/TuyavvfS2SI/AAAAAAAABmk/kTDCtM9vzyE/s400/IMGP0317.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-0OvhmTWETLg/TuyayHoJUsI/AAAAAAAABmo/Q40kZbE-llg/s1600/IMGP0318.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/-0OvhmTWETLg/TuyayHoJUsI/AAAAAAAABmo/Q40kZbE-llg/s400/IMGP0318.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Después de esto la envié a pintar a una empresa con la que trabajamos y que nos pinta unos márcos metálicos para LCD's de 17" con pintura texturizada, <a href="http://www.pinter.es/">PINTER Pintados y Derivados S.L.</a> (gracias Jordi). Con un acabado impecable, texturizado muy fino en negro mate, este es el resultado con el TFT y touch montados:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-kozcUvSHmJA/TvJAyvzgPUI/AAAAAAAABpI/VY4YD0fA86I/s1600/IMGP0002_1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-kozcUvSHmJA/TvJAyvzgPUI/AAAAAAAABpI/VY4YD0fA86I/s400/IMGP0002_1.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-kTubgW1r5co/TvJA1U9V1UI/AAAAAAAABpQ/7rVSWiN6pcY/s1600/IMGP0004.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-kTubgW1r5co/TvJA1U9V1UI/AAAAAAAABpQ/7rVSWiN6pcY/s400/IMGP0004.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-pdyI6-0-Zbs/TvJA0eIAYnI/AAAAAAAABpM/xHNvcuDKdxc/s1600/IMGP0003_1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-pdyI6-0-Zbs/TvJA0eIAYnI/AAAAAAAABpM/xHNvcuDKdxc/s400/IMGP0003_1.JPG" width="400" /></a></div>
<br />
Y este es el resultado montado en el coche, sin encender ya que no está instalado el carputer:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-4tb0rHxIyoI/Tuya0yn6NII/AAAAAAAABms/inaSPmBqtuI/s1600/IMGP0001.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-4tb0rHxIyoI/Tuya0yn6NII/AAAAAAAABms/inaSPmBqtuI/s400/IMGP0001.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-wQM_JssRfbg/Tuya4xWk0NI/AAAAAAAABmw/EnSayno0xbc/s1600/IMGP0002.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/-wQM_JssRfbg/Tuya4xWk0NI/AAAAAAAABmw/EnSayno0xbc/s400/IMGP0002.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-WnP2caCTKQI/TuybEycQwfI/AAAAAAAABnA/ysnCKIcElKA/s1600/IMGP0009.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://1.bp.blogspot.com/-WnP2caCTKQI/TuybEycQwfI/AAAAAAAABnA/ysnCKIcElKA/s400/IMGP0009.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-gYcpBpVwFRM/TuybIYDH6eI/AAAAAAAABnE/VaeiFG0MBMU/s1600/IMGP0012.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://2.bp.blogspot.com/-gYcpBpVwFRM/TuybIYDH6eI/AAAAAAAABnE/VaeiFG0MBMU/s640/IMGP0012.JPG" width="480" /></a></div>
<br />
Y hasta aquí por hoy, tengo que decir que ha sido un proceso de unos cuantos meses, entre que conseguía los materiales y lo montaba todo, pero creo que el resultado vale la pena.<br />
Lo siguiente será el control del brillo del TFT mediante la señal de dimmer de las luces interiores, así podré regular el brillo del LCD y del tablero de mandos conjuntamente. Ya tengo localizada la señal en el PCB de control de la retroiluminación LED, así que no será muy complicado.<br />
<br /></div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com1tag:blogger.com,1999:blog-5232453629350640481.post-48167236857507085152011-08-29T21:16:00.001+02:002011-08-29T21:17:18.130+02:00Cambiar bombillas del Mazda por leds.<div dir="ltr" style="text-align: left;" trbidi="on"><div dir="ltr" style="text-align: left;" trbidi="on">Las bombillas del coche se las he ido cambiando por unas de leds, casi todas menos las de cruce y largas (ya que no hay de leds, solo se podrían cambiar por xenon, pero esto lo dejo para otro día) con intención de no volver a cambiarlas nunca más (si no se estropean) y por estética (el color que dan es mas intenso). Las he comprado todas por Ebay, a este vendedor: <a href="http://stores.ebay.es/wardenjp2002">http://stores.ebay.es/wardenjp2002</a><br />
He cambiado tanto las interiores (lectura conductor y pasajero, luz de cortesía, guantera y maletero) como las exteriores (posición, intermitentes delanteros y traseros, freno central y antiniebla trasero). Las luces de freno traseras ya eran de leds en mi modelo (Sportive), en el resto de modelos creo que son convencionales.<br />
Aquí tenéis una relación de las bombillas por si quieres cambiarlas:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-FlFpuFP9bDM/TlrAcqhdx9I/AAAAAAAABNw/O1BS_hymEjA/s1600/mazda01ae4.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="257" src="http://3.bp.blogspot.com/-FlFpuFP9bDM/TlrAcqhdx9I/AAAAAAAABNw/O1BS_hymEjA/s400/mazda01ae4.jpg" width="400" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-kLRTfSMWloc/TlrAXlUY8ZI/AAAAAAAABNs/M6CoO4UsddM/s1600/bulbs.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="266" src="http://3.bp.blogspot.com/-kLRTfSMWloc/TlrAXlUY8ZI/AAAAAAAABNs/M6CoO4UsddM/s400/bulbs.jpg" width="400" /></a></div></div>Tengo que decir que solo he tenido problemas con unas de posición W5W de 12 leds convencionales que compré y me duraron unos meses (empezaron a fallar algunos leds de los 12). EL resto con leds SMD me han ido perfectas, realmente se ven muy bien. Hay otra ventaja con las bombillas led en el caso de los intermitentes, el encendido es inmediato. Con las incandescentes a la hora de encender las bombillas hay un poco de retardo (fade in). También hay un problema/ventaja: los intermitentes tienen un sistema de detección de bombilla fundida y al reemplazarla por las de leds la frecuencia de los intermitentes va un poco más rápido. A mi me gusta así, ya que considero que da más seguridad a la hora de cambiar de carril: entre el color más intenso y mayor cadencia te haces notar más (objetivo de estas luces). El problema vendrá cuando vaya a la ITV, ya que aquí en España si ven algo fuera de los normal no les suele gustar, ya lo veré cuando tenga que pasarla.<br />
Para cambiar todas las bombillas no he tenido que realizar ninguna adaptación, ya que son totalmente compatibles. Solo hay que probar que la hayas puesto en la polaridad correcta y ya está.<br />
Solo me he encontrado un problemas, los intermitentes laterales. Estos intermitentes tienen una bombilla incandescente que no se puede cambiar, ya que la cubierta está pegada de fábrica y no se puede despegar sin romperla. Para sacar este piloto solo hay que empujarlo hacia un lateral y tirar del otro lado, si no sale probar en el otro sentido.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-TNZ12UrXxPw/TlsrxF9ClNI/AAAAAAAABOE/Q2rSwezikj8/s1600/IMGP0271.JPG" imageanchor="1"><img border="0" height="240" src="http://4.bp.blogspot.com/-TNZ12UrXxPw/TlsrxF9ClNI/AAAAAAAABOE/Q2rSwezikj8/s320/IMGP0271.JPG" width="320" /></a></div><br />
Es importante que al sacarlo identificar la polaridad del conector, ya que las bombillas leds tienen polaridad y en este caso no podremos cambiarla una vez colocada. Al conector llegan 2 cables, uno negro totalmente y otro negro mas otro color. Este con un color es el positivo.<br />
La bombilla led que he usado es tal que así:<br />
<br />
<span id="goog_808567000"></span><span id="goog_808567001"></span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-mn7fuPe6CYw/Tlssn8f8cyI/AAAAAAAABOI/Cbl4ij70PFY/s1600/IMGP0272.JPG" imageanchor="1"><img border="0" height="240" src="http://3.bp.blogspot.com/-mn7fuPe6CYw/Tlssn8f8cyI/AAAAAAAABOI/Cbl4ij70PFY/s320/IMGP0272.JPG" width="320" /> </a></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-D8_bsiOWi_k/TlstTffAmtI/AAAAAAAABOM/jIDuF3mw9VM/s1600/IMGP0274.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-D8_bsiOWi_k/TlstTffAmtI/AAAAAAAABOM/jIDuF3mw9VM/s320/IMGP0274.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-gSvNrhBnEsM/TlsuDSCYqGI/AAAAAAAABOQ/JjoYCBNgU-E/s1600/IMGP0275.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-gSvNrhBnEsM/TlsuDSCYqGI/AAAAAAAABOQ/JjoYCBNgU-E/s320/IMGP0275.JPG" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div> El identificar la polaridad es crucial, ya que luego el conector del piloto no se puede invertir. Localizando el ánodo de un diodo ya tenemos el positivo. Para montar la bombilla simplemente corté la parte saliente del piloto:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-IA9ncJPt5Cw/TlswBqquOII/AAAAAAAABOc/SoQvMAv_agY/s1600/IMGP0278.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"> </a></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-acAKRzl-qGg/TlsuluR0EJI/AAAAAAAABOU/OJKsjPkTmHY/s1600/IMGP0276.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/-acAKRzl-qGg/TlsuluR0EJI/AAAAAAAABOU/OJKsjPkTmHY/s320/IMGP0276.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-bZ95WMG_ElM/TlsvHuyoC4I/AAAAAAAABOY/4TMcrqMEV0E/s1600/IMGP0277.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/-bZ95WMG_ElM/TlsvHuyoC4I/AAAAAAAABOY/4TMcrqMEV0E/s320/IMGP0277.JPG" width="320" /></a></div><br />
Saqué la bombilla incandescente y preparé el agujero del conector para alojar la de led. Para montar la bombilla soldé las patillas al conector:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-cbvXFvfT6IY/TlswuNcSoSI/AAAAAAAABOg/jW3MJ7XTHWk/s1600/IMGP0279.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-cbvXFvfT6IY/TlswuNcSoSI/AAAAAAAABOg/jW3MJ7XTHWk/s320/IMGP0279.JPG" width="320" /></a></div><br />
Y luego usando masilla epoxy volvi a poner el conector en su sitio:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-IA9ncJPt5Cw/TlswBqquOII/AAAAAAAABOc/SoQvMAv_agY/s1600/IMGP0278.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-IA9ncJPt5Cw/TlswBqquOII/AAAAAAAABOc/SoQvMAv_agY/s320/IMGP0278.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-cblgObyPGQQ/Tlsn8gqSfbI/AAAAAAAABN0/dW8jmUPBX_g/s1600/IMGP0280.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-cblgObyPGQQ/Tlsn8gqSfbI/AAAAAAAABN0/dW8jmUPBX_g/s320/IMGP0280.JPG" width="320" /></a></div><br />
El resultado una vez montadas en el coche es bastante bueno: una luminosidad no mucho mayor que la incandescente pero un color más vivo y sobro todo un tiempo de respuesta mucho mayor, se enciende al instante.</div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com1tag:blogger.com,1999:blog-5232453629350640481.post-56802627610559871912011-08-24T13:10:00.003+02:002011-09-01T21:15:44.637+02:00Restauración de un cockpit o salpicadero.<div dir="ltr" style="text-align: left;" trbidi="on">De un amigo que ya montó una pantalla en su Mazda 3 conseguí parte de una instalación anterior. Concretamente una pantalla Liliput de 7" encajada en un panel del cockpit del coche (más bien es el salpicadero pero me gusta más decir cockpit, aunque es más indicado para un panel de mandos de avión o coche). Este panel está justo encima de las salidas de aire y tiene bastante sitio por debajo, así que montó la pantalla de tal manera que quedaba oculta y se podia levantar. Este es el post original: <a href="http://www.clubmazda.es/foros/viewtopic.php?f=3&t=4413">http://www.clubmazda.es/foros/viewtopic.php?f=3&t=4413</a>.<br />
Pues este panel lo he utilizado para probar los materiales y técnicas a usar para integrar la pantalla, básicamente resina epoxi y masilla de poliester. Recuerdo que yo la pantalla la quiero integrar donde va la radio, usando el kit de Metra para alojar un DIN2 y esta restauración es básicamente una prueba.<br />
<div class="separator" style="clear: both; text-align: left;"><a href="http://3.bp.blogspot.com/-s5F96n-nR1k/TjklvoNCnDI/AAAAAAAABNk/61FAHUSRctY/s1600/IMGP0254.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a>El cockpit una vez desmontada la pantalla estaba en este estado:</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="http://2.bp.blogspot.com/-ZJq_oGjsxbs/TjklxCm0flI/AAAAAAAABKI/c-sH5Kr9ETs/s1600/IMGP0227.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="http://2.bp.blogspot.com/-ZJq_oGjsxbs/TjklxCm0flI/AAAAAAAABKI/c-sH5Kr9ETs/s320/IMGP0227.JPG" width="240" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">El cockpit agujereado</td></tr>
</tbody></table><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="http://1.bp.blogspot.com/-75zP16IIQ-M/TjklzPht5dI/AAAAAAAABKM/fI8He3mc4Ng/s1600/IMGP0228.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="http://1.bp.blogspot.com/-75zP16IIQ-M/TjklzPht5dI/AAAAAAAABKM/fI8He3mc4Ng/s320/IMGP0228.JPG" width="240" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Las dos piezas de plástico</td></tr>
</tbody></table><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="http://1.bp.blogspot.com/-I2U3UdK00f8/Tjkl8IUFLdI/AAAAAAAABKQ/5V00lwsAcd0/s1600/IMGP0229.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="240" src="http://1.bp.blogspot.com/-I2U3UdK00f8/Tjkl8IUFLdI/AAAAAAAABKQ/5V00lwsAcd0/s320/IMGP0229.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Los plásticos en su sitio</td></tr>
</tbody></table><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">Primero limpié de restos de pegamento los bordes de los plásticos, y también este pequeño lijado permitirá a la masilla epoxi fijarse mejor:</div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-izOhQGXwH2Q/TjkmEJPg0vI/AAAAAAAABKU/x9yi5pvIhJ0/s1600/IMGP0230.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-izOhQGXwH2Q/TjkmEJPg0vI/AAAAAAAABKU/x9yi5pvIhJ0/s320/IMGP0230.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;">Para fijar las dos tapas al panel y que queden lo más enrasadas posibles he improvisado:</div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-tkMFrr7C9XE/TjkmOetUPDI/AAAAAAAABKc/6FPD040vVHo/s1600/IMGP0233.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/-tkMFrr7C9XE/TjkmOetUPDI/AAAAAAAABKc/6FPD040vVHo/s320/IMGP0233.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-h7rZNEsHtoo/TjkmGHkI6LI/AAAAAAAABKY/tOuMCkE1Lbo/s1600/IMGP0231.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-h7rZNEsHtoo/TjkmGHkI6LI/AAAAAAAABKY/tOuMCkE1Lbo/s320/IMGP0231.JPG" width="240" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">De esta manera puedo colocar las tapas y que estas se coloquen siguiendo la curvatura del propio panel. Para fijar estos plásticos he usado masilla epoxi de <a href="http://www.feroca.com/productos.asp?idioma=ES">Feroca</a>, la manera más fácil de mezcalrla en la proporción correcta es haciendo bolitas. Hay que usar guantes para que no se peguen a los dedos:</div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-mu1TpyOoYXg/TjkmXBZHK3I/AAAAAAAABKg/Fpt0G_rbsQQ/s1600/IMGP0235.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-mu1TpyOoYXg/TjkmXBZHK3I/AAAAAAAABKg/Fpt0G_rbsQQ/s320/IMGP0235.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-_o4-YbmVbMk/Tjkme6O0GqI/AAAAAAAABKk/O9Y7YLUBvWE/s1600/IMGP0236.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://3.bp.blogspot.com/-_o4-YbmVbMk/Tjkme6O0GqI/AAAAAAAABKk/O9Y7YLUBvWE/s320/IMGP0236.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;">Aplicando la masilla por debajo:</div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-03TVEywE_ZI/TjkmoHybdDI/AAAAAAAABKo/exXHpgRCFdw/s1600/IMGP0237.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-03TVEywE_ZI/TjkmoHybdDI/AAAAAAAABKo/exXHpgRCFdw/s320/IMGP0237.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;">Eliminando sobrante por la parte superior y lijando:</div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-ajw1M8dkhAg/TjkmxNeVDLI/AAAAAAAABKs/GUbHOCXd3ZQ/s1600/IMGP0241.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-ajw1M8dkhAg/TjkmxNeVDLI/AAAAAAAABKs/GUbHOCXd3ZQ/s320/IMGP0241.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;"></div><div class="separator" style="clear: both; text-align: left;">Ahora el siguiente paso es usar la masilla de relleno de poliester. De esta hay dos tipos, una de relleno y otra para acabado fino, yo solo he usado la de relleno:</div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-MafG8lzuUTE/Tjkm6PE3N3I/AAAAAAAABKw/p5QLl6xlYfY/s1600/IMGP0242.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-MafG8lzuUTE/Tjkm6PE3N3I/AAAAAAAABKw/p5QLl6xlYfY/s320/IMGP0242.JPG" width="320" /></a></div><br />
Hay que decir que endurece bastante rápido una vez mezclada con el endurecedor, así que hay que darse prisa, he usado una paleta de pintor:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-gSB1jswDHxc/TjkneDAvHiI/AAAAAAAABLA/SXADfLiT4fc/s1600/IMGP0248.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://4.bp.blogspot.com/-gSB1jswDHxc/TjkneDAvHiI/AAAAAAAABLA/SXADfLiT4fc/s320/IMGP0248.JPG" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-a5KGrURTWzA/TjknEdVy69I/AAAAAAAABK0/EGkd9tCY_nw/s1600/IMGP0244.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/-a5KGrURTWzA/TjknEdVy69I/AAAAAAAABK0/EGkd9tCY_nw/s320/IMGP0244.JPG" width="320" /></a></div><br />
Después de un primer lijado grueso (lija grano 80):<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-dq53F1_HppY/TjknM4r3WWI/AAAAAAAABK4/5p-PdKzCjcE/s1600/IMGP0246.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-dq53F1_HppY/TjknM4r3WWI/AAAAAAAABK4/5p-PdKzCjcE/s320/IMGP0246.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-Q6Ym2Cf1RAY/TjknVT0BetI/AAAAAAAABK8/c-Yh6AWoBXY/s1600/IMGP0247.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-Q6Ym2Cf1RAY/TjknVT0BetI/AAAAAAAABK8/c-Yh6AWoBXY/s320/IMGP0247.JPG" width="320" /></a></div><br />
Vuelta a aplicar masilla y lijado fino (lija grano 150), listo para pintar:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-a4GGHn7QaWE/Tjknm-bkYdI/AAAAAAAABLE/lK5-Yq3GfEI/s1600/IMGP0251.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/-a4GGHn7QaWE/Tjknm-bkYdI/AAAAAAAABLE/lK5-Yq3GfEI/s320/IMGP0251.JPG" width="320" /></a></div><br />
En este momento había pocas imperfecciones, se podrían haber tapado con otro enmasillado y con masilla de acabado, pero ya tenía suficiente como entrenamiento. Después pinté con un spray negro con este resultado:<br />
<br />
<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="http://3.bp.blogspot.com/-s5F96n-nR1k/TjklvoNCnDI/AAAAAAAABNk/61FAHUSRctY/s1600/IMGP0254.JPG" style="margin-left: auto; margin-right: auto;"><img border="0" height="480" src="http://3.bp.blogspot.com/-s5F96n-nR1k/TjklvoNCnDI/AAAAAAAABNk/61FAHUSRctY/s640/IMGP0254.JPG" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Cockpit acabado.</td></tr>
</tbody></table>De este trabajo se extraen varias conclusiones: La masilla epoxi y la masilla de poliester se agarran al plástico perfectamente si este está lijado y limpio claro, también quedan muy duras pero modelables. el acabado depende en gran manera del último lijado que se haya hecho, si este es fino la pintura disimilará el lijado. Lo digo porque en mi caso la zona con masilla de poliester ha quedado muy lisa en comparación del resto del plástico que tenía como 'textura' en el plástico. Debería haber lijado toda la superficie, haber aplicado masilla de acabado y pintado a pistola para un acabado perfecto, pero para ser una prueba no ha quedado nada mal, quizás aproveche esta pieza algún día para meter unos relojillos:<br />
<a href="http://www.mazdaspeeders.com/index.php?topic=105012.0">http://www.mazdaspeeders.com/index.php?topic=105012.0</a></div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com0tag:blogger.com,1999:blog-5232453629350640481.post-34374896398315183332011-02-26T13:20:00.002+01:002011-06-07T22:35:34.145+02:00Primeros mensajes CAN:<div dir="ltr" style="text-align: left;" trbidi="on">Ya tengo listo los primeros resultados del análisis del bus en estático, es decir dentro de un parking. Para acabar de mapear correctamente algunos valores tendré que hacer un análisis conduciendo. Tampoco he conseguido mapear algunas cosas como las luces, los elevalunas o la temperatura exterior, posiblemente porque esten en el bus de motor o no estén. La temperatura exterior debe estar en alguno de los mensajes, ahora que he localizado donde está el sensor (delante del radiador) podré calentarlo para ver que mensaje queda afectado.<br />
El funcionamiento del climatizador y los datos de consumos y velocidad media que se muestran en el ordenador de a bordo también están claros donde están, el consumo instantáneo falta ver que formato muestra. Otras cosas que no he comprobado simplemente porque ni me he acordado son los sensores de cinturón de seguridad y los retrovisores eléctricos.<br />
Otro cosa que me hubiera gustado encontrar es la marcha que hay puesta, para poder diseñar un algoritmo que te recomiende cambiar de marcha en base a la velocidad, consumo instantáneo actual, revoluciones.. Y avisarte en el LCD que cambies a otra marcha. Quizás mas adelante conecte el bus de motor para poder hacer esto. Estos mensajes si están en el análisis que hizo <a href="http://www.madox.net/blog/projects/mazda-can-bus/">Madox</a>, seguramente porque su Mazda es mas nuevo, y al ser una versión americana marca las marchas automáticas (1,2,3, P, N, R). Otra diferencia muy importante es que él ve los mensajes 290 y 291 que son los códigos ascci de lo que hay que mostrar por el LCD. Esto es así porque en el reestilyng del Mazda el LCD tiene su propia centralita CAN y no depende directamente de la radio. Parece ser que en Mazda se dieron cuenta de que era una putada muy grande para quien quisiera cambiar la radio quedarse sin todas las funcionalidades del LCD. Esto le permitió a Madox y otros hacks que circulan por internet con este LCD interactuar con él simplemente lanzando los mensajes necesarios sobre el CAN Confort. Pero tiene un inconveniente, tienes que enviar los mensajes más rápido y en mayor cantidad de los que envia la radio a su vez para evitar el flickering al mostrar dos mensajes a la vez.<br />
En mi caso va a ser algo más complicado. La comunicación con el LCD parece ser que es un SPI pero aún he de descubrir que señales son exactamente porque tengo 5 señales de datos/sincronismo y con el SPI solo serian 4. Bueno, aquí dejo el documento y unas fotillos de como he empezado a analizar las comunicaciones del LCD.<br />
<br />
<div style="text-align: center;"><a href="https://docs.google.com/document/d/1Lsgtie9PFxNh6iVtXRmFRJuttXuDYox_2AI_odx62os/edit?hl=es"><span class="Apple-style-span" style="font-size: large;">Mensajes CAN Mazda 3 2004 (google Docs)</span></a><br />
<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://lh5.googleusercontent.com/-qwxzthU2bHs/TWjsWh4SjKI/AAAAAAAAA8I/NouGC3DAQEQ/s1600/IMGP0147.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="https://lh5.googleusercontent.com/-qwxzthU2bHs/TWjsWh4SjKI/AAAAAAAAA8I/NouGC3DAQEQ/s400/IMGP0147.JPG" width="400" /> </a></td><td style="text-align: center;"></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Set de Hacking CAN y del LCD.</td><td class="tr-caption" style="text-align: center;"></td><td class="tr-caption" style="text-align: center;"></td><td class="tr-caption" style="text-align: center;"><br />
</td></tr>
</tbody></table><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://lh4.googleusercontent.com/-pvIXCjCqW8Y/TWjscsRNUnI/AAAAAAAAA8M/AHB7_PtGlOM/s1600/IMGP0150.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="https://lh4.googleusercontent.com/-pvIXCjCqW8Y/TWjscsRNUnI/AAAAAAAAA8M/AHB7_PtGlOM/s400/IMGP0150.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Comunicaciones SPI?</td></tr>
</tbody></table></div></div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com7tag:blogger.com,1999:blog-5232453629350640481.post-3864592830954693622011-02-11T23:52:00.004+01:002011-02-26T13:14:40.480+01:00Conexión del LCD.<div dir="ltr" style="text-align: left;" trbidi="on">Como el objetivo principal es controlar el LCD hay que descubrir que señales envía la radio para poder reproducirlas después. Para ello he de interceptar las comunicaciones desmontando el LCD. EL conector es un JST de 14 vias paso 2.0mm por lo que la 'centralita' que diseñe tendrá un conector macho en el PCB para conectar el LCD.<br />
<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="http://1.bp.blogspot.com/-hK4yIc0bZEo/TVWyZRWDUzI/AAAAAAAAA5k/CF8YHuu_iQA/s1600/IMGP0138.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://1.bp.blogspot.com/-hK4yIc0bZEo/TVWyZRWDUzI/AAAAAAAAA5k/CF8YHuu_iQA/s400/IMGP0138.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">LCD Mazda 3.</td><td class="tr-caption" style="text-align: center;"><br />
</td><td class="tr-caption" style="text-align: center;"><br />
</td></tr>
</tbody></table>La conexión en el propio LCD solo tiene 12 cables, por lo que haré un conector externo con 12 pines para poder ver las comunicaciones con el osciloscopio.<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="http://2.bp.blogspot.com/-G3PMivDhTAU/TVW1kbFdv4I/AAAAAAAAA5s/iKKgsM9Fcfc/s1600/IMGP0139.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://2.bp.blogspot.com/-G3PMivDhTAU/TVW1kbFdv4I/AAAAAAAAA5s/iKKgsM9Fcfc/s400/IMGP0139.JPG" width="400" />.</a></td><td style="text-align: center;"></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Conector en el LCD</td></tr>
</tbody></table> Al intentar desmontar el circuito para poder ver el micro que controla el LCD veo que debería desoldar todos los pines que van al LCD, así que mejor no meto mano porque si me lo cargo tendría que buscar otro. Por suerte los que diseñaron el PCB dejaron un regalito:<br />
<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="http://1.bp.blogspot.com/-tTihC7PXF80/TVW1u2JhrnI/AAAAAAAAA5w/onW9lXMpthk/s1600/IMGP0140.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://1.bp.blogspot.com/-tTihC7PXF80/TVW1u2JhrnI/AAAAAAAAA5w/onW9lXMpthk/s400/IMGP0140.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Leyenda del conexionado del LCD</td></tr>
</tbody></table>Al lado del conector tenemos la leyenda de los pines, que me servirán para poder entender mejor que señales capto con el osciloscopio. Por ahora ya veo una tensión de 8V para el LCD que tendrá que generar. Las linea LCD-DAT, LCD-SCL y LCD-CS dan pistas sobre que la comunicación puede ser <a href="http://es.wikipedia.org/wiki/Serial_Peripheral_Interface">SPI</a>, pero también puede ser una comunicación síncrona corriente. Para descubrirlo sueldo una serie de cables a los pines del conector del PCB que irán a una pequeña placa con tira de pines y me permitirán montar el LCD en el coche funcionando y observar las comunicaciones.<br />
<br />
<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="http://4.bp.blogspot.com/-_2ecHgnuH34/TVW14cSpsUI/AAAAAAAAA50/-SgzDJGCxHM/s1600/IMGP0141.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://4.bp.blogspot.com/-_2ecHgnuH34/TVW14cSpsUI/AAAAAAAAA50/-SgzDJGCxHM/s400/IMGP0141.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Cables soldados al conector del LCD.</td><td class="tr-caption" style="text-align: center;"><br />
</td><td class="tr-caption" style="text-align: center;"><br />
</td></tr>
</tbody></table><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="http://3.bp.blogspot.com/-Gz8Ht6vqNLk/TVW2BDMObgI/AAAAAAAAA54/ywN69f8QlG0/s1600/IMGP0142.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="http://3.bp.blogspot.com/-Gz8Ht6vqNLk/TVW2BDMObgI/AAAAAAAAA54/ywN69f8QlG0/s400/IMGP0142.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Placa con tira de pines.<br />
</td><td class="tr-caption" style="text-align: center;"><br />
</td></tr>
</tbody></table><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://lh5.googleusercontent.com/-yc7akaIgDOw/TWjsdkmeY0I/AAAAAAAAA8U/ubXH-HabtH4/s1600/IMGP0148.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="https://lh5.googleusercontent.com/-yc7akaIgDOw/TWjsdkmeY0I/AAAAAAAAA8U/ubXH-HabtH4/s400/IMGP0148.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Conector instalado para el análisis.</td></tr>
</tbody></table>Así que ahora además de las comunicaciones CAN tengo que trabajar también sobre la comunicación con el LCD, al menos ya tengo todo dispuesto para ello. Por otro lado he ido poniendo en marcha el entorno de desarrollo para PIC, ya tengo el <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469&part=SW007002">MPLAB </a>funcionando y pudiendo compilar en C, el programador/debugador <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010046&part=DV164005">ICD2</a> y un PIC 16F876 que tenía por ahí para ir abriendo boca, el que usaré finalmente será el <a href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en020612">18f2480</a>. Quizás primero adelante un poco con los mensajes de CAN, para tener claro que es lo que puedo mostrar en el LCD y diseñar los botones necesarios para configurar los mensajes a mostrar. Por cierto, buscando por ahí información me topé con esta imagen:<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="http://2.bp.blogspot.com/-pVjgTIF6C-k/TVW8d_vCtXI/AAAAAAAAA58/eVLYuNVKdbA/s1600/centralitas_can.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="183" src="http://2.bp.blogspot.com/-pVjgTIF6C-k/TVW8d_vCtXI/AAAAAAAAA58/eVLYuNVKdbA/s400/centralitas_can.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Mapa de centralitas.</td></tr>
</tbody></table>Se parece a la imagen que cree en la entrada anterior con los números de centralitas, pero con las centralitas identificada. Algo así tiene que acabar siendo el mapa que hice pero además identificando los mensajes.<br />
<br />
Próximamente más cosillas.<br />
<br />
<br />
<br />
</div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com7tag:blogger.com,1999:blog-5232453629350640481.post-27400668787668125962011-01-16T20:45:00.000+01:002011-01-16T20:45:54.925+01:00Primer análisis de mensajes CANYa tengo capturados unos cuantos mensajes con el identificador de mensaje. Pare ello además de todo lo dicho anteriormente hay que mandar un comando más al ELM327 para que muestre el encabezado del mensaje: ATH1. Hay otro comando que muestra un byte del mensaje que describe la longitud de los datos (DLC): ATD1, pero es más para comprobar y preparar el buffer de recepción.<br />
Los mensajes los he capturado con el coche parado y sin el motor en marcha, solo activé los elevalunas y las luces un momento para ver si había cambios. En el momento no vi nada por la velocidad a la que se muestran por el terminal, pero luego analizando el log si que hay mensajes que cambian. El resumen de mensajes sería este:<br />
<br />
<table border="0" cellpadding="0" cellspacing="0" style="width: 340px;"><col style="width: 24pt;" width="32"></col> <col style="width: 48pt;" width="64"></col> <col style="width: 38pt;" width="50"></col> <col style="width: 18pt;" width="24"></col> <col style="width: 20pt;" width="26"></col> <col span="6" style="width: 18pt;" width="24"></col> <tbody>
<tr height="21" style="height: 15.75pt;"> <td class="xl65" height="21" style="height: 15.75pt; width: 24pt;" width="32"><b>ID</b></td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64"><b>Receptor</b></td> <td class="xl66" style="border-left: medium none; width: 38pt;" width="50"><b> Emisor</b></td> <td class="xl66" style="border-left: medium none; width: 18pt;" width="24"><b>B0</b></td> <td class="xl66" style="border-left: medium none; width: 20pt;" width="26"><b>B1</b></td> <td class="xl66" style="border-left: medium none; width: 18pt;" width="24"><b>B2</b></td> <td class="xl66" style="border-left: medium none; width: 18pt;" width="24"><b>B3</b></td> <td class="xl66" style="border-left: medium none; width: 18pt;" width="24"><b>B4</b></td> <td class="xl66" style="border-left: medium none; width: 18pt;" width="24"><b>B5</b></td> <td class="xl66" style="border-left: medium none; width: 18pt;" width="24"><b>B6</b></td> <td class="xl67" style="border-left: medium none; width: 18pt;" width="24"><b>B7</b></td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">23</td> <td>0 </td> <td> 23</td> <td>40</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">201</td> <td>2</td> <td> 1</td> <td>0</td> <td>0</td> <td>40</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">265</td> <td>2</td> <td> 65</td> <td>0</td> <td>0</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">285</td> <td>2</td> <td> 85</td> <td>60</td> <td>0</td> <td>0</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">295</td> <td>2</td> <td> 95</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td><br />
</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">2A0</td> <td>2 </td> <td> A0</td> <td>C0</td> <td>AA</td> <td>52</td> <td>80</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">400</td> <td>4</td> <td> 0</td> <td>0</td> <td>1A</td> <td>FF</td> <td>FE</td> <td>0</td> <td>65</td> <td>1</td> <td>C4</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">401</td> <td>4</td> <td> 1</td> <td>0</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">420</td> <td>4</td> <td> 20</td> <td>6C</td> <td>0</td> <td>0</td> <td>0</td> <td>42</td> <td>0</td> <td>0</td> <td>0</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">460</td> <td>4</td> <td> 60</td> <td>3</td> <td>C0</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">4F3</td> <td>4 </td> <td> F3</td> <td>32</td> <td>31</td> <td>31</td> <td>34</td> <td>35</td> <td>38</td> <td>37</td> <td>39</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">4F4</td> <td>4</td> <td> F4</td> <td>42</td> <td>4B</td> <td>31</td> <td>34</td> <td>46</td> <td>32</td> <td>35</td> <td>31</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">4FA</td> <td>4</td> <td> FA</td> <td>1C</td> <td>DE</td> <td>90</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">501</td> <td>5</td> <td> 1</td> <td>11</td> <td>2</td> <td>0</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> </tr>
<tr height="20" style="height: 15pt;"> <td height="20" style="height: 15pt;">511</td> <td>5</td> <td> 11</td> <td>1</td> <td>2</td> <td>0</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> <td><br />
</td> </tr>
</tbody></table><br />
De cada uno hay varios cada segundo, con cadencias diferentes. Si me fuera necesario más adelante analizaría la cadencia de los mensajes para preparar su recepción. Otro detalle es que a diferencia de <a href="http://www.madox.net/blog/projects/mazda-can-bus/">Madox</a> no veo ciertos mensajes, quizás cuando esté en marcha o quizás son mensajes puntuales que solo se muestran una vez cuando son necesarios. Haré pruebas de campo con el coche en marcha, logeando los datos y luego importándolos a una base de datos para tratarlos más fácilmente. Hasta ahora he usado excel y la identificación de emisor y receptor está hecha a mano. Con estos datos he creado un mapa de mensajes o "centralitas" ya que una misma centralita puede enviar varios mensajes con diferente identificador, pero ya podemos ver dos grandes receptores de mensajes, la centralita 2 y la 4:<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="http://4.bp.blogspot.com/_J3HQYBQpHW8/TTNKXEKOymI/AAAAAAAAA3Y/0jK_b3d3DKY/s1600/mapa_mensajes_CAN.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="640" src="http://4.bp.blogspot.com/_J3HQYBQpHW8/TTNKXEKOymI/AAAAAAAAA3Y/0jK_b3d3DKY/s640/mapa_mensajes_CAN.JPG" width="340" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Mapa de mensajes CAN</td></tr>
</tbody></table>Por ahora solo están las direcciones de los envíos, espero ir completando el mapa con el significado de esos mensajes según vaya descubriendo que hay dentro de ellos.Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com0tag:blogger.com,1999:blog-5232453629350640481.post-19843064307756090022011-01-14T20:28:00.000+01:002011-01-14T20:28:10.290+01:00Soporte magnético para móvil.Hasta que no tenga montado el carputer necesito un GPS para salir de excursión, y mi HTC Hero cumple muy bien, con google maps o con Copilot. El problema era el soporte para el móvil, hasta que encontré estos: <a href="http://www.tetrax.it/es">http://www.tetrax.it/es</a> pero son un poco caros, así que mejor me lo fabrico yó. No voy a explicar mucho porque las imágenes hablan por si solas de lo simple que es, solo la lista de materiales:<div><div><ul><li>Imanes de neodimio planos, yo los saqué de un disco duro estropeado.</li>
<li>Hojas de cutter finas.</li>
<li>Cinta de doble cara fina o blue-tack</li>
<li>Cinta de doble cara gruesa</li>
</ul></div><div>He creado unas instrucciones en Instructables: <a href="http://www.instructables.com/id/Magnetic-phone-holder-for-car/">http://www.instructables.com/id/Magnetic-phone-holder-for-car/</a></div></div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_J3HQYBQpHW8/TTCiNtOoXCI/AAAAAAAAA2s/oBQhvgKhmK0/s1600/IMGP0078.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/_J3HQYBQpHW8/TTCiNtOoXCI/AAAAAAAAA2s/oBQhvgKhmK0/s320/IMGP0078.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_J3HQYBQpHW8/TTCiWDeVnaI/AAAAAAAAA2w/mQ97xUFseNE/s1600/IMGP0087.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/_J3HQYBQpHW8/TTCiWDeVnaI/AAAAAAAAA2w/mQ97xUFseNE/s320/IMGP0087.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_J3HQYBQpHW8/TTCieUTvSUI/AAAAAAAAA20/r-rA7YJuFLs/s1600/IMGP0089.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/_J3HQYBQpHW8/TTCieUTvSUI/AAAAAAAAA20/r-rA7YJuFLs/s320/IMGP0089.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_J3HQYBQpHW8/TTCimfaUvuI/AAAAAAAAA24/OB_TWaxF4r0/s1600/IMGP0090.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/_J3HQYBQpHW8/TTCimfaUvuI/AAAAAAAAA24/OB_TWaxF4r0/s320/IMGP0090.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_J3HQYBQpHW8/TTCiu3pr9SI/AAAAAAAAA28/ZrHFoFRfoOw/s1600/IMGP0091.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://1.bp.blogspot.com/_J3HQYBQpHW8/TTCiu3pr9SI/AAAAAAAAA28/ZrHFoFRfoOw/s320/IMGP0091.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_J3HQYBQpHW8/TTCi1Y5FvRI/AAAAAAAAA3A/9dUO2JJDHnA/s1600/IMGP0095.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/_J3HQYBQpHW8/TTCi1Y5FvRI/AAAAAAAAA3A/9dUO2JJDHnA/s320/IMGP0095.JPG" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_J3HQYBQpHW8/TTCiGE0-w0I/AAAAAAAAA2o/71-Soe8AL8I/s1600/IMGP0097.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://2.bp.blogspot.com/_J3HQYBQpHW8/TTCiGE0-w0I/AAAAAAAAA2o/71-Soe8AL8I/s320/IMGP0097.JPG" width="320" /></a></div><div><br />
</div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com1tag:blogger.com,1999:blog-5232453629350640481.post-4296928893036025442011-01-02T21:49:00.001+01:002011-03-01T14:02:06.518+01:00Comenzando con el ELM327<div dir="ltr" style="text-align: left;" trbidi="on">Para poder descifrar los mensajes del bus de confort necesito acceder a él con el cable OBD. En el <a href="http://www.clubnet.org/%7Eclave/dlc.html">conector OBD del coche</a> están presentes los dos buses, el de motor (HS, High Speed 500kbps) y el de confort (MS, Medium Speed 125kbps), pero el cable OBD solo está conectado al de motor. <a href="http://www.madox.net/blog/2008/11/17/reverse-engineering-the-mazda-can-bus-part-1/comment-page-1/#comment-297">Madox </a>también especifica este bus de Medium Speed en uno de sus comentarios.<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="http://4.bp.blogspot.com/_J3HQYBQpHW8/TSDSf-gzmAI/AAAAAAAAA2g/6CuowIn4FPM/s1600/OBD_connector.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="240" src="http://4.bp.blogspot.com/_J3HQYBQpHW8/TSDSf-gzmAI/AAAAAAAAA2g/6CuowIn4FPM/s320/OBD_connector.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Conector OBD, vista trasera.</td></tr>
</tbody></table><br />
Para poder conmutar entre los dos buses, y no perder la conexión con el bus HS por si hace falta algún día para leer errores de la centralita de motor (ECU), he instalado un conmutador de 2 polos en el propio conector, respetando la polaridad H-L del interface CAN para los dos buses.<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="http://1.bp.blogspot.com/_J3HQYBQpHW8/TSDSgDXnjUI/AAAAAAAAA2k/6nNABaiPF_k/s1600/OBD_switch.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="240" src="http://1.bp.blogspot.com/_J3HQYBQpHW8/TSDSgDXnjUI/AAAAAAAAA2k/6nNABaiPF_k/s320/OBD_switch.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Conector OBD con conmutador de selección de buses CAN.</td></tr>
</tbody></table>Con el cable listo he comenzado a evaluar diferentes softwares de diagnosis de coche en sus versiones para ELM <a href="http://www.customcarputers.com/product_info.php?cPath=58&products_id=154&osCsid=51fa89e042512bcf6f1c03b58e4a2db5">(ScanMaster, ScanXL, OBDSpy, ScanTool, Digimoto,wOBD, EasyOBD, EEC Analyzer, etc...)</a>, ninguno de ellos me sirve para poder filtrar mensajes CAN, ya que se basan en el protocolo OBD para poder leer mensajes de la ECU pero para poder ver si funciona el hardware sirven.<br />
Para poder comunicarnos con el ELM327 lo haremos a través de un terminal serie, en mi caso he usado <a href="http://hp.vector.co.jp/authors/VA002416/teraterm.html">TeraTerm</a> pero se puede usar hyperterminal de windows o PuTTY o cualquier otro. Hay que tener a mano el <a href="http://www.elmelectronics.com/DSheets/ELM327DS.pdf">manual del ELM327</a> para saber que comandos ATM usar. La velocidad por defecto es de 38400, aunque hay un pin del ELM que permite configurarla por hardware a 9600bps. Otro de los pines del ELM es el que introduce un LF (Line Feed) al final de la linea, pero en mi caso no esta activado por lo que para comunicarse correctamente el primer comando será un ATL1 para activar el line feed.<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="http://3.bp.blogspot.com/_J3HQYBQpHW8/TSDQEIgZW-I/AAAAAAAAA2I/97dGKCMprik/s1600/ATMA_11-500.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="201" src="http://3.bp.blogspot.com/_J3HQYBQpHW8/TSDQEIgZW-I/AAAAAAAAA2I/97dGKCMprik/s320/ATMA_11-500.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Primeros comandos del ELM</td></tr>
</tbody></table>Otro comando para ver todos los mensajes es el ATMA (Monitor All), que nos muestra una serie de tramas hasta que el buffer de recepción se llena y da mensaje de error. Para saber el protocolo actual usaremos ATDP (Describe Protocol) y nos confirma que es un bus CAN con identificadores de 11bits y 500kbps de velocidad. Al conmutar al bus de confort y realizar un ATPC (Protocol Close) y un ATMA para reiniciar el sistema de escaneo de protocolos obtenemos esto:<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="http://2.bp.blogspot.com/_J3HQYBQpHW8/TSDQEKXvNDI/AAAAAAAAA2M/LaIJWrjLN84/s1600/ATMA_11-500_MS.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="201" src="http://2.bp.blogspot.com/_J3HQYBQpHW8/TSDQEKXvNDI/AAAAAAAAA2M/LaIJWrjLN84/s320/ATMA_11-500_MS.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Cambio al bus de confort.</td><td class="tr-caption" style="text-align: center;"><br />
</td><td class="tr-caption" style="text-align: center;"><br />
</td></tr>
</tbody></table>Los errores de recepción me parecen extraños, por lo que al comprobar el protocolo elegido con ATDP veo que es el número 8: CAN 11bit ID- 250 kbaud. Consultando el manual veo que hay un par de protocolos ajustables, el B y que ya viene por defecto con el formato que me interesa: 11bit ID, 125 kbaud. Fijo este protocolo mediante ATSPB (Set Protocol B) y con un ATDP y un ATMA compruebo que funciona correctamente:<br />
<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="http://1.bp.blogspot.com/_J3HQYBQpHW8/TSDQD8alFuI/AAAAAAAAA2E/MQW6cc41g54/s1600/ATMA_11-125_MS.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="242" src="http://1.bp.blogspot.com/_J3HQYBQpHW8/TSDQD8alFuI/AAAAAAAAA2E/MQW6cc41g54/s320/ATMA_11-125_MS.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Fijar velocidad correcta para el bus (11bit ID, 125 kbps).</td></tr>
</tbody></table><div class="separator" style="clear: both; text-align: left;">Ahora ya puedo leer correctamente mensajes CAN del bus de confort, para ello utilizaré los comandos ATMA (Monitor All), ATMR (Monitor Receiver) y ATMT (Monitor Transmitter).</div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"><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="http://3.bp.blogspot.com/_J3HQYBQpHW8/TSDQEcRrhJI/AAAAAAAAA2Q/TG4vIRNjl9U/s1600/ATMR02.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="267" src="http://3.bp.blogspot.com/_J3HQYBQpHW8/TSDQEcRrhJI/AAAAAAAAA2Q/TG4vIRNjl9U/s400/ATMR02.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Mensajes enviados hacia la centralita 2 (ATMR02).</td></tr>
</tbody></table><div class="separator" style="clear: both; text-align: left;"> Aún tengo que acabar de leerme el manual del ELM para poder configurarlo correctamente y ver los encabezados de los mensajes, lo que me permitirá saber los números de las centralitas que hay en el bus (emisoras y receptoras). Por ahora he podido observar que la centralita 02 recibe datos del clima (si está encendido, velocidad de ventilador, temperatura, etc..), así que es un buen comienzo!!. Espero ir descifrando mensajes poco a poco, si veo que hay muchos mensajes quizás opte por un script en linux o algún software en C que me permita ir viendo los cambios bit a bit conforme vaya actuando sobre los controles del coche, al igual que hizo <a href="http://www.madox.net/blog/2009/10/24/reverse-engineering-the-mazda-can-bus-%E2%80%93-part-2/">Madox con PHP y Javascript</a>. Primero me miraré mas a fondo la configuración del ELM e iré buscando el micro que usar (NEC, Microchip?). En el trabajo ahora estamos usando un embedded <a href="http://www.msc-ge.com/en/produkte/com/exm32/3640-www.html">EXM32-IXM35</a> que tiene interfaz CAN, pero me parece demasiado pasado de especificaciones para lo que quiero, o no? ;).</div></div>Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com18tag:blogger.com,1999:blog-5232453629350640481.post-17509313779132670182010-11-26T17:43:00.003+01:002010-11-26T17:47:18.148+01:00Diagramas del controlador LCDSobre el control que realizaré voy especular un poco, ya que se puede llegar a complicar bastante. El modelo más sencillo sería este:<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="http://1.bp.blogspot.com/_J3HQYBQpHW8/TO-wGAPkhTI/AAAAAAAAAz8/mIq3D0bsuoM/s1600/control1.JPG" style="margin-left: auto; margin-right: auto;"><img border="0" height="226" src="http://1.bp.blogspot.com/_J3HQYBQpHW8/TO-wGAPkhTI/AAAAAAAAAz8/mIq3D0bsuoM/s320/control1.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Diagrama Control 1</td></tr>
</tbody></table>Con este control simplemente haríamos de puente entre la información del bus CAN y el display, teniendo que programar en el microcontrolador los parámetros que queremos mostrar. Como querría poder interactuar con este display para poder ir cambiando el texto e implementar el botón de INFO necesitaré conectarle unos pulsadores:<br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></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="http://1.bp.blogspot.com/_J3HQYBQpHW8/TO-yJGnShsI/AAAAAAAAA0A/wOJX0gdjW3Q/s1600/control2.JPG" style="margin-left: auto; margin-right: auto;"><img border="0" height="266" src="http://1.bp.blogspot.com/_J3HQYBQpHW8/TO-yJGnShsI/AAAAAAAAA0A/wOJX0gdjW3Q/s320/control2.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Diagrama Control 2</td></tr>
</tbody></table>Este sería el primer diseño a realizar para poder evolucionarlo más adelante. Para tener el control sobre el bus CAN tengo varias opciones:<br />
<ol><li>Usar un microcontrolador para controlar el LCD y el <a href="http://www.elmelectronics.com/DSheets/ELM327DS.pdf">ELM327</a> para gestionar el bus comunicándome con él por el puerto serie del micro. Una solución algo costosa ya que el chip de ELM vale 19$ y además con un software cerrado.</li>
<li>Usar un microcontrolador <a href="http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=50&mid=10&lang=en&pageId=74">con un periférico de CAN</a> y controlar el LCD con ese mismo micro. Tendría que usar las librerías software de gestión del bus por lo que sería algo más complicado.</li>
<li>Usar un interfaz de CAN como el <a href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010406">MCP2515</a>. Me permitiría tener una solución hardware par la gestión del bus, y las funciones de enmascarar mensajes y de filtrado que hace este chip pueden ser muy útiles. Una opción muy probable a usar, ya que no dependo de ninguna librería software ni software propietario de terceros.</li>
<li>Usar algún módulo de microcontrolador con un añadido hardware para gestion del bus CAN, como es el proyecto <a href="http://www.arcan.es/">ARCAN</a> sobre la plataforma Arduino o este otro shield Arduino de <a href="http://www.skpang.co.uk/catalog/product_info.php?cPath=140_142&products_id=706">SKPang</a>. Soluciones de rápida implementación ya que todo el hardware y las librerías software está resuelto, pero al ser una solución de terceros y a tenerlo todo masticado no tendría mérito realizar el control, solo programaría el Arduino. A mi me gusta cacharrear más, aunque no descarto esta opción si me doy por vencido con el hardware.</li>
</ol>La evolución de este control viene cuando este primer escalón esté implementado, entonces será hora de ir pensando en una conexión con el futuro PC para solventar ciertos problemas. Primero es que el volante creo que está conectado directamente a la radio a través de un <a href="http://es.wikipedia.org/wiki/Local_Interconnect_Network">bus LIN</a>, <a href="http://pac-audio.com/productSearch.aspx?Make=Mazda&MakeId=21&Model=3%20Series&ModelId=1332&Year=2004&YearId=15">a la venta hay adaptadores para diferentes marcas de equipos de audio</a>, por lo que habría que añadir esta conexión para recuperar estos controles. Segundo es que estos controles tendrían que actuar sobre el software del PC, emulando un teclado o mediante algún chip de <a href="http://www.maxim-ic.com/products/interface/usb/controllers.cfm">periférico USB</a>, o si el propio micro tiene puerto USB también. Elegiré la opción que no me implique crear un driver de teclado en el PC o modificar en exceso la aplicación del PC para aceptar estos comandos.<br />
También existe la vía inversa de modo que mediante una aplicación en el PC pueda enviar mensajes al bus CAN, aunque creo que los softwares de carPC ya tienen conexión con el OBD para mostrar datos en pantalla, así que es posible que reutilice el cable OBD para ello si es posible, estaría bien que tuvieras un botón en pantalla para cerrar las puertas, o subir ventanillas, o incluso controlar el climatizador. O que la aplicación reaccionase a situaciones del coche como que cambie el skin a uno nocturno al encender las luces, o que muestre la cámara trasera al conectar la marcha atrás.<br />
Otra tarea del circuito controlador podría ser la de gestionar la iluminación, ya que el coche posee una regulación de la iluminación del cuadro de mandos y de la radio. Esta regulación no se si se realiza mediante una tensión en algún punto o través de mensajes de CAN, pero contemplaré que el circuito sea capaz de gestionarla y actuar sobre la retroiluminación del LCD o de la pantalla TFT, si fuera necesario.<br />
Así que con toda esta cantidad de conexiones y posibilidades podría legar a tener un controlador tal que así:<br />
<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="http://lh5.ggpht.com/_J3HQYBQpHW8/TO_hVSCUpVI/AAAAAAAAA0E/CxNZudRIDvg/control3.JPG"><img border="0" height="269" src="http://2.bp.blogspot.com/_J3HQYBQpHW8/TO_hVSCUpVI/AAAAAAAAA0E/CxNZudRIDvg/s400/control3.JPG" style="margin-left: auto; margin-right: auto;" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><a href="http://lh5.ggpht.com/_J3HQYBQpHW8/TO_hVSCUpVI/AAAAAAAAA0E/CxNZudRIDvg/control3.JPG">Diagrama control full equip</a></td></tr>
</tbody></table><div class="separator" style="clear: both; text-align: center;"></div><ol></ol>Así que el proyecto puede crecer mucho, es cuestión de las ganas que le ponga y sobretodo si implica una mejora sustancial en la usabilidad del sistema, ya veremos hasta donde llego.Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com0tag:blogger.com,1999:blog-5232453629350640481.post-16145539071216677142010-11-26T15:34:00.001+01:002011-07-06T10:12:55.788+02:00Introducción y primeros pasos.Recientemente he adquirido un Mazda 3 de segunda mano del año 2004, al cual ya tenía previsto meterle mano al equipo de música y sustituirlo por un carputer al estilo de los vistos en <a href="http://www.solocarputer.com%20/">SoloCarputer</a> o <a href="http://www.mp3car.com/">mp3Car</a> pero me encuentro con un gran problema para ello.<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="http://2.bp.blogspot.com/_J3HQYBQpHW8/TO6M8dsupFI/AAAAAAAAAzo/GS_P2Hs9dqQ/s1600/9ga96u.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="http://2.bp.blogspot.com/_J3HQYBQpHW8/TO6M8dsupFI/AAAAAAAAAzo/GS_P2Hs9dqQ/s320/9ga96u.jpg" width="240" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">El nuevo pequeñín</td></tr>
</tbody></table>Si sustituyo la radio de serie por una comercial de tamaño 2DIN o 1DIN pierdo por completo la funcionalidad del display, ya que este va conectado a la radio y no tiene su propia conexión al bus CAN. En este display se muestra la información de las emisoras de radio o del CD, pero también se muestra el reloj, el ordenador de a bordo (consumo instantáneo, consumo medio, velocidad media y km restantes con la gasolina actual) y la información del sistema de aire acondicionado y calefacción (velocidad ventilador, toberas de salida de aire seleccionadas, temperatura seleccionada y temperatura exterior).<br />
<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="http://2.bp.blogspot.com/_J3HQYBQpHW8/TO-PvVLvRwI/AAAAAAAAAz4/l1a24Fn8V6M/s1600/Mazda3radio.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="240" src="http://2.bp.blogspot.com/_J3HQYBQpHW8/TO-PvVLvRwI/AAAAAAAAAz4/l1a24Fn8V6M/s320/Mazda3radio.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">La radio con su display.</td></tr>
</tbody></table>Realmente toda esa información es muy útil en el coche, casi básica hoy en día. Para tener una conducción eficiente necesitas saber el consumo medio e instantáneo de la gasolina, y para poder controlar el climatizador pues como mínimo la temperatura seleccionada. Es por esto que la sustitución de la radio pasa por conservar a toda costa este display y sus funcionalidades.<br />
Otros han tenido el mismo problema y lo han solucionado o bien comprando la radio <a href="http://www.google.es/images?q=dss+nav+m3">DSS NAV M3</a> por unos 800€ (sistema caro y cerrado para lo que quiero) o incluso conservando la radio original en la guantera o <a href="http://www.torontomazda3.ca/forum/showthread.php?36959-Trip-Computer-w-Aftermarket-Deck-%28Any-Mazda-techs-out-there-%29">detrás de la nueva radio</a> y cableando el display hasta ella, soluciones poco elegantes para mi gusto. <br />
También hay gente que ha utilizado este display para mostrar mensajes <a href="http://www.rx8club.com/showthread.php?t=195323">interceptando las comunicaciones entre la radio y el display e insertando información proveniente del bus CAN </a> o bien <a href="http://www.madox.net/blog/projects/mazda-can-bus/">interpretando los mensajes de CAN que permiten mostrar texto en el display</a> y utilizándolos para <a href="http://www.mazdaspeedforums.org/forum/f13/interfacing-can-network-51173/#post453271">mostrar información del sensor de aparcamiento</a>. Todos estos ejemplos suponen mantener la radio original y sobrescribir la información que va al display de una manera u otra, por lo que me servirán de base para el diseño de un interfaz con el display.<br />
<br />
<object height="385" width="480"><param name="movie" value="http://www.youtube.com/v/CyD_FxV9RLs?fs=1&hl=es_ES"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/CyD_FxV9RLs?fs=1&hl=es_ES" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><br />
<br />
Para comenzar con todo esto lo primero será mapear correctamente todos los mensajes de CAN que pueda. Ya hay algunos que me han adelantado trabajo (<a href="http://www.madox.net/blog/projects/mazda-can-bus/">Madox</a>,<a href="http://www.torontomazda3.ca/forum/showthread.php?36959-Trip-Computer-w-Aftermarket-Deck-%28Any-Mazda-techs-out-there-%29&p=627217&viewfull=1#post627217">TorontoMazda</a>, <a href="http://forum.mazda6club.com/mazda6-atenza/123182-decoding-can-bus.html">Mazda6Club</a>). La idea es mapear cuantos más mensajes mejor, lo ideal sería algo tal que <a href="http://www.palmerperformance.com/support/supported_vehicles/mazda_enhanced.php">así</a> pero creo que supondría una tarea titánica, así que me conformaré con mantener la información actual y añadir otra información de interés que pulule por el bus CAN. Para ello he comprado un <a href="http://cgi.ebay.es/ws/eBayISAPI.dll?ViewItem&item=270664703662">cable OBD </a>basado en un chip <a href="http://www.elmelectronics.com/DSheets/ELM327DS.pdf">ELM327</a> de <a href="http://www.elmelectronics.com/">ELM Electronics</a> con la versión 1.3a. Este chip es un <a href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010274">PIC18F248 </a>con un software creado por ELM para interpretar el bus CAN y crear un terminal serie para interactuar con él a través del puerto serie utilizando comandos. Hay muchos <a href="http://www.customcarputers.com/product_info.php?cPath=58&products_id=154&osCsid=51fa89e042512bcf6f1c03b58e4a2db5">softwares que funcionan con el ELM327</a>, así que iré probando con cual me siento más cómodo.<br />
Otro tema sobre el bus CAN es que hay dos buses en el coche, uno de alta velocidad HS-CAN (1mbps, 500kbps?) del cual cuelgan las centralitas de seguridad, luces y de control de motor , el otro bus MS-CAN (125kbps, 256kbps?) donde se conectan las centralitas de confort e interiores. El cuadro de mandos hace de firewall entre las dos redes y permite pasar ciertos mensajes de un bus a otro para no saturar ninguno de los dos. En el <a href="http://www.obddiag.net/adapter.html">conector de OBD</a> hay especificados varios buses , pero en el caso de Mazda creo que solo me encontraré el bus CAN de alta velocidad, por lo que quizás para acceder al de confort tenga que interceptarlo detrás de la radio. También es posible que el bus del conector OBD se un tercer bus suma de los otros dos creado por el cuadro de mandos precisamente para poder diagnosticar todos las centralitas del coche. Espero aclarar todas estas especulaciones próximamente cuando le meta mano al coche con el portátil y el cable OBD.Abelhttp://www.blogger.com/profile/03918905783906338146noreply@blogger.com0