I also came up with the idea during this phase that I wanted to **trigger different animations with my voice**.
I thought it would be fun to make **a scream** my trigger. When I scream into the microphone, the mcu would inform TouchDesigner to play chaotic animations to mirror the scream. Adversely, when I'm quiet and the mcu does not register a loud sound, it contiously informs the computer to play serene, calm animations.
I thought it would be fun to make **screams** my trigger. When I scream into the microphone, the mcu would inform TouchDesigner to play chaotic animations to mirror the scream. Adversely, when I'm quiet and the mcu does not register a loud sound, it contiously informs the computer to play serene, calm animations.
- Test that each board is functioning properly. Run the generic blink code and make sure that I can get each of the **TX** and **RX** ESP32 boards to blink an LED.
- Get 2 ESP32 boards to communicate wirelessly using the ESP NOW protocol
- Test that each board is functioning properly.
- Run the generic blink code on each of the TX and RX ESP32 boards to blink an LED.
- Get 2 ESP32 boards to communicate wirelessly using the ESP NOW protocol.
After research on which MCUs to use, I am choosing to work with two variants of ESP32 boards, both with bluetooth capabilities, so that one can be connected to the computer for projections **(RX, receiver)** and the other can be attached to the garment along with the microphone sensor **(TX, transmitter)**.
- [The Newbie’s Guide to Programming an ESP32 on the Arduino IDE](https://www.iottechtrends.com/program-esp32-on-arduino-ide/?fbclid=IwAR1W8dblx-idwUIDvSSKgXqxPp-xUp5z3Nx4CDEQd2OLjUCn-G3ag2rRusU)
ESP-WROOM-32 is a Wi-Fi module equipped with a chip called ESP32 provided by **Espressif Systems** and capable of Wi-Fi and Bluetooth (BLE) communication. It is slightly larger than ESP-WROOM-02, but it still is small. The module also has the advantage that Arduino programs can be written (that is, the module can be used as part of Arduino), and Wi-Fi communication is supported. Read more on the ESP32 board by checking out the links above.
Steps:
1. Download ESP32 Board in Arduino IDE Library
2. Download Files
3. Download Driver
4. Upload Code to ESP32
### XIAO-ESP32-C3 board set up
Testing the Xiao Board
!!! example "**XIAO ESP32-C3** Information"
- [Getting Started with Seeed Studio XIAO ESP32C3](https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/)
- [Seeed Studio XIAO ESP32C3 - RISC-V tiny MCU board with Wi-Fi and Bluetooth5.0, battery charge supported, power efficiency and rich Interface](https://www.seeedstudio.com/Seeed-XIAO-ESP32C3-p-5431.html)
xxxx
Test Connection between the 2 boards
### communication between the two boards
!!! example "Communication Between **two ESP32 mcus**"
...
...
@@ -298,6 +303,15 @@ xxxx
TX: Microphone and Xiao on Garment
RX: ESP32 connected to Computer Arduino IDE and TD
The two boards will communivate via a program called ESP-NOW. Tutorial above.
You will end up running 3 pieces of code...
1. Configuring and uploading the Transmitter Code to the TX board
2. Running the Mac Address code on the RX board > to get it's unique wireless communication ID
3. Configuring and uploading the Receiver Code to the RX board