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, 10:34 PM   #1
iDrivino
Private
6
Rep
50
Posts

Drives: 535xiT
Join Date: Dec 2010
Location: USA

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.
Appreciate 1
      07-01-2012, 10:34 PM   #2
iDrivino
Private
6
Rep
50
Posts

Drives: 535xiT
Join Date: Dec 2010
Location: USA

iTrader: (0)

Reserved for media to be uploaded.
Appreciate 0
      07-01-2012, 10:37 PM   #3
posite
Second Lieutenant
posite's Avatar
3
Rep
218
Posts

Drives: 335i F30
Join Date: Jan 2011
Location: TX

iTrader: (4)

Very cool that you made it open source!
Appreciate 0
      07-01-2012, 10:44 PM   #4
hickoryE92
First Lieutenant
4
Rep
339
Posts

Drives: Black E92 335i
Join Date: Jan 2011
Location: NC

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.
Appreciate 0
      07-01-2012, 10:52 PM   #5
E90Company
Major General
E90Company's Avatar
No_Country
75
Rep
6,139
Posts

Drives: Car
Join Date: Mar 2012
Location: FL

iTrader: (2)

Nice job! Too bad I won't be benefitting from it
Appreciate 0
      07-02-2012, 12:00 AM   #6
NiVeDh
Major General
NiVeDh's Avatar
United_States
160
Rep
8,015
Posts

Drives: '08 E90 335i, '99 E36 M3
Join Date: Apr 2009
Location: Houston, TX & Atlanta, GA

iTrader: (132)

Garage List
Very cool.
Appreciate 0
      07-02-2012, 02:03 AM   #7
EDM92
Colonel
EDM92's Avatar
United_States
57
Rep
2,561
Posts

Drives: Low&Slow
Join Date: Nov 2008
Location: Florida

iTrader: (9)

Awesome!!
__________________

Montego Blue 2007 E92 335i - ZSP / ZPP / Steptronic / Logic7
Broadway Static - CCW - Megan - Orion
Instagram: bmwforlife
Appreciate 0
      07-02-2012, 02:12 AM   #8
AltecBX
Colonel
AltecBX's Avatar
United_States
110
Rep
2,636
Posts

Drives: BMW 335xi Sedan
Join Date: Nov 2007
Location: NYC

iTrader: (0)

Very cool to put this out open source. Great work!
Appreciate 0
      07-02-2012, 08:02 AM   #9
._.
Colonel
._.'s Avatar
33
Rep
2,357
Posts

Drives: BMW
Join Date: Jun 2009
Location: Miami

iTrader: (15)

awesome, thanks!
Appreciate 0
      07-02-2012, 11:27 AM   #10
GetSomeE92
Major
United_States
14
Rep
1,168
Posts

Drives: '09 Space Gray E92
Join Date: Mar 2011
Location: Miami, FL

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.
Appreciate 0
      07-02-2012, 07:16 PM   #11
iDrivino
Private
6
Rep
50
Posts

Drives: 535xiT
Join Date: Dec 2010
Location: USA

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.
Appreciate 0
      07-02-2012, 08:21 PM   #12
Slops
Major General
Slops's Avatar
South Africa
65
Rep
5,389
Posts

Drives: 2005 C55 AMG
Join Date: Jan 2011
Location: Oxford

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!
Appreciate 0
      12-17-2012, 07:48 AM   #13
Farewell
Enlisted Member
Austria
0
Rep
43
Posts

Drives: 325dA
Join Date: Jun 2012
Location: Austria

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 07:54 AM.
Appreciate 0
      12-17-2012, 09:48 AM   #14
335xi Kevo
Lieutenant
335xi Kevo's Avatar
8
Rep
502
Posts

Drives: 2008 335xi
Join Date: Jan 2012
Location: CT

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
Appreciate 0
      12-17-2012, 07:08 PM   #15
iDrivino
Private
6
Rep
50
Posts

Drives: 535xiT
Join Date: Dec 2010
Location: USA

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.
Appreciate 1
      12-18-2012, 04:55 AM   #16
Farewell
Enlisted Member
Austria
0
Rep
43
Posts

Drives: 325dA
Join Date: Jun 2012
Location: Austria

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
Appreciate 0
      12-22-2012, 12:21 PM   #17
Farewell
Enlisted Member
Austria
0
Rep
43
Posts

Drives: 325dA
Join Date: Jun 2012
Location: Austria

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 ;(
Appreciate 0
      01-02-2013, 10:16 AM   #18
alexwhittemore
Lieutenant Colonel
30
Rep
1,739
Posts

Drives: 2009 Crimson 328i
Join Date: Oct 2012
Location: Los Angeles

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.
Appreciate 0
      01-03-2013, 12:23 PM   #19
iDrivino
Private
6
Rep
50
Posts

Drives: 535xiT
Join Date: Dec 2010
Location: USA

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!
Appreciate 0
      01-03-2013, 12:27 PM   #20
alexwhittemore
Lieutenant Colonel
30
Rep
1,739
Posts

Drives: 2009 Crimson 328i
Join Date: Oct 2012
Location: Los Angeles

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.
Appreciate 0
      01-03-2013, 12:27 PM   #21
DallasBoosted
Captain
DallasBoosted's Avatar
14
Rep
864
Posts

Drives: '08 E92 335i
Join Date: Apr 2012
Location: Dallas

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.
Appreciate 0
      01-03-2013, 12:42 PM   #22
VSmotorsports
Lieutenant Colonel
VSmotorsports's Avatar
58
Rep
1,632
Posts

Drives: e92 M3
Join Date: Apr 2010
Location: Schaumburg, IL

iTrader: (3)

Send a message via AIM to VSmotorsports
very nice, thanks for sharing and putting your time and effort into making this work!
Appreciate 0
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 -4. The time now is 01:04 PM.




e90post
e90post
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2015, 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