Dezorian

Member Since: January 16, 2011

Country: United States

  • The example code did not work for me. The color ratio calculation did not incorporate the fact that each color needs a different irradiance value to reach 3V. And even using the charts from the datasheet, Blue was not recognized very good. The following values worked for me:

    redValue =   (( vRed    * 100)  / 16);
    greenValue = (( vGreen  * 130 ) / 22);
    blueValue =  (( vBlue   * 200 ) / 25); 
    

    First value is the spectral responsivity of the chip (I had to raise the ratio for blue from 170% to 200%). The second value is to equalize the V vs irradiance (in which a again raised the value for blue). Using these values, I could detect six colors using the following code:

    if (redValue > greenValue && redValue > blueValue)
    {
      if (greenValue > 2.6) server.log("Object is Orange.");
      else server.log("Object is Red.");
    }
    else if (greenValue > blueValue && greenValue > redValue)
    {
      if (redValue > 2) server.log("Object is Yellow.");
      else server.log("Object is Green.");
    }
    else 
    {
      if (redValue > 2) server.log("Object is Purple.");
      else server.log("Object is Blue.");
    }
    

    Check out the video

  • I have the same problem, couldn’t even light up a led (which works fine on all other pins). Electric Imp confirms the issue:

    Are you using a Sparkfun April breakout board? If so, then that’s a known issue with those and some imps - it applies a lot of pressure to pin9 >(adjacent to pin1) and bends the imp away from the pin1 contact. (source: http://forums.electricimp.com/discussion/1404/tmp36-35%C2%BAc-/p1)

  • I have the same question. I now have the 3.3v serial enabled LCD (with backpack) and want to use this one for future usage. VDD of 5V can be supplied, but will the TTL work when its getting 3.3V signals from the TX from Netduino?

  • SE:

    Has anyone used this with a normal IR LED, driving it at certain frequencies such that this IR receiver can read a string of ones and zeros?
    I’ve tried using a 555 timer to make a transmitter. It should work, but without an oscilloscope its impossible to get the frequency right.
    I’ve found this site:
    http://www.rentron.com/remote_control/TX-IR.htm
    which sells an IC who can drive the circuit on 40khz or 38khz.
    (edited out, couldn’t find view cart button, but its below the add to cart button :-|)

  • SE:

    Has anyone used this with a normal IR LED, driving it at certain frequencies such that this IR receiver can read a string of ones and zeros?
    I’d also like to know. I want to get RS232 communication going with two netduino’s via IR communication with this receiver. Any help is greatly appreciated :)

No public wish lists :(