I’ve been trying to add some BME680 sensors to my IKEA air quality sensors. My goal was to add a bit more environmental sensors around my house to keep track of temperature, humidity, etc. In doing this I also ran into some odd problems with my D1 minis to work through.
Continue reading “BME680 and ESP”Putty Serial Connections to ESP Devices
While working on debugging an ESP32, I needed to get the log for the unit when WiFi was down. To do this I need a serial connection, which can be done using putty. Since this was the first time I used putty to connect to a serial device, I figured I’d give a short how to connect to an ESP32 using it.
Continue reading “Putty Serial Connections to ESP Devices”ESPDeck 3 + LED Backlighting
Ever since I integrated per key LEDs in the NFC Deck, I have wanted to update the ESP Deck design to incorporate them (and update some of my keypads to include them too). I finally got around to both of these, swapping the switches for clear switches on one of my ESP Decks and integrating in the LED lighting.
Continue reading “ESPDeck 3 + LED Backlighting”ESP32 not Accepting OTA Updates
I started running into issues when I began using ESP32s instead of 8266s, I could do the initial flash over serial, and follow it up with some configuration. But the moment I tried to OTA update with further configuration, it would fail every time. The errors were always the same vein, connection reset by the ESP before the update could complete.
Continue reading “ESP32 not Accepting OTA Updates”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”Home Audio Plan
I’ve had an itch for years to get a whole home audio setup working, but I’ve always wanted to avoid the large cloud in the room thats normally there around these systems. I’m finally feeling to start working things out piece by piece to try and build a system intuitive to use and just works™.
Continue reading “Home Audio Plan”Playing Music on a Tag Reader
The tag reader, and it’s relative the NFCDeck have piezo buzzers in them. These can be used to play monotone music via PWM signal from an ESP. As an addition to this, there’s a simple music file format from the early years of cellphones that’s also supported by this system. Combine these together and we have an interesting little music box.
Continue reading “Playing Music on a Tag Reader”