Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Read color of a LED?

Read color of a LED?

Scheduled Pinned Locked Moved Hardware
12 Posts 5 Posters 2.5k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Martin TellblomM Offline
    Martin TellblomM Offline
    Martin Tellblom
    wrote on last edited by
    #3

    I can't do that. They have the whole board in plastic and its not the actual LED i can see just the plastic attatchment that is placed on the led

    MySensors MQTT Client Gateway, Openhab, Dashing, Razberry, 1-wire

    YveauxY 1 Reply Last reply
    0
    • Martin TellblomM Martin Tellblom

      I can't do that. They have the whole board in plastic and its not the actual LED i can see just the plastic attatchment that is placed on the led

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #4

      @Martin-Tellblom well, then maybe the color sensor is an option?

      http://yveaux.blogspot.nl

      Martin TellblomM 1 Reply Last reply
      0
      • greglG Offline
        greglG Offline
        gregl
        Hero Member
        wrote on last edited by
        #5

        COuld you perhaps just use an LDR - i would presume the RED light emitted is at a different level to that of the GREEN light emitted and thus just MAP the range you would expect each to be at.

        You would need to handle ( block out ) any ambient light however...and then you wont be able to see the led anymore...

        cimba007C 1 Reply Last reply
        0
        • YveauxY Yveaux

          @Martin-Tellblom well, then maybe the color sensor is an option?

          Martin TellblomM Offline
          Martin TellblomM Offline
          Martin Tellblom
          wrote on last edited by
          #6

          @Yveaux But the once I have seen uses light to measure the color. Will that work on a LED?
          I thought that i wouldn't work if you "light a light"

          MySensors MQTT Client Gateway, Openhab, Dashing, Razberry, 1-wire

          YveauxY 1 Reply Last reply
          0
          • Martin TellblomM Martin Tellblom

            @Yveaux But the once I have seen uses light to measure the color. Will that work on a LED?
            I thought that i wouldn't work if you "light a light"

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #7

            @Martin-Tellblom The sensor used (TCS3200) converts colored light to a frequency.
            I assume the breakout boards contain leds is to be able to determine the color of objects, by lighting them using the white leds on the board.
            Presonally I don't have any experience with these sensors, but for less than $3 I would just give it a try!

            http://yveaux.blogspot.nl

            Martin TellblomM 1 Reply Last reply
            0
            • YveauxY Yveaux

              @Martin-Tellblom The sensor used (TCS3200) converts colored light to a frequency.
              I assume the breakout boards contain leds is to be able to determine the color of objects, by lighting them using the white leds on the board.
              Presonally I don't have any experience with these sensors, but for less than $3 I would just give it a try!

              Martin TellblomM Offline
              Martin TellblomM Offline
              Martin Tellblom
              wrote on last edited by Martin Tellblom
              #8

              @Yveaux said:

              @Martin-Tellblom The sensor used (TCS3200) converts colored light to a frequency.
              I assume the breakout boards contain leds is to be able to determine the color of objects, by lighting them using the white leds on the board.
              Presonally I don't have any experience with these sensors, but for less than $3 I would just give it a try!

              I'll try that and desolder the leds :)

              Thank you

              MySensors MQTT Client Gateway, Openhab, Dashing, Razberry, 1-wire

              1 Reply Last reply
              0
              • bjacobseB Offline
                bjacobseB Offline
                bjacobse
                wrote on last edited by
                #9

                Use this sensor S9706
                https://github.com/jakalada/Arduino-S9706

                1 Reply Last reply
                0
                • greglG gregl

                  COuld you perhaps just use an LDR - i would presume the RED light emitted is at a different level to that of the GREEN light emitted and thus just MAP the range you would expect each to be at.

                  You would need to handle ( block out ) any ambient light however...and then you wont be able to see the led anymore...

                  cimba007C Offline
                  cimba007C Offline
                  cimba007
                  wrote on last edited by
                  #10

                  @gregl I like this idea. Have you tried it out? Just put one of these ( http://www.ebay.de/itm/20Stks-GL5528-Photoresistor-LDR-Photo-Resistors-Light-Dependen-t-/272304382916?hash=item3f669b23c4:g:4XkAAOSw7XZXg-Iu ) over your led and see if you get different readings depending on the color. I would guess that red and green emitt different light intensities like gregl suggested. To block out ambient light you could use some black tape and punch just 2 little holes for the wires of the LDR.

                  1 Reply Last reply
                  0
                  • Martin TellblomM Offline
                    Martin TellblomM Offline
                    Martin Tellblom
                    wrote on last edited by
                    #11

                    Many things to try now :) I have ordered a couple of different solutions and will get back when they have arrived and I tried them.

                    MySensors MQTT Client Gateway, Openhab, Dashing, Razberry, 1-wire

                    1 Reply Last reply
                    0
                    • cimba007C Offline
                      cimba007C Offline
                      cimba007
                      wrote on last edited by cimba007
                      #12

                      If you are open for some expriments:

                      http://www.instructables.com/id/LEDs-as-light-sensors/

                      This might even be double usefull as different LED-Colors as "light sensor" would react different.

                      e.g. for your red/green led .. if you pick a red led as "light sensor" you might get a much stronger reading then from the green led and hopefully a distinctive zero reading if none of them is on.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      22

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular