Notices

RxDuino: Development Chat

Thread Tools
 
Search this Thread
 
Rate Thread
 
Old 06-13-2011 | 06:50 PM
  #1  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
Thumbs up RxDuino: Development Chat



Contents

Project Status
- Protyping is complete!
- Software is complete!
- Enclosure is complete!
- Track testing is complete!
- Instruction Manual in progress

Purchase Information
Once the product has been finished, I will be working with the admin's and mods of rx8club.com to set up vendor status and a group buy.

Project Information

http://www.normalexception.net/index...canbus-scanner

Project Roadmap
http://www.normalexception.net/redmi...xduino/roadmap

Introduction
As a computer engineer, I have a very high addiction to hardware, software, and data collection. If there is a piece of hardware that is worth tinkering with, I try my best to get my hands on it and give it a try. For my thesis work, I have played around with the TelosB development boards, and used the TinyOS operating system as a basis for development.


Spending so much time with my car, I have really grown to understand the ins and outs of how the actual mechanics of the car work, but I have been very curious to investigate the software communications that happen. One idea was to purchase a premade obd2 scanner and just view data, but I wanted to go a step further.
During my investigation of trying to get my LCD to properly display the time and temperature after changing out the stock radio, I came to understand how the LCD actually works. Residing on a CANBUS, the LCD is primarily communicated with by each peripheral on the network talking to a specific address. Just like how one can retrieve information from the ECU, I wanted to see if I could actually go a bit further and not only scan for information, but also display some important information on my LCD screen.


In doing this research, I came across the Arduino boards. I have always heard a lot of buzz around these boards, but have never had a need to actually get my hands on one. After finding out that these are a perfect light weight development board, as well as an available CANBUS interpreter, it was exactly what was going to suit my needs.


The first step was to actually design a board and some software to get some information out of the OBD2 port. The first thing I did, was to take a simple stupid application just to get some data.




Once I confirmed that I could actually read some data at a reasonable rate, I decided to spice up the GUI a bit and read some more information, through multiple montiors






So far so good, except I found that by having 6 monitors at a time, I get a bit of LCD lag. I will either need to fabricate a lower latency serial bus for the LCD, or do what I decided, and just display 4 at a time.


I will keep you guys updated as time goes. I have some more hardware coming so that I can easily display more info, as well as some tools to fab my own OBD2 cable to communicate to the MSCAN. Let me know what you guys think so far, and feel free to throw in some suggestions.

Last edited by paimon.soror; 04-20-2012 at 12:46 PM. Reason: Image and Purchase Info
Old 06-13-2011 | 06:56 PM
  #2  
9krpmrx8's Avatar
SARX Legend
iTrader: (46)
 
Joined: Jan 2007
Posts: 33,786
Likes: 455
From: San Antonio, Texas
Looks good, I loved my Scanguage II but I like being able to see the data on my factory LCD VIA the Good Box.
Old 06-13-2011 | 07:02 PM
  #3  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
Yep, that's my ultimate goal. Not to rehash what was done with the GB, this will hopefully end up working out for us S2 folks that are unable to use the GB
Old 06-13-2011 | 09:43 PM
  #4  
rafaga's Avatar
Registered
iTrader: (1)
 
Joined: Oct 2007
Posts: 193
Likes: 0
From: Boston, MA
Subscribed! I love the arduino board. I used it to regain button functionality on the OEM nav dash piece and some other minor carputer tasks.

I also just moved to an R3 and will def be installing a carputer on it at some point. Your project is of a lot of interest for me.

You should actually work with MazdaManiac on trying to get that freaking accessport work in S2 cars
Old 06-13-2011 | 09:54 PM
  #5  
8upbad's Avatar
Jared
iTrader: (3)
 
Joined: Jul 2009
Posts: 777
Likes: 1
From: South Florida
Great read. Keep up the good work.
Old 06-13-2011 | 10:11 PM
  #6  
jasonrxeight's Avatar
Registered
 
Joined: Jan 2010
Posts: 3,487
Likes: 3
From: Omaha, NE
not bad.
Old 06-13-2011 | 10:30 PM
  #7  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
