Not joined yet? Register for free and enjoy features such as alerts, private messaging and viewing latest posts and topics.

E85 / E86 BMW Z4 – Android tablet integration

Post Reply
js_online
Newbie
Newbie
Posts: 25
Joined: Mon May 18, 2015 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration - INCOMPLE

Post by js_online » Fri Jun 19, 2015 12:48 am

markplant wrote:Pin assignments at plug connector X18802 (white plug):
Could I ask were you got the pin info from for connector x18802,
Or a link if you have one thanks
Top job :thumbsup:
I found it in google. Most pinnings for X18802 were incorrect. This is correct one for Z4. Personally tested by tester.
If you have free wire (from used monitor you are going to install) just connect white plug and use tester in beep mode to ping thru wires on other end to find right wire for right pin: video wires are marked with red, green and blue label (center is + pins 1,3,5, shield is corresponding minus or ground these are pins 2,4,6- all these could be connected together), find wires linked to pin 8 and pin 9 and measure voltage (should be 12V). Other wires are not required (pin 7, pin 11).

You can find the same in board monitor installation spec in section 10 - circuit diagram (top middle of the page).
Last edited by js_online on Fri Jun 19, 2015 1:16 am, edited 3 times in total.

js_online
Newbie
Newbie
Posts: 25
Joined: Mon May 18, 2015 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration - INCOMPLE

Post by js_online » Fri Jun 19, 2015 12:52 am

markplant wrote: How do you get rid of the AVIN SOFTWARE buttons that appear on screen
After AVIN showing picture from board computer just touch screen one time and buttons will disappear, touch again and buttons will appear.

js_online
Newbie
Newbie
Posts: 25
Joined: Mon May 18, 2015 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by js_online » Fri Jun 19, 2015 1:03 am

Plan to work and improve picture from board monitor in next days. Found out two more elements in LM1881 spec to reduce noise and cut crap from input signal.
620Ohm resistor and 510pf capacitor.
Idea is to add few more elements on LM1881 pin 2 input.

According to LM1881 spec: Normally the signal source for the LM1881 is assumed to be clean and relatively noise-free, but some sources may have excessive video peaking, causing high frequency video and chroma components to extend below the black level reference. Some video discs keep the chroma burst pulse present throughout the vertical blanking period so that the burst actually appears on the sync tips for three line periods instead of at black level.A clean composite sync signal can be generated from these sources by filtering the input signal. When the source impedance is low, typically 75Ω, a 620Ω resistor in series with the source and a 510 pF capacitor to ground will form a low pass filter with a corner frequency of 500 kHz. This bandwidth is more than sufficient to pass the sync pulse portion of the waveform; however, any subcarrier content in the signal will be attenuated by almost 18 dB, effectively taking it below the comparator threshold.

Image

Result: Stuff above did not work. No improvement :driving:
But during processing I accidentally touched video wire and arrived to expectation :thumbsup:

So finally I did the following: added 620 Ohm resistor between Ambery converter and WiFi sender on video cable center wire (just soldered it inside WIFI video sender video wire connector) and got what I was expecting.
I found out that by changing resistance (from 0 up to 1k) will change not only stability but also brightness etc. So there is place for experiment by trying 0 ohm -to 1K trimmer and by finding perfect resistance.

Image

After adding this resistor sync wire connecting delay on also probably not required as sync is catch immediately without any issues.

Ideally WIFI AVIN app requires improvements too to remember user choice:
1. save picture zoom on closure and restore picture zoom on opening
2. the same for showing/hiding buttons

User avatar
markplant
Lifer
Lifer
Posts: 3659
Joined: Mon Jul 21, 2014 8:16 pm
Location: Sheffield

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by markplant » Sun Jul 05, 2015 4:21 pm

