|
| 1 | +# Smart Home Monitoring System |
| 2 | + |
| 3 | +The smart home monitoring system collects video information through a camera, and processes the data locally to monitor the situation of the elderly. The hardware modules mainly used in this project are IoT DK development board, OV7670 camera module, buzzer and display. The system can be used in more interesting applications in the future. For example, different behaviors of people can be judged according to different movement patterns, so as to realize the recognition of human activities. |
| 4 | + |
| 5 | +* [Introduction](#introduction) |
| 6 | + * [System Architecture](#system-architecture) |
| 7 | +* [Hardware and Software Setup](#hardware-and-software-setup) |
| 8 | + * [Required Hardware](#required-hardware) |
| 9 | + * [Required Software](#required-software) |
| 10 | + * [Hardware Connection](#hardware-connection) |
| 11 | +* [User Manual](#user-manual) |
| 12 | + * [Before Running This Application](#before-running-this-application) |
| 13 | + * [Run This Application](#run-this-application) |
| 14 | + |
| 15 | +## Introduction |
| 16 | +The smart home monitoring system has the functions of real-time monitoring of human activities, recognition of daily activities and falling actions, and real-time alarms for falling actions. |
| 17 | + |
| 18 | + |
| 19 | +### System Architecture |
| 20 | +![][4] |
| 21 | + |
| 22 | +## Hardware and Software Setup |
| 23 | +### Required Hardware |
| 24 | +- [ARC IoT Development Kit][1] |
| 25 | +- [OV7670 Camera Module][2] |
| 26 | +- Buzzer Module |
| 27 | +- Arduino |
| 28 | + |
| 29 | +### Required Software |
| 30 | +- ARC GNU Toolchain 2020.03 |
| 31 | +- Serial port terminal, such as putty, tera-term or minicom |
| 32 | +- [embarc_osp(Branch:embarc_mli)][3] |
| 33 | +- Python3.6 |
| 34 | +- Pycharm |
| 35 | +- Tensorflow 2.0 |
| 36 | + |
| 37 | +### Hardware Connection |
| 38 | +1. Connect OV7670 camera module to ARC following below instructions |
| 39 | + |
| 40 | + # ARC: 2x18 Pin Extension Header |
| 41 | + SIOC -> I2C0_SCL (need pull-up 10K resistor) |
| 42 | + SIOD -> I2C0_SDA (need pull-up 10K resistor) |
| 43 | + |
| 44 | + # ARC: Arduino PIN |
| 45 | + VSYNC -> PIN IO0 |
| 46 | + OE -> PIN IO1 |
| 47 | + WEN -> PIN IO2 |
| 48 | + WRST -> PIN IO3 |
| 49 | + D7~D0 -> PIN IO4~11 |
| 50 | + RCK -> PIN IO12 |
| 51 | + RRST -> PIN IO13 |
| 52 | + |
| 53 | + 3V3 -> +3.3V |
| 54 | + RESET -> +3.3V |
| 55 | + GND -> GND |
| 56 | + PWDN -> GND |
| 57 | + |
| 58 | +2. Connect Buzzer module to IoT DK 2x18 Pin Extension Header |
| 59 | + |
| 60 | +3. Boot up ARC IoT Development Kit Board to start |
| 61 | + |
| 62 | +4. Connect the USB port of ARC to the laptop to recieve results |
| 63 | + |
| 64 | +## User Manual |
| 65 | +### Before Running This Application |
| 66 | +* Download source code of SHMS from github |
| 67 | +* Make sure all connection is correct again |
| 68 | + |
| 69 | +### Run This Application |
| 70 | +Here take IoT DK, CUR_CORE = arcem9d with ARC GNU Toolchain 2020.03 for example to show how to run this application. |
| 71 | +1. To build this applicaiton, select the proper board version, core configuration and build with selected toolchain using this command `make BOARD=iotdk BD_VER=10 CUR_CORE=arcem9d TOOLCHAIN=gnu run`. |
| 72 | +2. Open your serial terminal such as Tera-Term on PC, and configure it to right COM port and 115200bps. |
| 73 | +3. Interact using IoT DK and serial port terminal. |
| 74 | +4. After ARC connect with the laptop via USB, type `python python/helper.py` in the terminal to start recieving the results. |
| 75 | + |
| 76 | +[1]: https://embarc.org/embarc_osp/doc/build/html/board/iotdk.html "ARC IoT Development Kit" |
| 77 | +[2]: https://www.voti.nl/docs/OV7670.pdf "OV7670 Camera Module" |
| 78 | +[3]: https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_osp.git "embarc_osp(Branch:embarc_mli)" |
| 79 | +[4]: ./doc/system.png "System Architecture" |
0 commit comments