I would like to start an IoT project building something similar to this ; a battery operated motion/brightness sensor which gives off a bright light under the right conditions. I believe I need the following sensors/components:
- PIR
- LED
- LDR
Also I want to incorporate an NFC reader with this device which will send a signal via wifi to a server (I assume this happens via RESTful Http request - any tips on how to make this secure?).
So the microcontroller will need to do multiple things at the same time. If a person steps within the detection zone of the PIR then the LED's will light up very brightly and remain on until the person scans their pre-registered NFC tag.
Key requirements are that the system is compact and battery powered.
I am new to micrcontrollers/arduinos/esp8266 and don't know where to start. I can program in Javascript and Ruby.
I don't mind spending a bit of money upfront to get the right components. Any advice?