Notices

RxDuino: Development Chat

Old 06-13-2011, 05:50 PM
  #1  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
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 11:46 AM. Reason: Image and Purchase Info
Old 06-13-2011, 05:56 PM
  #2  
SARX Legend
iTrader: (46)
 
9krpmrx8's Avatar
 
Join Date: Jan 2007
Location: San Antonio, Texas
Posts: 33,784
Received 452 Likes on 366 Posts
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, 06:02 PM
  #3  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
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, 08:43 PM
  #4  
Registered
iTrader: (1)
 
rafaga's Avatar
 
Join Date: Oct 2007
Location: Boston, MA
Posts: 193
Likes: 0
Received 0 Likes on 0 Posts
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, 08:54 PM
  #5  
Jared
iTrader: (3)
 
8upbad's Avatar
 
Join Date: Jul 2009
Location: South Florida
Posts: 777
Likes: 0
Received 1 Like on 1 Post
Great read. Keep up the good work.
Old 06-13-2011, 09:11 PM
  #6  
Registered
 
jasonrxeight's Avatar
 
Join Date: Jan 2010
Location: Omaha, NE
Posts: 3,487
Likes: 0
Received 3 Likes on 3 Posts
not bad.
Old 06-13-2011, 09:30 PM
  #7  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
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 09:43 PM.
Old 06-13-2011, 10:14 PM
  #8  
Registered User
 
YaXMaN's Avatar
 
Join Date: Sep 2004
Location: Austin, TX
Posts: 389
Likes: 0
Received 0 Likes on 0 Posts
Nerds.



This is very cool, btw.
Old 06-14-2011, 12:13 AM
  #9  
Registered
 
drifthappens's Avatar
 
Join Date: Oct 2010
Posts: 105
Likes: 0
Received 0 Likes on 0 Posts
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, 08:43 AM
  #10  
Registered
 
fish1's Avatar
 
Join Date: Mar 2007
Location: Georgetown
Posts: 227
Likes: 0
Received 0 Likes on 0 Posts
uummmmm....yah....er, for sure........huh?
Old 06-14-2011, 09:02 AM
  #11  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
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, 10:39 AM
  #12  
Out of NYC
iTrader: (1)
 
nycgps's Avatar
 
Join Date: Jun 2005
Location: Planet Earth
Posts: 19,881
Received 31 Likes on 29 Posts
interesting project. looking forward to it.
Old 06-14-2011, 12:15 PM
  #13  
I zoom therefore I am.
 
laythor's Avatar
 
Join Date: Mar 2007
Location: San Jose, CA
Posts: 4,919
Received 12 Likes on 11 Posts
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, 12:42 PM
  #14  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
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, 09:01 AM
  #15  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
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, 04:14 PM
  #16  
I HATE SPEEDBUMPS!
 
monchie's Avatar
 
Join Date: Nov 2007
Location: Las Vegas, NV
Posts: 8,549
Likes: 0
Received 7 Likes on 6 Posts
I'm not into electronics, but this is cool.
Old 06-20-2011, 08:41 PM
  #17  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
Name:  IMG_20110620_213658.jpg
Views: 1194
Size:  42.3 KB

Name:  IMG_20110620_213647.jpg
Views: 1184
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, 08:48 PM
  #18  
Phone Booth'd
iTrader: (4)
 
fuztupnz's Avatar
 
Join Date: May 2009
Location: Cincinnasty
Posts: 2,441
Likes: 0
Received 0 Likes on 0 Posts
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, 08:49 PM
  #19  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
Thanks bud, I appreciate it.
Old 06-21-2011, 06:13 PM
  #20  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
Finished up the OBD cable, DB9 contains HSCAN pinouts, Black = MSCANLO, Red = MSCANHI

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

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

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

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

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

Name:  IMG_20110621_190943.jpg
Views: 1183
Size:  94.4 KB
Old 06-21-2011, 06:36 PM
  #21  
Time for boost...
iTrader: (24)
 
RX8Soldier's Avatar
 
Join Date: Jun 2010
Location: Canada
Posts: 5,414
Likes: 0
Received 15 Likes on 14 Posts
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, 06:19 PM
  #22  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
S2 owners rejoice

http://www.youtube.com/watch?v=d5IeEzGp6o4
Old 06-22-2011, 06:36 PM
  #23  
I zoom therefore I am.
 
laythor's Avatar
 
Join Date: Mar 2007
Location: San Jose, CA
Posts: 4,919
Received 12 Likes on 11 Posts
awesome!
Old 06-22-2011, 07:48 PM
  #24  
Gimmie that Bitch Cannon
 
TrickWilliams's Avatar
 
Join Date: Jun 2011
Location: Minnesota
Posts: 249
Likes: 0
Received 0 Likes on 0 Posts
Ohh no very sick
Old 06-22-2011, 08:01 PM
  #25  
Registered
Thread Starter
iTrader: (15)
 
paimon.soror's Avatar
 
Join Date: Jun 2010
Location: Between Cones
Posts: 7,560
Received 25 Likes on 23 Posts
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.

Thread Tools
Search this Thread
Rate This Thread
Rate This Thread:
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 12:14 PM.