Version 2

This monitor senses and records the time of an activity.   It is designed to sense whether an  elderly parent  is awake and active in an apartment remote from the observer.  Any sensor can be used such as PIR, light, sound, temperature, water, etc. This system requires an internet Wi-Fi connection.

Requirements:

1. Hard coded Wi-Fi SSID and password
2. Port forward (default 8027)
3. Static LAN IP
4. (optional) Dynamic DNS

Port forwarding and static LAN IP address require changes in parameters in the router.

Hardware:

  • 1X  Wemos D1 R2 Mini or NodeMCU coded as a web server
  • 1X  AM312 PIR sensor connected as an interrupt. A HC-SR501  or HC-SR505  can be substituted.
  • 1X (optional) LED for visual indication
  • 1X 5 Volt DC wall wart power supply

         

Middle : WeMos D1R2 Mini with AM312 PIR Sensor

Operation:

  • Install the activity sensor with the PIR pointing to a potential movement area, ex:  where a person might walk. A wall AC outlet is required for power.
  • When a person enters the room or walks past the sensor, the unit will increment an activity counter and store the current time.
  • When you query the unit (ex: 192.168.0.xx:8027 or my.dynamicDNS.net:8027)  via a browser, it will  return the number of interrupts (activity) and  elapsed time since last activity.

Example:

query: http://dad.duckdns.org:8027

response: Activity count: 5: 0 days 3 hours 29 minutes 15 seconds

Program code (sketch) available on Code Page page

Loading