Hello, I'm trying out my new TEA5767 FM radio and it doesnt want to work if i connect it to my arduino mega however it does work when i connect it to the uno.
pin layout:
GND -> GND
Vcc -> 5v
SDA -> SDA(pin 20)
SCL -> SCL(pin 21)
and for the uno i connect the i2c using pin a4 and a5
Have you used the I2C on the Mega board before ?
Which libary did you use ( a link to that library please ).
Pin 20 and 21 is okay : Wire - Arduino Reference
Can you make a photo of it ?
Koepel:
Have you used the I2C on the Mega board before ?
Which libary did you use ( a link to that library please ).
Pin 20 and 21 is okay : Wire - Arduino Reference
Can you make a photo of it ?
Hello, i have used i2c before but it didnt work aswell, but for that specific problem i found a libary that support different io pins(and now that works) so on pin 21 and 20 i never got it working.
I will do a test to see if the pins even work...
here is the picture:
(there are lots of other things connected to it so dont mind the big mess XD)
EDIT: The pins do work i tested it with a LED and it works.
EDIT 2: The pins also seem to give out a signal high when there is no code on the arduino at all, they will always give a high signal it seems.
You could try the i2c_scanner : Arduino Playground - I2cScanner
It should detect the TEA5767. If it can find nothing, the Mega board might be broken.
What kind of Mega board is it ? A "TDuino" or "ZDuino" or a Geeetech "IDuino" ? That is not an official Arduino Mega 2560 board.
Koepel:
You could try the i2c_scanner : Arduino Playground - HomePage
It should detect the TEA5767. If it can find nothing, the Mega board might be broken.
What kind of Mega board is it ? A "TDuino" or "ZDuino" or a Geeetech "IDuino" ? That is not an official Arduino Mega 2560 board.
If you have a defective board, or if the ATmega2560 chip has been damaged, you need a new Mega board anyway.
Thank you for your help, it is indeed a Iduino. atleast now i know that what ever i try will not work, what arduino clone would you recommend? to poor for the real ones XD
Try Ebay or AliExpress. Buy a 'R3' version.
If you are going to buy a cheap clone, you might as well buy the cheapest one of them all. The very cheap boards have a CH340G usb-serial chip, you need to install a driver for that.
A clone with a funny name (ZDuino, IDuino) or no name at all is legal. However, a clone with the 'Arduino' name is not legal, because it was not made by Arduino and does not have the good quality components of a real Arduino board.
Koepel:
Try Ebay or AliExpress. Buy a 'R3' version.
If you are going to buy a cheap clone, you might as well buy the cheapest one of them all. The very cheap boards have a CH340G usb-serial chip, you need to install a driver for that.
A clone with a funny name (ZDuino, IDuino) or no name at all is legal. However, a clone with the 'Arduino' name is not legal, because it was not made by Arduino and does not have the good quality components of a real Arduino board.
Perhaps you can spot the missing connection and solder it.
The SDA and SCL are also next to AREF, near the USB connector. Scroll down for the picture here : https://arduino-info.wikispaces.com/MegaQuickRef
Or this:
Another option is a software I2C on two digital pins, there is a SoftwareWire in the Library Manager.