hardware – How to use a raspberry pi to discharge a high voltage capacitor

I’m trying to use a piezo element as a tactile feedback actuator. I’ve successfully managed to use it with 10 * 9V batteries in series which had an output of 90 volts. However, I’d like to test it in a more controllable environment. I would like to use my raspberry pi zero w 2 to output 100V (or more) in the piezo. I was thinking of charging a capacitor (probably via a motor driver) then allow the capacitor to discharge in the connected piezo. I have no idea how to control the discharge of a capacitor though and I also have no idea if I need to have another element after the piezo to control its own energy output since piezos can act as capacitors themselves. Thanks for your help!

Read more here: Source link