Electronics Assistance Needed -- synchronizing two separate PWM sources

Starhawk wrote 12/21/2016 at 23:17 0 points

So I want to build a mechanical television aka a televisor, and a matching camera. I know most of how I want it to work, and I have most of the parts. I need, however, some help with the sync-circuitry end of things.

I know that, back when televisors were state-of-the-art, there basically /was/ no sync -- I want to have it, because an unsync'd televisor and camera just makes for a big mess. As a word of explanation -- the way you generate a camera from a televisor, is by making two televisors, replacing the lamp on one with some sort of photosensor (I've a photodiode for that, and an LED at the televisor end), and wiring the two together such that the sensor can drive the lamp.

The basic idea I have, is that (as with modern TV) there's a pair of sync signals, one for each complete horizontal line and one for each complete frame. In modern TV, we call those (respectively) Hsync and Vsync. I call them (again, respectively) Line and Frame -- or Lsync and Fsync -- basically because I can. (Well, that, and they make more sense named that way.) Each signal is generated by an optoisolator -- aka, a beam interrupter -- and a series of holes in the drum. Each full revolution of the drum is two frames -- two full screens' worth of picture -- and so the Fsync signal is twice the drum speed, in Hz. The Lsync signal triggers at the end of each line, and since I'm set on thirty lines of forty pixels each (these are /never/ high-resolution equipment, simply because of physics) -- that's sixty times the drum speed, in Hz, as the Lsync signal.

What I want, is for the Lsync and Fsync signals, as generated by the camera, to be compared to (hopefully) identical signals generated the same way by the televisor proper, such that the speed of the drum motor in the televisor varies until the two are sync'd up. However, I am unfortunately still at the "I use Teh Googles to find schematics!" end of my electronic engineering capabilities, so I've got squat here on this one.

If anyone can draw me up a circuit to do this, I'd greatly appreciate it, although I have one small stipulation -- NO microcontrollers (or CPUs, 80s or otherwise) -- discrete logic chips such as the 7400 and 4000 serieses are okay, but PICs and AVRs (and 6502s) are not.