This project is a musical Tesla coil that is etched on to a PCB. Working principle is explained below.
This video shows the Tesla Coil creating music through its arcs.
This video shows the Tesla coil in its interrupt mode, generating large arcs.
Since I wanted to power this thing with a 12V supply and still get pretty big arcs, I have to boost the 12V to a higher voltage, and this circuit achieves that. The UC3843 is a PWM controller that sends a square wave to MOSFET Q4. This square wave doesn't have a fixed duty cycle because that determines the output power; the higher the duty cycle, the higher the voltage, and vice versa. The UC3843 controls the voltage by comparing it to a reference voltage, which is set at 2.5V, so all I have to do is put a voltage divider on the output, which is set to output 2.5V, and feed it back to the feedback pin of the UC3843.
I used R5 to get a variable voltage on the output, which gives me a voltage range of 33V - 65V. R11 and C8 set the output frequency, which is 116 kHz. R9 is the current sense resistor, and R12 and C9 are a low-pass filter that filters any spikes on the current sense resistor. The current sense resistor is set at 0.2 ohm since I didn't want more than 5 amps to be drawn from my supply. The UC3843 achieves this by comparing the output of R9 with a 1V reference signal, so according to Ohm's law (V/I = R) => 1V/5A = 0.2 ohms. R10 and C6 are a soft start circuit; this is because I can't have the converter shoot to a super high voltage due to inrush currents. It works by charging the capacitor through the resistor, which takes time, which prevents inrush current. D1 is used as a flyback diode in order to protect the MOSFET from inductive spiking. C7 and R1 are the compensation components, which helps keep the output of the boost converter stable; calculating these two values can be tough, so I just kept a constant capacitance of 10 nF and varied the resistance until I got a suitable output.
Now, this part of the circuit just drives the MOSFET Q3 at the resonant frequency of the secondary coil. Initially the MOSFET will turn on and let current flow through the primary of the Tesla coil, which creates a magnetic field and causes magnetic flux to flow through the secondary coil, which creates a bigger magnetic field, and this magnetic field oscillates at the resonant frequency of the coil. This resonant frequency is fed to the 74HC14N, which is just a NOT gate. The reason for the not gate is to convert the sine wave of the resonant frequency to a square wave to drive the MOSFET, and there are 2 not gates because I didn't want the signal to be 180 degrees out of phase.
D4 and D3 clamp the sine wave to 5V. D6 is to give the FET a faster turn-off signal. D10 is used to protect the FET's gate from high-voltage transients, which happens a lot since we are working with a device whose sole purpose is to emit high-frequency, high-voltage arcs.
The UCC37322 is a gate driver, which helps drive the gate of the MOSFET. This is important since we need a good gate signal in order to have fewer losses and better performance. Pin 2 is the input signal of the gate driver, which is fed to the resonant square wave. Pin 3 is the enable pin, which is pulled high through an internal resistor. This enable pin can turn the UCC37322 on and off (on when pulled high or left floating and off when pulled to ground). This pin is connected to the interrupter part of the circuit, which controls whether the UCC37322 is on/off.
This is quite easy and all over the web; it's a simple 555 timer circuit with a variable duty cycle. R6 controls the off-time, and R4 controls the on-time of the square wave. This is then fed to pin 3 of the UCC37322. The reason for this interrupter is to not have constant power flow through the primary, since this only creates bushy hot arcs, while I wanted little lightning bolts. The frequency range of the timer is set by C15.
Now this is the most interesting part of the whole build and the hardest part for me to get working. So in order to hear voices from the sparks, I have to run it at constant wave mode, which just means the MOSFET is on a lot of the time, which translates to more heat, so on "music mode" it takes 10 minutes for the MOSFET to reach 70 degrees Celsius, which isn't that bad, but who's going to listen to music on this thing for 10 minutes straight? The way this circuit works is pretty simple; it pretty much works like how a Class D amp works. First, I take the music signal from the Bluetooth module, which has pins (L, G, and R, which mean left, right, and ground). I then amplify this signal with the LM358, and its gain is set by R18. I then compare this signal to a triangle wave. R19 is used to set the offset of the audio since the triangle wave swings from 1/3 VCC to 2/3 VCC. The comparator converts my amplified sine wave into a square wave with the duty cycle being modulated by the frequency of the amplified signal. This modulated square wave then goes to pin 3 of the UCC37322, which turns the driver on and off with respect to the music frequency.
This is the Tesla coil; as you can see, the secondary coil, or top side of the PCB, is a single 0.15 mm trace wound in a circle and has a total of 240 turns. The bottom side of the PCB is a single 3.5mm trace. Now the biggest problem with this design is that this coil has a very high Q factor, which just means the primary and secondary are coupled too close together. This limits the arc sizes pretty significantly. The reason I didn't separate it is because I didn't want to pay for an extra PCB, but if you want better results than me, then you should separate them.