1. Attachments are working again! Check out this thread for more details and to report any other bugs.

My Duinomite Mega Canview V4 equivalent Project

Discussion in 'Prius PHEV Plug-In Modifications' started by lopezjm2001, Jul 19, 2012.

?
  1. Yes

    11 vote(s)
    100.0%
  2. Prefer to use Android Torque device

    0 vote(s)
    0.0%
  3. Prefer to use Scangauge

    0 vote(s)
    0.0%
  1. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    OK ... upgrading to DM MM 4.4 now ...
     
  2. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
  3. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
  4. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    What are your changes?
     
  5. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    As per code previously post here somewhere , => DTC logging, Automated DTC clear at start-up ( when forced EV detected) , Go to Graph display as default, show A/hr on graph page ( replaced km/hr).
    Really need a dated/release change log in your readme file also (suggestion).
     
  6. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    - I have just installed DTC logging but only when the F11 or F12 buttons are pressed or during automated DTC clearing at startup.
    - has been in the program for some time now.
    - I guess this is a matter of preference so I will leave this as is. Very easy to change in program here
    Code:
     PSD() : sw=0 : page=14 : F2() : 'log=1  'Select which page you want to power up with, enable battery depletion warning, start data logging, here.
      
    New basic program has been uploaded and dated 11 September 2013 to my first post in this thread.
     
  7. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    What has changed in this 9/11 Upload ?
    Have not seen any FORCED EV mode warning when SOC drops below 74% since runningt he previous upload ??
     
  8. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    A Change Log would be really helpfull to know whats is changed in your updates and what youve included already
     
  9. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    I tried it with mine and it works fine. Easy to check, increase volts setting(battery pack end point voltage) from 210volts to 235volts and it should come up very soon. With mine set to 235volts the warning comes up within two minutes of driving straight after a full charge.

    You also need to remember that mine works with the BMS+ which is different to the BMS2 which is what you are using.
     
  10. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Maybe one day....
     
  11. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    I found that the warning works the first time but would not repeat. I have improved the basic program to fix this. This time when the depleted PHEV battery pack comes up on the screen, you just press F4 which will clear the screen and switch off PHEV mode and go to ORIG mode. No need to press the keyboard ESC button anymore.

    I have also included a Canview basic program for the CGcolormax2 which has colour.Due to memory limitations colour is limited to mode 4 which is limited to four colours. The CGcolormax2 can be purchased from CircuitGizmos - USB interfaces and motion detectors, home automation, electronic devices. It includes CANbus.
    See first post for latest download of the basic programs.
     
    dave77 and mrbigh like this.
  12. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    My BMS2+ is in in standalone mode so this F4 to ORIG mode will not affect the change the BMS2+ mode from PHEV on mine ..

    BUT I would have thought that going to ORIG mode is the last thing you would want to do if in FORCED EV mode and and battery is depleted ???
    The PRIUS pack would very very quickly be drained in this state . FORCED EV should only be used in PHEV mode NEVER in ORIG mode..
    If you want to switch to ORIG mode this should only be done after FORCED EV has been exited by a POR sequence of the car ! right ?
    ( Am assuming that ORIG mode also drops the PHEV pack contactor in your implementation ?)
     
  13. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II
    Ive installed this update and now seeing a lot "Out of Memory errors" (line 572 was one) when use f3 and also f6 . They seem to be always on "Print" statement.

    WatchDog didnt seem to restart also after these crashes also.
     
  14. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    I have changed the Basic program again. This time I have used library files to maximise free memory. This should fix the "Out of memory Errors". You can press the 'm' keyboard button to see how much memory is available. The basic file is attached to my first post dated 06/10/2013. It also works with both CGcolormax(or Colour Maximite) or the Duinomite Mega.

    You would have to ask Geoff Graham why the watchdog command did not work for you. It does not work for me either.

    The watchdog timer only works if it times out. If the program terminates automatically due to lack of memory then the watchdog timer will not time out. It would be nice if it did.
     
  15. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    [
    Unfortunately I do not have a BMS2 so I cannot design my program accordingly.

    It does not make any difference. You do not need to use a BMS+ or BMS2 in Forced EV mode at all. You only need to use a BMS+ or BMS2 when using gas.
    Forced EV mode should only be used by people who know what they are doing. There are safety concerns involved regardless.

    I rather give the user the ability to go Into ORIG mode if he wants to. Since I expect that the person using Forced EV mode knows what they are doing and what the dangers are. For this reason I do not want to make my program idiot proof.

    My implementation drops out the PHEV comtctor in ORIG mode.
     
  16. SynEco@eVehicle.co.nz

    Joined:
    Jan 9, 2007
    139
    19
    0
    Vehicle:
    2004 Prius
    Model:
    II

    My concern with going to ORIG mode has nothing to do with BMS+ or BMS2 in Forced EV ...

    But with the fact that dropping the Contactor to ORIG mode you are putting ALL the "forced EV" load on your poor NiMH toyota PACK. It wont last long if you do that often !!
    Best to pull over safely and restart while remaining PHEV battery capacity is still available to complete the maneuver..

    It wont affect my implementation but will on yours I guess But its over to you if you want to treat your NiMH pack like that ..
    I certainly would not on mine.
     
  17. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Like I already said FORCED EV mode should only be done by those who know what they are doing and fully understand the implications. You do not need to press F4 and go to ORIG mode before pulling over safely and restarting. Even if you did you can go back to PHEV mode by pressing the F4 button again. The time doing this would also have little impact on the OEM NiMH battery. After pressing F4 the depleted battery warning is also disabled. You need to press F2 again to make the depleted battery warning enabled.

    Using a PHEV battery pack (specially with 76 cells as opposed to 70 cells) and a contactor to dump a higher voltage onto the NIMH battery pack will shorten the life of the OEM NiMH battery. See this post regarding the long term degradation of the NiMH using the contactor method by 3ProngPaul.

    Plug-In Supply DIY | Page 20 | PriusChat

    You can also press F4 after you pull over safely and not before. This is the best option in my opinion. You will not forget that you were warned if the screen keeps saying your PHEV battery pack has depleted.

    To be honest I do want my program to be used by someone to commercialise FORCED EV mode. Hence you will not see my program made idiot proof if FORCED EV mode is used. My program will only show a status if you are in forced EV mode and no more. You will only get a warning if your PHEV battery pack has depleted. The rest is up to the user. You wil not see any other reference to FORCED EV mode. My program does not in any way imply that FORCED EV mode is safe to use and nor should it encourage users to use it.

    The big danger of using FORCED EV mode is that in doing so you disable the ICE. So if something goes wrong that causes a DTC of the Battery ECU the HV(Hybrid Vehicle) ECU cannot fallback on the ICE. Instead the result is that Prius will shutdown putting the user in a potentially unsafe position which could lead to a serious fatal accident. The other danger is the lack of torque during acceleration minimises the chance to accelerate quick enough to avoid an accident. It is just not safe to use FORCED EV mode. It comes with a risk.

    Also the program now shows the SOC value in reverse video when the PHEV battery pack has depleted whether the warning is active or not.
     
  18. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    I have been installing four NTC 10Kohm thermistors into my PHEV battery pack I bought on Ebay. The thermistors are connected to four analog inputs of a Duinomite Mega or a Colour Maximite or a CGcolormax. The concept is if the battery pack gets too hot (>50 degrees C) or too cold (<5 degrees C) then switch on a relay to terminate or stop charging. The relay output can be either wired into the BMS loop wire or the charger enable wires.
    Here is the program below.

    Code:
    Sub CalcPHEV
      ' This subroutine calculates the four PHEV battery pack temperatures derived from
      ' measuring four NTC thermistors, 10Kohm at 25oC, MF52-103/3435 from Ebay.
      ' Using the Steinheart formula
      '
      '	  Vs(3.3v)----o
      '			!
      '			Rt1 (thermistor)
      '			!
      '	  Vo1---------o
      '			!
      '			R  (Fixed resistor 10Kohm)
      '			!
      '			GND
      '
      ' Vo1 to V04 are measured from analog inputs Pins 1 to 4.
     
      Local A, B, C, Rt1, Rt2, Rt3, Rt4
      Vo1 = Pin(1) : Vo2 = Pin(2) : Vo3 = Pin(3) : Vo4 = Pin(4)
      If Vo1=0 or Vo2=0 or Vo3=0 or Vo4=0 Then Exit Sub
      Rt1 = 10000*((3.3/Vo1)-1)
      Rt2 = 10000*((3.3/Vo2)-1)
      Rt3 = 10000*((3.3/Vo3)-1)
      Rt4 = 10000*((3.3/Vo4)-1)
      A = 0.9439329096e-3
      B = 2.461834640e-4
      C = 1.825764757e-7
      Temp1 = ( 1/( A + (B*Log(Rt1)) + (C*Log(Rt1)*Log(Rt1)*Log(Rt1)) ) ) - 273.15
      Temp2 = ( 1/( A + (B*Log(Rt2)) + (C*Log(Rt2)*Log(Rt2)*Log(Rt2)) ) ) - 273.15
      Temp3 = ( 1/( A + (B*Log(Rt3)) + (C*Log(Rt3)*Log(Rt3)*Log(Rt3)) ) ) - 273.15
      Temp4 = ( 1/( A + (B*Log(Rt4)) + (C*Log(Rt4)*Log(Rt1)*Log(Rt4)) ) ) - 273.15
      Tempmax=Temp1
      If Temp2 > Tempmax Then Tempmax=Temp2
      If Temp3 > Tempmax Then Tempmax=Temp3
      If Temp4 > Tempmax Then Tempmax=Temp4
    '  Temp4 = 60 : Tempmax = 60	'Alarm test line
      If page=10 Then Font 2 : Print @(170,250) CLR$(fg,bg)+"  " : Print @(170,280) CLR$(fg,bg)+"  "
      If Temp1>50 Or Temp2>50 Or Temp3>50 Or Temp4>50 Then
    	R3=0	  'Switch on R3(relay 3) to terminate charging.
    	If page=10 Then Font 2, ,1 : Print @(170,250) CLR$(fg,bg)+">50"
      EndIf
      If Temp1<5 Or Temp2<5 Or Temp3<5 Or Temp4<5 Then
    	R3=0	  'Switch on R2(relay2) to terminate charging.
    	If page=10 Then Font 2, ,1 : Print @(170,280) CLR$(fg,bg)+"<5"
      EndIf
      If Temp1<50 And Temp2<50 And Temp3<50 And Temp4<50 And Temp1>5 And Temp2>5 And Temp3>5 And Temp4>5 Then R3=1
      Pin(16)=R3
    End Sub
    The Steinhard coefficients were calculated from my measured data at this website below : www.thinksrs.com/downloads/programs/Therm%20Calc/NTCCalibrator/NTCcalculator.htm
    So far the Basic programming code works well and I am still testing it out. I will download my Basic Program onto my first post later.
    NTCthermistor page.jpg
    As you can see in the photo the maximum PHEV kit battery pack temperature is shown above the maximum OEM NiMH battery pack temperature.
     
    dave77 and planetaire like this.
  19. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
  20. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    hey
    i m wondering.. is it not as simple to replace the prius 2 codes with prius C and prius 3 codes and have it working on those cars to.
    just as a canview info screen with logging etc etc etc. also more info on one screen then with a scangauge for instance.

    i am willing to spend some time trying that out.

    i have been off this topic for a while... you no longer use the duinomite? ( i see color screens? )