RDA5807M tunes to 118.90 MHz

hi there,

Anyone have an idea why this module tunes to 118.90 and not responds to any commands?
I have tested it with several libreries and they all give the same result.


Code

#include <Arduino.h>
#include <Wire.h>

//RDA5807M library from - https://github.com/mathertel/Radio/tree/master
#include <radio.h>
#include <RDA5807M.h>

// ----- Fixed settings here. -----

#define FIX_BAND RADIO_BAND_FM  ///< The band that will be tuned by this sketch is FM.
#define FIX_STATION 8930        ///< The station that will be tuned by this sketch is 89.30 MHz.
#define FIX_VOLUME 10           ///< The volume that will be set by this sketch is level 4.

RDA5807M radio;  // Create an instance of Class for RDA5807M Chip

/// Setup a FM only radio configuration
/// with some debugging on the Serial port
void setup() {
  delay(3000);
  // open the Serial port
  Serial.begin(9600);
  Serial.println("RDA5807M Radio...");
  delay(200);

  // Enable information to the Serial port
  radio.debugEnable(true);
  radio._wireDebug(false);

  // Set FM Options for Europe
  radio.setup(RADIO_FMSPACING, RADIO_FMSPACING_100);   // for EUROPE
  radio.setup(RADIO_DEEMPHASIS, RADIO_DEEMPHASIS_50);  // for EUROPE

  // Initialize the Radio
  if (!radio.initWire(Wire)) {
    Serial.println("no radio chip found.");
    while(true)
    {
    };
  };

  // Set all radio setting to the fixed values.
  radio.setBandFrequency(FIX_BAND, FIX_STATION);
  radio.setMono(false);
  radio.setMute(false);
  radio.setVolume(FIX_VOLUME);
}  // setup


/// show the current chip data every 3 seconds.
void loop() {
  char s[12];
  radio.formatFrequency(s, sizeof(s));
  Serial.print("Station:");
  Serial.println(s);

  Serial.print("Radio:");
  radio.debugRadioInfo();

  Serial.print("Audio:");
  radio.debugAudioInfo();

  delay(3000);
}

Serial monitor

Radio: --- -----  MONO   RSSI: 0  SNR: 0
Audio: ---- -------- ----
Station:118.90 MHz
Radio: --- -----  MONO   RSSI: 0  SNR: 0
Audio: ---- -------- ----
Station:118.90 MHz
Radio: --- -----  MONO   RSSI: 0  SNR: 0
Audio: ---- -------- ----
Station:118.90 MHz
Radio: --- -----  MONO   RSSI: 0  SNR: 0
Audio: ---- -------- ----
Station:118.90 MHz
Radio: --- -----  MONO   RSSI: 0  SNR: 0
Audio: ---- -------- ----
Station:118.90 MHz
Radio: --- -----  MONO   RSSI: 0  SNR: 0
Audio: ---- -------- ----

Got it to work.

Seems I missed to include a decpupling capacitors near the VCC pin of the module.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.