0

TCS34725
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

TCS34725

by geckco5621 on Thu Apr 04, 2019 4:00 pm

I recently purchased a TCS34725 and it does not respond.

when I run this code
Code: Select all | TOGGLE FULL SIZE
#include <Wire.h>
#include <Adafruit_TCS34725.h>

/* Example code for the Adafruit TCS34725 breakout library */

/* Connect SCL    to analog 5
   Connect SDA    to analog 4
   Connect VDD    to 3.3V DC
   Connect GROUND to common ground */
   
/* Initialise with default values (int time = 2.4ms, gain = 1x) */
// Adafruit_TCS34725 tcs = Adafruit_TCS34725();

/* Initialise with specific int time and gain values */
Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_700MS, TCS34725_GAIN_1X);

void setup(void) {
  Serial.begin(9600);
 
  if (tcs.begin()) {
    Serial.println("Found sensor");
  } else {
    Serial.println("No TCS34725 found ... check your connections");
    while (1);
  }
 
  // Now we're ready to get readings!
}

void loop(void) {
  uint16_t r, g, b, c, colorTemp, lux;
 
  tcs.getRawData(&r, &g, &b, &c);
  colorTemp = tcs.calculateColorTemperature(r, g, b);
  lux = tcs.calculateLux(r, g, b);
 
  Serial.print("Color Temp: "); Serial.print(colorTemp, DEC); Serial.print(" K - ");
  Serial.print("Lux: "); Serial.print(lux, DEC); Serial.print(" - ");
  Serial.print("R: "); Serial.print(r, DEC); Serial.print(" ");
  Serial.print("G: "); Serial.print(g, DEC); Serial.print(" ");
  Serial.print("B: "); Serial.print(b, DEC); Serial.print(" ");
  Serial.print("C: "); Serial.print(c, DEC); Serial.print(" ");
  Serial.println(" ");
}


or any of the adafruit library example i just get this error "No TCS34725 found ... check your connections"

Any help would be appreciated. Thank You!

geckco5621
 
Posts: 2
Joined: Thu Apr 04, 2019 3:57 pm

Re: TCS34725

by adafruit_support_bill on Thu Apr 04, 2019 4:41 pm

Please post some photos showing your soldering and connections to the board.

adafruit_support_bill
 
Posts: 74639
Joined: Sat Feb 07, 2009 10:11 am

Re: TCS34725

by geckco5621 on Thu Apr 04, 2019 5:23 pm

I just got a new sensor and the issue was the sensor was broken

geckco5621
 
Posts: 2
Joined: Thu Apr 04, 2019 3:57 pm

Re: TCS34725

by millercommamatt on Thu Apr 04, 2019 5:52 pm

They want to see the pictures so that they can rule out user error before they authorize a replacement.

millercommamatt
 
Posts: 480
Joined: Tue Jul 31, 2018 4:57 pm

Re: TCS34725

by Akhilesh14 on Fri May 24, 2019 6:29 am

hi,

I am using tcs34725 color sensor for 1 week and I got results but I am in my final phase of my project and I am getting "check connections sensor not found". what should I do?

Akhilesh14
 
Posts: 7
Joined: Fri May 24, 2019 5:45 am

Re: TCS34725

by adafruit_support_bill on Fri May 24, 2019 7:02 am

@Akhilesh14 - Please do not double-post.
viewtopic.php?f=19&t=152139

adafruit_support_bill
 
Posts: 74639
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.