|
| 1 | +# Smart Fire-Fighter Application |
| 2 | + |
| 3 | +* [Introduction](#introduction) |
| 4 | + * [Function](#function) |
| 5 | + * [System Architecture](#system-architecture) |
| 6 | +* [Hardware and Software Setup](#hardware-and-software-setup) |
| 7 | + * [Required Hardware](#required-hardware) |
| 8 | + * [Required Software](#required-software) |
| 9 | + * [Hardware Connection](#hardware-connection) |
| 10 | +* [User Manual](#user-manual) |
| 11 | + * [Before Running This Application](#before-running-this-application) |
| 12 | + * [Run This Application](#run-this-application) |
| 13 | +* [DemoVideo](#demovideo) |
| 14 | + |
| 15 | +## Introduction |
| 16 | +This project uses ARC EM Starter Kit to build a smart Firefighter. A smart firefighter is a system which can detect and locate the fire and control the extinguisher to extinguish the fire early. The proposed system uses two Infrared sensor arrays with ARC EM Starter Kit to create a map of the fire which enables it to detect and locate the fire. After that, a control circuit with the robot arm can be used to direct the extinguisher to the direction of the fire. This smart firefighter can reduce the damages to the furniture. AI can be applied as a future work to build a safer firefighter by identifying the type of fire and selecting the correct extinguisher. |
| 17 | + |
| 18 | +### Function |
| 19 | +- Quick and accurate detection of flame location. |
| 20 | +- Detect small size of flame (a candle at 3m). |
| 21 | +- Spray water flow to the fire correctly, while keeping other areas dry spear. |
| 22 | +- Can be mobility. |
| 23 | + |
| 24 | + |
| 25 | +### System Architecture |
| 26 | + |
| 27 | + |
| 28 | +## Hardware and Software Setup |
| 29 | +### Required Hardware |
| 30 | +- 1 DesignWare ARC EM Starter Kit(EMSK) |
| 31 | +- 2 stepper driver |
| 32 | +- 2 stepper motor |
| 33 | +- 2 IR camera |
| 34 | +- 1 water pump |
| 35 | +- 1 relay module |
| 36 | +- 1 2-axis robot arm |
| 37 | +- 1 12v5A adapter |
| 38 | + |
| 39 | +### Required Software |
| 40 | +- Metaware or ARC GNU Toolset |
| 41 | +- Serial port terminal, such as putty, tera-term or minicom |
| 42 | + |
| 43 | +### Hardware Connection |
| 44 | +1. |
| 45 | + - Connect **2 Stepper driver module** to **J3**. |
| 46 | + - Connect **2 IR camera module** to **J1** & **J5** (using UART). |
| 47 | + - Connect **Relay module** to **J6**. |
| 48 | +2. Configure your EMSKs with proper core configuration. |
| 49 | + |
| 50 | +## User Manual |
| 51 | +### Before Running This Application |
| 52 | +Download source code of from github. |
| 53 | + |
| 54 | +- Modify mux.c (/board/emsk/common/emsk_init.c) |
| 55 | +``` |
| 56 | +line 107: change |
| 57 | + set_pmod_mux(PM1_UR_UART_0 | PM1_LR_SPI_S \ |
| 58 | + | PM2_I2C_HRI \ |
| 59 | + | PM3_GPIO_AC \ |
| 60 | + | PM4_I2C_GPIO_D \ |
| 61 | + | PM5_UR_SPI_M1 | PM5_LR_GPIO_A \ |
| 62 | + | PM6_UR_SPI_M0 | PM6_LR_GPIO_A ); |
| 63 | + to |
| 64 | + set_pmod_mux(PM1_UR_UART_0 | PM1_LR_GPIO_A \ |
| 65 | + | PM2_I2C_HRI \ |
| 66 | + | PM3_GPIO_AC \ |
| 67 | + | PM4_I2C_GPIO_D \ |
| 68 | + | PM5_UR_GPIO_C | PM5_LR_SPI_M2 \ |
| 69 | + | PM6_UR_GPIO_C | PM6_LR_GPIO_A ); |
| 70 | +``` |
| 71 | +### Run This Application |
| 72 | + |
| 73 | +Here take **EMSK2.3 - ARC EM7D** with GNU Toolset for example to show how to run this application. |
| 74 | + |
| 75 | +#### Makefile |
| 76 | + |
| 77 | +- Target options about EMSK and toolchain: |
| 78 | + |
| 79 | + BOARD ?= emsk |
| 80 | + BD_VER ?= 23 |
| 81 | + CUR_CORE ?= arcem7d |
| 82 | + TOOLCHAIN ?= gnu |
| 83 | + |
| 84 | +- The relative series of the root directory, here the path of the Makefile is |
| 85 | + |
| 86 | + # |
| 87 | + # root dir of embARC |
| 88 | + # |
| 89 | + EMBARC_ROOT = ../../../../ |
| 90 | + MID_SEL = common u8glib |
| 91 | + |
| 92 | + |
| 93 | +See [ embARC Example User Guide][40], **"Options to Hard-Code in the Application Makefile"** for more detailed information about **Makefile Options**. |
| 94 | + |
| 95 | +# DemoVideo |
| 96 | +https://www.youtube.com/watch?v=aEobmLNDtfw |
0 commit comments