Page 16 of 16 FirstFirst ... 6141516
Results 151 to 156 of 156

Thread: Arduino Modular Engine Sensors Unit (~$50)

  1. #151
    Join Date
    Oct 2012
    Location
    UK
    Posts
    66
    Total Downloaded
    0
    The porting of the opencom code has been a fourfold task...

    1) I had to make it work on STM32 (Maple Mini) which is a 32bit architecture, this meant removing a lot of PROGMEM code. (ardunio uses PROGMEM code to move static definitions into program memory rather than RAM, STM32 does this automatically)
    2) I had to uplift many areas of code to the current Arduino IDE way of doing things. The original code was written on 1.0x and the IDE is now at 1.8.1.
    3) I had to swap the code from using an LCD display library to using an OLED library (because I did not have an LCD to hand).
    4) I had to physically rewire everything and change the code to use the different pinouts.

    All of that was fairly straightforward.

    However, in the process I found that one of the submenu's would not work, this was the ECU menu, which contains some of the interesting stuff. I don't know if I've broken this, or it's a combination in the way the IDE and/or STM32 work.

    So, I ordered an LCD Display. I then used a very old version of the IDE to compile the original code onto an Arduino Mega, and the menu's work. I needed to check this because there are areas in the code that are obviously incomplete and I did not know whether the menu was non functional due to my changes, or if it was broken anyway.

    Why am I telling you this?

    Because I'm going to refactor all of the interesting parts from Luca's code into my gauge project using a different menu system.

    So, next steps are to:
    1) get an alternate menu system working on STM32 -> GitHub - neu-rah/ArduinoMenu: Arduino generic menu/interactivity system (at present it breaks due to a difference in the compiler standards, but this ought to be a simple fix).
    2) Merge Luca's comms code into my LRDuino project
    3) Uplift all the hardware from breadboard onto vero/prototyping board

    Lot's to go at and never enough time

  2. #152
    Join Date
    Oct 2012
    Location
    UK
    Posts
    66
    Total Downloaded
    0
    My project now has a menu system and can talk to an emulated TD5 Ecu.

    I've got an MSB ECU here with topside switch failure that I'll be bench testing against once the econoseal connector for the black plug arrives in the post.

    Assuming all goes well there, I've got a little bit of K-line sniffing to do to get my code handling fault reading/clearing, then it's time to build out on stripboard for the car.

    Here's a photo (although caught the displays mid refresh) of the system reading a few PID's from the emulator (running on an Arduino Uno with LCD screen):


  3. #153
    Join Date
    Oct 2012
    Location
    UK
    Posts
    66
    Total Downloaded
    0
    Datalogging to micro SD card now working.

    I'm building a cut down version for a friend, he just wants one display with a button to rotate around 4 analogue sensors, Boost, EGT, Fuel Pressure, Oil Pressure.

    Parts come to about £20 GBP, Sensors if bought from Ali Express cost about £40 all in. I priced the same from a commercial provider and sensors alone come to £180 (for no better quality I might add).

    I'm still waiting on some parts to arrive so that I can get the ECU hooked up on the bench.

  4. #154
    Join Date
    Apr 2016
    Location
    Melbourne
    Posts
    4,517
    Total Downloaded
    0
    Quote Originally Posted by BennehBoy View Post
    Datalogging to micro SD card now working.

    ....
    Sounds good!

    How hard is it to set it up to a clock of some type, recording date and time.

    Makes it a lot easier to keep a track of the log data in the long run.

    This is the only annoying aspect of the 1Gauge I fitted to the D1.(I'm not worried about ECU interface and so on).

    what I have to do now with my logs:
    I download the (many multiples of)log files saved to it's SD card.
    I sift through the very short files. They may only be a few mins or so, and I'm not that pedantic. Anything less than 10Kb I delete.
    The remaining files are sorted by file name, and collated into one large file(command copy *.csv <filename>.csv) this produces one large csv file for the month.

    Thanks to a member here for the tip .. I then edit and adjust the time values column to continue on for each logging session. So if log0001 has a time value of 200 sec max, then log0002 continues from 200 and beyond.
    If this isn't done, it's impossible to see the entire log in one session as a graph, as it loops back to the previous logs start time.

    I adjust the time value on the X-scale of my log viewing software so that it displays the time in a readable format .. ie. 3 days 12 hrs 31sec ... not 269012 sec(which is meaningless to a human! )

    Having a clock interface that can keep track of time would be handy(for the log data).


    .. anyhow, just a suggestion.

  5. #155
    Join Date
    Oct 2012
    Location
    UK
    Posts
    66
    Total Downloaded
    0
    Quote Originally Posted by AK83 View Post
    Sounds good!

    How hard is it to set it up to a clock of some type, recording date and time.
    It's fairly straightforward, a real time clock (RTC) module needs to be included in the solution, I had considered doing this and/or hooking up to GPS which also provides time. The output could then be combined with a mapping service like Google to show performance information at any given geographical location.

    Quote Originally Posted by AK83 View Post
    Makes it a lot easier to keep a track of the log data in the long run.

    This is the only annoying aspect of the 1Gauge I fitted to the D1.(I'm not worried about ECU interface and so on).

    what I have to do now with my logs:
    I download the (many multiples of)log files saved to it's SD card.
    I sift through the very short files. They may only be a few mins or so, and I'm not that pedantic. Anything less than 10Kb I delete.
    The remaining files are sorted by file name, and collated into one large file(command copy *.csv <filename>.csv) this produces one large csv file for the month.

    Thanks to a member here for the tip .. I then edit and adjust the time values column to continue on for each logging session. So if log0001 has a time value of 200 sec max, then log0002 continues from 200 and beyond.
    If this isn't done, it's impossible to see the entire log in one session as a graph, as it loops back to the previous logs start time.

    I adjust the time value on the X-scale of my log viewing software so that it displays the time in a readable format .. ie. 3 days 12 hrs 31sec ... not 269012 sec(which is meaningless to a human! )

    Having a clock interface that can keep track of time would be handy(for the log data).


    .. anyhow, just a suggestion.
    Alternatively the data could be exposed via bluetooth and an Android app used (it looks fairly simple to build an android app to do this, the device's GPS could then be used).

  6. #156
    Join Date
    Oct 2012
    Location
    UK
    Posts
    66
    Total Downloaded
    0
    BTW, now that this project is drawing to a close I'm looking about for what I might do next...

    A 4HP24 controller to replace the one that ships with the D2 (and as a compushift alternative) is on the cards...

    There's a superb aftermarket automatic controller available for the Merc 722.6 gearbox, it's a great bit of inspiration toward building something halfway decent for LR users. See here -> Home

Page 16 of 16 FirstFirst ... 6141516

Bookmarks

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
  •  
Search AULRO.com ONLY!
Search All the Web!