E90Post
 


GT Haus
 
BMW 3-Series (E90 E92) Forum > E90 / E92 / E93 3-series Powertrain and Drivetrain Discussions > N54 Turbo Engine / Drivetrain / Exhaust Modifications - 335i > iDrivino is Now Free For All - Open Source!



Reply
 
Thread Tools Search this Thread
      07-01-2012, 09:34 PM   #1
iDrivino
Private
 
Drives: 535xiT
Join Date: Dec 2010
Location: USA

Posts: 50
iTrader: (0)

iDrivino is Now Free For All - Open Source!

After playing around with the iDrivino prototype for the better part of 9 months, I feel the rest of the turbo community is really missing out on something cool. Therefore I've decided to offer the entire source code and hardware schematic for iDrivino free to the public! My six plus months of work is yours in the matter of seconds.

If you haven't seen what the iDrivino is all about, see this post
http://www.e90post.com/forums/showthread.php?t=578237

I've shared the code on GitHub for people to learn, modify, and improve as you see fit.
https://github.com/idrivino/arduino-side
https://github.com/idrivino/propeller-side

I have attached a PDF of the hardware schematic in the idrivino/arduino-side repo. My prototype is built on the Chameleon AVR board, the SK-Pang Canbus shield for Arduino, and a bunch of hand-soldered components. It ain't cheap or pretty, but it sure does the trick.

There is a ton of cleaning up to do, and many half or unimplemented stubs of code commented out within the Arduino side of microcontroller. In addition, much of what I've added to my prototype as "extras" such as the external 3-bar GM MAP sensor, meth output pin, etc. you may neither want nor need.

Many thanks to RixSt3r for his friendly e-mail exchanges back and forth.

To all the nerds & geeks on e90post: I look forward to you implementing some awesome new features!

If anyone wants to make me an elegant integrated PCB of the prototype, that would be cool too.
iDrivino is offline  
0
Reply With Quote
      07-01-2012, 09:34 PM   #2
iDrivino
Private
 
Drives: 535xiT
Join Date: Dec 2010
Location: USA

Posts: 50
iTrader: (0)

Reserved for media to be uploaded.
iDrivino is offline  
0
Reply With Quote
      07-01-2012, 09:37 PM   #3
posite
Private First Class
 
posite's Avatar
 
Drives: 335i F30
Join Date: Jan 2011
Location: TX

Posts: 187
iTrader: (4)

Very cool that you made it open source!
__________________
335i F30 6spd - Glacier Gray | Mods: JB4
OLD: 335i E90 LCI - Jet Black | Mods: V5 FBO e85
posite is offline  
0
Reply With Quote
      07-01-2012, 09:44 PM   #4
hickoryE92
First Lieutenant
 
Drives: Black E92 335i
Join Date: Jan 2011
Location: NC

Posts: 335
iTrader: (1)

i like this a lot... i think it could be much more appealing if the gauges/display was a different style. Like maybe make it more OEM looking or at least more modern and not so plain. Perhaps have some color too.
hickoryE92 is offline  
0
Reply With Quote
      07-01-2012, 09:52 PM   #5
E90Company
Major General
 
E90Company's Avatar
 
Drives: 335i
Join Date: Mar 2012
Location: FL

Posts: 6,140
iTrader: (2)

Nice job! Too bad I won't be benefitting from it
__________________
E90 N54 6AT
E90Company is offline   No_Country
0
Reply With Quote
      07-01-2012, 11:00 PM   #6
NiVeDh
Major General
 
NiVeDh's Avatar
 
Drives: '08 E90 335i 6MT BSM
Join Date: Apr 2009
Location: Houston, TX & Atlanta, GA

Posts: 7,987
iTrader: (132)

Garage List
Very cool.
NiVeDh is offline   India
0
Reply With Quote
      07-02-2012, 01:03 AM   #7
EDM92
Colonel
 
EDM92's Avatar
 
Drives: Low&Slow
Join Date: Nov 2008
Location: Florida

Posts: 2,554
iTrader: (9)

Awesome!!
__________________

Montego Blue 2007 E92 335i - ZSP / ZPP / Steptronic / Logic7
Broadway Static - CCW - Megan - Orion
Instagram: bmwforlife
EDM92 is online now   United_States
0
Reply With Quote
      07-02-2012, 01:12 AM   #8
AltecBX
Colonel
 
AltecBX's Avatar
 
Drives: BMW 335xi Sedan
Join Date: Nov 2007
Location: NYC

Posts: 2,632
iTrader: (0)

Very cool to put this out open source. Great work!
AltecBX is offline   United_States
0
Reply With Quote
      07-02-2012, 07:02 AM   #9
