TheySaySomethingInterrestingApparently: My Mp3 Tesla Music Driver with arduino (weekend) !

〈0,1,1,2,3,5,8,13,21,...〉






Iterpipes, Between Bash and Hash-bash

A library for running shell pipelines using shell-like syntax

Enables piping infinite streams through shell pipelines in Python

xhtml-css Bivalidator

Check your markup and style validity

Advanced

Just type or paste an URL in the form above, and click on "check it" to see the magic. If you want to fine tune your validation, click on the "advanced" link. That's it!

Yet Another Comprehensive Content

Like, Young's modulus is a vibrating variation inside a solid... The times it take to respanw to an excess of energy is what molding apparence may look to not-so solid thing's... Like this Blog when adding content, the effor is like slapping it and the time it goes back, centered... we consider being more stable than usual...

samedi 24 mai 2025

My Mp3 Tesla Music Driver with arduino (weekend) !

 Sure I do have weekend. Some day in the day it's hard working in Perl, java, and many more C/C++ constraints and different goal to achieve. Being the tale of my ArduinoPlan not completed due to weird interaction level with respond of zenity, it also sometime compose to properly the windows required !!! More around a bug than around function process that is not passing right. As opposed to Perl whiptail, with my personal test to final read a big configuration file or configured plan in a menu creation process to manage parameter instead of calling them from the command prompt. Of Course it's the Sqlite development in Perl to create a database for installation packages. Because after seeing the time it take to try an I2S mp3 decoder being available for esp32 in 4 Mega bit to 128 Mega bit with the personal N16R8 dev version, one in pin-board press clip and the other one weld to a dev kit-c version 4. So it's also true a Java layer of Sqlite and even Arduino layer in Sqlite should be tested. Elsewhere, who else want a data miner with only resolution of the economic in 32 bit... It does all Trump error, miss leading in digit you lost by this granularity. Where apparently Sqlite do calculation in 64 bit you gain advantage to use all the database backing to get an economic answer, people will always receive the invoice over what you spared and will continue to.

 Seeing at what it cost, using free time of weekend and plenty of waiting. The initial example from Arduino esp library ESP32-audioI2S-master version 3.0.13, still work with at least the version 3.0.5 of esp32 and I did not migrate it to 3.1.11 because it's good to test few thing before. 


79 minutes 33.814 seconds, to get it compile. There a 32Mbit version from an dow6d (esp32s) version of esp32 and and esp32 WROVER-IB 128 Mbit (16 Mega Byte of RAM), to store your huge application that cost merely 1.4 Mb in programming and apparently Arduino-IDE should pad a spiffs with a 1.4Mb song too on it that was never send in the observation of the debug from Arduino IDE 2.2.1. I made a compilation and uploading to the esp32s, try to recompile for the 128 Mbit version and the IDE fall into lost backend and stop everything and the cake or the framing hang and require to terminate the IDE application with kill function. 

The result here is the arduino-cli, because the IDE itself multiply the compilation by almost 2, someday I will get bare-steady state to boot on and compile. It's not exactly like falling in init-3, but at least a X window simple to show a bare minimal X windows to save a lot of computer power. I still saying there other test like developing the serial interface to talk to the chip. The initial effort by this example from library   ESP32-audioI2S-master is close to a demonstration of read from SD card read from internet and reading several type of media format that provide FLAC, AAC or mp3 format is quite enough. But having a play of the initial music only once is occluded by read-string function that do stop everything and treat, look like a player with introduction or publicity and after what you want. And this widget is also connecting to you internet for it's WiFi and some offer the blue-tooth pairing . Using as external reader of music to broadcast on your Bluetooth headset or to your computer, they give how to connect a max98357A 3watts I2S amplifier. I did not show the speaker to tell I was waiting for them and for long before they become available. 



 By the way esp32 is greatly cheaper, the board itself it's like 3$ and the esp32 N16R8 in one bulk chip cost less than 6$. Acquire more than a year ago, it was cheaper. Special as Trump tariffs imposition does naturally refill the invoice to the public. 

On the picture you can find :

  1. the dow6d (esp32s) 32 Mbit or with default 4MB of memory.
  2.  ESP32 WROVER-IB 128 Mbit.
  3. the 220 turn of coil part of the 15 Watts Tesla coil.
  4.  Maxim Max98357A audio amplifier 3 watts I2S .
  5.  Current monitor INA226 current monitor for several's test.
  6. The plate of the 15 Watts Tesla coil with Power transistor BD243 and 80NF70 Power MOSFET.  
  7. Rest of the part of the internal coil and schema of the 15 Watts Tesla coil, provided with an ear-bud line connection . I assume there is no need for because I to put the exit of Number 4 to the plan on the schema where is the weld spot for earbud will end the music in there and will see what ATR will offer and sound effect .
  8. The cooler for such power transistor and mosfet help. Also another surprise like an SD card support to achieive a reading from SD ,and also the Mini player from DFminiplayer is a direct sd-card to music interface.


A weekend pinning things altogether, but since that compilation time, I do have to develop a shell to select other song from terminal, and possibly changing the wifi connection and saving the settings as well. But being the fact my code will be overcrowded of DEFINE  to allow compiling the function of the shell access and spend less time in compiling and finally change the switch at the end when everything work... A lot of fun and a lot of hours... I am not seeing the time passing . But I swear sometimes it's more than working... And at least fun. 


Based on Number 3 images, the 220 turns of coil is another achievement to do with before the ultimate welding times, a Thief-Joules effect to light up bulb from non-Tesla coil exist. Achieved recently because I finally received my 80mH and 100mH inductor which are perfect in a 3 times voltage increase using a Timer 555.This one was also an object to ask ourself, providing as output of only 200mA can be achieved, while this little 8 pins chip tell nothing but working up to 36 volts, a design of 36 volts and 200mA is a bit different of 3.3 volts at 200mA, and arbitrary store 6.54 (v*mA) remaining possible to let it manage by the timer itself, will require such huge energy depending of the timer to be release. Than schema found on the internet and exchanging the transistor BC547 to 2N2222 and voltage from Vout formerly reach 22.2 Volts, but at 200mA, ,and the INA226 should confirm it. Even better, I do have 12 volts fans operating a starting range of 250 mA and does wound connecting to this schema. And also lower the heat of my raspeberry. Yesterday it was having backing problems but today that little hack help reserving electron freely from a phenomenon call regeneracy of the of electro-magnetic fields and help supply the energy by accumulating. It's same principle of the booster but now it use the 80mH inductor, as I did not try yet with the 220 turns coil to see the resulting voltage. It also reduce by 10 degree the raspberry and might be an issues Ubuntu 22.04 start to be heavy like an Apple.



Note, everything even the Tesla Coil is in 1/4 watt resistor, and I plan to change the 2k by a 20k * 10 in parallel to provide same resistance ratio to the Tesla Coil. But apparently changing the 1/4 watts resistor set into 2.5 Watts will possibly generate a 150 Watts as electric Thief-Joule effect between J1 and J2 from number 6 plates will be horrific for the tiny wire loose. And a Tesla phenomenon is really by passing the emitter side of the mofset and arrive into the collector of the transistor and thus mechanism of feed-path create really the copper indside the coil to really be attached to the ground of the design and get responsible of the electric passing in the air. So I doubt about that tiny wire, but mind you, I do have one from a 3A 470uH which are really big to wound around that coil.. We will see.