Security camera application

  1. Introducing the applied technology of security cameras with Doppler sensor RCWL-0516 and module camera
  • Switch between photos during the day and video during the night using the Module Camera or Web Camera.
    ― Sufficient lighting is required for nighttime videos, but photographic images can be recognized even if they are relatively dark.
  • Distributed processing is realized by two separate Raspberry Pis for Module camera connection and Doppler sensor connection.
  • Appropriate names for Inputs 1 and 3, here “security sensor” and “remote control”

DIO_settings

  • DIO contorl1 Action: High-> Low Module camera photo mail Remote control Action: High-> Low Module camera video mail set respectively

DIO contorl1

  • The setting of the Raspberry Pi to which the Module camera is connected is complete.
  • Next, set the Raspberry Pi to which the Doppler sensor RCWL-0516 is connected.
  • Named “Camera valid” for time control to Output4, Output4 is reflected in Iutput4 by inverting the output of Iutput4 and direct connection Output4

DIO_settings

  • DIO contorl1 Action: High-> Low of security sensor, reset registration only, counter generation only, Action does not set anything

DIO contorl1

  • Switch “Camera enabled” between 18:00 and 06:00 in Auto process.

DIO contorl1

  • Add in editor to the end of the /usr/bin/dio0low script automatically generated by Action: High-> Low of the security sensor with DIO contorl1
  • Meaning is that Input4 of json data is High-> Module Execute dio0low of Raspberry Pi to which the camera is connected, if Low, execute dio2low
    [iot00f:root#] vi /usr/bin/dio0low
    1
    2
    3
    4
    5
    6
    ENABLE=`cat /www/remote-hand/.di_read_data.json |jq -r .di3`
    if [ $ENABLE = “high” ];then
    pepoalexado iot02f remote hand dio0low
    else
    pepoalexado iot02f remote hand dio2low
    fi
  • Addition, you can get the output information of Output4 below, so you may judge with this
    1
    2
    3
    [iot00f:root#] cat /www/remote-hand/.di_read_data.json |jq -r .do3
    low <-result
    high or low