![]() Please note that the pin must be set up to be pulled high. If no headphone is connected the gpio_get_level() returns 1 – with a headphone the output changes to 0 – so I confirm that on this board we need to use GPIO 39. Return !gpio_get_level((gpio_num_t)HEADPHONE_DETECT) I was testing the headphone detection with the following logic: #define HEADPHONE_DETECT 39 Here is the necessary information for the I2C connection: #define I2C_MASTER_NUM I2C_NUM_0 /*!< I2C port number for master dev */įinally, here is a link to the ES8388 user guide. The ES8388 must be programmed via I2C! In order to do this I found this solution from thaaraak which inspired me to try to convert the original ADF driver from Espressif, so that it can be used in Arduino. The audio chip is responsible for routing the output or input to the correct final device and controlling the volume. Note that these are different from the LyraT ones! #define PIN_I2S_AUDIO_KIT_MCLK 0 The board uses a ES8388 audio chip that is connected via I2S, so we need to use the correct I2S pin assignments. That was the easy one – no let’s move to the major challenge: Output to the Speakers Then when you set up the SD library you need to indicate the PIN_AUDIO_KIT_SD_CARD_CS as CS pin. SPI.begin(PIN_AUDIO_KIT_SD_CARD_CLK, PIN_AUDIO_KIT_SD_CARD_MISO, PIN_AUDIO_KIT_SD_CARD_MOSI, PIN_AUDIO_KIT_SD_CARD_CS) ![]() In addition you need to make sure that the DATA3 and CMD on-board switches are in the on position: #define PIN_AUDIO_KIT_SD_CARD_CS 13 The AI board like the LyraT boards are using some unusual pin assignments and you need to initialize SPI by indicating the correct pins. I am documenting here the solutions to make things work for my V2.2 3478 Board: The SD Card It was running somehow – but there was no sound! Next I tried out the SD drive – and here again – the SD drive was not available. I am aware that this board, like the corresponding LyraT alternatives from Espressif are mainly used with the IDF/ADF framework, but I wanted to use it with Arduino, and that’s where the problems started: First I was so naive to just deploy one of my Bluetooth A2DP Audio sketches. This includes, and is not limited to, duties, taxes and any extra fees charged by the courier company.I found some cheap AI Thinker ESP32 Audio Kit V2.2 on AliExpress and because I was tired of all the wires I had to connect to implement my different scenarios that are possible with my Arduino Audio Tools Library, I thought it to be a good idea to buy this board. You should expect to pay any amount charged by the government in your respective country. Our term is FOB Shenzhen which doesn’t include custom fee. We will also inform you via email about your tracking number and tracking link. If DHL is not available to your country, we will change DHL to UPS, Fedex, or special line, depending on your country.ĭistributors are not eligible for free shipping.Īfter your package is sent out, you can see your tracking number on our website. Some of our products come with battery and motor. Order over $2 00, less $3 0 0 - Shipping fee is $25 by DHL Order over $ 100, less $ 20 0 - Shipping fee is $35 by DHL Order less $ 100 - Shipping fee is $45 by DHL. To see a full list of countries in zone 9, click here. ![]() Orders over $150 - Your order will enjoy free shipping via DHL. In most cases, it takes 3-5 working days to arrive.Įxceptions - Orders from countries in Zone 9 are over $300 for free DHL shipping. Order over $50, less $150 - Your order could enjoy free shipping by small package Air, or $15 by DHL. Arduino starter kits typically include an Arduino board, a selection of sensors and actuators, and a set of cables and connectors. ![]() Order less $50 - You have to pay shipping fee, $10 by default (small package Air), or $20 by DHL. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |