Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2023:apredescu:teslacoilsecrets [2023/05/29 21:54]
maria.sapcaliu [Introduction]
pm:prj2023:apredescu:teslacoilsecrets [2023/05/30 15:43] (current)
maria.sapcaliu [Hardware Design]
Line 39: Line 39:
 **The project will be put together as follows:** \\  **The project will be put together as follows:** \\ 
  
-The data storage module communicates with the Arduino via both the Lab 5 (SPI) and Lab 1 (UART) interfaces in this setup. Internal connection between the module and the microcontroller is enabled by SPI, whereas bidirectional communication between the Arduino and the module is enabled through UART. This enables efficient file storing and retrieval of musical notes.+<note tip>The data storage module communicates with the Arduino via both the Lab 5 (SPI) and Lab 1 (UART) interfaces in this setup. Internal connection between the module and the microcontroller is enabled by SPI, whereas bidirectional communication between the Arduino and the module is enabled through UART. This enables efficient file storing and retrieval of musical notes. 
 +</​note>​
  
-For the second case, the microSD card in the DFMini Player Mp3 module is used to store and play mp3 music. Through UART, the Arduino interfaces with the DFMini MP3 Player module, allowing for control and data exchange. Furthermore,​ the module uses SPI internally to communicate with the microSD card. The DFRobotDFPlayerMini library, which provides a higher-level interface for smooth interaction with the module and microSD card, is used for this internal SPI connection. +<note tip>For the second case, the microSD card in the DFMini Player Mp3 module is used to store and play mp3 music. Through UART, the Arduino interfaces with the DFMini MP3 Player module, allowing for control and data exchange. Furthermore,​ the module uses SPI internally to communicate with the microSD card. The DFRobotDFPlayerMini library, which provides a higher-level interface for smooth interaction with the module and microSD card, is used for this internal SPI connection.</​note>​
- +
-The Tesla coil's excitation module (circuit) will interpret the notes as signals of various frequency. The secondary coil will generate them in the auditory spectrum using a very high voltage electric arc. Optionally, based on the servo motor and a light bulb, I propose implementing PMW (L3) to emphasize the existence of the secondary coil's high frequency and high voltage electromagnetic field.+
  
 +<note tip>The Tesla coil's excitation module (circuit) will interpret the notes as signals of various frequency. The secondary coil will generate them in the auditory spectrum using a very high voltage electric arc. Optionally, based on the servo motor and a light bulb, I propose implementing PMW (L3) to emphasize the existence of the secondary coil's high frequency and high voltage electromagnetic field.
 +</​note>​
 ===== Hardware Design ===== ===== Hardware Design =====
  
Line 84: Line 85:
 | passive buzzer (optional) |  x1             | | passive buzzer (optional) |  x1             |
 | Micro SDHC card 32GB |  x1             | | Micro SDHC card 32GB |  x1             |
 +
  
 //__Digital Input Signal__// //__Digital Input Signal__//
Line 92: Line 94:
 //__Analog Input Signal__// //__Analog Input Signal__//
  
-{{:​pm:​prj2023:​apredescu:​electrical_schematic_2_sapcaliu_maria-viorica.jpg?​800x400|}}+{{:​pm:​prj2023:​apredescu:​electrical_schematic_2_sapcaliu.jpg?​800x400|}}
  
  
-This project'​s circuit is a modified version of the "​slayer exciter," a sort of Tesla transformer notable for its self-governing oscillation. The slayer exciter circuit, unlike classic Tesla coils, uses feedback from the secondary coil to enable self-tuning and self-resonating operation, avoiding the need for complex circuitry.+<note important>​This project'​s circuit is a modified version of the "//slayer exciter//"a sort of Tesla transformer notable for its self-governing oscillation. The slayer exciter circuit, unlike classic Tesla coils, uses feedback from the secondary coil to enable self-tuning and self-resonating operation, avoiding the need for complex circuitry.</​note>​
  
-Some creative additions have been made to this version of the circuit. The current to the coil is modulated by an audio input via the 80NF70 NFET (Q2), while one LED (D2) is modulated by the audio input and another LED (D1) is modulated by the coil's oscillations. The audio-modulated coil can vibrate, and the plastic tube that acts as the coil's core resonates, effectively functioning as a speaker.+<note important>​Some creative additions have been made to this version of the circuit. The current to the coil is modulated by an audio input via the 80NF70 NFET (Q2), while one LED (D2) is modulated by the audio input and another LED (D1) is modulated by the coil's oscillations. The audio-modulated coil can vibrate, and the plastic tube that acts as the coil's core resonates, effectively functioning as a speaker.
  