js_online, where did you get the ambery and chip from . as I've hacked into my wiring today . but I soldered on phono leads an connected to a rgb to composite an then used the same WiFi sender.
Getting image on to screen but its slightly big slightly blocky and purple .
Converter was from Amazon
http://www.amazon.co.uk/gp/product/B00A ... ge_o00_s00
Getting a bit out of my depth :headbang:
Cheers for any help
3.0 Manual. Sterling Grey. Cream leather Electric an Heated. Professional Navigation/Sony tablet replacement. Storm Werks . an parts waiting to be fitted

js_online
Newbie
Newbie
Posts: 25
Joined: Mon May 18, 2015 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by js_online » Tue Jul 07, 2015 8:17 pm

markplant wrote:js_online, where did you get the ambery and chip from . as I've hacked into my wiring today . but I soldered on phono leads an connected to a rgb to composite an then used the same WiFi sender.
Getting image on to screen but its slightly big slightly blocky and purple .
Converter was from Amazon
http://www.amazon.co.uk/gp/product/B00A ... ge_o00_s00
Getting a bit out of my depth :headbang:
Cheers for any help
LM1881 I purchased in local electronics store. As its relatively chip try one more.
Regarding Ambery:
Purchased on e-bay with name "e-video", item: "15Khz RGB RGsB RGBS to VGA XGA Converter Scaler". I do not see this item anymore. As I understood by communication this item was purchased directly from Ambery in US. I believe you can order also directly on Ambery site

