Arduino UNO and SI4713 Tuning

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ytoff57
 
Posts: 5
Joined: Tue Jul 23, 2013 9:50 pm

Arduino UNO and SI4713 Tuning

Post by ytoff57 »

Hi!

I'm trying to build an FM transmitter using an Arduino UNO, Adafruit SI4713 breakout board and a SSD_1306 128x32 OLED display. Everything is working quite fine, but I'm wondering how can I change the tuning frequency on-the-fly? Right now I'm using the OLED display to show the frequencies and tactile switches to change them. A third switch engages the auto-scan which find the lowest noise neighboorhood and picks the lowest frequency in there. Then I save the set/auto frequency value in EEPROM.

All that is built around a state machine which change the current menu / function / setting according to state. In the RUN state, the module displays the current set frequency and reads the tuned frequency from the module. If they are different, it then calls

Code: Select all

radio.tuneFM(FMStation)
to change the station. This is where the problem happens: if I change the frequency, it will seem like it's tuning out of the current frequency, but it doesn't tune in the new one... However if I unplug and plug back the device it will successfully load the new frequency from EEPROM and tune into it.

What is different from the first tune in and the subsequent ones?

I also tried to reset the module:

Code: Select all

radio.reset();
radio.powerUp();
radio.tuneFM(FMStation);
And it still isn't working. Anyone knows how to do it properly?

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Arduino UNO and SI4713 Tuning

Post by Franklin97355 »

Could you post your code and a description or drawing of your connections between it all?

User avatar
ytoff57
 
Posts: 5
Joined: Tue Jul 23, 2013 9:50 pm

Re: Arduino UNO and SI4713 Tuning

Post by ytoff57 »

Thank you for the reply!

Here is my complete source code and a schematic of my connections that I made in Fritzing.

Hope this helps!
Attachments
jfdradio.ino.txt
Source Code
(5.56 KiB) Downloaded 179 times
Fritzing Schematic
Fritzing Schematic
JFDRadio_bb.png (340.85 KiB) Viewed 409 times

User avatar
electronaut
 
Posts: 21
Joined: Wed Aug 20, 2014 6:25 pm

Re: Arduino UNO and SI4713 Tuning

Post by electronaut »

Hi,
Where did you find the Si4713 part for use in Fritzing schematics?
It is not included in the Adafruit Fritzing library. Couldn't find it
at the Adafruit/Github either?

I tried to use the Fritzing part editor to create the part Si4713 myself, but
without much success.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”