line trigger

This is sort of goofy. Given some isolated/grounded AC voltage, 3 to maybe 12 volts RMS from a transformer, I want to derive a line trigger. The 1N914s represent the ESD diodes inside the Schmitt.

The cap in series with the CMOS schmitt trigger looks weird, but seems OK to me. The swing at the schmitt input self-centers, from the ESD diodes conducting.

Version 4 SHEET 1 1032 680 WIRE 704 -112 592 -112 WIRE 704 -80 704 -112 WIRE 592 -48 592 -112 WIRE 704 48 704 0 WIRE 96 96 64 96 WIRE 176 96 96 96 WIRE 352 96 256 96 WIRE 416 96 352 96 WIRE 592 96 592 16 WIRE 592 96 480 96 WIRE 784 96 592 96 WIRE 896 96 848 96 WIRE 928 96 896 96 WIRE 64 144 64 96 WIRE 352 160 352 96 WIRE 592 160 592 96 WIRE 64 288 64 224 WIRE 352 288 352 224 WIRE 592 288 592 224 FLAG 64 288 0 FLAG 352 288 0 FLAG 704 48 0 FLAG 592 288 0 FLAG 96 96 IN FLAG 896 96 OUT SYMBOL voltage 64 128 R0 WINDOW 0 50 65 Left 2 WINDOW 3 32 102 Left 2 WINDOW 123 0 0 Left 2 WINDOW 39 0 0 Left 2 SYMATTR InstName V1 SYMATTR Value SINE(0 7 60) SYMBOL cap 336 160 R0 WINDOW 0 67 16 Left 2 WINDOW 3 55 50 Left 2 SYMATTR InstName C1 SYMATTR Value 100n SYMBOL res 272 80 R90 WINDOW 0 -43 57 VBottom 2 WINDOW 3 -40 59 VTop 2 SYMATTR InstName R1 SYMATTR Value 10K SYMBOL voltage 704 -96 R0 WINDOW 0 50 42 Left 2 WINDOW 3 49 74 Left 2 SYMATTR InstName V2 SYMATTR Value 3.3 SYMBOL diode 608 16 R180 WINDOW 0 56 81 Left 2 WINDOW 3 45 50 Left 2 SYMATTR InstName D1 SYMATTR Value 1N914 SYMBOL diode 608 224 R180 WINDOW 0 -71 43 Left 2 WINDOW 3 -88 8 Left 2 SYMATTR InstName D2 SYMATTR Value 1N914 SYMBOL cap 480 80 R90 WINDOW 0 -43 30 VBottom 2 WINDOW 3 -37 31 VTop 2 SYMATTR InstName C2

SYMBOL Digital\\schmtbuf 784 32 R0 SYMATTR InstName A1 SYMATTR SpiceLine vhigh=3.3 TEXT -160 224 Left 2 !.tran 100m TEXT -160 120 Left 2 ;Line Trigger TEXT -184 160 Left 2 ;JL Jul 26 2016 TEXT 80 264 Left 2 ;~~ 5 volts RMS TEXT 760 144 Left 2 ;Schmitt TEXT 512 0 Left 2 ;ESD TEXT 640 248 Left 2 ;ESD

--

John Larkin         Highland Technology, Inc 
picosecond timing   precision measurement  

jlarkin att highlandtechnology dott com 
http://www.highlandtechnology.com
Reply to
John Larkin
Loading thread data ...

Den onsdag den 27. juli 2016 kl. 02.28.43 UTC+2 skrev John Larkin:

I've seen a variation used for all kinds of hall and VR sensors in a car ECU also with capacitor coupled inputs

one section of a HC14 is used to make an RC oscillator, the output is lowpass filtered and via resistors used to bias the other sections right in the center of the schmitt window

-Lasse

Reply to
Lasse Langwadt Christensen

If I added a high value feedback resistor from the schmitt output to its input, it would self-center. It would also oscillate slowly with no input.

Banging the ESD diodes self-centers between the power rails, but is unaware of the schmitt threshold.

