OBD-2 Input to the PIC


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    30

    Default OBD-2 Input to the PIC

    Hi all!

    I need to read some infos in a car, like the Fuel Level, Vehicle Speed, and other cool things, i need to input those in a PIC, there's an easy way to do this via OBD-2 in PIC BASIC Pro?

    (The car is a FORD that use the PWM interface)

    There's also another problem, i need some documents about the system that ford uses in OBD-2 via PWM, cause i've never worked with it, (But i've already studied PWM)

    Could you help me, even only giving me some links about that?

    Thank you!

    Luca

  2. #2
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I've created several devices that use OBDII. The hard part is coding the communications protocol and designing the communications circuit from scratch. In addition you would need to purchase the SAE standard for OBDII to even get started.

    That being said there is a simple way to communicate with your car. A company called Elm Electronics sells ICs that handle all the communications with the vehicle and spits out the results to your PC or in your case PIC in ASCII. This frees your PIC up to do what you want it to do and speeds development.

    Go to http://www.elmelectronics.com/ and check out the ELM320 which is PWM or the ELM327 which is the all-in-one chip. I personally own every OBDII chip and love them, they work well.

  3. #3
    Join Date
    Mar 2007
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    Ok, but they are simple pics from microchip, right?

    so there's a way to code a software for a pic to do that,

    anyway, with that chip i can use all of the function of OBD?

    i can use the normal software for linux or windows that works with the serial obd?

    thank you!

    Luca

  4. #4
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by oslinux View Post
    Ok, but they are simple pics from microchip, right?
    so there's a way to code a software for a pic to do that...
    True they are just pics with code. You're welcome to spend the hundreds of dollars to buy the SAE standards, and then hours and hours creating code. I can say from personal expirence its a major task. I found that spending $14 on a device the handles all the communications was money well spent. Plus by changing Elm chips I can "talk" to different cars without rewriting my code.

    with that chip i can use all of the function of OBD?
    Depends what you mean. The product was designed to be an ODBII diagnostics tool. With the chip you will get all the normal engine data and diagnostic codes. The following site has some more information about the chip plus some free software and schematics. http://scantool.net/

    i can use the normal software for linux or windows that works with the serial obd?
    Not sure what you mean. If you're asking if you can tie your computer directly to the OBD buss the answer is no. There are currently 4 OBDII communications protocols all with very different communications methods but none are RS232 or TTL.

  5. #5
    Join Date
    Mar 2007
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by DynamoBen View Post
    True they are just pics with code. You're welcome to spend the hundreds of dollars to buy the SAE standards, and then hours and hours creating code. I can say from personal expirence its a major task. I found that spending $14 on a device the handles all the communications was money well spent. Plus by changing Elm chips I can "talk" to different cars without rewriting my code.
    Ehhmmmmm... i guess you're right!

    Quote Originally Posted by DynamoBen View Post
    Depends what you mean. The product was designed to be an ODBII diagnostics tool. With the chip you will get all the normal engine data and diagnostic codes. The following site has some more information about the chip plus some free software and schematics. http://scantool.net/
    Ok.

    Quote Originally Posted by DynamoBen View Post
    Not sure what you mean. If you're asking if you can tie your computer directly to the OBD buss the answer is no. There are currently 4 OBDII communications protocols all with very different communications methods but none are RS232 or TTL.
    No, i meant "I can connect the serial output from the elm chip to a PC and then use a standard software for obd over serial to read the data?"

    thank you for your help!

    Luca

  6. #6
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    No, i meant "I can connect the serial output from the elm chip to a PC and then use a standard software for obd over serial to read the data?"
    Yes, the chip is designed to be used with something as simple as hyperterminal. No special software required.

  7. #7
    Join Date
    Mar 2007
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    i've already buyed two ELM320, (One SMT and one TH),
    but in the net i've found this:

    http://www.sterntech.com/obdii_pic.php

    it's an:
    " Open source hand held OBDII code reader and scanner "

    " PIC 18F8680 based open source code reader. "

    there you can find the source, also.

    maybe it's useful!

Similar Threads

  1. Midi, Interrupts and Pic better than SX28?
    By Lajko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th September 2008, 00:26
  2. PIC to PIC cooms using PICDEM 2 Plus
    By blake in forum General
    Replies: 0
    Last Post: - 28th March 2006, 23:50
  3. First pic controls #2.....
    By robert0 in forum Schematics
    Replies: 0
    Last Post: - 26th March 2006, 09:51
  4. Output PIC module
    By freelancebee in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th September 2005, 20:10
  5. How can i control pic input pins order?
    By tanero in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th August 2005, 12:46

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts