Author Topic: Si4713 FM and RDS plugin - BETA version  (Read 1231 times)

Offline ShadowLight8

  • Newbie
  • *
  • Join Date: Dec 2017
  • Location: Indiana
  • Posts: 15
  • Kudos: 0
    • YouTube Channel of my Light Shows
Si4713 FM and RDS plugin - BETA version
« on: April 17, 2018, 03:33:15 PM »
I purchased a Si4713 FM and RDS transmitter breakout board from Adafruit and connected it to my Raspberry Pi. Everything tested out really well, so I've started work on creating a plugin for FPP to control the FM transmitter and update the RDS station and text data. It's still a beta version, but has about 80% of the functionality I'm working towards. If you have questions or feedback, please let me know  :)

https://github.com/ShadowLight8/Si4713_FM_RDS

For now, you'll have to install it manually by downloading all the files from GitHub and putting them in your /home/fpp/media/plugins/Si4713_FM_RDS directory. You should see Si4713 FM and RDS under the Input/Output Setup menu. Be sure to Save or change ALL the options on the plugin_setup page. I still need to provide a default plugin value file.

Physically connection from Pi -> Si4713
Pin 3 (SDA1) -> SDA
Pin 4 (+5v) -> Vin
Pin 5 (SCL1) -> SCL
Pin 6 (GND) -> GND
Pin 7 (GPIO4) -> RST
I use a USB sound card and a short audio cable to go from the Pi to the Si4713

Offline ShadowLight8

  • Newbie
  • *
  • Join Date: Dec 2017
  • Location: Indiana
  • Posts: 15
  • Kudos: 0
    • YouTube Channel of my Light Shows
Re: Si4713 FM and RDS plugin - BETA version
« Reply #1 on: April 21, 2018, 07:41:29 PM »
Beta 2 is up at https://github.com/ShadowLight8/Si4713_FM_RDS/tree/beta_2

Pretty much working as intended, but there might be a few bugs lurking.


Attached is what the config screen looks like

Offline Cjlocey

  • Full Member
  • ***
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 141
  • Kudos: 1
Re: Si4713 FM and RDS plugin - BETA version
« Reply #2 on: July 14, 2018, 12:44:46 PM »
I bought a Adafruit board to try this but I do not have a USB sound card.  Will this work with the audio cable connected directly from the pi to the Si4713?
Running display on pi's with picaps.....no controllers
Some said it could not be done!  4245 pixels and growing!
xLights & FPP - marriage made in pixel heaven

Offline ShadowLight8

  • Newbie
  • *
  • Join Date: Dec 2017
  • Location: Indiana
  • Posts: 15
  • Kudos: 0
    • YouTube Channel of my Light Shows
Re: Si4713 FM and RDS plugin - BETA version
« Reply #3 on: July 16, 2018, 08:55:32 AM »
Yup, should work fine. The audio is can be from anything. I found that the USB audio adapter provided better sound quality.

Offline Cjlocey

  • Full Member
  • ***
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 141
  • Kudos: 1
Re: Si4713 FM and RDS plugin - BETA version
« Reply #4 on: July 16, 2018, 01:46:35 PM »
I am not sure what I am doing wrong but I am not getting anything on the station on a radio that is 10 feet away.  Static
I verified that I have voltage (5.24VDC) on the vin in reference to the ground pin.  I have no idea how to test the reset, SCL or SCA



Offline ShadowLight8

  • Newbie
  • *
  • Join Date: Dec 2017
  • Location: Indiana
  • Posts: 15
  • Kudos: 0
    • YouTube Channel of my Light Shows
Re: Si4713 FM and RDS plugin - BETA version
« Reply #5 on: July 16, 2018, 08:16:09 PM »
Take a look at this thread: https://forums.adafruit.com/viewtopic.php?f=50&t=58453
Specifically: "the 4713 itself features a reset pin. To reset the IC pull the line to GND. It's just that easy... In my test I used a wire jumper to connect RST to GND and release it. If you run i2cdetect again, the 4713 will show up." from Hansipete
That was an early issue I ran into. Once I knew to reset the 4713, then getting it to work wasn't too bad.