Thanks guys, no worries I will keep you guys update as I make progress. If anyone has a good idea on how I can multiplex the two busses that would be great. I was intending to grab a simple AD multiplexer, but it really isn't that easy since the canbus doesn't operate on a digital TX/RX but on an analog HI LO pinout.

Thinking I probably need two muxers

Mx = Mux X
Cx = Channel X

M1C1 = HS High
M2C1 = HS Low
M1C2 = MS High
M2C2 = MS Low

Sx = Select X
M1S1 = M2S1 = Arduino pin D1
M1S2 = M2S2 = Arduino pin D2
M1S3 = M2S3 = Arduino pin D3
M1S4 = M2S4 = Arduino pin D4

So essentially when I pass in 1000 to my selects I will be getting M1C1 and M2C1 enabled, and so forth...

Last edited by paimon.soror; 06-13-2011 at 10:43 PM.
Old 06-13-2011 | 11:14 PM
  #8  
YaXMaN's Avatar
Registered User
 
Joined: Sep 2004
Posts: 389
Likes: 0
From: Austin, TX
Nerds.



This is very cool, btw.
Old 06-14-2011 | 01:13 AM
  #9  
drifthappens's Avatar
Registered
 
Joined: Oct 2010
Posts: 105
Likes: 0
sweet. I was looking into getting into the arduino and i was thinking of doing the same thing. haha. Apparently the android phones can interface with an arduino board as well, so that could be fun.
Old 06-14-2011 | 09:43 AM
  #10  
fish1's Avatar
Registered
 
Joined: Mar 2007
Posts: 227
Likes: 0
From: Georgetown
uummmmm....yah....er, for sure........huh?
Old 06-14-2011 | 10:02 AM
  #11  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
Originally Posted by drifthappens
sweet. I was looking into getting into the arduino and i was thinking of doing the same thing. haha. Apparently the android phones can interface with an arduino board as well, so that could be fun.
Yea I was impressed with the abundance of peripherals available for the arduino. Wireless modules, bluetooth modules and zigbee modules can all be added for cheap! Who knows, if all goes well with my testing maybe I can tack on a bluetooth module and see if we can get it working with the Torque android app :-p

Or instead of having buttons like the goodbox, we could use the android phone as a remote, have a small app running that has a "d-pad" like interface, and when you touch that it changes the display on the lcd....

but thats all thoughts for the future, my first goal is actually getting this stuff displaying on the screen.
Old 06-14-2011 | 11:39 AM
  #12  
nycgps's Avatar
Out of NYC
iTrader: (1)
 
Joined: Jun 2005
Posts: 19,881
Likes: 32
From: Planet Earth
interesting project. looking forward to it.
Old 06-14-2011 | 01:15 PM
  #13  
laythor's Avatar
I zoom therefore I am.
 
Joined: Mar 2007
Posts: 4,919
Likes: 12
From: San Jose, CA
Originally Posted by paimon.soror
Or instead of having buttons like the goodbox, we could use the android phone as a remote, have a small app running that has a "d-pad" like interface, and when you touch that it changes the display on the lcd....

but thats all thoughts for the future, my first goal is actually getting this stuff displaying on the screen.
I'd suggest you patent that idea.. if it isnt already done. Freaking awesome if you ask me!
Old 06-14-2011 | 01:42 PM
  #14  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
It sure would be a sweet thing. I will def keep it in mind. Thanks for the support guys. I will keep you updated
Old 06-20-2011 | 10:01 AM
  #15  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
Originally Posted by rafaga
You should actually work with MazdaManiac on trying to get that freaking accessport work in S2 cars
Hey guys, a little update. I managed to double up my CANBUS circuit to now handle both the MS and HS can bus. The design uses two arduino canbus shields which essentially is using a total of two CANBUS interpreters and transmitters. The software I wrote leverages off of the SPI bus, so I can easily toggle which BUS i want to send and recieve data from.

