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. My Project
  3. Motion detector with measurement of light intensity, temperature and humidity in the flush box.

Motion detector with measurement of light intensity, temperature and humidity in the flush box.

Scheduled Pinned Locked Moved My Project
17 Posts 9 Posters 15.2k Views 9 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.
  • jeylitesJ jeylites

    @hexenmeister

    Thanks for sharing! You mind explaining how your project works. I glance through your code and found that you have implemented some interesting features.

    H Offline
    H Offline
    hexenmeister
    wrote on last edited by
    #6

    @jeylites
    Yes of course.
    I use my own library for BH1750 (with automatic selection of sensitivity).
    I've implemented partially autodetection of sensors. And I have limits defined for max. / min. time between transmissions and a minimum value change for sending the value immediately.
    What exactly do you want to know?

    1 Reply Last reply
    0
    • M mainali

      @hexenmeister on top of explaining where can I get the nrf radio library file for eagle ?

      H Offline
      H Offline
      hexenmeister
      wrote on last edited by
      #7

      @mainali
      I could not find these libraries also. Therefore, I have created this themselves.
      Look into my GutGub repository:
      https://github.com/hexenmeister/MySensors_MyDevices/tree/master/Schematic/lbr

      jeylitesJ 1 Reply Last reply
      0
      • H hexenmeister

        @mainali
        I could not find these libraries also. Therefore, I have created this themselves.
        Look into my GutGub repository:
        https://github.com/hexenmeister/MySensors_MyDevices/tree/master/Schematic/lbr

        jeylitesJ Offline
        jeylitesJ Offline
        jeylites
        wrote on last edited by jeylites
        #8

        @hexenmeister

        Hardware:
        You have two Leds , RED and GREEN connected to pin 5 and 6. What is it used for?
        What's the benefits of using LUX and LDR sensor? Why not use LDR?

        Software: What do you mean by "partially autodetection of sensors" and is it for Lux or Motion?
        What does BH1750 (with automatic selection of sensitivity) do ?

        A diffrent question... I was snooping around your github page. You have MyEthernetGateway, MyEthernetGateway_ENC28J60 and MySerialGateway on list. What do they do? Are they stock my sensor scripts or you made changes to it?

        https://github.com/hexenmeister/MySensors_MyDevices

        Great work man!

        Cheers!

        H 1 Reply Last reply
        0
        • R Offline
          R Offline
          Rasenheizung
          wrote on last edited by
          #9

          Hi Alex,

          I just have had a short contact on github with you and on the FHEM forum.

          I followed this project on your homepage and I'm very interested in it. Great work.

          Just a few question:
          You are using a 10uf capacitor, although only a 4,7uf is recommended: http://www.mysensors.org/build/connect_radio ?

          Do you have sources there to buy (shipping to Germany) the different pieces to build up your sensor? And is it possible to buy a whole pcb (maybe ready to use :+1: )

          Thanks Matthias

          H 1 Reply Last reply
          0
          • jeylitesJ jeylites

            @hexenmeister

            Hardware:
            You have two Leds , RED and GREEN connected to pin 5 and 6. What is it used for?
            What's the benefits of using LUX and LDR sensor? Why not use LDR?

            Software: What do you mean by "partially autodetection of sensors" and is it for Lux or Motion?
            What does BH1750 (with automatic selection of sensitivity) do ?

            A diffrent question... I was snooping around your github page. You have MyEthernetGateway, MyEthernetGateway_ENC28J60 and MySerialGateway on list. What do they do? Are they stock my sensor scripts or you made changes to it?

            https://github.com/hexenmeister/MySensors_MyDevices

            Great work man!

            Cheers!

            H Offline
            H Offline
            hexenmeister
            wrote on last edited by
            #10

            @jeylites
            I thought about using the device as a kind of status display. On the PCB only one LED remains. Currently, these lights when movement is detected.

            BH1750 is much more precise than LDR. And it's cheap enough.

            I would like to have a universal Sketch that recognizes the sensors equipping on the PCB. This works good for DHT22 and BH1750.

            BH1750 can detect the light intensity in dark areas from 0.11 lux, as well as the bright sun with over 100,000 lux. But not over the entire range. The range must be specifically selected. That makes my Lib automatically.

            I had problems with stability of Ethernet Gateway. So I enabled hardware watchdog of the ATmega. Not a good solution, but effective. However, the Bootloader of Arduino Pro Mini needs to be replaced (I use Opti boat).

            Regards

            jeylitesJ 1 Reply Last reply
            0
            • R Rasenheizung

              Hi Alex,

              I just have had a short contact on github with you and on the FHEM forum.

              I followed this project on your homepage and I'm very interested in it. Great work.

              Just a few question:
              You are using a 10uf capacitor, although only a 4,7uf is recommended: http://www.mysensors.org/build/connect_radio ?

              Do you have sources there to buy (shipping to Germany) the different pieces to build up your sensor? And is it possible to buy a whole pcb (maybe ready to use :+1: )

              Thanks Matthias

              H Offline
              H Offline
              hexenmeister
              wrote on last edited by
              #11

              @Rasenheizung

              Hi Matthias!
              The value of the capacitor is not really critical. I currently use no capacitor, because the power supply is good enough.
              I buy my parts on AliExpress and eBay. Recently, for example, this:
              http://de.aliexpress.com/item/Free-Ship-10PCS-LOT-HCSR501-HC-SR501-NEW-Adjust-Infrared-IR-PIR-Motion-Sensor-Detector-Module/519751367.html
              http://de.aliexpress.com/item/1pcs-DHT22-digital-temperature-and-humidity-sensor-Temperature-and-humidity-module-AM2302-replace-SHT11-SHT15-Free/1059369726.html
              http://de.aliexpress.com/item/Free-Shipping-new-version-5pcs-lot-QFN-Pro-Mini-328-Mini-ATMEGA328-ATMEGA328P-MU-3-3V/1966712135.html
              http://de.aliexpress.com/item/Free-shiping-best-prices-10pcs-lot-NRF24L01-NRF24L01-Wireless-Module-2-4G-Wireless-Communication-Module/674686536.html
              http://www.ebay.de/itm/321664442040
              MySensors homepage also contains a good selection is available.

              Attention! My PCB is designed for an Arduino with 3.3V power regulator.

              How many PCBs do you need? I think, I would have to let new manufacture. It would also be important to know how you want to supply the power. Send me a PN / mail.

              Regards

              1 Reply Last reply
              0
              • H hexenmeister

                @jeylites
                I thought about using the device as a kind of status display. On the PCB only one LED remains. Currently, these lights when movement is detected.

                BH1750 is much more precise than LDR. And it's cheap enough.

                I would like to have a universal Sketch that recognizes the sensors equipping on the PCB. This works good for DHT22 and BH1750.

                BH1750 can detect the light intensity in dark areas from 0.11 lux, as well as the bright sun with over 100,000 lux. But not over the entire range. The range must be specifically selected. That makes my Lib automatically.

                I had problems with stability of Ethernet Gateway. So I enabled hardware watchdog of the ATmega. Not a good solution, but effective. However, the Bootloader of Arduino Pro Mini needs to be replaced (I use Opti boat).

                Regards

                jeylitesJ Offline
                jeylitesJ Offline
                jeylites
                wrote on last edited by jeylites
                #12

                @hexenmeister said:

                That makes my Lib automatically.

                Are you suggesting you have a specific range that the reading ends at? If so what's the range? BTW, What controller are you using?

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hexenmeister
                  wrote on last edited by
                  #13

                  Are you suggesting you have a specific range that the reading ends at? If so what's the range? BTW, What controller are you using?

                  My Lib read approximately (fast, not accurate), the light intensity. This select the area (dark, normal, bright) and than retrieve brightness accurate. The range is 0.11 lux to about 190,000 lux (not very precise at end of range).

                  My controller software ist FHEM on a Cubietruck.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    activemind
                    wrote on last edited by
                    #14

                    Anyway to order these ? DirtyPCB ?

                    -AM

                    1 Reply Last reply
                    0
                    • sundberg84S Offline
                      sundberg84S Offline
                      sundberg84
                      Hardware Contributor
                      wrote on last edited by
                      #15

                      @hexenmeister has not been active for 9 months :( @activemind
                      To bad - this would be a great project for openhardware.io

                      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
                      • mfalkviddM Offline
                        mfalkviddM Offline
                        mfalkvidd
                        Mod
                        wrote on last edited by
                        #16

                        I have never ordered custom pcbs but can't the brd/sch files be used to order? https://github.com/hexenmeister/MySensors_MyDevices/tree/master/Schematic/MySensors_PIR/v1.1

                        1 Reply Last reply
                        1
                        • scalzS Offline
                          scalzS Offline
                          scalz
                          Hardware Contributor
                          wrote on last edited by
                          #17

                          you can use .brd files to order at dirtypcb.

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


                          14

                          Online

                          11.7k

                          Users

                          11.2k

                          Topics

                          113.0k

                          Posts


                          Copyright 2019 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