-The "​slayer exciter"​ self-governing oscillation is crucial to the circuit'​s operation. ​+The "​slayer exciter"​ self-governing oscillation is crucial to the circuit'​s operation.</​note> ​
  
-Basic explanation of how it works with a single transistor:+<note important>​__**Basic explanation of how it works with a single transistor**__:
  
   - The circuit is initially powered on, and the transistor (Q1) is in the "​on"​ position. This means that current can pass through the Tesla coil's primary coil.   - The circuit is initially powered on, and the transistor (Q1) is in the "​on"​ position. This means that current can pass through the Tesla coil's primary coil.
-  - A magnetic field forms around the primary coil when current travels through it. This magnetic field causes a voltage to be generated in the secondary coil, which is wrapped around the primary ​coil. +  - A magnetic field forms around the primary coil when current travels through it. This magnetic field causes a voltage to be generated in the secondary coil, where primary coil is wrapped around the secondary ​coil. 
-  - However, an unusual event occurs when the current in the secondary coil exceeds a particular threshold, often the breakdown current of an LED linked in series.The transistor'​s base is linked to ground, thus pulling it "​down"​ and causing the transistor to reach a cutoff state.+  - However, an unusual event occurs when the current in the secondary coil exceeds a particular threshold, often the breakdown current of an LED linked in series. The transistor'​s base is linked to ground, thus pulling it "​down"​ and causing the transistor to reach a cutoff state.
   - When the transistor reaches cutoff mode, current is no longer conducted through the primary coil. This causes the magnetic field generated by the primary coil to collapse.   - When the transistor reaches cutoff mode, current is no longer conducted through the primary coil. This causes the magnetic field generated by the primary coil to collapse.
   - A high-voltage flyback voltage is induced in the primary coil as the magnetic field decreases. This flyback voltage discharges into the surrounding air, causing an electric arc or plasma to form.   - A high-voltage flyback voltage is induced in the primary coil as the magnetic field decreases. This flyback voltage discharges into the surrounding air, causing an electric arc or plasma to form.
-  - The interruption of current flow in the primary coil has an effect on the secondary coil as well. A voltage spike in the secondary coil is caused by the sudden shift in magnetic field, which might result ​in a high-voltage output.+  - The interruption of current flow in the primary coil has an effect on the secondary coil as well. A voltage spike in the secondary coil is caused by the sudden shift in magnetic field, which results ​in a high-voltage output.
   - The process is repeated indefinitely. When the flyback voltage dissipates and the current in the secondary coil falls below the breakdown level of the LED connected in series, the voltage falls below the breakdown level of the LED. This permits the transistor to return to saturation mode, turning it "​on"​ and commencing the magnetic field accumulation.   - The process is repeated indefinitely. When the flyback voltage dissipates and the current in the secondary coil falls below the breakdown level of the LED connected in series, the voltage falls below the breakdown level of the LED. This permits the transistor to return to saturation mode, turning it "​on"​ and commencing the magnetic field accumulation.
 +</​note>​
  
 +<note important>​
 The slayer exciter circuit can be controlled by modulating the circuit on and off with an interrupter,​ such as an Arduino combined with an optocoupler. This modulation can be done at the frequency of a certain musical note, and the ensuing electric arcs created by the Tesla coil can produce audible sounds at the modulated frequency. ​ The slayer exciter circuit can be controlled by modulating the circuit on and off with an interrupter,​ such as an Arduino combined with an optocoupler. This modulation can be done at the frequency of a certain musical note, and the ensuing electric arcs created by the Tesla coil can produce audible sounds at the modulated frequency. ​
 +</​note>​
  
 ===== Software Design ===== ===== Software Design =====
Line 126: Line 131:
   * Servo.h   * Servo.h
  
