finnbo11 wrote: ↑
Wed Jun 13, 2018 10:08 am
I mean a similar radio chip that is fully compatible with RPi
There's nothing "incompatible" about the TEA5767 - I just told you to make sure it would be OK running at 3.3V instead of the Arduino 5V, and the post above says it is. The rest is learning how to code the RPi to run it.
The only real problem left is that you want to use a potentiometer to input the frequency setting to the RPi code. From this, I assume you mean you would like a traditional tuning dial, using a potentiometer to measure the position of the dial.
This isn't a great idea for several reasons: first, with no analogue input on the RPi you would need some kind of circuit to take the voltage output from the pot and convert it to digital form to feed into the RPi. Second, the pot itself will produce a "noisy" output and may not be repeatable over time, which doesn't matter too much when an audio volume varies slightly but will matter a great deal if you expect your radio to remain tuned.
I guess you don't know what a rotary encoder is. Basically, it's a device in a similar package to a potentiometer, but it contains switch contacts which make and break when you turn the shaft. These switch signals can be fed directly into the RPi's digital inputs, and counted to know what angle the shaft is at. The typical ones are motion sensitive rather than position sensitive (you can't tell where it started from, but you know how much it was turned and in which direction). There are absolute position encoders, but they are more expensive.
There is a current topic about rotary encoders here: viewtopic.php?p=1325495#p1325495