06-03-2022, 00:29
Witam,
Arduino Leonardo. Problem z modułem RDA5807M. Maks RSSI jakie wyciągam to 20 - przez co nic nie odbiera. Posiadam 2 sztuki tego modułu i na obu to samo. Leonardo niby ori - made in italy.
Podpinam całość zgodnie ze schematami. tj. zakładając ze kwarc jest u dołu piny od lewej:
1. SDA
2. SCL
3. pusty
4. pusty
5. 3,3V
strona prawa od dołu:
1. GND
2. Audio out
3. Audio out
4. pusty
5. antena
Arduino podłączone poprzez usb z laptopa. Nic nie chce odbierać - nawet wszędobylskie radio maryja.
Kod jakiego używam to przykładowy szkic dla bibioletki radio: TestRDA5807M
W czym jest problem ? Daje dłuższy kabel - nic. Daje krótszy kabel - nic. Jak nie dam żadnej anteny to rssi : 7-8. Z jakimkolwiek kablem max 22
Pozdrawiam
Arduino Leonardo. Problem z modułem RDA5807M. Maks RSSI jakie wyciągam to 20 - przez co nic nie odbiera. Posiadam 2 sztuki tego modułu i na obu to samo. Leonardo niby ori - made in italy.
Podpinam całość zgodnie ze schematami. tj. zakładając ze kwarc jest u dołu piny od lewej:
1. SDA
2. SCL
3. pusty
4. pusty
5. 3,3V
strona prawa od dołu:
1. GND
2. Audio out
3. Audio out
4. pusty
5. antena
Arduino podłączone poprzez usb z laptopa. Nic nie chce odbierać - nawet wszędobylskie radio maryja.
Kod jakiego używam to przykładowy szkic dla bibioletki radio: TestRDA5807M
Kod:
///
/// \file TestRDA5807M.ino
/// \brief An Arduino sketch to operate a SI4705 chip based radio using the Radio library.
///
/// \author Matthias Hertel, http://www.mathertel.de
/// \copyright Copyright (c) 2014 by Matthias Hertel.\n
/// This work is licensed under a BSD style license. See http://www.mathertel.de/License.aspx
///
/// \details
/// This sketch implements a "as simple as possible" radio without any possibility to modify the settings after initializing the chip.\n
/// The radio chip is initialized and setup to a fixed band and frequency. These settings can be changed by modifying the
/// FIX_BAND and FIX_STATION definitions.
///
/// Open the Serial console with 57600 baud to see the current radio information.
///
/// Wiring
/// ------
/// The RDA5807M board/chip has to be connected by using the following connections:
/// | Arduino UNO pin | Radio chip signal |
/// | -------------------| -------------------|
/// | 3.3V (red) | VCC |
/// | GND (black) | GND |
/// | A5 or SCL (yellow) | SCLK |
/// | A4 or SDA (blue) | SDIO |
/// The locations of the pins on the UNO board are written on the PCB.
/// The locations of the signals on the RDA5807M side depend on the board you use.
///
/// More documentation and source code is available at http://www.mathertel.de/Arduino
///
/// ChangeLog:
/// ----------
/// * 05.12.2014 created.
/// * 19.05.2015 extended.
#include <Arduino.h>
#include <Wire.h>
#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 9530 ///< The station that will be tuned by this sketch is 89.30 MHz.
#define FIX_VOLUME 4 ///< 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() {
// open the Serial port
Serial.begin(9600);
Serial.println("Radio...");
delay(200);
// Initialize the Radio
radio.init();
// Enable information to the Serial port
radio.debugEnable();
// Set all radio setting to the fixed values.
radio.setBandFrequency(FIX_BAND, FIX_STATION);
radio.setVolume(FIX_VOLUME);
radio.setMono(false);
radio.setMute(false);
} // 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);
} // loop
// End.
W czym jest problem ? Daje dłuższy kabel - nic. Daje krótszy kabel - nic. Jak nie dam żadnej anteny to rssi : 7-8. Z jakimkolwiek kablem max 22
Pozdrawiam