Hi there,
I am new to all this stuff and as my first real Arduino application i would like to use the FM part of a Philips FM1216 tuner module as a standalone FM radio receiver.
But Murphy's laws kind of prevent me from succeeding. I just can't get that damn thing to work...
First question: Why does my sketch only output 3 Bytes of data? (I can see 3 bursts on the SCL-Line with my DSO)
Here's a screenshot. http://gallery.kabelbrand.at/2012-07/i2cduorsch.jpg
Second question: Do I really need external pullup-resistors? I don't wanna read anything from the bus and the Arduino already pulls them to +5V.
Here's my sketch:
#include <Wire.h>
byte address = 0xC2;
byte address_IF = 0x86;
byte altvvals[] = {address, 0xC0, 0x1F, 0xE2, 0x86, 0x44, 0xA0};
byte fmmode[] = {address_IF, 0x00, 0x4E, 0xD0, 0x77};
byte tune[] = {address, 0x07, 0xC2, 0x88, 0x59, 0xB0};void setup()
{
Wire.begin();
//avoiding locked tuning voltage
Wire.beginTransmission(altvvals[0]);
for(int i = 1; i < 7; i++)
{
Wire.write(altvvals*);*
}
Wire.endTransmission();//setting FM mode, high sensitivity
Wire.beginTransmission(fmmode[0]);
for(int j = 1; j < 5; j++)
{
- Wire.write(fmmode[j]);*
}
Wire.endTransmission();//setting it to 88,6 MHz
Wire.beginTransmission(tune[0]);
for(int k = 1; k < 6; k++)
{
- Wire.write(tune[k]);*
}
Wire.endTransmission();
}
void loop()
{}
[/quote]
Thanks in advance!