._.
Colonel
 
._.'s Avatar
 
Drives: BMW
Join Date: Jun 2009
Location: Miami

Posts: 2,349
iTrader: (15)

awesome, thanks!
._. is offline  
0
Reply With Quote
      07-02-2012, 10:27 AM   #10
GetSomeE92
Major
 
Drives: '09 Space Gray E92
Join Date: Mar 2011
Location: Miami, FL

Posts: 1,032
iTrader: (7)

Checked out your old thread. That is really cool. I already have the ModMyNav multimedia interface, too. Only thing I'm missing is the knowledge to make it work with my car and a JB4.
GetSomeE92 is offline   United_States
0
Reply With Quote
      07-02-2012, 06:16 PM   #11
iDrivino
Private
 
Drives: 535xiT
Join Date: Dec 2010
Location: USA

Posts: 50
iTrader: (0)

Quote:
Originally Posted by hickoryE92 View Post
i like this a lot... i think it could be much more appealing if the gauges/display was a different style. Like maybe make it more OEM looking or at least more modern and not so plain. Perhaps have some color too.
Go for it! Open source, so login to Github and get to work. All the changes you're looking for are done on the Propeller chip using Spin, so time to get proficient at it. There are actually 4 colors in the current implementation If anyone wants to dedicate the time, you could display bitmapped images if so desired. You just have to get the Flash memory code working again and make a Prop driver to load it.
iDrivino is offline  
0
Reply With Quote
      07-02-2012, 07:21 PM   #12
Slops
Major General
 
Slops's Avatar
 
Drives: 2005 C55 AMG
Join Date: Jan 2011
Location: Oxford

Posts: 5,326
iTrader: (2)

This is awesome! I was hoping it would be compatible with the USB rev3 but maybe there is some room for improvement! Great application though!
Slops is offline   South Africa
0
Reply With Quote
      12-17-2012, 06:48 AM   #13
Farewell
Enlisted Member
 
Drives: 325dA
Join Date: Jun 2012
Location: Austria

Posts: 43
iTrader: (0)

hey guys, i've got an arduino uno and Can BUS Shield (sparkfun).
with this sketch: CAN-BUS ECU Reader demo sketch v4 - For use with Arduino 1.0
i tried changing the Canbus.h file:

#define ENGINE_COOLANT_TEMP 0x05

to

#define ENGINE_COOLANT_TEMP 0x5C


so it should show the Oil temp ... lazy version just dont wanted to change other files too.

but that doesnt work, does anybody know why?

Last edited by Farewell; 12-17-2012 at 06:54 AM.
Farewell is offline   Austria
0
Reply With Quote
      12-17-2012, 08:48 AM   #14
335xi Kevo
Lieutenant
 
335xi Kevo's Avatar
 
Drives: 2008 335xi
Join Date: Jan 2012
Location: CT

Posts: 502
iTrader: (3)

It would be sick if you would produce the hardware for this set-up. I would totally buy the hardware from you.
__________________
08' 335xi 6MT
Space Metallic Grey
Premium, Nav, Cold weather, Sport
Procede 2.5, DCI, Forge DV, PWM, Scoops, KW V1, ETS 5" FMIC, VRSF Downpipes, M3 Skirts
335xi Kevo is offline  
0
Reply With Quote
      12-17-2012, 06:08 PM   #15
iDrivino
Private
 
Drives: 535xiT
Join Date: Dec 2010
Location: USA

Posts: 50
iTrader: (0)

Quote:
Originally Posted by Farewell View Post
i tried changing the Canbus.h file:

#define ENGINE_COOLANT_TEMP 0x05

to

#define ENGINE_COOLANT_TEMP 0x5C


so it should show the Oil temp ... lazy version just dont wanted to change other files too.

but that doesnt work, does anybody know why?
BMW OBD-II protocol does not support all PIDs listed. I am assuming you're using a list like on Wikipedia. Only a small handful are active. I don't have a list of the ones which work, but after discovering what you've found I abandoned the OBD-II implementation. You're better off using the K-CAN/D-CAN/PT-CAN buses available off the same connector.
iDrivino is offline  
0
Reply With Quote
      12-18-2012, 03:55 AM   #16
Farewell
Enlisted Member
 
Drives: 325dA
Join Date: Jun 2012
Location: Austria

Posts: 43
iTrader: (0)

i took it from your sketch, i thought it would be easy like just changing the PID, but ok its not like that...

so i have to figure out, how to read the K-CAN/D-CAN/PT-CAN...

just started my little project, so it may take a while xD
Farewell is offline   Austria
0
Reply With Quote
      12-22-2012, 11:21 AM   #17
Farewell
Enlisted Member
 