--

John Larkin         Highland Technology, Inc 
picosecond timing   precision measurement  

jlarkin att highlandtechnology dott com 
http://www.highlandtechnology.com
Reply to
John Larkin

Since threshold is generally Vdd/2, filtered *output* of the bias oscillator will usually *not* center the zero-crossing inverter's threshold.

Use the filtered *input* of the bias oscillator to bias the zero-cross detector instead, and you'll be fine.

C1 |\ a.c. >-||-+---| >O----> zero cross | |/ | [R1] .--[R2]--. | | |\ | '--+--| >O--' | |/ --- --- Cosc | ===

Cheers, James Arthur

Reply to
dagmargoodboat

Den onsdag den 27. juli 2016 kl. 06.03.50 UTC+2 skrev snipped-for-privacy@yahoo.com:

s

r ECU

owpass filtered and via resistors used to bias the other sections right in the center of the schmitt window

if the threshold isn't Vdd/2 it won't be 50/50 dutycycle

that'll probably make the output toggle at osc rate

Version 4 SHEET 1 972 680 WIRE 32 64 0 64 WIRE 160 64 112 64 WIRE 176 64 160 64 WIRE 304 64 256 64 WIRE 432 64 304 64 WIRE 0 176 0 64 WIRE 64 176 0 176 WIRE 160 192 160 64 WIRE 160 192 128 192 FLAG 0 240 0 FLAG 64 208 0 FLAG 304 128 0 FLAG 432 64 bias SYMBOL Digital\\schmitt 64 112 R0 WINDOW 3 53 104 Left 2 SYMATTR InstName A1 SYMATTR Value vhigh=5,td=10n,vt=1.2,vh=.3 SYMBOL cap -16 176 R0 WINDOW 0 -39 5 Left 2 WINDOW 3 -55 42 Left 2 SYMATTR InstName C1 SYMATTR Value 100n SYMBOL res 128 48 R90 WINDOW 0 0 56 VBottom 2 WINDOW 3 32 56 VTop 2 SYMATTR InstName R1 SYMATTR Value 1k SYMBOL res 272 48 R90 WINDOW 0 0 56 VBottom 2 WINDOW 3 32 56 VTop 2 SYMATTR InstName R2 SYMATTR Value 1k SYMBOL cap 288 64 R0 SYMATTR InstName C2

TEXT 12 -40 Left 2 !.tran 100m

Reply to
Lasse Langwadt Christensen

I think you are smoking some dope. The circuit you draw above *is* using the filtered output for biasing. It is also the input, that's how the bias circuit works.

--

Rick C
Reply to
rickman

I do not smoke dope, but you're right, I screwed up.

Cheers, James Arthur

Reply to
dagmargoodboat

m:

o

ems

car ECU

lowpass filtered and via resistors used to bias the other sections right i n the center of the schmitt window

Right, that's what I was (misguidedly) trying to fix, thinking "John needs

50/50 output from a sinewave input."

Ages ago I designed perhaps the first consumer spread spectrum transmitter and receiver. A key element was a 7x CMOS gate VHF frequency multiplier stage that depended on accurate 50% duty cycle, and I spent a lot of time achieving it.

That's what's bugging me here--I *remember* there's a subtle threshold problem that prevents a fed-back inverter from hitting

50/50 duty, but I goofed--John doesn't care about bias oscillator's duty cycle, and, as Rick so graciously pointed out, my 'fix' uses the averaged output anyhow, despite me trying not to.

Getting accurate 50/50 VHF from jellybean CMOS was vital to the

7x multiplier, but irrelevant here.

No, of course not. R1C1 >> R2Cosc.

You're pretty hard on that output! Why not use 50k instead of 1k in series and save energy? Global warming and all, you know.

Cheers, James Arthur

Reply to
dagmargoodboat

[...]

Scratching my head a bit, here's what bugs me. The net effect of the ESD diodes and RC filter is a d.c. level-shift of Vdd/2 across the coupling cap. That centers the gate input around Vdd/2.