Ambery is connected to 12V power.
Ambery is in NTSC mode.
Cable from X1812 (MK4) is connected to VGA 15pin D-SUB connector. I did not used internal on board connector (only taking green from it to pass to LM1881) as H/V sync on internal connector have resistor in between it and Sync H/V on VGA D-Sub input pin 13 Sync H/V (probably this is raising color change). So I am taking green video wire from connector on board to pass to LM1881 and passing back Syn H/V from LM1881 to pin 13 on D-Sub VGA connector.
Here I recommend you to check are you doing the same or not and also double check that you are passing Red Green and Blue from MK4 to correct corresponding pins on D-Sub 15. To find right wire on D-Sub I recommend you also ping thru (beep) with tester Red Green Blue on Ambery board with corresponding pins on Ambery D-Sub VGA to be 100% sure you use right wires on D-Sub (Red Green and Blue on D-Sub are linked directly with Red Green and Blue on board).
So check this page, pinning of Ambery is on the bottom.
If stuff above is not helping try to check Ambery converter at home by connecting different RGB source (for example DVD player at home( and simply passing composite to external monitor or tv).

Screen in WiFi video sender is bigger, I confirm this, so you need to zoom in by standard android method (moving 2 finger closer). I recommended developer to remember last user choice, so hopefully it will be included in next versions.
Sometimes picture little bit is not stable and shakes minimal. As I found this is issue of wifi video sender and re-opening app helps.

I hope in close future video in for android will be improved and standardized (VGA video in, HDMI video in etc) and I hope more devices will be available, so replacing only wifi video sender will solve all current issues and expecatations.

I am not sure, but I believe it is not good idea to connect the same RGB from MK4 to 2 sources (BMW board and Ambery) at the same time as signal will have noise.

And of course I wish you patience mate and idea will succeed one day. I was bearing monitor idea for 2 years, searching on google, reading this forum, reading another papers.

User avatar
markplant
Lifer
Lifer
Posts: 3659
Joined: Mon Jul 21, 2014 8:16 pm
Location: Sheffield

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by markplant » Tue Jul 07, 2015 8:33 pm

Thanks for that . I will try the pinch to zoom first as that's straight forward. An then see about getting the ambery. Thanks again
3.0 Manual. Sterling Grey. Cream leather Electric an Heated. Professional Navigation/Sony tablet replacement. Storm Werks . an parts waiting to be fitted

js_online
Newbie
Newbie
Posts: 25
Joined: Mon May 18, 2015 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by js_online » Wed Jul 08, 2015 12:44 am

markplant wrote:js_online, where did you get the ambery and chip from . as I've hacked into my wiring today . but I soldered on phono leads an connected to a rgb to composite an then used the same WiFi sender.
Getting image on to screen but its slightly big slightly blocky and purple .
Converter was from Amazon
http://www.amazon.co.uk/gp/product/B00A ... ge_o00_s00
Getting a bit out of my depth :headbang:
Cheers for any help
Actually checked your amazon link. This device is not compatible with current project - I do not see Sync input on it. This is just standard "RGB to Composite Video Converter" without sync input.
Believe me, I tried many devices from China and Europe until I found Ambery.

First of all Sync is implemented on Green in BMW (RGsB). In standard devices it is implemented on Blue (RGBs). Therefore you MUST Extract Sync from Green wire and pass it separately to Sync H/V (see my previous post, datasheet of LM1881 and article which provided step by step guide about LM1881 sync separator, 2 capacitors and resistor required for LM1881).
This is the main idea and the most complex and important part of it and you can't skip this.

Conclusion - if you expect the same result you should use the same devices and setup :wink:

Svet88
Newbie
Newbie
Posts: 3
Joined: Mon Nov 24, 2014 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by Svet88 » Fri Aug 28, 2015 4:13 pm

Hi, guys!

first of I have to give big thanks for the awesome arduino+ sony tablet integration.
I have it done completely, but I have a major issue that I hope you will be able to resolve quickly!

Basically, on ignition the tablet doesn't move all the way up. If I manually move it to the maximum possition, then upon taking the key out the screen doesn't fully close down.
Please help, I have a perfect setup and I hate to have it ruined by this small issue!

Is there something in the code that might be wrong?

Here is a video of what is happening:
[youtube]https://www.youtube.com/watch?v=im4uoe5YdEk[/youtube]
https://www.youtube.com/watch?v=im4uoe5YdEk
Please, I would love a quick answer to this, so shoot me an email with the fix
[email protected]

THANKS!!!!

js_online
Newbie
Newbie
Posts: 25
Joined: Mon May 18, 2015 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by js_online » Wed Sep 16, 2015 9:27 am

Svet88 wrote:Hi, guys!
first of I have to give big thanks for the awesome arduino+ sony tablet integration.
I have it done completely, but I have a major issue that I hope you will be able to resolve quickly!
Basically, on ignition the tablet doesn't move all the way up. If I manually move it to the maximum possition, then upon taking the key out the screen doesn't fully close down.
Please help, I have a perfect setup and I hate to have it ruined by this small issue!
Hi!

As I understood from my setup this happens because stepper motor must be powered before running code. If motor is powered on ignition and code is run simultaneously you have result like this. In original BMW setup stepper motor is powered all the time.
This also happens in my car if car was not running for a long time (few weeks). I believe you can add also kind of physical timer relay for this to power on stepper motor before arduino runs code.

From code perspective I added delay already for initial monitor opening, you can increase DELAY_L from 500 millisecond higher to 1000 etc. to allow motor power up first.

Code: Select all

int DELAY_L=500;    //long delay
...
void setup()
...
  //power on delay
  delay(DELAY_L); 
...
To see and debug counter value simply connect your arduino board to PC, open arudino software and Enable Serial Monitor by pressing Ctrl + Shift + M to see debug messages.
This line

Code: Select all

 Serial.print("POS_CUR=");Serial.println(POS_CUR);
in code will print you counter value on screen movement.

Regarding maximum position - try to play with POS_MAX variable in code by increasing it to 11, 12, 13 etc:

Code: Select all

float POS_MAX=10.7;       //monitor maximum position
Regarding manual movement by hand - as I described in code - "Positioning is not tracked if monitor is adjusted manually." Counter is tracking only in the moment monitor is moved by code (initial ignition open/close or buttons).

User avatar
Vanne
Senior Member
Senior Member
Posts: 1566
Joined: Sun Jul 07, 2013 12:55 pm
Location: Dubai
Contact:

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by Vanne » Tue Sep 29, 2015 8:15 am

Is it possible for someone to put a kit together for those of us who have the factory pop up screen. Id love this, but would love to retain the radio and phone functionality.

Not that good with a solder iron myself, but woukd love a kit that we could put together ourselves..
2007 EuroSpec Z4///MC Building/Developing Z4 GT3
Powered by Severn Tuning

Image

js_online
Newbie
Newbie
Posts: 25
Joined: Mon May 18, 2015 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by js_online » Tue Sep 29, 2015 8:43 am

Vanne wrote:Is it possible for someone to put a kit together for those of us who have the factory pop up screen. Id love this, but would love to retain the radio and phone functionality.
Not that good with a solder iron myself, but woukd love a kit that we could put together ourselves..
All you need is described in this message.

Tablet setup:
1. Sony Xperia Z Ultra + Magnetic charge USB cable + Micro Usb cable (for sync)
2. Arduino R3 UNO + USB cable (for sync)
3. Timer relay
4. 12V relay (to enable arduino on ignition)
5. Converter 12V to 5V 3A

Radio and phone functionality is not touched. Nothing is touched except screen of original BMW setup.

This post describes setup to see video from board computer (MK4 without video module) on integrated Android tablet.

User avatar
Vanne
Senior Member
Senior Member
Posts: 1566
Joined: Sun Jul 07, 2013 12:55 pm
Location: Dubai
Contact:

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by Vanne » Tue Sep 29, 2015 1:00 pm

Any soldering required? The circuit for sync on green, do I have to make that or does it just plug into tvtowifi? I love how you hace done this, hat off. ;-)
2007 EuroSpec Z4///MC Building/Developing Z4 GT3
Powered by Severn Tuning

