Saturday, March 20, 2010

Connected and Alive

This is probably one of the most important moments in my project's life so far.

In a few words, the dashboard now reflects the exact state of the simulation in Live For Speed, covering for the moment only the control lights.

So, this is what I've done recently.
First, I've ported the original software to the Arduino language and flashed it to the new board. Hooked it up to the dash interface, and voila! The lights were flashing in sequence just as before.
This encouraged me to go to the next step, so I modified a C# code that I had previously found on the web, which connects to LFS using OutGauge, to acquire live data on a UDP connection. I modified this program to send all the data through a serial port to the Arduino board.
The updated Arduino software continously reads data from the serial port (simulated over USB), interprets it, and sends the corresponding signals to the dash interface in order to light up whichever control lights are on in the game.
All of the lights are working, such as turn signals, hazard lights, full beam, traction control, parking brake, shift light, and red line.

Here's the thing in action.

6 comments:

  1. nice job!!

    I am working on a similar project using an arduino diecimila, could you send me your code (to convert UDP to serial)?

    i am doing it for a glider simulator condor soaring.

    thanks a lot

    g_remia

    g_remia@hotmail.com

    ReplyDelete
  2. Sorry,What is the device you place between arduino and the cluster ?? Is it for moving correctly the rpm and tacho ? Is it possible to having the wiring diagram of this device ?? I'm tryng to do a similar project.

    Thanks a Lot
    Sevenik

    ReplyDelete
  3. Hi,

    can you send me the program that you use to connect arduino to lfs?

    Thanks

    ReplyDelete
  4. Alex, I need help for connect my BMW E36 tachometer in PC, but I don't have the schematic plans for chip, and I need a tutorial.
    Please, I need help. Contact me in vmo_7@hotmail.com

    ReplyDelete
  5. hey people. it's all on google.
    first search pinout for you'r cluster.
    then write some simple C# or VB.NET code with LFS_External to get OutGauge Working, and from there send data to arduino.
    it's all up to you. i'm currently working on that project too.. (e34 1989 cluster) so far i have needles moving. and next thing is to get lights showing up ;-)

    if you want some help then write to me :
    mrmaxx93@hotmail.com


    Martin

    ReplyDelete