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 3.1k 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.
  • M Offline
    M 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

    Y 1 Reply Last reply
    0
    • M 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

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

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

      http://yveaux.blogspot.nl

      M 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
        • Y Yveaux

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

          M Offline
          M 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

          Y 1 Reply Last reply
          0
          • M 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"

            Y Offline
            Y 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

            M 1 Reply Last reply
            0
            • Y 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!

              M Offline
              M 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
              • B Offline
                B 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
                  • M Offline
                    M 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

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      9

                      Online

                      12.0k

                      Users

                      11.2k

                      Topics

                      113.4k

                      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