09-17-2009, 03:14 PM
|
#501 (permalink)
|
EcoModding Lurker
Join Date: Apr 2009
Location: Debolt, Alberta
Posts: 78
Thanks: 1
Thanked 2 Times in 2 Posts
|
From the Arduino IDE, select File->SketchBook->Open...
Select the .pde file you want to open.
The file will load.
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
09-18-2009, 01:34 AM
|
#502 (permalink)
|
EcoModding Lurker
Join Date: Jun 2008
Location: ohio
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
|
Thanks, I got it loaded just fine. I was just curios what program you guys are using to write the code (like C++ or something)
|
|
|
09-18-2009, 08:07 AM
|
#503 (permalink)
|
EcoModding Lurker
Join Date: Apr 2009
Location: Debolt, Alberta
Posts: 78
Thanks: 1
Thanked 2 Times in 2 Posts
|
You can use any text editor to write or change the code: notepad, codewrite, Arduino IDE or any other ascii editor you have. Do not use a program that formats the text beyond whitespace formatting (font size etc) like Microsoft Word or Word Perfect.
Compiling must be done with the Arduino IDE (compiled specifically for the board type and chip you're putting it on).
The language that the Arduino IDE uses is a version of C++ for embedded devices.
|
|
|
09-19-2009, 11:04 AM
|
#504 (permalink)
|
EcoModding Lurker
Join Date: Sep 2009
Location: Mill Valley, Ca US
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
Interested in all the work that is going on. I just received my mc33290. I am interested in working on a similar project and wanted to see the response from those of you working on the OBDuino. I would essentially just like to have a way to plug my laptop into the OBD port and using a terminal or other application directly send the commands via arduino+mc33290.
So far I have written a small sketch which will bitbang the 5 baud 0x33 command, then Serial.begin(10400) then i am hoping that after that has happened I can just use a serial terminal over the arduinos ftdi pins and see the response from my car. I'll be testing this soon.
|
|
|
09-19-2009, 11:40 AM
|
#505 (permalink)
|
EcoModding Lurker
Join Date: Apr 2009
Location: Debolt, Alberta
Posts: 78
Thanks: 1
Thanked 2 Times in 2 Posts
|
Your project sounds interesting. It should be doable, but you need to investigate the Arduino running TWO serial connections. One for the car (the 33290 chip) and the other for the USB port. Right now both share the same pins, which just won't do. It's doable, I think I remember seeing an article on it somewhere in the Arduino website (I think that's where I saw it).
Good luck on your project, have fun, and keep us posted...
It may make a great debugging tool for people who have trouble getting the car communicating.
|
|
|
09-19-2009, 06:52 PM
|
#506 (permalink)
|
EcoModding Lurker
Join Date: Sep 2009
Location: Mill Valley, Ca US
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
I've made some progress. I have standalone ftdi breakout board which i connected to two arduino pins (7&8). I then use the arduino to communicate with the car, it issues commands when it receives messages from my computer.
I have successfully extracted the iso initialization code, and it works, I get the appropriate bytes back from my car. I have tried to rip apart the iso_write_data function so that I can simply issue the hex codes, but it looks like the codes need to be wrapped in a packet with a header and so on. Is there more information on this?
|
|
|
09-20-2009, 11:07 AM
|
#507 (permalink)
|
EcoModding Lurker
Join Date: Apr 2009
Location: Debolt, Alberta
Posts: 78
Thanks: 1
Thanked 2 Times in 2 Posts
|
If you just want PID data, then the iso_write_data() function should suffice as is. Just look at the function get_pid() to see what OBDuino does to ask for PID information.
I'm not sure how you are interfacing the laptop to the OBDuino, but I assume the computer will just send a PID request through the USB port as a single character (the PID value), then wait for a data reply of some sort.
OBDuino could simply wait for data from the USB port, when it finds some, it would call get_PID() function and then send the ECU reply back to the USB port.
Depending on your laptop program, you could send just the raw data, or the raw data, and the string back over the USB port.
Does this help?
|
|
|
09-20-2009, 06:33 PM
|
#508 (permalink)
|
EcoModding Lurker
Join Date: Sep 2009
Location: Mill Valley, Ca US
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
Yeah it helps a little. I scrapped some code together, and looking at the arduino side of the chip (33290) I can see that bits are getting sent but the the KLINE side of the chip is staying HIGH, I got out a voltmeter and found out that my 1998 v70 volvo has 25volts on its battery, I think this is too high? I am not able to pull the pin low it seems. I might need to get some transistors.
my code: http://code.inhocsignovinces.net/obd_terminal.pde
mostly the obduino code chopped up.
Best,
|
|
|
09-20-2009, 07:44 PM
|
#509 (permalink)
|
EcoModding Lurker
Join Date: Apr 2009
Location: Debolt, Alberta
Posts: 78
Thanks: 1
Thanked 2 Times in 2 Posts
|
You should be getting 12 volts on the OBD power pin which should be powering the Arduino.
You should be able to pull the line down to zero, otherwise you wouldn't be able to connect.
|
|
|
09-20-2009, 08:09 PM
|
#510 (permalink)
|
EcoModding Lurker
Join Date: Jun 2008
Location: ohio
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
|
Thanks for the help guys. I was under the understanding that you were typing much simpler commands into some other program that filled in alot of the blanks and saved you alot of typing. I am impressed by the amount of work that has gone into typing 3000 lines individually.
|
|
|
|