mathertel / Radio

An Arduino library to control FM radio chips like SI4703, SI4705, RDA5807M, TEA5767.
http://mathertel.github.io/Radio
BSD 3-Clause "New" or "Revised" License
297 stars 89 forks source link

Add Si4721 Receive and Transmit Support #34

Closed NPoole closed 3 years ago

NPoole commented 4 years ago

Add:

Change:

Differences in implementation for SI4721 compared to previously supported devices:

Example Code tested and working

synth commented 3 years ago

Have ya'll seen that Sparkfun has an Si4721 breakout board? Also, they have forked this repo and added support for Si4721 :)

We are very curious about the Si4721. Can it Tx and Rx simultaneously?

NPoole commented 3 years ago

@synth

Yeah, that's my fork, haha. It was only supposed to be temporary until this PR was merged, but @mathertel hasn't had a chance to test it, which is understandable (p.s. @mathertel I'm sure we could send you a breakout board if you'd like)

As to your question, that depends on what you mean by "simultaneously," If you really mean Tx and Rx in full-duplex then no. I'm not sure how desirable that would be even if it were possible, due to the nature of FM broadcast, but I'd be interested to hear your application. What it absolutely will do is switch back and forth between Rx and Tx modes on the fly, so if you wanted to do something wacky like texting over RDS, you could just switch to Tx mode, broadcast your RDS and then switch back to Rx immediately. You wouldn't have to worry about missing anything while in Tx mode because all you'd be able to demodulate is yourself broadcasting anyway (there's no graceful way to handle collisions because you're really abusing the standard, lol)

Hope that's helpful

synth commented 3 years ago

@NPoole Ha, awesome. Yea, I was curious about full duplex. It's good to know on the fly is possible though! Thanks!

mathertel commented 3 years ago

The reason I did not merge was because I did not find a board to check the quality. I just don't want to leave a unusable library behind. Did sparkfun added anything special or fixes ?

mathertel commented 3 years ago

@NPoole Great offer ! Find my address in https://www.mathertel.de/impressum.aspx :)

NPoole commented 3 years ago

Okay @mathertel, there should be a board on its way.

mathertel commented 3 years ago

Closed through Pull request https://github.com/mathertel/Radio/pull/45 that picked all changes.