When I plug in both Arduinos, the module activates. However, the only audio coming out of my Earbuds is this weird buzz and occasional beeping. Here is my code: (Code For the Mega. The Uno has unrelated code, because the UNO's only purpose is too supply the power to the module)
// TEA5767 Example
#include <Wire.h>
#include <TEA5767Radio.h>
TEA5767Radio radio = TEA5767Radio();
void setup()
{
Wire.begin();
radio.setFrequency(73.2); // pick your own frequency
}
void loop()
{
}
I want the module to pick up actual radio stations, not just beeping! Any help would be super!
Datasheet spec's frequency range as starting from 76MHz (right there on the cover page of the datasheet, first feature listed) - so you're trying to use it outside of it's spec. Try a frequency that you know has something transmitting on it, and which is within the unit's specs.
DrAzzy:
Datasheet spec's frequency range as starting from 76MHz (right there on the cover page of the datasheet, first feature listed) - so you're trying to use it outside of it's spec. Try a frequency that you know has something transmitting on it, and which is within the unit's specs.
I have tried frequencies that my normal radio is getting, that are within the range of 76-108 MHZ (Which is what the Amazon page says) still I get only static and beeping! HELP!
I have notices that on some radio frequencies, the beeping and buzzing stop. Just a low hum... Well, actually, the beeping and buzzing continue, then stop, leaving the blank low hum in its place. Still no news or football games, though...
Write some code that scans the spectrum. Start off at 87.9 and increment it in steps of 0.2, use a float variable. Have a delay of at least 4 second between steps and continue until 107.9 before starting again. At each step display the frequency using a serial print command.
The output power of the TEA5767 is not sufficient to directly drive earbuds so you'll not hear any audio. In my experiments, I built a pair of 1 transistor amplifiers and then bought a cheap stereo amplifier on eBay.
I also found with the cheap TEA5767 modules that the station scan feature was poor which iirc the data sheet warns about, depending on the choice of the crystal. The lower frequency crystals cause the channel increment to slip from the standard FM channels. I had to program the station scan myself to get round that problem.
Edit: I've just looked at this in a bit more detail. There are different versions of the TEA5767 module:
Here is one for $1 which has no built in amplifier: EBAY
The one on sale at Amazon GikFun TEA5767 (in the OP) appears to incorporate the cheap module above but has also a built in TDA1308 head phone amplifier.
I can't find a datasheet for the GikFun module but guess that the amplifier is not controlled via the I2C bus.
6v6gt:
The one on sale at Amazon GikFun TEA5767 (in the OP) appears to incorporate the cheap module above but has also a built in TDA1308 head phone amplifier.
So are you saying that I DO or DO NOT need an amplifier with the version of the Radio I am using? If not, than that is obviously not the reason I am having the problem. Also, I DO hear SOMETHING (this weird beeping) Thanks for the help!
There appears to be no data sheet available for the device with the built in headphone amplifier (or did you get something on paper from Amazon?) , but fortunately the picture definition is good enough on the manufacturers web site to see the markings on the chip.
I have got it working! There was a shield also plugged into the UNO. When I stripped away the power hungry shield, it starting working! The shield was taking in to much voltage, so when I removed it, the radio had a bountiful supply of power!
stupid-questions:
Just to be clear all the connections are this:
Radio "VCC" goes to Arduino UNO 5V
Radio "GND" goes to Arduino UNO GND
Other Arduino Uno GND goes to Arduino Mega GND
Radio "SLC" goes to Arduino Mega A5
Radio "SDA" goes to Arduino Mega A4
So... whats happening???
In addition to giving the radio module a 'bountiful' amount of power, did you also change the SLC and SDA pin mappings which you had connected to A4 and A5 on the Mega ?