- In the program, I utilized ​functions from these libraries to control the DFMini Player and servo motor. The DFMini Player receives commands via serial communication,​ with pins 10 and 11 serving as RX and TX. Melodies in integer-numbered files (e.g., 1.mp3, 2.mp3, etc.) should be stored on the memory card before specifying the commands.+ In the program, I used functions from these libraries to control the DFMini Player and servo motor. The DFMini Player receives commands via serial communication,​ with pins 10 and 11 serving as RX and TX. Melodies in integer-numbered files (e.g., 1.mp3, 2.mp3, etc.) should be stored on the memory card before specifying the commands.
  
 Here is a summary of the program flow: Here is a summary of the program flow:
  
-  - void setup():+  - **void setup()**:
       *  Initialized communication with the module and microSD card, as well as the Arduino serial communication.       *  Initialized communication with the module and microSD card, as well as the Arduino serial communication.
       * Set initial volume control, range control, equalization commands, and other features.       * Set initial volume control, range control, equalization commands, and other features.
       * Attached the servo object to pin 3.       * Attached the servo object to pin 3.
-  -  void loop():+  -  ​**void loop()**:
        * Called the danceServo() function.        * Called the danceServo() function.
        * Transmitted commands via serial communication to manage the DFPlayerMini.        * Transmitted commands via serial communication to manage the DFPlayerMini.
-  - void menu_opcoes():​+  - **void menu_opcoes()**:
      * An interactive menu to select the command to be sent via serial communication.      * An interactive menu to select the command to be sent via serial communication.
-  - void danceServo():​+  - **void danceServo()**:
      * This function accepts a pattern as input and controls the servo motor. Each pattern defines a sequence of servo positions and delays between them.      * This function accepts a pattern as input and controls the servo motor. Each pattern defines a sequence of servo positions and delays between them.
  
Line 156: Line 161:
   * The total number of notes was also calculated   * The total number of notes was also calculated
  
-  - void setup():+  - **void setup()**:
      * Started serial communication and plugged in the microSD card.      * Started serial communication and plugged in the microSD card.
      * On the card, I created a "​note.txt"​ file.      * On the card, I created a "​note.txt"​ file.
Line 166: Line 171:
   * I defined pins for the servo motor, SD card module, and the buzzer/​digital signal. Additionally,​ I created an object to handle file operations.   * I defined pins for the servo motor, SD card module, and the buzzer/​digital signal. Additionally,​ I created an object to handle file operations.
  
-  - void setup():+  - **void setup()**:
      * Serial communication was initialized and connected to the microSD card and servo motor.      * Serial communication was initialized and connected to the microSD card and servo motor.
      * The file was opened to retrieve the total number of notes, frequency, and duration.      * The file was opened to retrieve the total number of notes, frequency, and duration.
Line 172: Line 177:
      * Closing the file, the matrix was iterated to calculate the note durations.      * Closing the file, the matrix was iterated to calculate the note durations.
      * The corresponding sound was generated using the tone(), delay(), and noTone() functions.      * The corresponding sound was generated using the tone(), delay(), and noTone() functions.
-  - void loop():+  - **void loop()**:
      * Called the danceServo() function.      * Called the danceServo() function.
  
Line 206: Line 211:
 ===== Download ===== ===== Download =====
  
-Arduino_NANO_TESLA_COIL_MUSICAL_ANALOG-SIGNAL -Source Code {{:​pm:​prj2023:​apredescu:​sapcaliu_maria-viorica_1221ea_teslacoil.txt|}}+{{:​pm:​prj2023:​apredescu:​teslacoilsecrets.zip|}} 
 +===== Journal =====
  
-Arduino_UNO_R3_INIT_SD-CARD_DIGITAL-SIGNAL -Source Code {{:​pm:​prj2023:​apredescu:​sapcaliu_maria-viorica_1221ea_teslacoil1.1.txt|}}+  * 26.04.2023 
 + I began to consider which project might pique my interest. I did some preliminary research on potential future projects.
  
