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. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    I got the screen .

    Now to figure out i2c in mmbasic and what ports it needs to be connected to...

    uploadfromtaptalk1350549694852.jpg

    -Tapatalk
     
  2. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    it does not look that easy as i expected

    i expected just a print "text to screen " command....

    maybe i better make a new thread for this one.
     
    lopezjm2001 likes this.
  3. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    hi lopez

    i see a NC and one without NC?

    what is that NC for?

    i am going to try a duinomite with a external small lcd screen with i2c or maybe better to get a serial screen.
    where do i find the latest firmware your using made by JHD

    edit
    i have found it

    http://priuschat.com/attachments/duinomite-canb2-zip.42794/
     
  4. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    NC - JDH2550's new CAN commands. The other file is for Frank's CAN commands.
     
  5. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    ok thats the one i am going to use then

    i see when first booting up ( not yet connected to prius ) a config screen.. but that is where it stops..
    doi need to press a key on the keyboard to make it go further or is there need for canbus data to make it go to the normal screen with the voltage data? etc
     
  6. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
  7. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Needs to be connected to Canbus. Otherwise it will just wait for Canbus data.

    Why not try it and figure it out.
     
  8. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    a ok yes i expected this.

    i want to use the user button on the duinomite to test withcing phev mode with a hardwired button.

    do you think adding this to the code would do that?

    --

    Do
    K$ = Inkey$
    If K$ = "q" Then CAN FREE : Cls : Print " CANPORT CLOSED" : End
    If pin(0) = 1 Then F4() : use user button to switch phev mode to test for later external phev button
    If K$ = Chr$(146) Then F2() : ' F2 - DC CONVERTER 1 BUTTON - Press F2 and toggle ON/OFF switch for Converter 1
    If K$ = Chr$(147) Then F3() : ' F3 - DC CONVERTER 2 BUTTON - Press F3 and toggle ON/OFF switch for Converter 2
     
  9. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    hey opez

    if you change the autorun file to

    --
    Run "your cureent canveiew version.bas"
    --

    you do not need to rename your .bas fileto autorun.bas and can have a XX.bas file on your sdcard with the version number in the file name.
     
  10. lopezjm2001

    lopezjm2001 Senior Member

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

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    There's also this CAN shield if you go that route: CAN-BUS Shield [SLD08201P] - $23.50 : Seeed Studio Bazaar, Boost ideas, extend the reach
     
    lopezjm2001 likes this.
  12. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    So your real seriues about the color.

    Al that for just a bit of color?

    I geuss then the Duinomite canview project will stop?
    With external canbus shield and a little different maximite device

    -Tapatalk
     
  13. lopezjm2001

    lopezjm2001 Senior Member

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

    NortTexSalv04Prius Active Member

    Joined:
    Nov 14, 2009
    915
    114
    0
    Location:
    Texas
    Vehicle:
    2004 Prius
    Model:
    N/A
    I have to ask this question . The duinomite mega has a can,rs232, vga and other connections. So you are going with another can /rs232 connection shield on top of dev board to get color?
     
  15. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Actually (per your post on The Back Shed) you'd be better off adding the circuitry yourself on the prototyping area. The Sparkfun and Seeed versions both have a CAN controller as well as a CAN transceiver. You only need the transceiver because the PIC32 already has a dual channel controller (although only one channel is exposed)
     
  16. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    DM_CAN_CCT.PNG
    Adding my own circuitry to the prototype area as shown above is the option I want to go with but I am not 100% sure it will work with the mmbasic 4.0 with your CAN commands. As this board CGCOLORMAX1 is not exactly a color maximite and little documentation on it is available. So looking at the color maximite and the Duinomite Mega they appear to use different pins for CAN TX and CAN RX.

    DUINOMITE MEGA - uses pins 58 and 59.

    DM_PIC32_PINS_FOR_CAN.PNG


    COLOR MAXIMITE - uses pins 87 and 88 (according to BigMick from THE BACKSHED)

    COLOR_MM_CAN_PINS_F0&F1.png

    So due to the difference in pin numbers I am optimistically hopefull that the MM basic 4.0 with CAN commands will work. JDH2550 - What do you think? Will the software work or not?
     
    NortTexSalv04Prius likes this.
  17. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    The Duinomite Project will go on. Both boards still use the same MMbasic 4.0 so yourself will just need to remove the color commands to make it work. Anyway it will be a while until I have a working color maximite with a working CAN port.
     
  18. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Sorry Texas. Despite the question mark at the end this post, it does not pre-qualify as a question worth answering.

    NOTE: A new update of CANview_V4_BMS_CAN_22102012.BAS is available.
     
    NortTexSalv04Prius likes this.
  19. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    A ok

    Thx

    I just got a second Duinomite mega so i could finally start on the lcd screen and start using the Duinomite canview.

    I was day to day using the Duinomite as a charger controller and could not take it out the car risking a disabled charge control.

    Now i wanted to start and on the dame day i read you go with other hardware ;-(
    But happy that its not big a differents :) and going to be a while.

    Do you think i can easily skip the canbus not present part of the code so i could do some bench testing with the lcd?

    I got a i2c lcd but it seems to be difficult ( lots of code instead of just using the print command) to use it for this.

    So Maybe i am better of with a aerial lcd that can be used with the print volts or so command.

    -Tapatalk
     
  20. lopezjm2001

    lopezjm2001 Senior Member

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