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. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    I have made an improvement in the programming of receiving active PIDs with mmbasic. I have noticed that the four returned frames are received in different sequences. So I have adapted the code to accept them in any order and now runs faster. Not sure why they are received in different sequences though.
     
  2. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Only my own implementation, I can't do anything other than provide instructions of how to build the source with Frank's commands in place. That's a restriction introduced by Frank - not Geoff.
     
  3. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    So you now can upload here 4.0 with your can added?
    Nice
    So upload please ;-)

    -Tapatalk
     
  4. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    From previous post:
    However, it probably won't be until September that I'll have time to work on this...

     
  5. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    A Yes :)
    Wy would we upgrade to 4.0? Beside now being downloadable with can.
    Any great advanced stuff in 4.0 thas use to us in this project?

    -Tapatalk
     
  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 been looking at making use of some colour in the VGA output. The RGB video signals are bridged together as shown in the schematic below of the VGA connections for the Duinomite Mega. I was thinking about using three of the GPIO digital outputs to switch three small relays to open circuit or short circuit the video signal on the PCB for pins 1 to 3. Using a normally closed contact across each pin 1,2 and 3. I have marked PCB copper tracking that needs to be scratched off to open circuit it marked with a green line.

    This would improve visual appearance.

    Does anybody have a better idea?

    VGA output pins of interest:

    Pin 1 - Red video signal
    Pin 2 - Green video signal
    pin 3 - Blue video signal

    See pictures.

    So by operating the three relays I can get a combination of different colours and be able to draw different coloured boxes and so on.
     

    Attached Files:

    dave77 likes this.
  7. jaso

    jaso Junior Member

    Joined:
    Jul 3, 2012
    18
    4
    0
    Vehicle:
    2010 Prius
    Model:
    III

    Hi John,
    You can probably get up to 8 basic drawing/background colors by cutting this tracks and connecting them to
    GND/+V respectively. And that's all. I can't imagine relay able to operate 60Hz (VGA frame rate) which in theory
    would allow you to get different colors for whole picture. It's also near to impossible to drive parallel unbuffered
    displays available nowadays. PIC used in Duinomite is fast one (80MHz) but Basic is running approx. 30klines/s
    only (need 33us to toggle any GPIO pin).
    You can look at one of another Geoff projects:

    - The Back Shed: MM runs 65k VGA 800x480 resolution
    about connecting serial buffered display from 4D (expensive) or
    - go for Maximite Color (what about CAN?)

    I think MMbasic from Geoff is a kind of prepreapared for color VGA (looking at source code) so maybe we
    can expect color Duinomite version soon.

    Jacek.

    P.S. Your contribution to PriusChat forum is just great.
     
  8. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Thanks. Jacek.

    The mmBasic 4.0 code with the mode and color command is designed for Maximite. So far the Duinomite Mega only has monochrome output. However a Modification can change that.

    About eight colors is enough. There is also a VGA/GAME arduino shield I could use but cost more.
     
    dave77 likes this.
  9. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Regarding color - we're in a holding pattern right now.

    The new Maximite Color has color (duh!) but no CAN
    The pre-existing DuinoMite Mega has CAN but no color

    I see a number of choices:
    1) Wait and hope Olimex come out with a DM Mega Color
    2) Make our own "mite" based on the UBW32 and add in the CAN hardware and the color hardware - Geoff has provide me instructions on how to do the color part of that (attached)
    3) Modify our existing DM Mega's to replicate Geoff's new color circuitry and use MMBasic 4.0
    4) Buy a Maximite Color and add CAN Transceiver chip and isolation.
    5) Do JLo's color implementation.

    I think 3 is the "best" because we don't have to buy a new 'mite. I already have two (because I went with the eMega first time around). However, I've no idea how feasible that approach is. Next up, for me, would be a toss-up between 2 & 4. Then comes 1. Not keen on 5 because it becomes a bit too non-standard - but maybe that's not a big deal.

    In the meantime - I just think I'm not going to worry about color - I don't think the DM + VGA display will be part of my final solution, just a tool I'm using along the way.

    Just my 2cents worth (inflation adjusted ;))
     

    Attached Files:

  10. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    The UBW32 board sounds good but I cannot find a photo of one wired up to the Duinomite Mega. It appears that you need to connect about 40 wires from the Duinomite Mega to the UBW32 board.
    Anyhow I have updated my Canview V4 program. Unfortunately it needs to be used with mmBasic 4.0 with CAN commands ported into. So for those who have not been able to build the mmbasic 4.0 project with Frank 's CAN commands will need to wait.

    F5 and F6 - OEM HV battery volts and ohms

    I have added a subscreen to the main screen which can be changed by pressing one of the function keys or the escape key. I have added a F5 screen and a F6 screen for the OEM HV battery volts and internal resistance. The updating is slow on the F5 and F6 pages but hopefully JDH2550 will improve the CAN commands to improve overall updating speed.

    F10 - HV battery FAN

    There is a HVbattery highest temperature reading next to the F10 box. When in AUTO the HVbattery fan reading will change to reverse video when the HV battery fan is switched on when the temperature setting is greater than 25 degrees Celcius which can be changed in the mmbasic code.
     

    Attached Files:

  11. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    Wy did you go with 4.0 already?
    This way this opensource is kinda troublesome where it does not need to be or does it?
    You ported the can yourselfs and cam not give intructions how to do this with 4.0? Ir is it the same like with 3.2c

    Personally i would put no effort in color
    Wy would you need it its just got looks
    -Tapatalk
     
  12. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    It makes programming easier for me. But you can change my code so it can be used with mmBasic 2.7B. I am not sure which commands are not compatible so you will have to work that out yourself.
    Yep, you can blame Frank for this. He has made his CAN commands closed source.
    Ask JDH2550 for instructions.
     
  13. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    No the UBW32 is a complete replacement for the DuinoMite. You're making your own 'mite. Think of the UBW32 as the heart of a 'mite - it's simply a PIC 32 with all the pins nicely exposed. If you add the extra stuff to the UBW32 as shown in that PDF then you have a device that is functionally equivalent to a MaxiMite color. No DuinoMite or MaxiMite required. To get CAN functionality we'd have to add a CAN transceiver chip to the appropriate pins.

    I'm impressed - you've made great progress. BTW, do you mean 4.0 or 3.2c?

    It's 2:20AM and I'm at work (again) - so it's still a while before I can get my CAN implementation complete. Sorry.
     
    lopezjm2001 likes this.
  14. jaso

    jaso Junior Member

    Joined:
    Jul 3, 2012
    18
    4
    0
    Vehicle:
    2010 Prius
    Model:
    III
    Or....
    6) you can buy this Olimex board

    Olimex PIC32-MAXI-WEB development board PIC32MX795F512L with ethernet,lcd | eBay

    and you have everything you need:
    - small color monitor with touch (maybe enough after development stage)
    - 2 CAN connectors
    - SD card
    - 2 power relays (Enginer, BMS+ control, ??)
    - and even 10/100 Mbits ethernet

    Jacek.
     
  15. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Great find Jacek !

    Unfortunately it cannot be programmed in mmBasic. Must program in C. The dual CAN port makes it ideal for a project to spoof the ICE ECU. Other than that it is full of usefull stuff.
    It does not have a VGA output. No choice but to use the LCD touch screen. It would probably look OK if you installed it into the middle console so connecting cables are hidden.
     
  16. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    You read it correctly - mmBasic 4.0

    Thats OK. Looking forward to seeing your implementation.
     
  17. jaso

    jaso Junior Member

    Joined:
    Jul 3, 2012
    18
    4
    0
    Vehicle:
    2010 Prius
    Model:
    III
    Hi John,

    If you can build MMBasic for UBW32/Maximite using MPLAB 8.80 then it should probably run on this board as they are using the same PIC?

    Jacek.
     
  18. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    You could be right. But there is no mention of using mmBasic in the manual for this development board. In any case I am already invested in my Duinamite Mega which has a VGA output. I prefer the VGA output to a touch LCD mounted on the PCB. Thanks.
     
  19. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    What is the advanced stuff in 4.0 above-mentioned 3.2c?

    -Tapatalk
     
  20. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Well. I just like to use the latest version. It has a few added features and it is backwards compatible anyway. Just need to modify some of the new commands of mmBasic 4.0 (I think Print @(X,Y) "XXX" might be the only one) I used which is not included in mmbasic 3.2C. No big deal. I just cannot allow myself to make it too easy for you. You must jump a hurdle here or there.