Explainer
Alternator frequency control of a hydraulic proportional valve
Short answer
A hydraulic-motor-driven alternator is a speed sensor: output frequency in hertz equals rpm times pole count divided by 120. Convert that frequency to a DC command with a 555 timer or a CD4046 phase-locked loop against a quartz reference, filter it, amplify the error, and drive the proportional valve with current. The loop holds flow constant while a PTO pump's speed follows the road.

On this page
Yes, this loop exists, and it is almost never sold under one part number — engineers assemble it from four ordinary stages. An alternator spun by a hydraulic motor is a speed sensor: its output frequency tracks shaft speed alone, so the hertz reading tells the controller exactly how fast the motor turns. A frequency-to-voltage converter or a phase-locked loop turns that hertz into the DC command the proportional valve needs; the valve trims pump displacement, and flow stays constant while a PTO pump's speed follows the road. This article gives the signal chain, the scaling arithmetic with a worked example, and the decision for each drive type.
The alternator is a speed sensor #
Each rotor pole pair sweeping a stator winding makes one cycle, so a machine with P poles turning at N rpm delivers
f = N × P / 120
in hertz, with N in rpm and P as a plain pole count. Frequency depends on speed and pole count and nothing else — not on load current, not on the regulator. That is what makes hertz a clean feedback signal and terminal voltage a poor one: the regulator holds voltage near its setpoint while speed falls, erasing the very information the loop needs. What the winding does to voltage at any given speed, before the regulator acts, is fixed by its turns and pole count, as explained in why winding turns and pole count set voltage at a given speed. Take the pole count from the machine's datasheet; the worked example below uses an 8-pole machine.
Why a mechanical fix fails on the road #
At one fixed pump speed, a fixed displacement pump with a metering valve holds flow and a pressure-compensated pump holds pressure. Neither holds flow when input speed moves: the compensator passes whatever the actuators do not use and burns the surplus as heat, and flow still falls whenever the pump slows. A gearbox-mounted PTO pump running in transit sees its speed change with the road, so no fixed orifice or spring setting can hold one speed. The electronic loop closes that gap by reading motor speed straight from the alternator and moving the valve to deliver exactly the flow the target speed needs — the same instinct as making the pump command follow the machine's cycle rather than the valves, set out in why a pump command should follow the cycle, not the valves.
Turning hertz into the valve's DC command #
Three converters cover every variant of this job.
A 555 timer as the converter #
Fire a monostable once per alternator cycle. Every pulse leaves with the same width and amplitude, so the average of the pulse train — taken by a low-pass filter — rises linearly with frequency. TI's application note for exactly this 555 conversion circuit runs the timer from a 5 to 15 V supply, which a small regulator derives from the machine's 12 or 24 V rail. One constraint shapes the design: the pulse width must stay shorter than the period at the highest speed the alternator will ever see, or the pulses merge and the reading collapses.
A CD4046 phase-locked loop #
Compare the alternator frequency with a quartz-derived reference at the mains frequency (50 or 60 Hz) and let the difference drive the valve. The CD4046 carries two phase detectors: the XOR type only pulls in when the incoming frequency is already near the reference, while the edge-triggered detector locks from zero at spin-up — the right one for an alternator that starts every time the vehicle does. When locked, the DC voltage on the VCO control input tracks the input frequency, and that voltage is the converter output. This build is the more accurate of the two, because its setpoint is a crystal.
A microcontroller #
An input-capture pin times the cycles, firmware scales them, a filtered PWM output feeds the valve amplifier, and the PID lives in code. Same loop, arbitrary scaling, and the setpoint becomes a number instead of a potentiometer.
Filter and gain the loop #
The converter output carries ripple at the alternator frequency, and an unfiltered spool will buzz. A two-pole active filter — a Sallen-Key with near-Butterworth damping — with its cutoff around 1 Hz suits the worked example below, because the hydraulic loop settles in seconds. As a rule of thumb, place the cutoff about an order of magnitude below the lowest frequency the loop must follow, then trim by watching the valve: visible ripple means a lower cutoff, sluggish response means a higher one.
Start with proportional-plus-integral gain and no derivative. If the valve current hunts, back the proportional gain off; if flow crawls back to setpoint, raise it and add a little integral. Gains do not transfer between machines, for the same reason axis loop tuning differs from machine to machine, so treat any working set as a starting point and nothing more. Clamp the command and reset the integrator the moment frequency feedback disappears, so a broken wire cannot wind the pump to full displacement.
Safety note: the valve must sit in a spring-centered or otherwise safe position on loss of electrical signal, and a PTO-driven transmission falls under the machine's risk assessment, with IEC 60204-1 the usual reference for the electrical equipment of machines.
Drive the valve with current #
Proportional valve coils are current devices, and copper explains why: coil resistance climbs about 0.39 % per kelvin, so warming from 20 to 80 °C multiplies resistance by 1 + (0.0039/°C × 60 °C) ≈ 1.23. At a fixed drive voltage, current and spool force fall to roughly 81 % of their cold values as the machine warms. A current-regulated amplifier removes that drift entirely.
Read the valve datasheet for the command form it expects: a 0-10 V or ±10 V reference into its own electronics, a 4-20 mA loop, or direct coil current, plus whether dither is built in or must be supplied at the specified frequency. When a PLC closes the loop instead of this analog chain, the same valve takes the bipolar command described in PID control of a ±10 V proportional valve from a PLC.
Mounting and speed ratio #
Connect hydraulic motor to alternator with a positive, slip-free drive. Flange the machines face to face where the design allows, or bench-mount both and join the shafts with a flexible shaft coupling that absorbs the parallel and angular misalignment of two separately mounted units. If a belt or gear stage sits between motor and alternator, multiply motor rpm by the ratio and put the alternator's own rpm into the frequency formula. Keep the field excited whenever the shaft spins: an automotive-type alternator with no field current builds no output at all, and the loop loses its feedback completely. A permanent-magnet machine needs no excitation and gives the same speed-proportional frequency, though at very low speed its signal can grow too small for the converter to trigger on.
Worked example: the arithmetic through a slowing road #
The numbers below are a worked example, chosen to make every step checkable — not a measured build. An 8-pole alternator must deliver 60 Hz while a transit PTO wanders.
Target speed: N = 120 × 60 Hz ÷ 8 = 900 rpm.
Converter: a 555 monostable with t = 1.1 R C = 1.1 × 36 kΩ × 100 nF ≈ 4 ms pulse width, 5 V pulses from a 5 V logic rail (inside the app note's 5-15 V range), followed by a gain stage of 5. Overall scale: 0.004 s × 5 V × 5 = 0.1 V per hertz.
Setpoint: at target frequency, 60 Hz × 0.004 s × 5 V = 1.2 V after the filter, and 1.2 V × 5 = 6.0 V. Put the reference there.
Disturbance: road speed drops 10 %, frequency falls to 54 Hz, and the filter output falls to 54 × 0.004 s × 5 V = 1.08 V, or 5.4 V after gain. Error = 6.0 − 5.4 = 0.6 V. An error amplifier of gain 2 adds 1.2 V to the valve command, the valve opens further, flow rises, and frequency climbs back to the reference.
Limits checked: the 4 ms one-shot stays shorter than the period up to 250 Hz, so even double target speed — 120 Hz, an 8.3 ms period — leaves margin. The 1 Hz filter adds negligible lag against a loop that settles in seconds. Measuring the period over 10 cycles takes a 167 ms window, and a 1 µs timing clock puts quantization error near 0.001 % — far finer than any valve.
The decision #
- Fixed-speed stationary machine: a fixed displacement pump with a metering valve, or a pressure-compensated pump with a flow control, does the job with no electronics at all.
- PTO pump in transit feeding mains-frequency loads: build the CD4046 loop with the edge-triggered phase detector against a quartz-derived mains reference — frequency accuracy becomes crystal accuracy, and the generator feeds its loads directly.
- PTO pump in transit with loads behind an inverter or rectifier, or a PLC already on the machine: use the 555 or microcontroller converter with a setpoint you choose, and close the loop in an amplifier or in firmware.
- Either loop: current-regulated valve drive, low-passed feedback, clamped integrator that resets on loss of feedback, and a valve that springs to a safe state without the signal.
Questions asked
What happens at startup when the alternator is standing still?
The 555 converter reads zero at standstill, so the error amplifier sees full error and would slam the valve toward one end. Ramp the command from zero over two to three seconds at power-up or PTO engagement, and hold it clamped until the converter reports a frequency within a credible band. A CD4046 with the edge-triggered phase detector locks from zero speed; the XOR type cannot and needs the input near the reference first.
Can terminal voltage stand in for frequency as the speed signal?
You would have to drop the regulator and feed the field with fixed current, and even then voltage tracks speed only loosely while the output climbs unregulated at high speed and threatens everything connected. Frequency stays proportional to speed at every load and needs no such gamble, which is why the hertz signal wins.
How fast must the frequency measurement update?
Hydraulic loops settle in seconds, so an update every 167 ms — ten cycles at the target frequency — is plenty, and faster updates mostly import ripple. Measure the period of a batch of cycles against a fast clock instead of counting cycles in a fixed gate: gate counting would need more than a second of window for percent-level resolution, while period averaging reaches it in a fraction of that.
The valve datasheet calls for 4-20 mA instead of a voltage — what changes?
Only the final stage: turn the amplified error into loop current with a voltage-to-current converter rated for the loop, and scale it so mid-travel sits near 12 mA. The live zero is a bonus — 4 mA at zero demand proves the wire, while a reading near 0 mA means a broken loop, which fault logic can treat as loss of command.
Does this work with a permanent-magnet alternator?
Yes, and it is the easier build: a permanent-magnet machine's frequency tracks speed with no field supply and no regulator, so the signal exists from the first revolution. Rectify and limit or clamp the output, because voltage keeps rising with speed and nothing regulates it, and check that the converter can trigger at the smallest signal your lowest speed produces.
