I can help you convert the text into a well-structured article for a web page.
**ESP-NOW Wireless Protocol: A Low-Cost and Easy-to-Use Option**
As I was experimenting with different wireless communication methods, I stumbled upon the ESP-NOW protocol. At first sight, it seems to be a simple and efficient option, but I wanted to dive deeper into its capabilities and limitations.
I started by testing the ESP-NOW connection in a short range of 40 meters. To my surprise, the generic RF module connection began to struggle, while the ESP-NOW connection managed to constantly receive data up to 110 meters. I even checked this with recorded GPS coordinates.
So, at first glance, ESP-NOW seems to work well, especially considering that it requires no extra hardware beyond the ESP32 board. However, programming for it can be a bit challenging.
Despite its limitations, I wanted to push the ESP-NOW protocol to its limits by creating a one-way walkie-talkie. This is demanding because we need to constantly send a significant amount of data containing voice information.
According to the manufacturer's specifications, ESP-NOW can handle 1 Mbps of data, which should be sufficient for our needs. However, there are some drawbacks. One packet can only be 250 bytes, and if one packet is lost, the ESP32 simply doesn't care about it.
The audio quality might not be ideal due to the limitations of the ADC and DAC on the ESP32, which are required to convert analog voice signals into digital data and vice versa.
To overcome these challenges, I built an electret microphone amplifier circuit using a previous project as a reference. The circuit successfully amplifies my picked-up voice by the microphone. I also connected the power and audio lines of the ESP32 to the microphone, along with a push button.
For the receiver side, I used a premade PAM8302 amplifier board and a speaker. The power lines were directly connected to the ESP, while the audio input was connected to the digital-to-analog converter, which reconstructs the analog signal.
With the hardware in place, it was time for programming. Luckily, Elektor had already created a similar project, allowing me to adapt their code for my own use.
After uploading both the master and slave code, the connection got established correctly, and the walkie-talkie basically worked. However, there were some interference noises due to the WiFi function of the ESP board and the shared power lines with the microphone circuit and amplifier circuit.
To solve this problem, I powered all circuits with separate power supplies, which helped reduce the interference. Although the audio quality is not high-definition, it's clear that you can understand what's being said. Even moving 10 meters away from the receiver without losing significant audio quality was impressive.
In conclusion, the ESP-NOW wireless protocol is indeed a great option, and I would have used it in previous projects if I had known about it earlier. With its ease of use and low cost, it's definitely worth considering for any project that requires wireless communication.
**References:**
* Links to all videos are in the description.
* Elektor offers in the description.
**Additional Tips and Resources:**
* Like, share, subscribe, and hit the notification bell for more content like this.
* Consider supporting this show on Patreon.