Saturday 13 September 2014

Controlling the electrics - Controlando el sistema eléctrico

Hi!

So far I managed to make work the command parser for the instruments board.  What does that mean?  Now I can send commands and make the board do stuff by herself rather than only providing sensor information (which is very important as well).

As I showed you in previous posts, I was using 2 arduino boards as emulators, one for emulating the Nistune (which I still use), and the other, for emulating the instruments board with a LCD screen to change the signals provided to the software.

With that said, what I'm on now is developing the real instruments board code, which reads real signals and do things.

I already implemented all signal reading (this is fairly easy), and I'm coding the relay control.  I started with the headlight control.  On itself is not very useful, but in combination with some sensors, it will be used for controlling the lights in automatic mode, like any modern car, make blink the brake lights when a sudden braking is happening and enable the emergency lights in combination of this event.

So what you are going to see in this video is a panel where I'm testing those functions that will be automatic at the end.



Hola!

Hasta ahora he conseguido hacer funcionar el parseador de comandos para la placa de instrumentos.  Que significa esto?  Ahora puedo enviar comandos para hacer que la placa haga cosas, en vez de únicamente leer sensores (que es muy importante también).

Tal y como he mostrado en posts anteriores, usaba 2 placas arduino como emuladores, una para emular la Nistune, y otra para emular la placa de instrumentos con una pantalla LCD para cambiar las señales enviadas al software.

Con eso dicho, con lo que estoy ahora es desarrollando el código de la placa de instrumentos real, que lee señales reales y hace cosas.

Ya he implementado todas las lecturas de señales (eso es bastante fácil), y estoy programando el control de relés.  He empezado con el control de luces.  En sí mismo no es muy útil, pero en combinación con algunos sensores, será usado para controlar las luces automáticamente, como en cualquier coche moderno, hacer parpadear las luces de freno cuando se produzca un frenazo y activar las luces de emergencia en combinación a este evento.

Lo que váis a ver en este vídeo es un panel en el cual testeo esas funciones manualmente, que finalmente terminarán siendo automáticas.



Wednesday 10 September 2014

Keep going!! Seguimos en ello!!

Good Afternoon!

After some days of hard work (at my real job), I have a whopping and juicy 4 days to give a push to the project.  Here in Catalonia is the "Diada", is holyday, and as usual in spanish culture, we fill the gap to have what we call a "bridge", kind of a long weekend.

Some days ago I was tinkering a bit with the electrics, at the end of the post there are some pictures and videos.

Some pictures and videos of what I have so far.

----

Buenas tardes!

Después de algunos días de duro trabajo (en mi trabajo de verdad), tengo unos impresionantes 4 días por delante para darle un empujón al proyecto.  Aquí en Cataluña tenemos la Diada y he aprovechado para hacer puente.

Algunos días atrás estuve trasteando un poco con la electrónica, aquí dejo algunas fotos y vídeos de lo que hay de momento.
----

This is the harness to connect the Arduino Mega and the relay boards
Este es el cableado entre la placa Arduino Mega y las placas de relés.



Here the testing with the Arduino connected
Aquí el testeo con el Arduino conectado.




Here I'm testing the optocoupler IC, just to not burn the Arduino with the 12v car signals.
Aquí estoy probando el integrado del optoacoplador, para no quemar el Arduino con los 12v del coche.



And there are 12 optocouplers all together, front and back.
Y ahí 12 optoacopladores juntos, desde delante y detrás.





Tuesday 2 September 2014

Another screen, for the HUD - Otra pantalla, para el HUD

Hi!

It turns out that I was given that kind of that multimedia double din chinese radios to try fixing it, but it wasn't possible to repair, so one day I was bored I decided to dissasemble it and recovered the TFT panel, looking on the internet I found on eBay a seller that supplied the part for exactly this model of panel with a VGA input at 23€ with free shipping (lol), I ordered it and yesterday it arrived.

This is a first test:



I thought that it could be interesting using it to make a Head Up Display following the indications that this chap kindly shared with all us:

http://bwongtech.blogspot.com.es/2013/02/how-to-build-hud-for-your-car.html

Cheers!!

--------------------------------------------

Buenas!!

Resulta que me dieron una radio multimedia de esas chinas doble din para intentar repararla, pero no tenía arreglo posible, así que un día que me aburría me decidí a desmontarla y recuperé el panel TFT, resulta que buscando por eBay encontré un vendedor que me suministraba una placa para exactamente ese modelo de panel y con entrada VGA por 23 euros con portes gratis (xD), la pedí y me llegó ayer.

Esta es la prueba de funcionamiento:




He pensado que puede ser interesante usarla para fabricar un Head up Display según las indicaciones que aquí este amigo ha compartido amablemente:

http://bwongtech.blogspot.com.es/2013/02/how-to-build-hud-for-your-car.html

Saludos!!!!!

Monday 1 September 2014

First approach of the project

Hi, it's Raul again.

I just wanted to share some progress about the project I'm developing for modernizing the electrics of the car, there you have some videos showing it, sorry if they are not professional, they are just taken in my home desk with a cellphone :)

The project is based on a Nistune Board Type 1 as interface to connect to the old CA18DET ECU, because is pretty flexible, rather easy to install, just some soldering and a bit of handwork and doesn't need to rewire anything in the car, so you can avoid tinker with the main engine electrics.

For the signals the ECU is not processing I'm about to use an Arduino Mega board, because it has lots of inputs and outputs, so with it I can read all the analogic signals and control 2 relays board all in 1 board.

To connect to the arduino and the Nistune board I treat them as virtual serial ports, which from the point of view of development they are just like old fashioned RS232 ports.

This management I do from a backend developed in nodejs, that gets the data feed from the usb's and forward it through a socket connection to the user interface, made in Adobe Air (Flash for desktop).

Here is a Google Drive document where I write the ideas I'm having to implement, sorry because is the only part of the project which is not available in English, but because this is just a tool to keep my ideas in order is better if I keep it in my mother tongue. But anyway you can use Google Translate if you want to have a look.

https://docs.google.com/document/d/1AwZX-mdnj1IHeq1DAOo_CM5cwZHnmjrlkdxRdrDBens/edit

------------

Buenas! Raúl otra vez.

Sólo quería compartir algo del progreso del proyecto que estoy desarrollando para modernizar el sistema eléctrico del coche, ahí tenéis algunos videos mostrandolo, disculpad si no son profesionales, están tomados en el escritorio de mi casa con el teléfono móvil.

El proyecto está basado en una placa Nistune Type 1 como interfaz de conexión a la vieja ECU del CA18DET, porque es muy flexible, relativamente fácil de instalar, sólo un poco de soldadura y un poco de bricolaje y no necesita recablear nada en el coche, así que podéis evitar trastear con el sistema eléctrico del motor.

Para las señales que la ECU no procesa, usaré una placa Arduino Mega, porque tiene un montón de entradas y salidas, asi que puedo leer todas las señales analógicas y controlar las dos placas de relés, todo desde una única placa.

Para conectar al arduino y la Nistune los trato como puertos de serie virtual, que desde el punto de vista del desarrollo son como los puertos RS232 de toda la vida.

Esa gestión la hago desde un backend desarrollado en nodejs, que recoge los datos de los puertos usb y lo reenvía a través de una conexión de socket al interfaz de usuario, hecho en Adobe Air (Flash para escritorio).

Aquí un enlace a un documento google drive donde voy poniendo las cosas que se me van ocurriendo para añadir al proyecto.  

https://docs.google.com/document/d/1AwZX-mdnj1IHeq1DAOo_CM5cwZHnmjrlkdxRdrDBens/edit 


Saludos!!