TCS34725 not found

I am using sketch found in examples
I have wired according to this .
I have checked for continuity.All checks out
/* Connect SCL to analog 5
Connect SDA to analog 4
Connect VDD to 3.3V DC
Connect GROUND to common ground */
I have connected to 3.3 and 5v no change.
I am using a Mega 2650. Do I need to adjust the pin connections?

Yes. The SDA and SCL pins are Pin 20 and Pin 21 on the MEGA. On the Rev 3 UNO and MEGA they duplicated the SDA and SCL pins near Pin 13 so you could make a shield that could use Wire without having to know if it was plugged into an UNO or a MEGA. Try using those pins:

10 11 12 13 GND AREF SDA SCL

On the UNO those two pins are connected to A4 and A5. On the MEGA those two pins are connected to 20 and 21.

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