An ESP8266 can transmit AM, mono FM, stereo FM, or SSB using its integrated radio hardware and the ESP-AnalogRadio project firmware. This is not about tuning in to a commercial station: these experimental modes operate around 2.4 GHz, so you need a compatible SDR receiver, such as a HackRF, to listen to the signal.
This guide focuses on one of the Web Serial versions for ESP8266: the browser prepares audio and sends it over USB; the board generates the radio signal. The repository also includes projects for other ESP families and newer versions, but each firmware has a corresponding player. Do not mix the page for one version with the sketch for another.
flowchart TD
A["Audio en el navegador"] --> B["USB serie"]
B --> C["ESP8266 y firmware"]
C --> D["Señal en 2,4 GHz"]
D --> E["SDR con demodulación adecuada"]Set up a contained test
For the setup described here, you need an ESP8266 board—the repository mentions a D1 mini—a USB data cable, a computer with Arduino IDE, and an SDR capable of receiving at 2.4 GHz. The Web Serial sketches require the USB-to-serial bridge and its driver to support 2,000,000 baud, 8N1; the project recommends setting the ESP8266 CPU to 160 MHz.
Before powering or restarting the board, prepare RF containment. The project warns that all four Web Serial sketches start a CW carrier on startup and that stopping playback or disconnecting the serial port does not turn off that carrier. Use a shielded setup and suitable RF attenuation during testing; if you need to stop transmission, use the RF stop control while connected or disconnect the power.
1. Download the project
Clone the repository and enter its folder. The code and control pages are organized into separate directories by mode, such as AMSerialHQv1, FMSerialHQv1, FMStereoHQv1, and SSBTestv1.
git clone https://github.com/kaboom748/ESP-AnalogRadio.git
cd ESP-AnalogRadio
ls
Choose a specific firmware and player pair. For a first, simple test, you can use AM, mono FM, or stereo FM; for SSB, select USB or LSB in both the player and the SDR. The project pages have controls in French, so it is a good idea to identify the connection and transmit buttons before you begin.

2. Install and configure Arduino IDE
The documented procedure uses Arduino IDE with the Arduino ESP8266 core. Add the board manager URL specified by the project, then install esp8266 by ESP8266 Community from Boards Manager.
https://arduino.esp8266.com/stable/package_esp8266com_index.json
Open the sketch for your chosen mode. For an ESP8266 Web Serial build, select the correct board and serial port, and set the CPU frequency to 160 MHz. The repository recommends copying the .ino file to a working folder whose name matches the sketch name; this lets Arduino IDE find the expected structure.
When uploading the firmware, use an upload speed that works reliably with your board and cable. This is not the same speed as the serial link used later by the player. When the upload is complete, close the Serial Monitor: the browser needs to claim that port.
3. Serve the player from your computer
The Web Serial pages run locally in a compatible desktop Chromium browser. From the repository root, start the server specified by the project on the loopback interface:
python -m http.server 8000 --bind 127.0.0.1
Leave that terminal open and visit the address corresponding to the firmware you installed. These are the paths provided for the four variants:
AM: http://localhost:8000/AMSerialHQv1/AM_LIVE_WEBSERIAL_HIFI.html
FM mono: http://localhost:8000/FMSerialHQv1/FM_LIVE_WEBSERIAL_WFM16_PROFIL_MESURE.html
FM estéreo:http://localhost:8000/FMStereoHQv1/FM_LIVE_WEBSERIAL_STEREO.html
SSB: http://localhost:8000/SSBTestv1/SSB_LIVE_WEBSERIAL_HIFI.html Keep the page visible in the active tab. The project itself warns that switching tabs or minimizing the browser can trigger background task throttling, interrupt the serial stream, and disconnect the board.
4. Connect, prepare audio, and transmit
In the player, click the connection control and select the board's USB serial adapter. Check the status using the connection or PING function. Then load an audio file the browser can decode, such as MP3 or WAV, and trim a short segment for your first test.
Preview the audio, choose the mode, and click Préencoder l’extrait. The browser converts the segment to the firmware's sample format; the mono FM variant also has an option to listen locally to the encoded samples before transmitting them.
Configure the SDR for the appropriate demodulation: AM for AM, WFM for wideband FM, and USB or LSB for sideband. The signal is around 2.4 GHz, not in the usual AM/FM broadcast bands. The project gives 2442.3125 MHz as the nominal frequency for these ESP8266 builds; it recommends locating the actual signal in the SDR spectrogram before fine-tuning the exact frequency.
Once the receiver is ready, start transmission from the page. The firmware first runs its CW interval and then plays the segment. Watch for serial errors, overruns, or missed sample deadlines reported by the player.
5. Stop transmission and end the test
Do not assume the experiment is over when you stop playback: the project notes that the carrier can remain active in these sketches. If the connection is still open, use ARRÊT RF; otherwise, disconnect power to the board. When powered on again, startup will generate CW once more.
SDR settings matter too. The project recommends starting with low gain and suitable attenuation to avoid saturating the input. For stereo FM, receiving the signal is not enough: you need a stereo multiplex decoder with a 19 kHz pilot.
Common bench problems
The browser does not show the port: make sure the Serial Monitor is closed, you are using a desktop browser compatible with Web Serial, and the board is connected with a data cable. Also check that the adapter and its driver can maintain the link speed required by the sketch.
The signal does not appear where you expected: the nominal frequency is no substitute for checking with the SDR. The repository explains that the ESP8266 oscillator and the receiver reference affect the observed frequency; first look for the signal in the waterfall, then fine-tune the frequency.
The audio cuts out or the connection drops: keep the page in the active tab, try a short segment, and monitor the player indicators. If errors or lost samples appear, check the serial link and prevent the browser from suspending the page.
The board gets hot: the project calls for a heatsink before sustained transmission, proper thermal contact with the heat-dissipating surface, and ventilation. Keep metal away from the PCB antenna and exposed contacts; stop the test if the board resets or becomes unstable.
Experimental transmission is not automatically authorized just because the board has Wi-Fi: check your local RF regulations and verify the frequency, emission type, power, bandwidth, and interference before transmitting. For a first session, the prudent option is to keep the signal inside a shielded bench setup. The final check is straightforward: can you see the carrier on the SDR and stop it with ARRÊT RF before disconnecting the browser?
Sources: Hackaday, GitHub, OpenNet, RTL-SDR Blog