# Controlling high voltage/current signals with a Pi function generator

YES, I understand corona, arcing, safety, and Ohm's law...

I am building a high power AC/DC variable power supply: Microwave oven transformers, CW voltage multipliers, flyback transformer, variac... Yes, the bits are potted, and in a massive heat sink with active air-flow. Adequate grounding, etc...

My question is: I would like to use a Raspberry Pi2 as a function generator/oscilloscope. I would use the analog GPIO for the function out, a bitscope for the imaging.

Do I control the upstream supply? The downstream power, or somewhere in between?

What is the best way to use the Pi to generate the signal (sine, square, etc.. vari freq from <1Hz to <1 GHz) then match that signal with the enormous values I get from the supply - a HVLC side, and a HCLV side isolated, and read the output on the scope image

I have a guy who will be coding the function generator, and the scope, so that I have preset wave forms, and display will be one period of the signal. The frequency change will be done via pot, the voltage with a Variac, and the current.. maybe a rheostat.

NOTE: The DC side will have signals: ON/Pulse - the pulse with variable dwell and delay, I thought to drive that with a simple relay.

Using 5vdc to control 0-1MvAC/DC (Not at the same time, and not necessarily that value for each mode)

It runs on 115vAC @ 60Hz. I had considered an LC for the variable freq, but this does nothing for different wave forms, and I do not believe that I can get the frequency range I am looking for with this method.

Thanks!!

• Have a look at how cheap 40W CO2 laser powersupplies are made. They use a switch mode IC to drive transformer isolated transistors driving what is almost a fly-back transformer. They have a DC input voltage for control. A MOT is not suitable for frequencies far outside 50 to 60 Hz and varying your output voltage on the HV side is tricky and practical to about 0.8 kV for mere mortals. – KalleMP Sep 26 '16 at 11:57