Integration of Pulsed High-Voltage Supplies into Automated Ampoule Inspection Lines for Intelligent Pharmaceutical Quality Control
An ampoule inspection line moving 600 containers per minute gives each unit about 90 ms in front of the optical station, and the illumination pulse has to land inside that window. The pulsed supply used for the flash tube delivers 28 kV at 1.5 J per pulse, 200 microseconds wide, with bursts of eight pulses per inspection cycle. The integration problem is not the voltage level. The integration problem is timing, energy repeatability, and the interference that a 28 kV pulse injects into the reject gate electronics sitting 400 mm away.
Trigger timing is derived from the encoder rather than from a free-running oscillator. A 1024 line encoder on the star wheel produces a index pulse every 100 ms, and the controller divides that interval to place the flash at the geometric center of the container. Jitter measured at the tube terminals stays under 1.8 microseconds, which keeps the illumination centroid stable to about 0.3 mm at the camera plane. Free-running triggering was tested first and abandoned after ghost images appeared at line speeds above 520 per minute.
Energy repeatability comes from the storage capacitor and the discharge switch, not from the charging supply. Capacitance is 4.7 microfarads with a measured tolerance of 1 percent, and the switch is a triggered spark gap with a 30 ns spread. Pulse-to-pulse energy variation across a 200 pulse sample sits at plus or minus 1.6 percent, and the visible output tracks that variation closely enough that the inspection algorithm needs a per-pulse gain correction table refreshed every shift.
Charging architecture uses a resonant charger running at 45 kHz, which refills the capacitor to 28 kV within 12 ms and stops charging when the burst ends. A linear charger was evaluated and rejected: the dissipation at 12 pulses per second pushed the internal temperature to 68 degrees Celsius and forced a larger cabinet. The resonant stage keeps the heatsink at 41 degrees, but the resonant inductor has to be potted separately because the 45 kHz field couples into the adjacent photomultiplier wiring.
Interference control started with layout rather than with filtering. The pulse transformer and the spark gap sit in a compartment with a continuous welded seam, and the cable to the lamp head runs through a metallized boot with a ferrite sleeve at both ends. The reject gate controller was the first victim of the noise: spurious rejects appeared at a rate of 1 in 5000 containers until the gate driver was moved to the opposite side of the cabinet and the gate signal line was changed to twisted pair with a 100 ohm series resistor.
Safety interlocks are wired as a hard chain, not through software. The lamp head carries two redundant microswitches in series, and opening either one discharges the capacitor through a 20 kohm bleed resistor within 300 ms. The bleed path is monitored by comparing the divider voltage to a reference after each discharge; a stuck bleed relay triggers a lockout that requires a key reset. That lockout caused four nuisance stops in the first month because the comparator threshold was set too close to the residual ripple, and widening the window by 1.5 percent solved the problem.
Condensation inside the lamp head was the most persistent site issue. The line runs in a cleanroom held at 22 degrees and 45 percent relative humidity, but the head sits under a laminar flow that pushes filtered air across the window. During a night shutdown the head cools below the dew point of the surrounding air, and a film forms on the inner surface of the quartz window. A 3 W cartridge heater behind the reflector, switched on whenever the line is idle, removed the film and cut the daily cleaning routine from twelve minutes to four.
Changeover between container formats takes nine minutes and involves three adjustments: flash energy set per format, trigger offset in encoder counts, and camera exposure. Format recipes are stored with the energy value, the offset, and the expected reject threshold. A recipe recall was originally left to the operator keypad, which produced two wrong-format runs; the current version reads the format code from the line PLC and refuses to start when the recipe does not match.
Acceptance testing ran for two weeks alongside the existing continuous illuminator. Criteria were set on measurable outcomes: reject escape rate below 0.02 percent, false reject below 0.3 percent, energy drift under 2 percent over an eight hour shift, and no spurious gate firing during a deliberate 28 kV arc test at the lamp head. All four were met, with the escape rate settling at 0.011 percent once the per-pulse gain table was applied.
Remaining compromises are documented in the line manual. The spark gap has a finite life of roughly 40 million pulses, and replacement requires re-matching the trigger transformer; a spare head is kept on site because the swap takes twenty minutes. The resonant charger cannot hold energy regulation when the incoming line sags below 340 V, and the line PLC is configured to pause inspection rather than produce uncalibrated images. Neither limitation is hidden from production staff.

