# ## # # # ###
## ### ## ## ## ######
## ## ## ## ## ####
_ | \ /\ | \ / / | (_/ / | _ ( | ( \ \ | / \ \ |_/ \/
# ## # # # # # ###
IMPORTANT: enter the case-INsensitive alphabetic (no numbers) code AND WRITE SOME SHORT summary of changes (below) if you are saving changes. (not required for previewing changes). Wiki-spamming is not tolerated, will be removed, so it does NOT even show up in history. Spammers go away now. Visit Preferences to set your user name Summary of change: Jespers Mercedes 190 2.3-16v Cosworth. The car is initially built as a normally aspirated car but pretty much everything for a turbo engine is gathered too. The VEMS unit in this car is custom built on a v3.1 board with a custom cooling solution to make it easy to service. ---- Trigger problem: The car had an extremely noisy trigger signal, after a lot of investigation it seems like the 50ohm antenna lead was far from a good match. The proper cable should be 600-1000ohm and with the 800ohm sensor impendance the resonance wasn't dampened much. The new setup will use suitable cable and will be terminated at both ends with the right impendance. The shape of the trigger signal was also very unfortunate, a 50 degree long vane trigged a negative pulse when reaching the sensor and then a positive signal when leaving the sensor. ---- Possible solutions: *Using Shielded microphone cable which has suitable impendance. *Adding a 1k termination resistor inside the ECU. ---- Transmission line talk from IRC: _jorgen: Hey, Brian. I remember that you mentioned transmission lines a while back. _jorgen: I wonder a bit about termination of a coax antenna cable GRMracer_: 'ok. GRMracer_: I can help with that. GRMracer_: I need some info.. _jorgen: I have a problem with a Mercedes with a VR sensor with 800ohm resistance. It false triggs as a mf. The guy used 50ohm antenna coax for the signal wire. Could that be a bad idea? GRMracer_: type of cable, freq range etc. GRMracer_: yes. GRMracer_: its actually better to use phone cable for that GRMracer_: its 600phms GRMracer_: 600ohms GRMracer_: esp at trigger frequencies that are near audio. GRMracer_: phone cable is twisted pair. mcel: coax? strange. shield + 2 wires cable is better, coax is not shielded _jorgen: I was thinking about that but as I only based it on the fact that the ohm and frequency range was similar I wanted to check it out a bit more mcel: not in a way that's needed _jorgen: Do you mean telephone or microphone cable? :) GRMracer_: coax is considered sheidled as if used properly all the E-fields are contained in the cable. GRMracer_: I meant twisted pair thats in the wall of your house GRMracer_: for the telephone. GRMracer_: twisted pair is good. GRMracer_: twisted pair that is sheiled is better GRMracer_: problem with in house stuff is its solid core. GRMracer_: not designed for vibration. _jorgen: Microphone/audio signal cable should be perfect as the good ones are twisted pair with external ground shield. The impendance should be about right too. GRMracer_: yes. GRMracer_: it is defiantely much better GRMracer_: you had a big mismatch with the coax _jorgen: And the PA type cables are almost indestructable. GRMracer_: 50 ohm --800phm GRMracer_: 800ohm GRMracer_: bad reflections in the cable. GRMracer_: as it the signal bounces back and forth .. that portion that gets thru. _jorgen: This may be worth noting. In most applications there is only a very small window where it can be trigged because of the ARM threshold in the VR chip. In this case there is a long period of time where the signal is at 0v. _jorgen: Two 50deg long vanes 180deg apart. _jorgen: The scope image is very strange _jorgen: The scope image from the service manual _jorgen: Negative peak - flat for 40 degrees - positive peak - flat for 120degrees. GRMracer_: what is it I can simulate it.. GRMracer_: got the pic. GRMracer_: might even be able to say make an audio file with it in it. GRMracer_: if thats useful _jorgen: A bit later on it is very interesting as there is a bunch of cars waiting for this! GRMracer_: or if we work it out I can set up the stuff here simulate it and get you log files. _jorgen: Many others with cars like this got extatic when he posted some pictures of the temporary install! _jorgen: Should I terminate the wire with 1k on the input of the box too? GRMracer_: what is it.. _jorgen: Mercedes 190 2.3-16v and 2.5-16v GRMracer_: it depends on what the impeadance of the input to our box is. _jorgen: At least 10k _jorgen: Not acceptable... GRMracer_: nope. GRMracer_: can you guess at the Z of it. not just |Z| _jorgen: I think that a 10k to 5v to raise the signal from ground a bit is a start and then a 1k to ground. GRMracer_: we want to match it.. _jorgen: For the box it should be the same as R GRMracer_: ok. so 10k -- 600Ohm -- 800Ohm _jorgen: 1k and 10k should be around the same as the sensor GRMracer_: I missed something. _jorgen: A resistive 10k pullup on the input. Because of the trigger shape this is needed. GRMracer_: Box [input] 10kOhm -- PA line[transmissionline] 600 Ohm -- VRsensor 800Phm _jorgen: From the same point a 1k to ground to act as a terminator on the input GRMracer_: Ohm _jorgen: That should give us slightly less then 1k input impendance GRMracer_: let me figure it out. GRMracer_: but it would be better than what it is IIRC.. _jorgen: I want to raise the 'resting point' of the signal from 0 v to 0.5ish volt GRMracer_: it be better to capacitively couple it first _jorgen: Because the raising edge of the signal that arm the chip is 130 degree or so before the negative edge that trigg it. GRMracer_: otherwise your pumping DC down the line to the VR sensor _jorgen: Would that be a problem?` * GRMracer_ doesnt know.. _jorgen: I think that this will go in the wiki after we are done. GRMracer_: what does the data sheet GRMracer_: say _jorgen: For the chip? GRMracer_: for the VR sensor. _jorgen: I don't have one. GRMracer_: I'd assume we dont want to do that. GRMracer_: but were also putting a RC filter on the system to cut out HF noise. _jorgen: A series capacitor would cause a phase shift, I guess that I should simulate this GRMracer_: yes.. GRMracer_: but that should be corrected out when they time it the first time. GRMracer_: it stays constant GRMracer_: so we need to know what is Fmax we need to pass. _jorgen: Yes, in the time domain. * GRMracer_ is a timedomain type guy. _jorgen: But the engine is very degree based GRMracer_: yes. _jorgen: 300Hz or so GRMracer_: oh. GRMracer_: then the phase shift shout be very minimal. GRMracer_: if we pass 3k and down. _jorgen: Yeah _jorgen: But the series capacitor is a HP filter, won't that cause a phase shift too GRMracer_: .3uF GRMracer_: sorry. GRMracer_: digit wrong way _jorgen: Or do we just put a big capacitor there to get the cutoff way down there GRMracer_: nop right way. GRMracer_: 1k to gnd, and .3uF in series GRMracer_: gets the low pass, and DC bias'ed up to your desired. GRMracer_: ie. GRMracer_: VCC-- 10k --1k--gnd GRMracer_: put the .3uF in series with VR+ to terminat between 10k --+ --1k GRMracer_: gets a cutoff freq of 3k _jorgen: That will be a High pass GRMracer_: shit. GRMracer_: hold on I always get these backwards. * GRMracer_ whips out book _jorgen: Me too, I guess that I have gotten them wrong enough times to check ten times :) _jorgen: We terminate with a 1k resistor when we enter the box. _jorgen: The we decouple the signal with a large capacitor. _jorgen: hmm GRMracer_: yes. GRMracer_: That was a Highpass filter. GRMracer_: we essentialy want an audio block _jorgen: A 0.3u cap to ground when the signal first enter the box. _jorgen: 1k in parallel with the cap to terminate the signal. GRMracer_: we need a PI filter input... low pass followed by a high pass. GRMracer_: yes. GRMracer_: we can bandpass it that way. GRMracer_: phase shift is 45d at cutoff freq (3db pint) _jorgen: Inside of that filter& termination we can put the lowpass, inside the lowpass we can bias the signal. _jorgen: This start to look a bit like the input in the Audi boxes... GRMracer_: its a 2-pole filter GRMracer_: the resistors are going to introduce loss.. but the parts are cheaper. _jorgen: We still need the 1k resistor as a terminator GRMracer_: and 6d phase shift is 1 decade away from 3dB point _jorgen: 9000rpm in this case GRMracer_: this discussion needs moved to wiki very soon. GRMracer_: so we can make it better. _jorgen: Yeah, but it's quicker here GRMracer_: and I'm off by a factor of 2pi GRMracer_: i did the cheat RC time constant GRMracer_: let me do some stuff.... _jorgen: 9000rpm=300Hz, The 6deg is 6deg of 300Hz. Hmm. GRMracer_: remember were not dealing with a sine wave. GRMracer_: its esentially a squarewave. GRMracer_: to keep signal looking like a square wave we need at least 3x base freq _jorgen: Maybe the lowpass isn't needed? GRMracer_: im looking.. *** You have been disconnected. Fri Nov 11 22:01:34 2005. *** Automatically rejoining channel... *** Channel re-joined successfully. *** #lt1882: _jorgen _jorgen_ GRMracer_ sly_ jrussell_ jrussell mcel sly___ humming *** #lt1882 was created on Fri Oct 07 14:33:26 2005. *** _jorgen_ has signed off IRC (Write error: Broken pipe). _jorgen: I just wanted to say that i'm still here GRMracer_: the DC blocking cap will set the minmum freqency. _jorgen: Yes _jorgen: We have to keep the impendance inside thatone high or the capacitor will have to be huge GRMracer_: we can do a cap and inductor in parallel GRMracer_: that gives us a nice band. GRMracer_: nvmd. _jorgen: :) GRMracer_: I'll work on it.. assuming the VR is 800ohm, Tline =600Ohm, Chip load is 10k, term is ~600-1k , DC blocked, fmax is 300Hz *3 for 6d phase shift. _jorgen: I'll find a page for this where we can take notse GRMracer_: ok. put that up there, I'll make some estimates, run some spice.. GRMracer_: and make some schematics to post. GRMracer_: But I am going on a trip soon. GRMracer_: 6d = 0.1*f-3db _jorgen: Do you know any links with graphs of what happens in a unmatched t-line? GRMracer_: uhm. GRMracer_: maybe GRMracer_: http://www.propagation.gatech.edu/ECE3025/tutorials/SinusoidalTlines/sinusoidal.htm _jorgen: Yikes! GRMracer_: what. GRMracer_: you asked. _jorgen: The behaviour in an open circuit t-line GRMracer_: not surprising with the mismatch. GRMracer_: 50ohm to 10kOhm is basically an open GRMracer_: 50 -- 10,000 GRMracer_: ________________ GRMracer_: 50+10000 GRMracer_: oh.. GRMracer_: I meant gamma = sqrt( Zt - Zl / (Zt*zl)) GRMracer_: big mismatch.. GRMracer_: you know _jorgen: Yeah, I see that it's all over the place. GRMracer_: its just gotta get closer to the line. GRMracer_: you could use the transmission line. you just need to make the load 50Ohms. _jorgen: You know what? He started the car and it purred like a kitten at idle from the first second. He thought: Cool and shortened the trigger wire and routed it properly. After that it didn't run and false trigged all over. GRMracer_: here as a quick fix put 50 Ohms to ground. _jorgen: Yeah, but the load would be too much for the sensro. GRMracer_: its already on the sensor. GRMracer_: well then say try a 100ohm. GRMracer_: it will be better.. GRMracer_: 50,100,500,1k GRMracer_: in that order. GRMracer_: and see if you can "patch" it _jorgen: For a signle car that would be ok, but this has to be a solid solution as the system will hopefully be duplicated several times. GRMracer_: that may work _jorgen: Transmission lines work like when you tune the exhaust on cars... Interesting. I wonder if there is some good software for calculating transmisison lines that is useful for header calcs. GRMracer_: yes. GRMracer_: there is I can write matlab for it. GRMracer_: its not hard. GRMracer_: try this as a patch when you get the 600ohm line in it. _jorgen: Wasn't it two 18ga wires that ended up beeing a 600ohm line when they were twisted together? _jorgen: (just like MSD does it.) GRMracer_: any old pair can be made to do it.. GRMracer_: its a function of wire diameter, separation and twists per inch GRMracer_: try this.. GRMracer_: 7uF in series, 1k to ground. GRMracer_: acutally 8uF in series 1k to gnd. GRMracer_: with twisted pair. _jorgen: That is a very high cuttoff. GRMracer_: very low cutoff. GRMracer_: High pass filter. _jorgen: Engine will not start with that. GRMracer_: 2Hz 6d pont _jorgen: Ok, that could work GRMracer_: f3db = 1 / 2 pi R C _jorgen: But will that terminate the t-line? GRMracer_: f3db = 1/ (2 pi R C) GRMracer_: its a 1k termination at 2hz. GRMracer_: |Z| = 1/(2 pi f C) _jorgen: cool GRMracer_: its a tradeoff GRMracer_: its goes down with freq. GRMracer_: 100hz its 100ohms.. *** You have been disconnected. Fri Nov 11 22:49:14 2005. *** Automatically rejoining channel... *** Channel re-joined successfully. *** #lt1882: _jorgen GRMracer_ sly_ jrussell_ jrussell mcel sly___ humming *** #lt1882 was created on Fri Oct 07 14:33:26 2005. GRMracer_: I'll make a better one later _jorgen: Isn't it better to put a resistive terminator outside the decoupling cap? GRMracer_: no. GRMracer_: messes up the math. GRMracer_: and then you need a second one to to the biasing GRMracer_: the ckt should be transmission line --||-- bias network(vcc-10k-*-1k-gnd) - * to chip _jorgen: I could use a much smaller cap if I had internal biasing with more resistance GRMracer_: 1k to 10k means 1% of voltage goes in other directions.. GRMracer_: yes. but I'd have to work the math out.. GRMracer_: you may need a bigger one anyway. _jorgen: Wouldn't that be a perfect transmission line? GRMracer_: yes, but you have a complex load. _jorgen: Not very as the load inside the capacitor would be low. GRMracer_: ok. GRMracer_: maybe. can you give me a week or 3 to come up with an optimal SPICE'd solution GRMracer_: Im going on vacation next tue GRMracer_: the one I gave you should work. GRMracer_: for not too terribly high revs _jorgen: I hope to start the car tomorrow and the 1k resistor outside the capacitor sound like the way to go. _jorgen: This car will rev 8200rpm or more _jorgen: I have to get a scope and check the signal with the engine running. _jorgen: I'll ask him how long the cable was when the car ran too. He had a roll that probably had 10m on it in the shop. GRMracer_: http://www.play-hookey.com/ac_theory/hi_pass_filters.html GRMracer_: 4.7uF isnt hard. GRMracer_: two in series GRMracer_: whoops. GRMracer_: two in parallel gets you really clos GRMracer_: and hell they come in 0603 GRMracer_: use 2 4.7uF caps in series. GRMracer_: they should do the trick GRMracer_: http://www.epanorama.net/documents/wiring/cable_impedance.html _jorgen: I don't follow you now, two 4.7u is 2.35u. GRMracer_: it you put them in parallel with each other but in series with the line its 8uF GRMracer_: approx. GRMracer_: resistors add in series, caps add in parallel _jorgen: You forget the rule of caps GRMracer_: ok. _jorgen: Exactly _jorgen: It's easy to forget that the VR signal edge is very sharp and high frequency is sent into the t-line. GRMracer_: yes. GRMracer_: that why we use a HP filter. GRMracer_: with a very low f3db _jorgen: When first thinking about this in the garage I totally ignored it, I thought: No way an antenna leads properties can affect a low frequency signal like this. GRMracer_: it does. _jorgen: Yeah, if it was a sine wave it wouldn't GRMracer_: twisted pair changes from 600ohm @ audio to 120ohm at ethernet Optional: Add document to category: Wiki formatting: * is Bullet list ** Bullet list subentry ... '''Bold''', ---- is horizontal ruler, <code> preformatted text... </code> See wiki editing HELP for tables and other formatting tips and tricks.