-Arduino_UNO_R3_TESLA_COIL_MUSICAL_DIGITAL-SIGNAL ​-Source Code {{:​pm:​prj2023:​apredescu:​sapcaliu_maria-viorica_1221ea_teslacoil1.2.txt|}} +  * 03.05.2023 
-===== Jurnal =====+ After a lot of thought, I chose to take on the Musical Tesla Coil project as a challenge, which would reproduce musical notes using high voltage sparks as a digital input signal from an Arduino. I selected this because I enjoy combining electrical and software engineering. In order to have a starting point, I began to conduct in-depth studies into the Tesla Coil phenomenon. Furthermore,​ I was looking for suggestions on the appropriate sort of Tesla Coil circuit to use for the requirements of my project. ​  
 + 
 +  * 04.05.2023 
 +I decided to build my musical tesla coil slayer exciter circuit from scratch, so I went through the hardware components, looked at their datasheets, and calculated what materials I needed to make the primary and secondary coils (number of turns, gauge wires, and secondary coil output voltage). In case that my circuit implementation fails, I have considered a backup plan (a little music tesla coil plasma speaker). 
 + 
 +  * 05.05.2023 
 +I ordered some of the components I needed for my project and had others on hand. My progress will determine what I order later. I initially ordered 
 +-Arduino medium Kit from Robotlinking 
 +-TIP31C Transistor x2 
 +-IRFP460 MOSFET N-Channel x2 
 +-IRFP250 MOSFET N-Channel x2 
 +-Transistor Heat Sinks x2 
 +-Capacitors 
 +-4N35 Optocoupler x1 
 +-10k/47k Resistor x1 
 +-PVC Pipe (1 in. Diameter, 3.93 in. Length) x1 
 +-30 Gauge Enamel Coated Wire 
 +-26 Gauge Rubber Coated Wire (Solid Core) 
 +-Jumper Wire 
 +-Power Supply (home) 
 +-Universal PCB board 
 +-Servo motor x1 
 +-Micro- SD Card Module x1 
 +-MP3 player DFPlayer Mini Module x1 
 +-Soldering iron x1 (home) 
 + 
 +  * 09.05.2023 
 +I acquired my components and began sketching my planned circuit on paper. 
 + 
 +  * 15.05.2023 
 +Because making and testing my circuit directly would have been too dangerous, I tried it on the free SPICE simulator program (LTSPICE). 
 + 
 +  * 18.05.2023 
 +Unfortunately,​ after numerous experiments and simulations of various circuits in LTSPICE, something was not right and I was unable to carry out a definitive solution for my slayer exciter circuit. My proposed slayer exciter circuit used a npn bjt (TIP31C) to drive the Mosfet (IRFP460) gate. 
 + 
 +{{:​pm:​prj2023:​apredescu:​teslacoil_ltpsice.png?​700x500|}} 
 + 
 +{{:​pm:​prj2023:​apredescu:​teslacoil-ltpsice_2.png?​700x500|}} 
 + 
 +  * 19.05.2023 
 +I decided to implement my backup plan for the circuit and also considered trying an alternate means of producing music via the spark, but this time the device would accept an analog signal input. 
 + 
 +  * 21.05.2023 
 + I began connecting the components together on a breadboard and tested their functionality. 
 + 
 +  * 23.05.2023 
 +I began putting the software design into practice. 
 + 
 + ​{{:​pm:​prj2023:​apredescu:​tesla-code1.jpg?​700x400|}} 
 + 
 + ​{{:​pm:​prj2023:​apredescu:​tesla-code2.jpg?​700x400|}} 
 + 
 +  * 26.05.2023 
 +I completed all of the project'​s code implementations. 
 + 
 +  * 27.05.2023 
 +Begin assembling and testing the project for both situations with all necessary equipment (e.g., oscilloscope). They are effective! 
 + 
 +{{:​pm:​prj2023:​apredescu:​sapcaliu_t_a.jpeg?​700x500|}} 
 + 
 +{{:​pm:​prj2023:​apredescu:​tesla_optocoupler.jpeg?​200|}} 
 + 
 +{{:​pm:​prj2023:​apredescu:​tesla_withoutcoupler.jpeg?​200|}} 
 + 
 +  * 28.04.2023 
 +I'm putting the finishing touches on.  
 + 
 +  * 29.05.2023 
 +The project is completed.
  
-<note tip> 
-Puteți avea și o secțiune de jurnal în care să poată urmări asistentul de proiect progresul proiectului. 
-</​note>​ 
  
-===== Bibliografie/Resurse ​=====+===== Bibliography/Resources ​=====
  
 <​note>​ <​note>​
pm/prj2023/apredescu/teslacoilsecrets.1685386441.txt.gz · Last modified: 2023/05/29 21:54 by maria.sapcaliu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0