Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 54

Thread: Arduino

  1. #16
    Electronic Ignition!
    Join Date
    Feb 2012
    Posts
    11
    Thanks Robert, that is perfect! I actually just opened the $A1 ADX to see you wrote it :)

    So (using $A1), if I am understanding correctly, I would:

    - Send the hex string F4 57 01 00 B4
    - Receive 63 bytes of data to be processed/displayed
    - Take a short break
    - Do this over and over again

    And as far as processing the data, I would find the TPS value as the 9th byte of the response.

    Is that correct? If so I guess I'm going to go crawl around the attic and see if I can find a 7730.

    - Frank

  2. #17
    Super Moderator
    Join Date
    Mar 2011
    Location
    Camden, MI
    Age
    35
    Posts
    3,026
    you'll actually receive 67 bytes of data back from the PCM, 3 for the header, 1 for checksum, the other 63 for actual values.
    no break needed, you can immediately retransmit after the received checksum is finished. i get ~10.67 samples averaged per second on TP.
    and yes, TPS A/D is the 9th "value" byte that will come back. the 10th is TPS %.

    if you get this pounded out, i'll have to send you the info on mode 4 stuff.... i'm sure that would be quite a hit as well.
    1995 Chevrolet Monte Carlo LS 3100 + 4T60E


  3. #18
    Electronic Ignition!
    Join Date
    Feb 2012
    Posts
    11
    Good deal. This doesn't sound too difficult to pull off. Time to go dig up an ECM and start playing around.

  4. #19
    Damn. Now I'm going to have to buy an Arduino and a bunch of dot matrix displays.

    I wonder if you can drive Nixie tubes with an Arduino?
    Familiar with 1227747 and 16197427 PCMs

  5. #20
    Super Moderator
    Join Date
    Mar 2011
    Location
    Camden, MI
    Age
    35
    Posts
    3,026
    they can natively drive ~40mA.... i imagine a good FET or two could drive that up though.
    1995 Chevrolet Monte Carlo LS 3100 + 4T60E


  6. #21
    RIP EagleMark's Avatar
    Join Date
    Feb 2011
    Location
    North Idaho
    Age
    63
    Posts
    10,477
    You guys playing with this Arduino thing and the other day when I was searching for PWM controller for jim_in_dorris I found one for it!

    1990 Chevy Suburban 5.7L Auto ECM 1227747 $42!
    1998 Chevy Silverado 5.7L Vortec 0411 Swap to RoadRunner!
    -= =-

  7. #22
    Super Moderator
    Join Date
    Mar 2011
    Location
    Camden, MI
    Age
    35
    Posts
    3,026
    i always have uses for a good MCU, whether it's to control my refrigerator the way i want it to run, or if i want to build up my own retained power circuit for the car to power the radio/power windows/etc for 5 minutes after the ignition is off or some other crazy project.

    i can do all of these things with a motorola 6811(GM OBD1 P4 ECM), but they aren't exactly easy to come by these days for as cheap a price and as versatile for off the wall applications.
    1995 Chevrolet Monte Carlo LS 3100 + 4T60E


  8. #23
    Administrator
    Join Date
    May 2011
    Location
    Lakes Region, NH
    Age
    54
    Posts
    3,852
    Just a few notes for thought...
    "ALDL is just 8192..."
    Some calibrations play very nicely with this rule. Some do not. $58, for example, is notorious for not working with ALDL displays or software which works fine on $8D. Of course even $8D doesn't work like $8D if it's installed in a Corvette. And there are the Olds / Buick / Caddy systems where "somebody else" wants to be in charge.

    "Has anyone seen the GM Display...?"
    Rumor has it, or had it, that Doc Plecan (Grumpy from thirdgen) had one for a while. While "I never saw it," it might have been about as wide as a small computer desk, about 8-10" deep, and maybe that much tall. It might have had controls to allow one to change specific values in memory or to simulate sensor data to work through bugs and it might have had various points to connect additional instrumentation. If painted it would have been gray, and it might have looked like images of NASA equipment in the 1960s. It definitely wouldn't have appeared to be the powerful tuning device that it was. Lockers is a hobbyist level version of the GM HUD.

    "i can't understand C at all" "In assembler, your good to go once you learn the hardware. "
    C is a high level language. You say "Go get this done" without worrying about how it gets done in the hardware. After writing your program it's the job of the compiler to work out the details for the processor. With proper compilers, an EFI control algorithm written in C would work in a 68HC09/11 system, and 68000 system, an Intel based system, or even in a PC based system. The programmer should only need to know how the control algo works, not the details of implementation. In assembly you are making the decisions about how the code operates, what data structures to use, how to use memory in a way you want. In C it's the job of the compiler to translate your instructions to machine code. There are plenty of arguments for and against higher level languages over assembly language for microprocessors but each has it's strength and either can be the best choice in a given situation.

    edit: Didn't have time to say this originally. Seeing this conversation here is impressive and rewarding. I'm willing to help if needed with coaching on C or C++ related stuff. Four years chasing CS/EE major gave me a fair amount of practice coding in these languages and if I can give back I'm more than happy to. This is not an offer to do all code writing (boss is in the hospital and I'm spending 80-85 hrs/week at work covering his job and mine) but definitely an offer to help with WT??!!! questions.
    Last edited by 1project2many; 03-02-2012 at 12:42 AM.

  9. #24
    Super Moderator
    Join Date
    Mar 2011
    Location
    Camden, MI
    Age
    35
    Posts
    3,026
    i was thinking about it...

    J1850 VPW: an Arduino can probably be used as a VPW to USB interface, couldn't it? and with the amount of RAM available, i'm thinking it could be the basis for an OBD2 flashing cable without any issues. no idea about CAN stuff, but VPW should be covered.

    i need to research this some more, but it looks like it's possible to use it as such.
    1995 Chevrolet Monte Carlo LS 3100 + 4T60E


  10. #25
    Fuel Injected! historystamp's Avatar
    Join Date
    Dec 2011
    Location
    USA
    Posts
    169
    Here is an implementation by Luke Skaff, "Automotive Diagnostic Interface."
    http://lukeskaff.com/wordpress/wp-co..._Interface.pdf

    There is a complication with ALDL. The ALDL is bi-directional on one pin. With separate input & output pins, you need to merge this data onto one wire. Luke show a circuit for doing this.

    Robert

  11. #26
    Super Moderator
    Join Date
    Mar 2011
    Location
    Camden, MI
    Age
    35
    Posts
    3,026
    SLIGHTLY inaccurate at times, since mode 2 actually dumps 64 bytes per message, IIRC.
    mode 4 being deactivated is also false.
    ECM reading only up to 6375RPM? also false, i've had nAst1 code run up to 12,750RPM on a bench and nothing bad happened.

    otherwise, a good project.
    1995 Chevrolet Monte Carlo LS 3100 + 4T60E


  12. #27
    RIP EagleMark's Avatar
    Join Date
    Feb 2011
    Location
    North Idaho
    Age
    63
    Posts
    10,477
    That was some really good info from the date though!

    1990 Chevy Suburban 5.7L Auto ECM 1227747 $42!
    1998 Chevy Silverado 5.7L Vortec 0411 Swap to RoadRunner!
    -= =-

  13. #28
    Fuel Injected! gregs78cam's Avatar
    Join Date
    May 2011
    Location
    N. Idaho
    Posts
    767
    I actually built the 2 Square wave signal generator to hook up to my still needing to be built test bench. It does work nicely.

    After looking over some of this thing, I may have to order one and start playing with it. It would probably work great for some of the things I am wanting to implement.
    Last edited by gregs78cam; 03-02-2012 at 12:34 PM.
    1978 Camaro Type LT, 383, Dual TBI, '7427, 4L80E
    1981 Camaro Z-28 Clone, T-Tops, 350/TH350
    1981 Camaro Berlinetta, V-6, 3spd
    1974 Chevy/GMC Truck, '90 TBI 350, '7427, TH350, NP203, 6" lift, 35s

  14. #29
    Fuel Injected! jim_in_dorris's Avatar
    Join Date
    Dec 2011
    Posts
    803
    Well, I haven't spent any time thinking about this, but would this work to base a ECM test bench around? It should would be a quick way to get into a test bench.
    Square body stepsides forever!!!

  15. #30
    Super Moderator Six_Shooter's Avatar
    Join Date
    Feb 2011
    Posts
    2,968
    It could possibly be used for a test bench, but I would use the Megasquirt Jim Stim for a test bench, instead of the Arduino.
    The man who says something is impossible, is usually interrupted by the man doing it.

Bookmarks

Posting Permissions

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