Important note: DO NOT mess around with the data busses in your car! The car used in this Example got special ecu's, seperate can busses etc. ..you've been warned. ;>
A little fun project as an example for the usage of the Canbus. The distance to an infrared sensor is simply translated to a gas pedal position.
The mbed used in this example is connected to a separate (non standard) canbus in the test car (VW Golf GTI). A special ecu allows to control the gas pedal based on the received can messages. A Sharp infrared distance sensor (2D120X F 69) is connected to an analog-in port. (Note: The usb is only used as power supply for the mbed.)
For further technical reference on the connections, used can transceiver and how to get your mbed on the can bus, see CanBusExample1.
Kevin, I wondered if you could tell me how you connected your transeiver to the CAN Bus? Looking at CanBusExample1 it looks like you just connect the transeiver to the CAN_H and CAN_L pins and you are set. Is this how you have done it? I understand you state you are using a seperate non-standard CAN Bus, just I am just curious how you have it connected.
In the test car are more than just the default/factory-equipped canbusses. There is an additional (/special) ECU (which isn't there in a normal car) connected to a seperate can bus, which takes care of controlling the gas pedal.
So in a regular / default / factory-equipped car, you can't contol the gas pedal over can. (The Gas pedal is wired discrete to the engine ECU (and the gas pedal position is NOT send via any can bus).)
The can IDs/messages used in the code example are only for this test environment and the seperate/non-default can bus. So i hope nobody comes to the idea connecting his/her mbed to any of the car can busses!
Hope i could help you.. ?
Don't hesitate to ask if anything is unclear. (btw: I may need sone days to answer)
i am working in a project for my final project in B(eng). which is a vehicle black box. I am going to take some readings from an OBDII but in the momment i can access on the common sensors. is there any way which allows me to get more!!
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
You have to type text then highlight to add a link. I put something in the suggestions post.