That's fine if Vth(CMOS) = Vdd/2, but otherwise (e.g., 74HC14) the gate output edges won't accurately match the input zero crossings. And, timing will then also be somewhat Vin amplitude-dependent.

I think the diode-clamp d.c. restore overwhelms Lasse & my bias schemes.

I did an all-nighter yesterday, so I'm too punchy to fix it right now. But then again, you might not need accurate zero-crossings.

Cheers, James Arthur

Reply to
dagmargoodboat

Yup. It makes a nice squarish wave at the input of the gate.

I just need a 60 Hz trigger. It needs some lowpass filtering to remove glitches, and should be reasonably amplitude insensitive.

I just thought that driving a gate input through a capacitor was sort of fun. It seems to work.

--

John Larkin         Highland Technology, Inc 

lunatic fringe electronics
Reply to
John Larkin

e

Using a gate for a trigger like that will add jitter unless you have a real ly LOOOOOOOOOOOOOOOOOOOONG filter time constant, so it's an unwise approach . Break down and use a comparator, preferably one with an internal referenc e, a power supply derived reference would be junk too- something like a vol tage divider- no good.

Reply to
bloggs.fredbloggs.fred

[using a CMOS Schmitt gate]

It'd be nice if you could trust both the duty cycle and the phase, and have noise rejection. That's PLL talk, but sometimes it might be worth the overhead, and a '4046 is your jellybean.

50/50 duty cycle is relatively easy: this, for instance, does fine (note C2 is a kind of load component, the rest is self-explanatory)
  • C:\Program Files (x86)\LTC\LTspiceIV\ACsenseComboInnominata.asc V1 N003 0 SINE(0 6 60) Q1 N002 0 N001 0 2N3906 Q3 N002 0 N001 0 2N3904 C1 N001 N003 100n C2 N002 0 50n .model NPN NPN .model PNP PNP .lib C:\Program Files (x86)\LTC\LTspiceIV\lib\cmp\standard.bjt .tran 0 0.2 0.1 .backanno .end
Reply to
whit3rd

The AC line is pretty noisy already, and nothing short of a PLL is going to really clean it up. The input to the schmitt is practically a square wave if the AC input is say 5 volts RMS, so the schmitt thresholds don't matter too much.

Sometimes my customers want to line trigger our pulse generators, because their physics has some hum. I think SLAC was line triggered because the magnet power supplies had a bunch of hum, and mag fields were scattering the beam too.

As far as a comparator goes, the best reference voltage would be a nice stable ground.

--

John Larkin         Highland Technology, Inc 
picosecond timing   precision measurement  

jlarkin att highlandtechnology dott com 
http://www.highlandtechnology.com
Reply to
John Larkin

It *is* fun and there's nothing wrong with it.

A modified clamp gets its output transitions closer to the actual zero crossings (just riffing, I know you don't need it). This clamp centers the gate's d.c. input between its two thresholds, Vth+ and Vth-:

Vdd -+- | |/ .--| Q1 | |>. C1 |\ | | Vin >--||--+--| >O--[R1]--+---+ +---. | |/ | | | | | C2 --- | |

Reply to
dagmargoodboat

If I unraveled that correctly,

.-------. | | | | Vout | | |/ | .--| Q1 | | |>. | === | | | |/ >---||--+---| Q2 C1 |>. | ===

It would work as a cheesy line-trigger's zero-cross detector, too.

Cheers, James Arthur

Reply to
dagmargoodboat

... and other stuff

It'd work, of course, but gives two pulses per cycle; that confuses the phase info (if your SSR uses two SCRs, you wouldn't know which to fire).

PLL with a twisted-tail two bit counter can be tapped for pulse at 0, 90, 180, 270 degrees, trivially.

Reply to
whit3rd

Or you can pick off the level of the input with a simple circuit as an enable/disable to generate two pulses.

--

Rick C
Reply to
rickman

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.