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

Offline ShadowLight8

  • Newbie
  • *
  • Join Date: Dec 2017
  • Location: Indiana
  • Posts: 6
  • 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: 6
  • 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

  • Jr. Member
  • **
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 86
  • 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: 6
  • Kudos: 0
    • YouTube Channel of my Light Shows
Re: Si4713 FM and RDS plugin - BETA version
« Reply #3 on: Today at 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

  • Jr. Member
  • **
  • Join Date: Jul 2016
  • Location: Bettendorf, Iowa
  • Posts: 86
  • Kudos: 1
Re: Si4713 FM and RDS plugin - BETA version
« Reply #4 on: Today at 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: 6
  • Kudos: 0
    • YouTube Channel of my Light Shows
Re: Si4713 FM and RDS plugin - BETA version
« Reply #5 on: Today at 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.

 

Back to top