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. Troubleshooting
  3. LM393 Light Sensor Readings

LM393 Light Sensor Readings

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 4 Posters 2.0k Views 3 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.
  • Matt PittsM Offline
    Matt PittsM Offline
    Matt Pitts
    wrote on last edited by
    #1

    Hi There,

    I have just setup the mysensors LM393 Light Sensor in the hope I can use the readings it generates to control when my house light switch on and off.

    I'm a little unclear about the readings that the sensor is currently generating. I have setup exactly as described in the mysensors Light Sensor example.

    Initally I only got these reading in the serial monitor, then I shone a torch into the sensor and got the higher readings, It is my understanding that the sensor should read high in the dark and low in the light? is that correct? so I don't really understand why it read higher when I shone the torch on it, can someone explain, or is something wrong with my sensor?

    0
    0
    0
    96
    TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96
    96
    96
    96
    96
    43
    TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:43
    96
    TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96
    0
    TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:0
    
    mfalkviddM 1 Reply Last reply
    0
    • Matt PittsM Matt Pitts

      Hi There,

      I have just setup the mysensors LM393 Light Sensor in the hope I can use the readings it generates to control when my house light switch on and off.

      I'm a little unclear about the readings that the sensor is currently generating. I have setup exactly as described in the mysensors Light Sensor example.

      Initally I only got these reading in the serial monitor, then I shone a torch into the sensor and got the higher readings, It is my understanding that the sensor should read high in the dark and low in the light? is that correct? so I don't really understand why it read higher when I shone the torch on it, can someone explain, or is something wrong with my sensor?

      0
      0
      0
      96
      TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96
      96
      96
      96
      96
      43
      TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:43
      96
      TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:96
      0
      TSP:MSG:SEND 16-16-0-0 s=0,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=ok:0
      
      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @Matt-Pitts the example sends a value from 0 to 100, where 0 is little light and 100 is much light.

      1 Reply Last reply
      0
      • Matt PittsM Offline
        Matt PittsM Offline
        Matt Pitts
        wrote on last edited by
        #3

        @mfalkvidd so what your saying is it's working correctly?

        mfalkviddM 1 Reply Last reply
        0
        • Matt PittsM Matt Pitts

          @mfalkvidd so what your saying is it's working correctly?

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @Matt-Pitts it seems so, yes.

          sinczeS 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @Matt-Pitts it seems so, yes.

            sinczeS Offline
            sinczeS Offline
            sincze
            MySensors Evangelist
            wrote on last edited by
            #5

            @mfalkvidd , Indeed 0 - 100 not in lux as shown in Domoticz. That is why I started on a lux meter. Just to see how that works. With LM393 I just check... if value < 10 ... it must be dark enough to switch on the lights.

            Works ideally when it is very dark during the day when a thunderstorm moves over your house.

            sundberg84S 1 Reply Last reply
            1
            • sinczeS sincze

              @mfalkvidd , Indeed 0 - 100 not in lux as shown in Domoticz. That is why I started on a lux meter. Just to see how that works. With LM393 I just check... if value < 10 ... it must be dark enough to switch on the lights.

              Works ideally when it is very dark during the day when a thunderstorm moves over your house.

              sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by
              #6

              @sincze - <10 is good... saves power but not approved by wife :) <30 for me... lights on! :)

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

              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