Drives: 325dA
Join Date: Jun 2012
Location: Austria

Posts: 43
iTrader: (0)

hm i dont get it -.-
if there is anyone out there, with a sketch, would be great.
just the oil temp, thats all ;(
Farewell is offline   Austria
0
Reply With Quote
      01-02-2013, 09:16 AM   #18
alexwhittemore
Major
 
Drives: 2009 Crimson 328i
Join Date: Oct 2012
Location: Los Angeles

Posts: 1,483
iTrader: (0)

Quote:
Originally Posted by iDrivino View Post
BMW OBD-II protocol does not support all PIDs listed. I am assuming you're using a list like on Wikipedia. Only a small handful are active. I don't have a list of the ones which work, but after discovering what you've found I abandoned the OBD-II implementation. You're better off using the K-CAN/D-CAN/PT-CAN buses available off the same connector.
Any idea where to find the pinout for the connector? I assume you mean BMW includes K/PT/D can all on the handfull of pins (1/3/8/9/11/12/13) left to 'vendor option,' but the Voltage Supply and Bus Systems and General Vehicle Electrical PDFs don't seem to have the actual connector documented.

Follow up question, K is the Body bus, yes? So K is the bus which traffics Window/door/lock messages? K is the bus that's exposed on the standard OBD-II CAN pins 6 (H) and pin 14 (L), right? Does K have ignition messages as well, or are those on the PT-CAN bus?

The reason I ask is that I'm planning a project along the lines of an open-source alarm/geolocation/perhaps remote start module. Door and lock messages are obviously most interesting to me, whereas remote ignition may well be impossible for reasons other than finding which bus the messages are on.

EDIT: for the record, the connector pinout is interesting to me since having a prototype on the connector is more convenient, but eventual implementation will almost certainly be IDC-style taps on the wires BEHIND the connector. So still, a pinout would be nice to have to locate the lines.
alexwhittemore is offline  
0
Reply With Quote
      01-03-2013, 11:23 AM   #19
iDrivino
Private
 
Drives: 535xiT
Join Date: Dec 2010
Location: USA

Posts: 50
iTrader: (0)

Quote:
Originally Posted by alexwhittemore View Post
Follow up question, K is the Body bus, yes? So K is the bus which traffics Window/door/lock messages? K is the bus that's exposed on the standard OBD-II CAN pins 6 (H) and pin 14 (L), right? Does K have ignition messages as well, or are those on the PT-CAN bus?


My bad, K-CAN is not available on the OBD2 connector. I don't use CAN via the OBD2 port, so I am by no means an expert on this. Based on my limited experimentation, PT-CAN are pins 6/14. D-CAN (I guess technically D-Bus for Diagnostic Bus) is the same 500k bus rate & pins, but the messages will be specially formatted diagnostic ID messages. I do not have a BT cable, but I am assuming these messages are how they're unlocking the features they do.

For K-CAN, you will have to tap into somewhere inside the cabin. If you have iDrive, the back of the radio is convenient (which is what I'm doing).

Good luck, sounds like an interesting project!
iDrivino is offline  
0
Reply With Quote
      01-03-2013, 11:27 AM   #20
alexwhittemore
Major
 
Drives: 2009 Crimson 328i
Join Date: Oct 2012
Location: Los Angeles

Posts: 1,483
iTrader: (0)

Quote:
Originally Posted by iDrivino View Post

For K-CAN, you will have to tap into somewhere inside the cabin. If you have iDrive, the back of the radio is convenient (which is what I'm doing).
Aww hell, that was my next question . No idrive here. I may just have to dive into the junction box, then, since all the bus terminations there are well documented.
alexwhittemore is offline  
0
Reply With Quote
      01-03-2013, 11:27 AM   #21
DallasBoosted
Captain
 
DallasBoosted's Avatar
 
Drives: '08 E92 335i
Join Date: Apr 2012
Location: Dallas

Posts: 864
iTrader: (3)

Garage List
2008 BMW 335i  [5.00]
It would be very nice if a vendor could come with a plug-n-play gauge box that displays some gauges on iDrive... AFR bank 1/2, boost, coolant temp, maybe fuel trims would be nice.
DallasBoosted is offline  
0
Reply With Quote
      01-03-2013, 11:42 AM   #22
VSmotorsports
Lieutenant Colonel
 
VSmotorsports's Avatar
 
Drives: e92 M3
Join Date: Apr 2010
Location: Schaumburg, IL

Posts: 1,633
iTrader: (3)

Send a message via AIM to VSmotorsports
very nice, thanks for sharing and putting your time and effort into making this work!
VSmotorsports is offline  
0
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:55 AM.




e90post
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST