FM radio with RDS - your ideas for HW

BlueWave
Site Admin
Posts: 453
Joined: Tue Sep 18, 2018 6:30 am

Re: FM radio with RDS - your ideas for HW

Post by BlueWave » Thu Mar 21, 2019 8:52 pm

@Marco008 that is clever idea. For sure worth to be considered. Let's also wait for feedback form @rubenverhoef

Vitalic
Posts: 41
Joined: Wed Sep 19, 2018 8:00 am

Re: FM radio with RDS - your ideas for HW

Post by Vitalic » Fri Mar 22, 2019 7:50 pm

Some good news about DAB board and Hifiberry.

DAB board communicates via I2S while Hifiberry communicates on SPI bus.

They will bring a tutorial on how to connect it to the Pi when there is a Hifiberry in use.

BlueWave
Site Admin
Posts: 453
Joined: Tue Sep 18, 2018 6:30 am

Re: FM radio with RDS - your ideas for HW

Post by BlueWave » Fri Mar 22, 2019 8:16 pm

That is good news. We it will work. Keep us updated please.

rubenverhoef
Posts: 22
Joined: Tue Feb 05, 2019 5:50 pm

Re: FM radio with RDS - your ideas for HW

Post by rubenverhoef » Mon Apr 08, 2019 4:08 pm

BlueWave wrote:
Thu Mar 21, 2019 8:52 pm
@Marco008 that is clever idea. For sure worth to be considered. Let's also wait for feedback form @rubenverhoef
@BlueWave

I have received the DABBoard and works great.
What i have done to get the audiosense overlay:

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade

After that i can enable the audiosense, I2S and SPI overlay with:

Code: Select all

sh -c "echo 'dtparam=spi=on' >> /boot/config.txt"
sh -c "echo 'dtparam=i2s=on' >> /boot/config.txt"
sh -c "echo 'dtoverlay=audiosense-pi' >> /boot/config.txt"
At boot you have to issue the following command to start the DABBoard and use the I2S output:

Code: Select all

sudo ./radio_cli -b D -o 1
arecord -D hw:0 -c 2 -r 48000 -f S16_LE -q | aplay -D hw:1 -c 2 -q &
Please note that hw:0 and hw:1 must be adjuted to match the system.

To tune to a station you have to do:

Code: Select all

sudo ./radio_cli -c 1 -e 33735 -f 28 -p (To start Radio 538 (the netherlands))
I have made some custom apps for OAP to start these channels. It is workable right now but i want better intergration with OAP.

What i expect from you guys:
Update the image to include the audiosense overlay.
Make a media player which can:
scan for channels:

Code: Select all

sudo ./radio_cli -u
This export all channels in json format
Tune to channels, and display channel information (it is in json format)

And we need something like this to function properly:
https://bluewavestudio.io/forum/viewtop ... f=15&t=558

I have not tested FM (because i'm not going to use it and an other program is nessasary). If you really want that i test it i can do it.

Kind regards,
Ruben Verhoef

mentalinc
Posts: 9
Joined: Tue Mar 12, 2019 8:19 pm

Re: FM radio with RDS - your ideas for HW

Post by mentalinc » Mon Apr 08, 2019 6:02 pm

Please test FM so others know if it will work and can purchase it
More importantly, does FM work while driving, not just parked?

Vitalic
Posts: 41
Joined: Wed Sep 19, 2018 8:00 am

Re: FM radio with RDS - your ideas for HW

Post by Vitalic » Mon Apr 15, 2019 5:14 pm

So today i received the dabboard too. Good news, it works, bad news it does not work with hifiberry dac.

It depends on the position of the overlay in the config. The last one listed gets activated.

So if i have hifiberry and after it audiosense, the dabboard is active. If audiosense comes before hifiberry overlay, hifiberry dac is active...

Talking about FM Radio. Yes it is possible. But it's too 'hard'. Right now there is now way to save list. You just can jump to the next found FM station...

Somehow a good idea but atm not the best way. Still waiting for the sundtek device.

BlueWave
Site Admin
Posts: 453
Joined: Tue Sep 18, 2018 6:30 am

Re: FM radio with RDS - your ideas for HW

Post by BlueWave » Wed Apr 17, 2019 6:14 pm

Thank you all for feedback.

@rubenverhoef if possible could you please check FM for us? As mentalinc wrote, the best would be during driving, in order to check if there if there is no interference.

@Vitalic it is possible to set defined FM station directly?

rubenverhoef
Posts: 22
Joined: Tue Feb 05, 2019 5:50 pm

Re: FM radio with RDS - your ideas for HW

Post by rubenverhoef » Wed Apr 24, 2019 6:05 am

BlueWave wrote:
Wed Apr 17, 2019 6:14 pm
Thank you all for feedback.

@rubenverhoef if possible could you please check FM for us? As mentalinc wrote, the best would be during driving, in order to check if there if there is no interference.

@Vitalic it is possible to set defined FM station directly?
I cannot test the FM feature because i need the firmware for that. UGreen says he can implement it in it's software if he finds some time.
For me this board is great because i want to use DAB+
I'm creating a lot of scripts to adapt my setup, when it is ready i will post it in the projects forum. Some of my features are: DAB radio, automatic change desktop things like wallpapers/ icons, config OAP, analog rearcam, OBD keys readout, PWM brightness control, (RTC,GPS,DAB) Installation, mute music when AA is talking, and some other things.

@Vitalic How do you test the FM?
And yes ofcource it will not work with hifiberry, Both use spi and i2s (spi can be shared but i2s not).

Vitalic
Posts: 41
Joined: Wed Sep 19, 2018 8:00 am

Re: FM radio with RDS - your ideas for HW

Post by Vitalic » Wed Apr 24, 2019 8:39 am

For FM do:

Code: Select all

sudo ./radio_cli -b F -o 1
after it you can skip to the next found FM station with

Code: Select all

sudo ./radio_cli -x
But right now there is no way to tune directly to a FM freq.

Looking forward to see your scripts. I'm building my own modules at the moment to make hifiberry and dabboard work together on i2s. It can be done but it's a long long way...

Fun goes here

https://www.raspberrypi.org/forums/view ... 6#p1458596

rubenverhoef
Posts: 22
Joined: Tue Feb 05, 2019 5:50 pm

Re: FM radio with RDS - your ideas for HW

Post by rubenverhoef » Wed Apr 24, 2019 10:32 am

Vitalic wrote:
Wed Apr 24, 2019 8:39 am
For FM do:

Code: Select all

sudo ./radio_cli -b F -o 1
after it you can skip to the next found FM station with

Code: Select all

sudo ./radio_cli -x
But right now there is no way to tune directly to a FM freq.

Looking forward to see your scripts. I'm building my own modules at the moment to make hifiberry and dabboard work together on i2s. It can be done but it's a long long way...

Fun goes here

https://www.raspberrypi.org/forums/view ... 6#p1458596

That is FMHD. Is that also working for normal FM? I will test it.

Post Reply