Hi,

this is my first instructable, but isn't the first Arduino project...

Let's Go...

Step 1: Get All Needed Parts (Parts List)

1 - Arduino Uno/Nano

1 - 10k Potenciometer

Some Wires

Step 2: Connect Wires

Connect all wires as shown in the picture...

Step 3: Build Code

This is the code that you will use.

You will need TEA5767Radio.h library for arduino

So, the includes will be:

#include <Wire.h>
#include <math.h> //this is to round readed values

then we will declare variables:

float freq, lastfreq; //freq and lastfreq should be float because we will use decimal values in MHz
int sensorValue; // this is to read potenciometer value

Now let's setting up arduino:

void setup(){

Wire.begin();

Serial.begin(9600);

}

Then let's create our loop:

void loop() {

freq = (sensorValue * (20.5 / 1023.0))+87.5;
freq = freq*10.0f;
freq = (freq > (floor(freq)+0.5f)) ? ceil(freq) : floor(freq);
freq = freq/10.0f; //round the freq value to a 1 decimal place

if(lastfreq!=freq){

lastfreq=freq; //save frequency to check if frequency was changed
Serial.print("Frequency: ");
Serial.print(freq);
Serial.println("MHz");

}

}