Esp8266 Internet Radio
Introduction: Esp8266 Internet Radio
This Is a Small Lo Fi Internet. Radio poject based on esp8266 lolin microcontroller. With oled screen and rotary encoder for Channel selection.
The radio code is based on this project:
The code is ready with 10 Station selection menu and you can modify it for many more if you want.
The radio code designed to remember your last station in eeprom. so when you turn the radio off and then on it will connect automatically to the last station you heard. If in any case ther is buffer error or the wifi is disconnected for some reason. The microcontroller will try automatically to connect to that station again forever.
When you ar connected to a station you can turn the encoder left or right to choose another station. 977
then a short click on the button will connect you to that station.
If for some reason the station stream is bad and the radio can't connect to that specific
Station. press long press of 3 seconds on the butten when the radio trying to connect the station. that will stop the automatic wifi connection and will bring you to the station selection menu. turn the encoder to choose a different station and then a short click on the button will connect you to that station.
I also added 2 leds for indication. a red led for power indication and green led that's light's up when the radio is connected to station.
Rota
Supplies
Supplies
-Esp 8266 lolin microcontroller
-Oled screen ssd1306 128x64
-Rotary encoder with swוtch
-Lm386
-Speaker
-Veraboard
-wire's
Resistors
10k Pot x1
10k x2
220R x2
10R x1
Capacitors
0.01 uf x1
0.05 uf x1
10uf x2
220 uf x2
Leds
-Green led
-Red led
Step 1: Schematics
Here is all schematics for this project.
Use the pdf file to see all pin order connections between esp8266 to components
Full schematic
-Esp8266 Lo Fi internet radio schematic.pdf.
External info schematic
-Oled ssd1306 with esp8266 schematic
-Encoder connection schemaric
-Lm368 Amp schematic
-potentiometer pin out
-
Step 2: Build
For the building of the circuit I recommend to follow this steps:
First. place a female header socket on the esp8266 pins and solder it to a veraboard
Then you can remove the the esp8266 for the rest of the soldering work.
I recommend to use a row of male headers on veraboard for comfortable connections between esp8266 boatd to the other components.
Connecting the screen
Pin SCL of the screen connected to D1 pin in the esp8266
Pin SDA of the screen connected to D2 pin in the esp8266
Pin VCC of the screen connected to 3.3V pin in the esp8266
Pin GND of the screen connected to GND pin in the esp8266
Connecting the encoder
Pin A (CLK) of the encoder connected to D5 pin in the esp8266
Pin B (DT) of the encoder connected to D6 pin in the esp8266
Pin SW of the encoder connected to D7 pin in the esp8266
Pin C (GND) And SW GND pin of the encoder connected to GND pin in the esp8266
Pin 3.3V of the esp8266 connected to pin A in the encoder through 10K reisistor
Pin 3.3V of the esp8266 connected to pin B in the encoder through 10K reisistor
Building the amp
Pin 1 of the lm386 connected to pin 8 of the lm386 through a 10uf cap
Pin 2 of the lm386 connected to OUTPUT pin of the 10K potentiometer
VCC pin ot the potentiometer connected to RX Pin of the esp8266
GND pin ot the potentiometer connected to GND pin of the esp8266
Pin 3 and pin 4 of the lm386 connected to GND pin of th esp8266
Pin 7 of the lm386 connected to GND through 10uf capacitor.
Pin 6 of the lm386 connected to VIN pin of the esp8266
Pin 6 of the lm386 connected to GND through 0. 977