Slashdot Mirror


Sensors for Automobile Computers?

Bombcar asks: "I'm going to be installing an EPIA mainboard in my car, using a DC-DC power supply. It is mainly for playing music, but it has the potential for so much more. I know I can get LCD displays, and I know that various sensors are made for automobiles, but I want to combine both these with the computer. Most car sensors are analog, so does anyone know of an easy way to interface with analog (and perhaps some digital) sensors? Anything used would have to be able to stand up to the rigors of automobile use. The EPIA board has 4 serial ports, a parallel port, and some USB ports, along with a PCI slot. I plan to use this for display purposes only (not control any important vehicle functions), but am also leaning towards some 'fun' improvements, such as playing certain songs when the pedal is floored."

40 comments

  1. Requirement by Txiasaeia · · Score: 2, Funny
    ..."am also leaning towards some 'fun' improvements, such as playing certain songs when the pedal is floored."

    Has to be Danger Zone, Kenny Loggins. I've gotten more speeding tickets with the Top Gun soundtrack than I'd care to mention...

    --
    Condemnant quod non intellegunt.
    1. Re:Requirement by presearch · · Score: 1

      sad.

    2. Re:Requirement by Tactical+Skyrider · · Score: 0

      bwahahahaha that's excellent... if your car has firm ride control, you could play white zombie when it's switched on... the Gone in 60 Seconds soundtrack is pretty good too...

      i think another good addition while you're playing, would be a "police" setting. it'd turn down your audio system and disable your brake lights if you're traveling over 30mph, as well as turn on your firm ride control to reduce nose dipping. and if you connected that somehow to your radar detector....

      --
      In Soviet Redmond, software programs you!
    3. Re:Requirement by Palshife · · Score: 2, Funny

      I knew a guy who got pulled over for doin 95 in a 65. When the cop got to his window he heard the Knight Rider theme pumping through the system.

      He let him go. We called him Knight Rider ever since.

      --
      Attention deficit disorder is a complicated issue, spanning several major... HEY LET'S GO RIDE BIKES!
    4. Re:Requirement by n9hmg · · Score: 1

      *COUGHwussCOUGH*
      "Call Me the Breeze", but only in the presence of strong lateral and vertical acceleration (think Buck Creek Pike, from Mount Pleasant to 5-points, just north of Mooreland, IN), else "Rocking down the Highway", "Ride of the Valkries", or the "Star Spangled Banner".

    5. Re:Requirement by ldspartan · · Score: 1

      "Radar Love" by Golden Earring. Totally impossible to drive slowly to.

      --
      lds

    6. Re:Requirement by tvsjr · · Score: 1

      Good choices, all. But the final choice must be Foreigner's "Rev on the Red Line".

  2. wilhelm fp!!! by Anonymous Coward · · Score: 0

    aaeeeeee!!!!!

    1. Re:wilhelm fp!!! by Anonymous Coward · · Score: 0

      anti-slash.org is my favorite site

  3. MegaSquirt by toygeek · · Score: 1

    You might want to check out the web pages for the MegaSquirt EFI controller, it tells tons of info about how to interface with the cars EFI system. For example, you'd have to use a A/D converter and hook into the Throttle Position Sensor in order to sense when the pedal is floored, and then play a certain song.

    Its do-able for sure.

    Do a google search for 'megasquirt' and you'll come up with tons of hits. They have an excellent mailing list too :)

    1. Re:MegaSquirt by hitzroth · · Score: 1

      Why do I only get porn sites when I search?

      --
      In mathematics, one does not understand things, one merely gets used to them.
      --VonNeumann
    2. Re:MegaSquirt by Kevin+Burtch · · Score: 1


      Try using google, and typing "megasquirt" (one word, not two).

      --
      - Preferences: Solaris 10 (servers), Ubuntu (desktops), Solaris 11 (personal servers) -
    3. Re:MegaSquirt by LordMyren · · Score: 1

      wow... these people actually exist!

  4. What Year is the Car? by GTRacer · · Score: 1
    You might be able to get an OBD-I or OBD-II interface. Like the techs use to troubleshoot with. OBD-I should be pretty cheap and I think it goes up to 1998 or so. OBD-II was mandated for late-models, and has far more data available.

    It also costs more...

    If these don't work, check into Dinan Performance or one of the other "chip tuners". I'm pretty sure most make kits that'll connect a laptop to the ECM for testing and config purposes. Your board should work fine with these apps.

    GTRacer
    - No warranty express or implied...

    --
    Defending IP by destroying access to it? That makes sense, RIAA/MPAA. Go to the corner until you can play nice!
    1. Re:What Year is the Car? by karnal · · Score: 2, Interesting

      That's exactly what I was thinking -- get a converter from ODB(1 or 2) to serial. You could then poll for any data you would want... (play Nelly's "hot in heere" if the engine coolant is low, etc) It would make for a heck of a fun project, if you're in to tearing apart stuff.

      Aside from that, however, if you wanted to tinker and not spend any money, why not just put a switch either under the gas pedal ( but not impeding travel) or near the intake (where the TPS is anyways) so you don't drag down any of the on-board sensors.... wouldn't want to skew any of the information sent back to Master Control (the ECM...)

      --
      Karnal
  5. This is the first thing I'd connect... by HotNeedleOfInquiry · · Score: 1
    An OBD-II scan pod. It connects to the On Board Diagnostics jack in your car and lets you display trouble codes, engine sensor readings and graphs of things like mass air flow, spark advance, coolant temp and rpm. http://www.ghg.net/dharrison/obdscan.html

    --
    "Eve of Destruction", it's not just for old hippies anymore...
  6. look here by austad · · Score: 4, Informative

    Search the mailing list archives at dsm.org. I seem to remember some people talking about this, specifically, someone had found a small box that plug in via USB if I remember right, and it had like 24 analog inputs and 8 digital. I think there were even linux drivers for it.

    Additionally, if you're car is OBDII compliant, you could order a cable and use FreeDiag to pull the information. All of those sensors feed back to your car's computer anyway, why try to duplicate the data collection functionality when it's already there. Plus, you won't have to worry about skewing the signals received by your ECU when you start tapping wires into things. You won't have to worry about finding the specs on each sensor either (like 0-1 volts == 0-1200 degrees)

    I was considering doing a similar thing to you awhile back, and freediag seems like the best way to collect this data. If you manage to get something working, you should start a sourceforge project for it. I'd definitely be willing to contribute.

    Also, a couple of years ago, some company came out with an 8" TFT touchscreen that plugged in via USB. They had released a driver for linux that allowed you to run an X-server on it. It was $300 or so. Does anyone remember the name of this thing? It would make an excellent display to mount in the dash.

    --
    Need Free Juniper/NetScreen Support? JuniperForum
    1. Re:look here by Gigs · · Score: 1

      I believe you're talking about the Touchscreen that is made buy a company called Massworks.

      http://www.massworks.com/

      But alas they seem to have stopped producing them!

  7. Try the superbird by gmhowell · · Score: 2, Informative

    Given the choice, I'd rather have the Superbird. The Charger was a bit of barely functional body kit. The Superbird, while superficially similar, was quite a different beast under the hood.

    Unfortunately, NASCAR, yet again, buried their heads in their ass and banned wing cars. Can't have the MOPAR crowd beating up on GM too much. These are the same asshats who got hemi headed engines and OHC engines banned. And hence we have the technological backwater that is NASCAR. Way to go.

    --
    Jesus was all right but his disciples were thick and ordinary. -John Lennon
  8. ARGH! by Ianoo · · Score: 0

    No offense but I wouldn't want to try passing you in the fast lane! Various governments are banning mobile phones whilst driving for a reason, God knows what a distraction a PC running Linux would be for a driver!

    Officer: Sir, could you please explain how you managed to swerve across three lanes of traffic in the rush hour?!

    Me: Of course! I was just trying to reload my kernel radio transmitter driver so I could continue listening to "Life in the Fastlane". Do you know how difficult typing "rmmod ...; modprobe ...; xmms" whilst driving at 55?!

    Officer: Step out of the vehicle please...

    Me: I would if I could but it looks like my Linux-powered central locking has just segfaulted...

  9. Hack needed for the United Kingdom by Dark$ide · · Score: 2, Funny

    You'll need to hack your software for the UK. You wouldn't want the UK Police http://slashdot.org/article.pl?sid=03/12/30/045224 2 to install FreeBSD http://bsd.slashdot.org/article.pl?sid=03/12/30/13 2225 while you weren't looking.

    --

    Sigs. We don't need no steenking sigs.

  10. Summit Racing by vasqzr · · Score: 1


    One of the car parts catalogs would be a good place to start. If your car isn't a newer, computer controlled car, you'll have to get digital sending units for your oil pressure, etc. Then just wire them up to your PC through a serial controller.

    1. Re:Summit Racing by Micro$will · · Score: 1

      They may be for digital guages, but it's still an analog signal. In the case of an oil pressure sender theres a small bourton (sp?) tube attached to a rheostat or potentiometer, and with temperature senders its a cheap thermocouple. The only thing in cars that could be called digital (besides the computer) would be the switches and idiot lights (12V = on, 0v = off).

  11. Lots of Sensors from OBD-II by mcowger · · Score: 2, Informative

    All cars produced after 1996 are required to support something called OBD-II (On Board Diagnostics II). This is the computer that causes your check engine light to come on, and its the computer that reports to the mechanic what the cause is. You can buy interfaces for this system that lets you monitor all sorts of engine sensor data, as well as things like throttle position, calculated load, etc. There are plenty of companies thats make serial interfaces to this system....www.digimoto.com is one that I like. Even cooler, the law requires that the port be accesssible within 3 feet from the driver!

  12. Automotive Electronics Engineering by ka9dgx · · Score: 2, Insightful
    Cars are VERY hostile to electronics. You've got the pulse noise from the ignition, a power supply that can vary from 0 to 15+ volts during normal operation, and environmental extremes that go from whatever the coldest night you encounter, through more that 20 degrees C over the hottest noon.

    Needless to say, it sounds like you're going to take the prudent choice and let someone else do the engineering. Try not to be surprised when your system has to deal with the oddities.

    Good luck!

    --Mike--

    1. Re:Automotive Electronics Engineering by ldspartan · · Score: 1

      Don't forget vibration! Computers hate it when everything socketed just falls out.

      --
      lds

    2. Re:Automotive Electronics Engineering by TheTomcat · · Score: 1

      through more that 20 degrees C over the hottest noon

      where do you LIVE?!? I live in Canada (Montreal) and it certainly gets hotter than 20C; ESPECIALLY in my car (greenhouse effect). I'd guess pushing 60C.

      S

    3. Re:Automotive Electronics Engineering by ka9dgx · · Score: 1
      Perhaps I didn't make myself clear.

      I meant to say that it could reach the maximum ambient + 20C.

      --Mike--

    4. Re:Automotive Electronics Engineering by TheTomcat · · Score: 1

      ahh.. that makes much more sense (especially, in line with my pushing 60C comment (-: )

      S

  13. Microchip Inc. PICs by n1ywb · · Score: 1

    PICs have loads of onboard A/D converters. There are lots of reference designs available. Yes you have to program them in assembly but it's actually very easy to learn as there are only something like 30 instructions. Programmers are cheap, the devlopment environment is free, and Microchip pretty much gives the chips away. Anyway it would be a good project for learning a lot of electronic and computer engineering.

    http://www.microchip.com

    --
    -73, de n1ywb
    www.n1ywb.com
    1. Re:Microchip Inc. PICs by Geccie · · Score: 1

      I found the OOPIC to be a bit easier. You can program it in C (ish). Its based on the 16F877 / 16874 PIC. The bare chips are available at Superdroid robots for $21 and the schematics are available at www.oopic.com (or www.oopic2.com) all of the hard stuff has been coded including I2C, timers, nav sensors, ranging modules. Here is the bare processor link. There are also starter kits. Use a 40 pin ide cable for off-board development. http://www.superdroidrobots.com/oopic_products_acc .htm#OOPIC_II_Chipset

  14. WAY OT: Superbirds by Anonymous Coward · · Score: 0

    In the days of the "Winged Warriors", Ford was the competition. It was a period where GM wasn't involved in stock car racing much. Also the cars exceeded tire technology of the time.

    That said, NASCAR was always opposed to one company dominating the circuit. And they did just that. Big time. So bye-bye Winged Warriors. This was probrably a relief to Chrysler, since they lost money on the cars, and by the time the Superbirds saw production, Chrysler had a hard time selling them. There was a Hemi Superbird in Popular Hot Rodding that the owner bought from a dealer after the car sat for 2 1/2 years in the dealer's warehouse because he couldn't sell it! Can you imagine?

    OHC engines were banned by NASCAR in the early to mid 60's. Chrysler developed a 4 valve per cylinder Hemi, which never saw production, to combat Ford's SOHC, which did. In anticipating an OHC ban Chrysler even developed a 4 valve per cylinder pushrod motor. Of course that didn't make production either.

  15. Re:Try the superbird (Completely OT) by buzzbomb · · Score: 1

    > I'd rather have the Superbird. The Charger was a bit of barely functional body kit.

    Not quite. Actually, while the cars look almost identical, the Charger Daytona was slightly more aerodynamically "slippery." In fact, last time I heard, the Daytona still held a number of speed records for production cars. The Superbird, however, seems to be more visually appealing to most. Same engines available as well...except that the Superbird had the added 440/6BBL as an option.

    > Unfortunately, NASCAR, yet again, buried their heads in their ass and banned wing cars. [...] And hence we have the technological backwater that is NASCAR.

    Agreed. They, along with everyone else, have forgotten what the "SC" in "NASCAR" stands for. It's not worth watching. They have crippled the damn cars even more since 1971.

  16. How old is the car? by barzok · · Score: 1
    If it's a '96 or newer, start by interfacing w/ the OBD-II system. There should be a diagnostic port under your dash (typically directly below the sterring wheel, between your knees). Schematics for the wiring, etc. online are readily available, and there are several pieces of software out there you can use to read it.

    Why wire up your own sensors when the car has them already available to you?

  17. Re:Try the superbird (Completely OT) by gmhowell · · Score: 1

    I think you may be right WRT superbird vs. charger daytona. I'm not as up on my old Mopar lore as I used to be. Had to make room somewhere for motorcycle specs.

    --
    Jesus was all right but his disciples were thick and ordinary. -John Lennon
  18. Look at OpenDiag by LesFerg · · Score: 1

    Like everyone said, OBD-II was installed in cars from 1996 onwards. The OpenDiag project provides an interface to this, I believe via serial port.

    [http://www.opendiag.org/]

    Les.

    --
    If I had a DeLorean... I would probably only drive it from time to time.
  19. Re:Try the superbird (Completely OT) by Kevin+Burtch · · Score: 1


    Actually, aerodynamically - they're about identical.
    The only real difference was to move the air intake for the radiator from the front (on the '69 Daytona) to the underside of the nose-cone (on the '70 Superbird). This was to improve cooling, as the Daytonas had some serious cooling problems at high speeds.

    --
    - Preferences: Solaris 10 (servers), Ubuntu (desktops), Solaris 11 (personal servers) -
  20. dashpc.com by bergeron76 · · Score: 1

    dashpc.com is the headquarters for linux car computing enthusiasts. The site seems to be down right now, but if you google for dashpc you can find a ton of info. A cached link to the discussion forum can be found here.

    --
    Don't think that a small group of dedicated individuals can't change the world. It's the only thing that ever has.
  21. KIT by TheDarkRogue · · Score: 1

    Another thing you might want to try if your up to it is voice control. I've never played with any of the speech packages for linux, but have had great success with the MS Speech SDK and getting my computer to respond to certian commands ("Bitch, Open Notepad", "Bitch, Open eMule"), and am planning to implement something similar in my next car (I'd use 'Car' instead of 'Bitch' though). Also, the use of TTS for things like warnings ("Change the Oil Mother Fucker"). At home I have a push button on the mic so that it doesn't get pickup background noise, figured to place it to the left of the stearing wheel with the mic above the visor. Another idea was to hook up a GPS to the computer (Thx for the link to the DC-DC PSU, I was thinking of using a damned inverter) and having some sort of in car navigation system. The network port can easilly be hooked up to something like the LinkSys WET54G. With and the GPS, you could be war driving when ever your out, when at home you can move new MP3s to the cars computer for listening to, 'apt-get update', upload your wardriving data, what ever. While your at it, get a nice red LED bar for the front of the car, you'll be set.

    --
    (Score:0, Interesting)
  22. Is it really a performance car? by mnemoth_54 · · Score: 1

    If so, then maybe look at replacing the stock computer alltogether. Haltec and Autronic make some very nice replacement computers for overclocking your car (so to speak) that have built in com ports and datalogging capabilities. Your really only need to go this route if your trying to get a lot out of your engine, but certain applications it's the only thing that will do (500+hp 1.3 liter rotaries! fun fun!!)