Motion detector with measurement of light intensity, temperature and humidity in the flush box.
-
Hello,
I have found many interesting projects here. Now I would like to introduce my own project.Since my experiments with MySensors were quite successful on the breadboard, I decided to design a productive device with it.
It should be a motion detector with light intensity measurement.
Building prototype.
I have permanently installed the unit in a flush box.
After some time, the whole thing has worked well. I have decided to equip other rooms with these devices. However, it should be a bit more professional.
Therefore, I have designed my own PCB with Eagle CAD.
The PCBs were manufactured by ITead.
Step by step assembly of the device.
The Eagle and the firmware files for the modules can be found in my Github: https://github.com/hexenmeister/MySensors_MyDevices
regards,
Alexander
-
@hexenmeister Thanks for posting. Looks great! How are you providing power to the sensors?
Cheers
Al
-
There is already a line for my one wire bus. There are also 5 volts. The PCB can be assembled differently and are supplied with up to 15V.
-
Thanks for sharing! You mind explaining how your project works. I glance through your code and found that you have implemented some interesting features.
-
@hexenmeister on top of explaining where can I get the nrf radio library file for eagle ?
-
@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?
-
@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
-
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!
-
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 )
Thanks Matthias
-
@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
-
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
-
@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?
-
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.
-
Anyway to order these ? DirtyPCB ?
-AM
-
@hexenmeister has not been active for 9 months @activemind
To bad - this would be a great project for openhardware.io
-
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
-
you can use .brd files to order at dirtypcb.
Suggested Topics
-
Welcome
Announcements • • hek