I was actually doing some thinking and thought about what rafaga said about the AP for S2's. Not so much about the maps, but moreso about the masking of a MIL code. Not sure if he has come across this thread, but anyone (MM) know what methods the AP is actually using to mask an error code (mainly the cat.efficiency codes for those guys who want to run catless)? Could it be as easy as writing some data at a certain address on the ECU? I found the address and command to reset the MIL status.

I will post up some pics when I get home of the progress of the circuit.
Old 06-20-2011 | 05:14 PM
  #16  
monchie's Avatar
I HATE SPEEDBUMPS!
 
Joined: Nov 2007
Posts: 8,549
Likes: 7
From: Las Vegas, NV
I'm not into electronics, but this is cool.
Old 06-20-2011 | 09:41 PM
  #17  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
Name:  IMG_20110620_213658.jpg
Views: 1275
Size:  42.3 KB

Name:  IMG_20110620_213647.jpg
Views: 1264
Size:  35.8 KB

Heres the pics I promised. The top layer is the MSCAN circuit while the middle layer is the HSCAN circuit. The bottom layer is the arduino development board. For those that understand tech jargon and want to know more about what is going on at the top layer with the headers ... thats a rewire of pin 10 (default chip select) to pin 3. This way I can software select which CAN to communicate to depending on what chip I enable via SPI.

I will keep you guys posted. Crossing my fingers that this ends up working out.
Old 06-20-2011 | 09:48 PM
  #18  
fuztupnz's Avatar
Phone Booth'd
iTrader: (4)
 
Joined: May 2009
Posts: 2,441
Likes: 1
From: Cincinnasty
Looks like a hell of a start with a lot of potential Paimon. GL. I like seeing some progress being made on the S2 front.
Old 06-20-2011 | 09:49 PM
  #19  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
Thanks bud, I appreciate it.
Old 06-21-2011 | 07:13 PM
  #20  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
Finished up the OBD cable, DB9 contains HSCAN pinouts, Black = MSCANLO, Red = MSCANHI

Name:  IMG_20110621_181340.jpg
Views: 1306
Size:  90.6 KB

Name:  IMG_20110621_181354.jpg
Views: 1283
Size:  92.3 KB

Name:  IMG_20110621_185617.jpg
Views: 1246
Size:  79.7 KB

Name:  IMG_20110621_185644.jpg
Views: 1239
Size:  78.0 KB

Name:  IMG_20110621_190910.jpg
Views: 1253
Size:  84.0 KB

Name:  IMG_20110621_190943.jpg
Views: 1261
Size:  94.4 KB
Old 06-21-2011 | 07:36 PM
  #21  
RX8Soldier's Avatar
Time for boost...
iTrader: (24)
 
Joined: Jun 2010
Posts: 5,414
Likes: 15
From: Canada
I've said it before, and I'll say it again: You, sir, and your "outside the box" thinking is a credit to the forums!!

I know that you've seen this with other products (GB, etc), and call it "borrowed ideas". But, to actually pursue your projects is what I admire You're bringing a new strain of hope to SII owners lol Maybe Cobb AP for SII isn't too far away, after all...
Old 06-22-2011 | 07:19 PM
  #22  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
S2 owners rejoice

http://www.youtube.com/watch?v=d5IeEzGp6o4
Old 06-22-2011 | 07:36 PM
  #23  
laythor's Avatar
I zoom therefore I am.
 
Joined: Mar 2007
Posts: 4,919
Likes: 12
From: San Jose, CA
awesome!
Old 06-22-2011 | 08:48 PM
  #24  
TrickWilliams's Avatar
Gimmie that Bitch Cannon
 
Joined: Jun 2011
Posts: 249
Likes: 0
From: Minnesota
Ohh no very sick
Old 06-22-2011 | 09:01 PM
  #25  
paimon.soror's Avatar
Thread Starter
Registered
iTrader: (15)
 
Joined: Jun 2010
Posts: 7,560
Likes: 27
From: Between Cones
FYI I ordered a bluetooth chip after I got the screen working. Next step is to see if I can get my android phone to act as a toggle instead of the joystick.


You have already rated this thread Rating: Thread Rating: 0 votes,  average.

Quick Reply: RxDuino: Development Chat



All times are GMT -5. The time now is 11:44 AM.