Flashing the ESP32 DevKit V1

On occasion, dealing with embedded hardware can be a bit of a pain. Flashing ESPs is a bit of guess and check from time to time. We’ll be flashing an ESP32 DevKit V2 today. We first need to install the drivers from here: CP210x USB to UART Bridge VCP Drivers – Silicon Labs (silabs.com)

With those installed, plug the USB connection for the controller into your PC (Close out of CURA too!), and from ESPHome web, connect to the COM port for the device. After that, hold down the boot button while selecting “Prepare for First Boot” in the ESPHome web interface, and keep holding it until you see the install begin running (getting the percentage complete, etc). Once that shows up, you can release the button and wait for it to finish flashing.

Tl-Dr

  • Install Driver
  • Plug in USB
  • Connect to COM Port from ESPHome Web
  • Hold Boot button while starting the install

Oddity in ESPHome

I ran into an oddity with the latest NFC Deck that I built. When starting up, it would take an hour for home assistant to connect and for me to be able to get logs out of it over WiFi with the ESPHome addon. The ESP I used was no different from the first NFC Deck that I built, and the vast majority of the configuration was the same too.

There were however a few things that were different this time based on how the ESPHome web installer and home assistant adoption process went. The big one I found was the web_server was enabled on the new one. This lets you access a little web page to see everything onboard and interact with it. I guess it just couldn’t handle the number of components and sensors onboard the NFC Deck ( 9 buttons, 27 templates, 9 lights, NFC reader, piezo buzzer, rotary), because removing that from the configuration and uploading a new firmware fixed it.

TlDr: If you have an ESP that takes FOREVER for home assistant to connect to, check to see if the web_server component is included in the build, if it is, try removing it and see if that fixes everything.

Controlling Media Volume with  a Rotary Encoder from ESPHome

The NFC Decks that I design and build have rotary encoders onboard. I added them to eventually use in a whole home audio setup, and now that I have some squeezelite speakers to control, I finally have something to use that part of my design on. Let’s take a look at how to control media volume with the rotary encoders.

Continue reading “Controlling Media Volume with  a Rotary Encoder from ESPHome”

Displaying Currently Playing Music Info

I have played with the MAX7219 display a few times in the past but never had a solid project in mind for it. With my whole home audio project though, I realized I can use it for a cool little display showing what’s currently playing on the system. I’ll want a slightly larger display to use for a final project, but for now I can play with the automations and back end setup for such a display.

Continue reading “Displaying Currently Playing Music Info”