Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:52 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBasic CAN-BUS connected Carputer

Author Message
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 05:35pm 26 Sep 2013
Copy link to clipboard 
Print this post

Hello,

I want to use a Maximite/Duinomite connected to the CAN interface of my car and showing various info on a small composite LCD.

As far as i know, there's a special version of MMBasic with CAN support. But there my knowledge stops. Now the questions:

1) What kind of board is compatible with that MMBasic+CAN version ? Only Duinomite Mega or can i use a Color Maximite + some extra CAN hardware instead ?

2) I saw that the Duinomite Mega has a 3-Wire CAN interface connector - how do i connect that to the car's OBDII port ? Directly or do i need extra hardware ?

Thanks.
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 08:11pm 26 Sep 2013
Copy link to clipboard 
Print this post

Unless you have some special things in mind you may want to look at what is available off the shelf. There is a small device that can be bought for less than AU$10 delivered from eBay that will allow a Bluetooth connected device access to many of the monitoring functions via OBDII. I have one of these gadgets and it sticks out of the OBDII socket by 20mm. Other dimensions are 24mm and 46mm. Search on Google or eBay for ELM327. It is also in Wikipedia. I only received this a couple of days back and have not had a chance to try it out. I believe you can get software (free and paid) for PCs and tablets including Android and Apple devices. Mine came with PC software on a small CD.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 08:47pm 26 Sep 2013
Copy link to clipboard 
Print this post

For CAN you'd connect to the CAN pins and ground. Which ground? Well, it SHOULD be the signal ground but beware that car makers can be a bit clueless so you may need to use the other ground. D'oh.
Look up OBD DLC to see the pins.

ELM327 comes in 2 main types, BT (hard to use from a 'mite) and USB (er, also hard - probably harder than BT).
Kinda boring to use an elm327, though. (None of the existing programs will work on a 'mite but then most aren't available as source either.)

I do recommend reading the elm327 data sheet at elmelectronics.com/DSheets/ELM327DS.pdf‎

JohnEdited by JohnS 2013-09-28
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 04:18am 27 Sep 2013
Copy link to clipboard 
Print this post

  psergiu said  
1) What kind of board is compatible with that MMBasic+CAN version ? Only Duinomite Mega or can i use a Color Maximite + some extra CAN hardware instead ?


CGCOLORMAX2 plus a CAN chip. The CAN circuit is on the board just waiting for a chip and connections to a bus.



http://www.circuitgizmos.com/products/cgcolormax2/cgcolormax 2.shtml




Micromites and Maximites! - Beginning Maximite
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 06:05am 27 Sep 2013
Copy link to clipboard 
Print this post

BobD - Thanks, but i want to use a MMBasic device. Much easier (for me) to program for, cheaper, faster boot time and i am not restricted by the form factor.

JohnS - what happens if i connect the wrong ground ?

CircuitGizmos - cool ! What chip is that ? I supposed the CGCOLORMAX2+CAN chip is supported by the MMBASIC 4.x CAN firmware out of the box - right ?

Thanks.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 06:19am 27 Sep 2013
Copy link to clipboard 
Print this post

If the car maker's goofed you'll have no ground.

Check with DVOM.

John
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 02:30am 28 Sep 2013
Copy link to clipboard 
Print this post

  psergiu said   BobD - Thanks, but i want to use a MMBasic device. Much easier (for me) to program for, cheaper, faster boot time and i am not restricted by the form factor.

JohnS - what happens if i connect the wrong ground ?

CircuitGizmos - cool ! What chip is that ? I supposed the CGCOLORMAX2+CAN chip is supported by the MMBASIC 4.x CAN firmware out of the box - right ?

Thanks.


Specific chips are mentioned in the FAQ section of the Beginning Maximite doc. You need to flash the CAN version of the firmware onto the Colormax2.
Micromites and Maximites! - Beginning Maximite
 
Lopezjm2001

Regular Member

Joined: 08/07/2012
Location: Australia
Posts: 42
Posted: 04:29am 08 Oct 2013
Copy link to clipboard 
Print this post

  psergiu said  

CircuitGizmos - cool ! What chip is that ? I supposed the CGCOLORMAX2+CAN chip is supported by the MMBASIC 4.x CAN firmware out of the box - right ?

Thanks.


Hi Psergiu,

I have written a MMbasic program to use with a CGcolormax2 with a CANbus port. You can see it at

http://priuschat.com/threads/my-duinomite-mega-canview-v4-eq uivalent-project.112429/

It was written for a Toyota Prius 2004-2009. You may find some of my MMbasic code helpfull.
Edited by Lopezjm2001 2013-10-09
Lopez
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 08:37am 08 Oct 2013
Copy link to clipboard 
Print this post

Hi Lopezjm

The link you provided does not work

Jman
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 10:30am 08 Oct 2013
Copy link to clipboard 
Print this post

Try this link:

http://priuschat.com/threads/my-duinomite-mega-canview-v4-eq uivalent-project.112429/

JimEdited by TassyJim 2013-10-09
VK7JH
MMedit   MMBasic Help
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 08:46pm 08 Oct 2013
Copy link to clipboard 
Print this post

Trying to download the code (step 11) doesn't work - just get


PriusChat - Error
The requested attachment could not be found

John
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 06:38am 09 Oct 2013
Copy link to clipboard 
Print this post

Thanks Lopez !

I downloaded the file - as soon as i have all the hardware in place, i'll try to adapt your software for Camry/Solara and i'll provide the updates here.

JohnS - See the attached file at the bottom of the post - clock on "MMBASIC 4.4 CANVIEW PROGRAM 09102013.zip"

 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 07:13am 09 Oct 2013
Copy link to clipboard 
Print this post

Oh - OK, thanks, how odd.

Step 11 doesn't work as posted, though.

JohnEdited by JohnS 2013-10-10
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 04:46pm 09 Oct 2013
Copy link to clipboard 
Print this post

  TassyJim said   Try this link:
http://priuschat.com/threads/my-duinomite-mega-canview-v4-eq uivalent-project.112429/
Jim

Err... Jim, apart from the slightly different purple colour, what was different about your link that made it work?

Greg
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 08:14pm 09 Oct 2013
Copy link to clipboard 
Print this post

The characters in both links are the same (by eyeball) but the actual URLs are not.

(Look at HTML to see.)

John
 
Lopezjm2001

Regular Member

Joined: 08/07/2012
Location: Australia
Posts: 42
Posted: 11:27pm 09 Oct 2013
Copy link to clipboard 
Print this post

  psergiu said   Thanks Lopez !
I downloaded the file - as soon as i have all the hardware in place, i'll try to adapt your software for Camry/Solara and i'll provide the updates here.


No worries. Is the Camry Solara a Hybrid?

JohnEdited by Lopezjm2001 2013-10-11
Lopez
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024