Uploaded January 2026 | Updated November 2026, 2 days ago
Sometimes the bug isn’t in the code…
I spent way too long debugging what I thought was a software issue on this IR thermal sensor (I²C scans, pull-ups, library swaps… the usual).
Turns out the problem was much more obvious once I put it under the microscope 👀
If you’re using one of these "cheap" (it's still expensive!) IR modules and it “doesn’t work”, it’s worth checking the soldering on the underside before going too deep down the software rabbit hole.
A proper project video using this module is coming soon 👍
If you want one of the modules you can get them here: https://s.click.aliexpress.com/e/_c4DA1cRh
But shop around for the best price/quality!
---
If you'd like to help support the channel and help me buy more nonsense - I have a Patreon page: patreon.com/atomic14
We've also got a shop now! shop.atomic14.com
And if you're shopping on AliExpress or Amazon then if you click on these links I will get a little bit of affiliate money:
Aliexpress - https://s.click.aliexpress.com/e/_Ac05mF
Amazon - amazon.com/?tag=atomic14-20
You can also join us on Discord here: discord.gg/h2DDnDdjD2
There's also the Atomic14 newsletter here: atomic14.substack.com
And don't forget about the MakerNews newsletter - makernews.substack.com
Sometimes the bug isn’t in the code…
I spent way too long debugging what I thought was a software issue on this IR thermal sensor (I²C scans, pull-ups, library swaps… the usual).
Turns out the problem was much more obvious once I put it under the microscope 👀
If you’re using one of these "cheap" (it's still expensive!) IR modules and it “doesn’t work”, it’s worth checking the soldering on the underside before going too deep down the software rabbit hole.
A proper project video using this module is coming soon 👍
If you want one of the modules you can get them here: https://s.click.aliexpress.com/e/_c4DA1cRh
But shop around for the best price/quality!
---
If you'd like to help support the channel and help me buy more nonsense - I have a Patreon page: patreon.com/atomic14
We've also got a shop now! shop.atomic14.com
And if you're shopping on AliExpress or Amazon then if you click on these links I will get a little bit of affiliate money:
Aliexpress - https://s.click.aliexpress.com/e/_Ac05mF
Amazon - amazon.com/?tag=atomic14-20
You can also join us on Discord here: discord.gg/h2DDnDdjD2
There's also the Atomic14 newsletter here: atomic14.substack.com
And don't forget about the MakerNews newsletter - makernews.substack.com
![Wireless Mic on ESP32: Bluetooth Struggles & Success!
Lets make a Bluetooth microphone I said to myself, how hard can it be? A quick thanks to https://www.PCBWay.com/?from=atomic for sponsoring the channel.
Weve already made a Bluetooth speaker so making a Bluetooth microphone should be easy.
So, What are we doing in this video?
* [0:00] Why am I here - whats it all about?
* [0:08] Why this seemingly trivial thing is not trivial?
* [0:53] Why cant we just use A2DP sources?
* [1:46] Is Chris aware that Bluetooth headsets exist?
* [4:23] Hes made a hands free car kit (a really bad one) - what is he doing?
* [5:38] A working wireless microphone?
* [8:06] Bonus feature! Its the directors cut extended edition...
So, whats the issue with the A2DP Bluetooth profile - we used this to create our Bluetooth speaker in a previous video. This is trivially easy and required just a few lines of code with some helper libraries.
Whats more, you can also output audio using the A2DP Bluetooth profile, this also just requires a few lines of code.
The problem is, my PC and most probably your PC is not a Bluetooth speaker - so its not going to pick up our A2DP source as a potential input it can use. Its simply not the way the standards have been defined and implemented.
The alternative is to use the Hands-Free Profile or HFP. This is used by hands-free kits to communicate with mobile phones and now that we spend all day on Zoom calls, computers.
The Hands-Free Profile defines two roles, an Audio Gateway known as AG and a Hands-Free unit known as HF. Were going to turn our ESP32 into a hands-free unit. This will let it connect to our computer which will quite happily act as an audio gateway. This will then let us send audio data from the microphone to the computer.
There are several issues with this:
The first is a fundamental issue with the codecs used. These are limited to 8KHz or 16KHz sampling rates.
As we know from our previous videos on audio input on the ESP32 8KHz is just about good enough for speech, but its not great. Unfortunately in my experiments with the ESP32 and the computer Ive not managed to get them to agree to the 16KHz sampling rate. So Im stuck with 8KHz. My phone will however connect at 16KHz so will get slightly better quality.
The second issue is just getting this to work. I tried running the examples in the ESP-IDF and hit a number of problems. The main one being that it was unable to stay connected for more than a few seconds. The code is also pretty hard to understand.
I have however managed to find an alternative Bluetooth stack that seems to be stable and has sample code that I was able to understand and get to work.
This gave me a working handsfree system, but its not really good enough as a microphone.
I really wanted a wireless microphone.
So Ive made it work using TCP sockets and a bit of duck taping using a virtual audio driver.
Success!? - Ill let you be the judge of that...
You can find the code for the handsfree profile here: https://github.com/atomic14/esp32-hsp-hf please do not attempt to use it unless you are experienced with the IDF and Bluetooth - I wont be able to provide any help or support.
And you can find my wireless microphone code here: https://github.com/atomic14/esp32_wireless_microphone
Patreon: https://www.patreon.com/atomic14
ko-fi: https://ko-fi.com/atomic14 Wireless Mic on ESP32: Bluetooth Struggles & Success!](https://i.ytimg.com/vi/0jR-QNTfydA/mqdefault.jpg)








![Build Your Own Custom Bluetooth Speaker with ESP32 & A2DP | DIY Audio Project
Lets make a custom stereo amp breakout board and use it to build a Bluetooth speaker using an ESP32 and A2DP.
Thanks to PCBWay for sponsoring this video, PCBWay offer PCB Production, CNC and 3D Printing, PCB Assembly and much much more. You can find their details here: https://www.PCBWay.com/?from=atomic
[1:07] Custom stereo board schematic
[4:00] PCB Layout And Manufacture
[7:10] Testing
[8:34] A2DP Software Stack
Up until now, Ive been using the MAX98537 breakout board from Adafruit for most of my audio projects (see here https://youtu.be/At8PDQ3g7FQ for a good intro to I2S and the board). I decided to create my own breakout board to support stereo output.
To test it out Ive created a very simple Bluetooth speaker using A2DP. This is based on the excellent work done by pschatzmann here: https://github.com/pschatzmann/ESP32-A2DP
Really very straightforward to do and a fun project!
You can buy a standard mono amplifier board here - https://amzn.to/3cg88Z5
And Im using the TinyPico board from Unexpected Maker - https://amzn.to/3vVoONp
Soon as I make the updates to my design Ill publish them on PCBWay.
Patreon: https://www.patreon.com/atomic14
ko-fi: https://ko-fi.com/atomic14 Build Your Own Custom Bluetooth Speaker with ESP32 & A2DP | DIY Audio Project](https://i.ytimg.com/vi/2ZdfMJNfCWg/mqdefault.jpg)
