1 / 5
PIR Motion Sensor - WEMOS D1 Mini + HC-SR501 - Philips Hue — zdjęcie 1
1 / 5

PIR Motion Sensor - WEMOS D1 Mini + HC-SR501 - Philips Hue

Zamów wydruk tego modelu

Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.

Zapisane na tym urządzeniu.

After making one of Qrome's awesome print monitors I noticed how similar in size the OLED module and a PIR sensor I…

Ocena
5 / 5
Polubienia
17
Pobrania
164
Wydruki
4
Wyświetlenia
1362
Oceny
2

Aktualizacja u źródła:

Informacje o modelu

Źródło
Printables
Kategoria
Other Gadgets
Licencja
Creative Commons — Attribution — Noncommercial

After making one of Qrome's awesome print monitors I noticed how similar in size the OLED module and a PIR sensor I had to hand were. So instead of reinventing the wheel and creating a new body for the motion sensor I remixed Qrome's casing.

I had to extend the case lengthways to incorporate a slightly bigger Wemos d1 mini board (34.5mm) and also had to extended the height to fit the HC-SR501 PIR sensor. I put screw holes in to screw the PIR to but It pretty much friction fits in place with no glue or screws needed.

I'm using mine for a motion sensor for Philips Hue but it can be used for whatever you feel like.

For anyone who wants to try:

I used the code from here: https://github.com/LeskoIam/esp8266Huemotion

I added an ntp server to the code. I'm using uk.pool.ntp.org so search for this line and replace with your region.

It will turn on a light (or group of lights) full brightness between 5pm and 12am and 45% brightness between 12am and 5am.

My modded code: https://pastebin.com/UKCAas3P

You will need to register a user on your hue bridge. Details of how to do this are listed here along with basic usage of the hue api: https://developers.meethue.com/develop/get-started-2/

My code uses the user "newdeveloper" as per the hue getting started guide.

Category: Gadgets

Tagi