![]() |
|
|
|
|
#1
|
||||
|
||||
Quote:
__________________
http://superturbodiesel.com/images/sig.04.10.jpg 1995 E420 Schwarz 1995 E300 Weiss #1987 300D Sturmmachine #1991 300D Nearly Perfect #1994 E320 Cabriolet #1995 E320 Touring #1985 300D Sedan OBK #42 |
#2
|
||||
|
||||
Quote:
![]()
__________________
Current Stable
|
#3
|
||||
|
||||
Here's a quick project update.
I've been fighting with the bluetooth connectivity for days. This is one of the most ill documented things, not to mention complex I've ever encountered. One would think that it would be a relatively common thing to do data acquisition on an Arduino and pass the data wirelessly to an Android device, but alas it's not. There are lots of examples of controlling an Arduino from an Android by passing single bytes of data, but almost nothing the other way around, particularly using actual data strings. I've finally got the Arduino passing data strings to the Android relatively reliably. 85 - 90% of the data coming in is good and fortunately I have a way that I can easily recognize the bad data and discard it. If I look at the raw data, it's being received 100% reliably, so there's something with the code that's dropping data. It think it's a timing thing, as what finally got things working was putting in some arbitrary delays. I'm sure that someone out there, will come up with some better code that will make things a lot better. The way things are currently configured, I'm sending 4 readings per second, which is entirely adequate for temperatures and pressures. If I were attempting to read and present rpms for example this would not be adequate. Up until now, I wasn't sure if I would be able to get a bluetooth signal from the engine compartment to the passenger compartment. Today I took my breadboard Arduino and stuck it in the front of the engine compartment where I intend to mount it, turned it on and closed the hood. I booted the Android phone into the skeleton application from the normal position in the cabin and was able to read the data stream coming in. The range is not all that great - moving toward the back of the car, I quickly lost the signal, but moving back to the drivers seat provided a very solid signal. I can now confidently order the rest of the sensors and get the Arduino coded up to supply real data and the Android parsing the incoming data and passing it to the "gauges" part of the program. More to come...
__________________
Current Stable
|
#4
|
||||
|
||||
While my experience around the lack of documentation was similar, once it was working it was solid as a rock. What baud are you running at? Did you look at the android bluetooth chat samples? Thats really the easiest way to go. I spent a month dicking around with amarino, boy was that a waste of time. I was pushing full throttle on whatever baud I had it running at (which now escapes me, I remember it being part of the puzzle).
Did you write your own protocol? I did this, picked some random chars for a header and then packed all the data in behind it. Why would you put your arduino in the engine compartment? It is far better off in the dash somewhere IMO. How are you going to protect it from the elements?
__________________
http://superturbodiesel.com/images/sig.04.10.jpg 1995 E420 Schwarz 1995 E300 Weiss #1987 300D Sturmmachine #1991 300D Nearly Perfect #1994 E320 Cabriolet #1995 E320 Touring #1985 300D Sedan OBK #42 |
#5
|
||||
|
||||
Quote:
The reason to have the Arduino in the engine compartment is to avoid having to run any wires to the cabin. Also makes wiring up the sensors a whole lot easier. I'll be packaging the Arduino in a sealed relay box (see below) and hook up all the external wires through a standard MB plug. Since the box is plastic the bluetooth module can be mounted inside with the rest of the electronics. The Pro-Mini is shown for scale. ![]() I should only 10 of the 12 plug wires available - 12v power and chassis ground, signal and ground for temp sensors (1-wire interface), two wires for EGT and two signal wires and a shared power and ground for the boost and vacuum sensors - 10 wires.
__________________
Current Stable
|
#6
|
||||
|
||||
This is an interesting project, so I will be monitoring this thread. Most of the technical jargon is way above my head, but the whole concept is so very interesting, that it should be fun to watch the progress. BTW, I will have the first Trap-Ox bypass pipe finished soon (for those that don't know, I have Paul's fixture). If you need another pipe, let me know. I am also toying with the idea of making everything out of stainless. Sorry for the temporary hijack....Rich
__________________
![]() All Diesel Fleet 1985 R107 300SLD TURBODIESEL 2005 E320 CDI (daily) LOTS of parts for sale! EGR block kit http://www.peachparts.com/shopforum/diesel-discussion/355250-sale-egr-delete-block-off-plate-kit.html 1985 CA emissions 617 owners- You Need This! Sanden style A/C Compressor Mounting Kit for your 616/ 617 For Sale + Install Inst. Sanden Instalation Guide (post 11): http://www.peachparts.com/shopforum/diesel-discussion/367883-sanden-retrofit-installation-guide.html |
#7
|
||||
|
||||
Quote:
With the max6675 I used you had to let it rest between sensor readings. Another thing I banged my head over. I really like that someone else is running with the BT idea, can't wait to see the final solution. I am also doing water injection as well to keep the EGT's down and will control that my mega. I may end up having to steal some of your ideas ![]() For intance, I was running 1600F at WOT and recently I adjusted my timing and now my EGT's are far lower, but I don't have any logged datapoints to compare with.
__________________
http://superturbodiesel.com/images/sig.04.10.jpg 1995 E420 Schwarz 1995 E300 Weiss #1987 300D Sturmmachine #1991 300D Nearly Perfect #1994 E320 Cabriolet #1995 E320 Touring #1985 300D Sedan OBK #42 |
![]() |
Bookmarks |
|
|