A WiFi-connected FM radio might sound like an over engineered solution for a problem that didn't exist. While browsing through the AliExpress, I found these very inexpensive FM radio chips called TEA5767. To try how well they perform, I bought couple of them. Let's get into the steps one by one, shall we?
The TEA5767 is not a standalone chip. It communicates with a microcontroller via I2C protocol to change channel, play/pause etc.
You can use any microcontroller that supports I2C with TEA5767, but I wanted to keep the design as simple and economic as possible. and I also wanted to have something interesting in the radio.
So I decided to use an ESP01, for those who don't know, a really cheap development board based on ESP8266 microcontroller with WiFi capabilities.
The ESP01 has only two GPIO available to use, which is more than enough for our use case as the controls for our device will be through a mobile application.Step 2: Designing the PCB
The TEA5767 breakout comes in a very strange sized PCB. you can't put them to a bread board or solder it to a perfboard, so I decided to design a custom PCB for it.
I used easyEDA to do all my circuit board design. EasyEDA is a cloud based platform for PCB designing. You can design it from any computer which has internet access without having to download or install anything; Everything happens in the browser!
The PCB was designed with a 3.5mm audio jack to which you connect your audio device like a speaker or headphone.The Power to the board is provided through the easily available micro USB cable (which is only for power, you cant program the radio using the USB.)
All the passive components in an SMD to to reduce space on the board. The idea was to make the device as compact as possible while keeping a lookout for the budget.
My easyEDA project can be found hereStep 3: Ordering the PCB
Now its time to order the PCBs (P.S.: Probably my favorite part in the whole project). For this I choose JLCPCB just as I have done for quite some time now. They make very high quality PCBs for around $2.
I uploaded their gerber files to easyEDA and placed the order; within few days of puchase, I got my shiny new PCBs.
The Quality of the PCBs made by JLC is very very high. The silk screen is very bright and readable as well. I strongly recommend JLCPCB for pcb manufacturing.Step 4: Soldering the Components
I ordered the passive components from LCSC.com
Which is a sisterly concern of JLCPCB and easyEDA, They have a wast verity kf components. Its very hard to find a componet that not in lcsc.com.
LCSC stand for love components, Save cost. As te name suggest they are pretty cheap to. LCSC is suitable for maker to large manufactures, as their inventory is pretty big.
And the best part, when you design your PCB in easyEDA you can directly choose from lcsc, in that way you can see the components, number of stocks available and its price. You can directly add those components to the cart from your EDA software itself. Isn't it great ?
And that's not all, When you order your PCB from jlcpcb.com you can order your components from LCSC with that order. They will ship the components with the PCB. You can start working on your awesome project as soon as you get the PCB, don't have to wait for the components to arrive.
easyEDA, JLCPCB and LCSC together form a great platform for makers.
- A hot air station is perfect for this project as the components are SMD, I didn't have one, so hand soldered it. I started with Micro USB port as it is the hardest part.
- Then I soldered other components like resistor and TEA5767 chip.
- I removed the black plastic covering on the header of the ESP01 so that it sits flushed to the PCB.
The radio will be controlled using Blynk, an app that you can use to build IoT devices. Blynk has over 400 hardware models that work out-of-the-box with fast and open-source Blynk Cloud. They can easily connect over WiFi, LTE, 2G-4G, or Ethernet.
- Install Blynk from play/app store and create an account.
- Blynk will email you an API key. You need to paste this to code.
- Clone my app by scanning this QR code
- You can download the code from here
- You have to also also add your WiFi credentials in the code.
- You can now upload the code to ESP.
- There are many solutions available to upload code to the esp. Here I'm using a modified ESP01 USB to serial converter.
- You can use an arduino or USB serial converters like cp2102 or ch340g.
- If everything went okay, You can see that the 'Device connected' label on the Blynk app.
Once you're done, try connecting an audio device like a speaker or an earphone to the audio jack on the device. You can set the channels manually using the scroll bar or use the search functionality to tune to radio stations from the app.