You might also test with djazz's python code at https://github.com/daniel-j/Adafruit-Si4713-RPi


If those both work, then the plugin should be good.

Offline Cjlocey

  • Full Member
  • ***
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 141
  • Kudos: 1
Re: Si4713 FM and RDS plugin - BETA version
« Reply #6 on: July 17, 2018, 01:25:02 PM »
I have tried resetting the module using the reset button in the software and I have moved the wire to the GND pin on the PI to try a rest and nothing changes

Offline ShadowLight8

  • Newbie
  • *
  • Join Date: Dec 2017
  • Location: Indiana
  • Posts: 15
  • Kudos: 0
    • YouTube Channel of my Light Shows
Re: Si4713 FM and RDS plugin - BETA version
« Reply #7 on: July 18, 2018, 11:05:07 AM »
Can you post a picture of your wiring setup? I'll duplicate it and see if we can figure out what's going on.

Offline Cjlocey

  • Full Member
  • ***
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 141
  • Kudos: 1
Re: Si4713 FM and RDS plugin - BETA version
« Reply #8 on: August 10, 2018, 03:36:31 PM »
Here is how I have it wired
Vin = pin 4
Gnd = pin 6
SDA = pin 3
SCL = pin 5
RST = pin 7



Offline ShadowLight8

  • Newbie
  • *
  • Join Date: Dec 2017
  • Location: Indiana
  • Posts: 15
  • Kudos: 0
    • YouTube Channel of my Light Shows
Re: Si4713 FM and RDS plugin - BETA version
« Reply #9 on: August 20, 2018, 03:10:26 PM »
Sorry for the slow reply. I just saw this!


Wiring seems right. When you open the plugin does it say it the Si4713 was detected?

Offline Cjlocey

  • Full Member
  • ***
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 141
  • Kudos: 1
Re: Si4713 FM and RDS plugin - BETA version
« Reply #10 on: August 20, 2018, 07:06:27 PM »
I get the message that it is detected if it is plugged in or not

Offline Cjlocey

  • Full Member
  • ***
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 141
  • Kudos: 1
Re: Si4713 FM and RDS plugin - BETA version
« Reply #11 on: August 20, 2018, 07:26:26 PM »
Here is what I am running
FPP Version:v1.10-27-g259bc38

Offline ShadowLight8

  • Newbie
  • *
  • Join Date: Dec 2017
  • Location: Indiana
  • Posts: 15
  • Kudos: 0
    • YouTube Channel of my Light Shows
Re: Si4713 FM and RDS plugin - BETA version
« Reply #12 on: August 25, 2018, 07:46:50 AM »
If you ssh into your Pi, try running this:
Code: [Select]
sudo i2cdetect -y 1
You should see something like:
Code: [Select]
fpp@FPP:~/media/plugins/Si4713_FM_RDS $ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- 63 -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


Next, try:

Code: [Select]
sudo i2cget -y 1 0x63which should come back with 0x80 or something close

This will help us figure out if the Si4713 is showing up on the i2c bus.

Offline Cjlocey

  • Full Member
  • ***
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 141
  • Kudos: 1
Re: Si4713 FM and RDS plugin - BETA version
« Reply #13 on: August 25, 2018, 07:16:45 PM »

fpp@(none) ~ $ sudo i2cdetect -y 1
sudo: unable to resolve host (none)                                                                                           
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f                                                                           
00:          -- -- -- -- -- -- -- -- -- -- -- -- --                                                                           
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                           
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                           
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                           
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                           
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                           
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Offline Cjlocey

  • Full Member
  • ***
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 141
  • Kudos: 1
Re: Si4713 FM and RDS plugin - BETA version
« Reply #14 on: August 25, 2018, 07:17:02 PM »
could the issue be a lack of host name??

 

Back to top