Basic stamp and OBD-2
Robban
Posts: 124
Hi!
I am planning to attach a OBD-2 (Car diagnostic computer) to a basic stamp 2.
Whith the OBD-2 you can read errormessege..diagnostic of the car like speed,rpm,temp etc by attaching a laptop by the seriell port to the contact in the car.
I would now like to connect a basic stamp and "mask" out several values.
has anyone tried this?
regards
Robban
·
I am planning to attach a OBD-2 (Car diagnostic computer) to a basic stamp 2.
Whith the OBD-2 you can read errormessege..diagnostic of the car like speed,rpm,temp etc by attaching a laptop by the seriell port to the contact in the car.
I would now like to connect a basic stamp and "mask" out several values.
has anyone tried this?
regards
Robban
·
Comments
If you are building a portable device with the BS2 to bypass the need for a laptop, you'll need to write 2 programs - one to interface the reader & BS2, and one to interface the BS2 & computer.
But generally speaking, if you're dealing with a standard serial connection, you should be able to do it. The more info you have about the device you're using, the easier it will be to build the interface.
As far as I am aware, no PBASIC Stamp can read any OBD codes directly. Usually one uses an OBD to RS-232 converter, and then one reads the output from the RS-232 converter. There are a number of OBD interfaces available depending on the make/model of the vehicle, as each is different, depending on the original encoding. To my knowledge there is no Universal OBD to RS-232 interface.
If you need more specific information, I can probably dig it up for you.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
http://www.elmelectronics.com/connect.html#ELM320
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
I'm foggy on CAN, but interested.· Is the OBD2 a special instance of CAN implementation?· Could the chips from Elm Electronics be used to communicate on any CAN bus?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Basic stamp Newbie
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
Is it possible to program the stamp to retrieve several data?
saw your post in the duplicate thread....
You purchased the ELM IC for OBD2 interfacing....there is an associated circuit that goes with the IC...did you build this?
You should be able to connect a laptop and through a terminal program (Hyperterminal) you should be able to get some communications with the IC (some sort of prompt...can't quite remember).
This is the first step....the rest of it is serial handling between the stamp and the IC. Remember that nothing is buffered, so while you're processing a serial string in the stamp, you could be missing information. You might look at the propellor or even just an SX to get the speed advantage to 'hopefully' avoid missing data.
I bought my ELM IC....built the interface circuit and connect it to my laptop. But I never did get around to plugging it in to my Jeep (winter had arrived and the project got shelved)....
It's still shelved and not likely to make it out as the crappy weather is here for us up north!
Have you done much for Stamp programming?
Go through the sample code and free online documents/tutorials. There's a wealth of information there to help you get started (although not directly related to your project).
If you have more than one stamp, set up one stamp to output a serial message....then work on the 2nd stamp to try and ingest it and do something with it and then go back for more. Gets your timing down.
Let us know how you do!
cheers
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."