Close

Adding A Few More Features

A project log for Arduino Radio

Let there be music ... everywhere.

xtreme-techXtreme Tech 11/24/2022 at 17:100 Comments

I have added a few more features to my radio. Firstly, I added and coded 3 buttons which have fixed frequencies. This makes it easier and faster to switch between preferred stations. However, currently I can not access any other station besides these 3 fixed stations. So, eventually I intend on adding a rotary encoder or joystick to move between all stations. 

Next, I have added an OLED screen. This screen displays the station which the radio is playing. Oddly, I faced an issue while coding this display. When I put DisplayFreq() (my display function) in the void loop(), I heard a continuous static noise along with the music from the earplugs but when I put DisplayFreq() under the if statement outside the void loop() then the static noise was only briefly heard when the button was pressed. 

                                     DisplayFreq() inside void loop() - causes continuous static 
                      DisplayFreq() in if statement - causes brief static only when button pressed 

I am not sure what is causing this static noise but I was able to overcome this problem by calling the DisplayFreq() function only when a button is pressed. 

Discussions