S2000 Talk Discussions related to the S2000, its ownership and enthusiasm for it.

Arduino + S2000 = Fun

Thread Tools
 
Old Jul 13, 2015 | 05:36 PM
  #1  
humbucker87's Avatar
Thread Starter
 
Joined: Sep 2010
Posts: 508
Likes: 2
Default Arduino + S2000 = Fun

[media]http://www.youtube.com/watch?v=SNHvhCRM4OI[/media]

Been messing around with an Arduino micro controller, some segmented displays, and an OBD-II adapter. There are certainly easier, cheaper, different ways to accomplish the same thing. Regardless, I've been having fun messing around and learning. The modes are RPM, Throttle Position, Intake Temp, Wheel Speed, Coolant Temp.

I need to take another look at the code and get the refresh rate down to something more responsive.

I also have shift lights hooked up, but I need to get it mounted to a box and then take it out to test the shift light pattern and timing.

Hope you guys enjoy.
Reply
Old Jul 15, 2015 | 04:07 PM
  #2  
Gernby's Avatar
Former Sponsor
 
Joined: Mar 2002
Posts: 15,526
Likes: 18
Default

Arduinos are definitely cool! I have one that connects directly to the CAN bus in my '08, but I don't use it to display anything.
Reply
Old Jul 16, 2015 | 07:32 AM
  #3  
humbucker87's Avatar
Thread Starter
 
Joined: Sep 2010
Posts: 508
Likes: 2
Default

Cool, I didn't realize the S2000 ever had CAN bus available? I'm assuming it's probably 06+ or even 08+?

Also I fixed the refresh rate issue. Hopefully I can get a better video once I make an enclosure for it and get the shift lights working.
Reply
Old Jul 16, 2015 | 05:46 PM
  #4  
cleenyc99's Avatar
10 Year Member
 
Joined: Mar 2015
Posts: 574
Likes: 1
Default

yeah I think its o6+ I no my 04 is only k-line scs and nep
Reply
Old Jul 17, 2015 | 06:54 AM
  #5  
Gernby's Avatar
Former Sponsor
 
Joined: Mar 2002
Posts: 15,526
Likes: 18
Default

Yes, '06+
Reply
Old Jul 17, 2015 | 07:31 AM
  #6  
SlowTeg's Avatar
15 Year Member
Liked
Loved
Community Favorite
 
Joined: Mar 2010
Posts: 4,742
Likes: 211
Default

Very cool. There has been some talk about being able to possibly read the brake pressure sensor off the CAN bus through the ABS module, but not sure if it's true or not. Also it might be limited to '06+..? One of these days I'd love to tinker w/ it but just don't have the time lately. You trying to setup CAN bus datalogging rather than whatever BUS the obd-2 port normally reads from? I remember you created that snazzy AP2 template for racerender that I still use.
Reply
Old Jul 17, 2015 | 08:54 AM
  #7  
idiskjock's Avatar
 
Joined: Sep 2012
Posts: 88
Likes: 0
Default

pretty cool... I have a scanguage2 and it does the same. Cool display nonetheless
Reply
Old Jul 17, 2015 | 10:00 AM
  #8  
Gernby's Avatar
Former Sponsor
 
Joined: Mar 2002
Posts: 15,526
Likes: 18
Default

The CAN bus on the '06+ has TONS of high speed / high resolution VSA data, which is what I used for my CAN Dyno.

[media]http://www.youtube.com/watch?v=Te_y9cFyi-w[/media]
Reply
Old Jul 18, 2015 | 07:22 AM
  #9  
SlowTeg's Avatar
15 Year Member
Liked
Loved
Community Favorite
 
Joined: Mar 2010
Posts: 4,742
Likes: 211
Default

Originally Posted by Gernby
The CAN bus on the '06+ has TONS of high speed / high resolution VSA data, which is what I used for my CAN Dyno.

[media]http://www.youtube.com/watch?v=Te_y9cFyi-w[/media]
Would you mind sharing some of the details of your setup Gernby? Also, is there any way to know which "address" on the CAN bus is for a given sensor or is it just brute force? My goal of datalogging off the CAN bus would be to primarily get a reading of the brake pedal pressure sensor (I think there's a sensor in the ABS module that is monitored by the VSA sytem). The datalogging off the OBD2 port (which BUS do most OBD2 readers read?) lacks this sensor which would be very helpful for going back and looking at track data.

I have seen that AIM makes a device I think for newer model civics that datalogs off the CAN bus.. maybe the "addresses" are the same for many sensors. Currently I'm combining gopro footage with datalogging from an OBD2 bluetooth adapter that logs to my phone. Last I saw I don't recall AIM devices listing s2000's as having datalogging capabilities over the CAN bus, but I wonder if they didn't bother testing with 06+ s2k's..

If you have any advice or input I'm all ears.
Reply
Old Jul 18, 2015 | 08:25 AM
  #10  
Gernby's Avatar
Former Sponsor
 
Joined: Mar 2002
Posts: 15,526
Likes: 18
Default

Most of the traffic on the CAN Bus seems encrypted, but not all of it. I spent a TON of time trying to figure out what the non-encrypted data was, which required some custom software. It's been a while since I looked at it, so I'm not sure if the spreadsheet I'm looking at is the latest / most accurate, but here is a summary:

PID Data Byte
106 D4= Misfire? D5 = Starter D7 = Brake Pressure
166 D1 = Fuel Status? D8 = Bitwise Data
170 D1 = Throttle pedal
198 D1 & D2 = Steering Wheel D3 = Lateral Accellerometer
300 D1 = ECT D2 = Ambient Temp or IAT D5 & D6 = RPM D7 = Bitwise stats D8 = Fuel Trims?
448 D1 & D2 = Speed D3 & D4 = Speed 2 D5 & D6 = Speed 3 D7 & D8 = Speed 4
Reply



All times are GMT -8. The time now is 08:22 PM.