Image

js_online
Newbie
Newbie
Posts: 25
Joined: Mon May 18, 2015 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by js_online » Tue Sep 29, 2015 5:13 pm

Vanne wrote:Any soldering required? The circuit for sync on green, do I have to make that or does it just plug into tvtowifi? I love how you hace done this, hat off. ;-)
As described in post. You need to solder LM1881 to extract sync from green. Also you need to solder BMW RGB video wires to 15pin D-SUB VGA connector as per Ambery specification.

Nothing in this project is just "plugin". But stuff is not complex. Everything is described in all details. You can ask assistance to make soldering work done in your region or this is great opportunity to learn solder your own ;)

js_online
Newbie
Newbie
Posts: 25
Joined: Mon May 18, 2015 11:49 pm

Re: E85 / E86 BMW Z4 – Android tablet integration

Post by js_online » Fri Jan 01, 2016 8:11 pm

Regarding initial monitor opening delay after ignition is turned on:

1. Define variable and set value (5000ms = 5 sec in this example):

Code: Select all

int DELAY_INIT=5000;    //delay on ignition
2. Add delay in 2 places in code (setup section and loop section):

Code: Select all

  
 if (ignState==LOW)   {
    //ignition 12V power is on 
    delay(DELAY_INIT);     
    ...

User avatar
McKoval
Member
Member
Posts: 479
Joined: Thu Mar 31, 2011 10:58 am
Location: Krakow

E85 / E86 BMW Z4 – Android tablet integration

Post by McKoval » Tue Apr 05, 2016 11:01 am

As I have failed trying to source a z4 nav loom, I'm considering retrofitting android tablet..

I have only a screen and a screen-less radio, plus my oem bmw business cd setup with amp and 10 speakers (logoc 7).
What I'd like to achieve is to have a tablet integrated with screen housin, which would have its funcionallity, as an AUX source, but would allow me to change tracks with mfsw, and would have a usb socket to use a pendrive as a music source.

What I will need except an xperia z, arduino, and all that stuff?
Probably some kind of mediabridge?
And does the mediabridge allow mixing sources in it? Meaning if you have a nav on tablet, and usb connected to mediabrigde, will it play it both simultanously?

Cheers,
McK
Image

Post Reply