Introduction: Home Security Featuring 4Duino-24
Home Security project is a password oriented security device. This uses 4Duino display as the user interface where the password can be entered. 4Duino is also used as the host device in this project. It handles a buzzer, an ultrasonic sensor, a uCAM-II and a magnetic switch. As a home security device, it sends an alarm to the owner when there is an attempted entrance or any malicious kind of entrance.
Initially, Home Security Interface is in idle state. When a person approaches the device, it will be activated. This is achieved using an Ultrasonic Sensor. HC-SR04 Ultrasonic Distance Sensor is able to measure distances from 2cm to 400cm. Ultrasonic receiver and transmitter is included in the module. uCAM-II is used in this project to capture images of the person who attempted a forced entry. uCAM-II is an integrated serial camera module, which uses a CMOS VGA colour sensor along with JPEG compression chip. In addition, a buzzer is also used in this project to produce an alarm signal or noise if the password is entered incorrectly for more than three times. An alarm message is sent to the owner through a web browser. This uses the built-in ESP8266 module in 4Duino.
Step 1: How It Works
*Process Flow Chart of the Home Automation
Step 2: Build
- HC-SR04 Ultrasonic Distance Sensor
- Magnetic Switch
- Jumper cables
- µSD Card
- Micro USB Cable
Connect the components mentioned above as you can see in the fritzing diagram.
Step 3: Program
Workshop 4 – 4Duino Basic Graphics environment is used to program this project. (The same could be implemented in the latest Arduino IDE)
This project requires the Arduino IDE to be installed as Workshop calls the Arduino IDE for compiling the Arduino sketches. The Arduino IDE however is not required to be opened or modified to program the 4Duino. Open this file using Workshop 4.
- Download the project code here.
- Change the SSID and the PASSWORD to suit your router, in the program.
- You can change your Home Security Password in line 62 ( char pass ) , and your reverse password in line 64 (char inPass).
- Connect the 4Duino to the PC using µUSB cable.
- Then navigate to the Comms tab and select the Comms port to which the 4Duino connected.
- Finally, go back to “Home” tab and now click on the “Comp’nLoad” button.
- Workshop 4 IDE will prompt you to insert a µSD card to the PC in order to save the widget images.
- Select uSD card to be loaded and Click “OK”. All you need to do is insert the μSD card to load the image files to into the 4Duino.
- After uploading the program in to the 4Duino, it will try to mount the μSD card. If the μSD card is not inserted it will print an error message
- If you want to use the project away from the PC (e.g. door, vault), apply a portable 5V power supply to the 4duino.