Good morning
@derez ,
My Si4703 turned up this morning, after connecting it up I got it working perfect with Inline C.
To test the module I decided to create an accompanying B4J radio control app to send the commands to the Si4703 rather than using either an Android device with MQTT or placing the Si4703 on a breadboard with 2 rotary encoders and using it that way, I was basically too lazy so I turned to B4J as it was the quickest way to test the Si4703 with receiving external commands
I was having problems storing the RDS data in a Globals Private rdsdata() As Byte, it just kept returning 163, 171 or other strange values when trying to read back the byte array
, maybe I should post a question about it. I know that you just can't save strings directly from Inline C to global strings, but for some strange reason it wasn't working for me, so I just cheated instead, my solution is not nice but it works perfect, I'll post a question about it to try and get the correct solution.
Anyway, the Si4703 is an okay bit of kit for the price and it works as expected, nothing special though. It does not pick up as many stations as I first thought it would do (no surprises there then), it uses the headphone cable as the antenna, also the RDS needs a really good signal to pick up the station names.
Spoiler: You will like this...
I have found an Arduino library that has plenty of extra features like manual or auto seek, test for stereo or mono, signal strength, ower off, AFT, AT etc, but the library will need wrapping.
If
@Erel wants to see the updated library I will post it on here, he did say he had ordered the board and would wrap the library that you posted, the library that I've found has more features/functions.
The B4J app that I created is really easy to use. Just make sure that your Si4703 is connected to your Arduino, plug it onto your computer/laptop and run the B4J app. Press the search buttons to find a channel, once found press the RDS button to get the RDS information if the signal is strong enough. The app just send the commands via AStreams and reads the response that is then displayed in the app.
If Erel wasn't going to wrap this library, I would have gladly created a code snippet post for the Si4703, well the other library as it has more features. But it will be a complete waste of time if I created a post knowing that there will be a library on here shortly for the same module.
CLICK HERE to download the B4J test app for controlling the Si4703 radio module.
WIRE LEGEND for Si4703 radio receiver
SDIO = A4
SCLK = A5
RST = 2
GND = GND
3.3V = 3.3V
B4J radio control panel for Si4703.
Enjoy...