Arduino-based home anti-Leech (original)

Source: Internet
Author: User

When there is a theft incident in the community, do you always worry about the theft of your home on the subway at work, in front of your computer at work station, during a late night gathering, or when you are traveling?
Now let's talk about how to DIY an Arduino-based home anti-leech!
Before DIY, design the DIY process first! In order to express myself in a concise way, I can paste my own picture! In my opinion, the original intention of DIY is to use the simplest method to effectively solve problems, rather than writing paper. All of the following are done with the simplest tools, for example, the following rough picture is made by drawing a board at will to clearly express the meaning to readers.
650) this. length = 650; "id =" aimg_2663 "aid =" 2663 "src =" http://www.bkjia.com/uploads/allimg/131228/10524351M-0.jpg "zoomfile =" data/attachment/forum/201308/23/1101_g4xpuj4u4ptnqeq4.jpg "file =" data/attachment/forum/201308/23/ 110213g4xpuj4u4ptnqeq4.jpg "class =" zoom "width =" 600 "inpost =" 1 "alt =" design drawing. JPG "title =" design drawing. JPG "lazyloaded =" true "initialized =" true "style =" word-wrap: break-word; cursor: pointer; "/>

From the figure above, we can see that the microcontroller is responsible for collecting the data of the human body's PV sensor and sending the data to the mobile phone through the audio communication module, the mobile phone end parses the data sent by the single-chip microcomputer. When it is determined that someone has intruded into the body's detection range, it begins to dial the number to the master. The host's phone number can be set on the Android smartphone.
650) this. length = 650; "id =" aimg_2667 "aid =" 2667 "src =" http://www.bkjia.com/uploads/allimg/131228/1052433400-1.jpg "zoomfile =" data/attachment/forum/201308/23/110728emxjovvjuunonpuo.jpg "file =" data/attachment/forum/201308/23/ 110728emxjovvjuunonpuo.jpg "class =" zoom "width =" 600 "inpost =" 1 "alt =" overall figure. JPG "title =" overall image. JPG "lazyloaded =" true "_ load =" 1 "style =" word-wrap: break-word; cursor: pointer; "/>
Components and tools required: an arduino single-chip microcomputer, an Android smartphone, a human body heat sensor, several wires, and a audio line. Those who love DIY are not new to the previous ones.
Next I will introduce the last two modules and components: android-arduino audio communication module and audio communication line.
650) this. length = 650; "id =" aimg_2662 "aid =" 2662 "src =" http://www.bkjia.com/uploads/allimg/131228/10524343Q-2.jpg "zoomfile =" data/attachment/forum/201308/23/110248hyf5wez95r50jzww.jpg "file =" data/attachment/forum/201308/23/ 110248hyf5wez95r50jzww.jpg "class =" zoom "width =" 600 "inpost =" 1 "alt =" module. JPG "title =" module. JPG "lazyloaded =" true "_ load =" 1 "style =" word-wrap: break-word; cursor: pointer; "/>
The audio communication module supports two-way communication between android and arduino). The interfaces of android smartphones are the headphone jack and the single-chip microcomputer is connected to the serial port. This module is designed by ourselves and can work stably at or below the baud rate of 9600.

650) this. length = 650; "id =" aimg_2664 "aid =" 2664 "src =" http://www.bkjia.com/uploads/allimg/131228/105243N16-3.jpg "zoomfile =" data/attachment/forum/201308/23/1101_nbq5eset1otg1uyk.jpg "file =" data/attachment/forum/201308/23/ 110w.nbq5eset1otg1uyk.jpg "class =" zoom "width =" 591 "inpost =" 1 "alt =" audio frequency line. JPG "title =" audio cable. JPG "lazyloaded =" true "_ load =" 1 "style =" word-wrap: break-word; cursor: pointer; "/>
The above is the completion of hardware preparation.
1. We first fix the audio communication module and the single chip microcomputer together. When inserting an audio module, you must pay attention to the insertion direction in the figure. The audio jack goes outward. Otherwise, the audio module will be burned out, affecting the normal operation of the MCU.

650) this. length = 650; "id =" aimg_2661 "aid =" 2661 "src =" http://www.bkjia.com/uploads/allimg/131228/105243IO-4.jpg "zoomfile =" data/attachment/forum/201308/23/110210wut7oqv3vxl0thlp.jpg "file =" data/attachment/forum/201308/23/ 110210wut7oqv3vxl0thlp.jpg "class =" zoom "width =" 600 "inpost =" 1 "alt =" arduino-audio module. JPG "title =" arduino-audio module. JPG "lazyloaded =" true "_ load =" 1 "style =" word-wrap: break-word; cursor: pointer; "/>
2. Connect the single-chip microcomputer with the Android smartphone. During the connection process, note that the audio connector is completely inserted into the audio jack; otherwise, data cannot be transmitted normally.
650) this. length = 650; "id =" aimg_2660 "aid =" 2660 "src =" http://www.bkjia.com/uploads/allimg/131228/105243CB-5.jpg "zoomfile =" data/attachment/forum/201308/23/110144ev6pvhzvp5vp4zht.jpg "file =" data/attachment/forum/201308/23/ 110144ev6pvhzvp5vp4zht.jpg "class =" zoom "width =" 600 "inpost =" 1 "alt =" arduino-android.JPG "title =" arduino-android.JPG "lazyloaded =" true "_ load =" 1 "style = ""word-wrap: break-word; cursor: pointer; "/>
3. Connect the single-chip microcomputer with the human body sensor.
650) this. length = 650; "id =" aimg_2665 "aid =" 2665 "src =" http://www.bkjia.com/uploads/allimg/131228/1052431049-6.jpg "zoomfile =" data/attachment/forum/201308/23/110646ywv6a8n66uag1z86.jpg "file =" data/attachment/forum/201308/23/ 110646ywv6a8n66uag1z86.jpg "class =" zoom "width =" 600 "inpost =" 1 "alt =" schematic. JPG "title =" schematic. JPG "lazyloaded =" true "_ load =" 1 "initialized =" true "style =" word-wrap: break-word; cursor: pointer; "/>
It is a schematic diagram drawn from the integrated development environment of arduino. The arduino integrated development environment is a free graphical open-source Arduino integrated development environment that helps Arduino developers develop quickly and interestingly. Arduino Design Assistant
650) this. length = 650; "id =" aimg_2666 "aid =" 2666 "src =" http://www.bkjia.com/uploads/allimg/131228/1052431054-7.jpg "zoomfile =" data/attachment/forum/201308/23/110717qlxz3xlm0g3333bf.jpg "file =" data/attachment/forum/201308/23/ 110717qlxz3xlm0g3333bf.jpg "class =" zoom "width =" 600 "inpost =" 1 "alt =" overall connection figure png. JPG "title =" overall connection figure png. JPG "lazyloaded =" true "_ load =" 1 "initialized =" true "style =" word-wrap: break-word; cursor: pointer; "/>
Finally, the hardware part of the sensor is finished after the sensor is connected with the microcontroller. When downloading a program, you must turn off the switch of the audio module. Otherwise, the program download may fail.
Download the program for the Android phone and arduino respectively, and the home anti-theft alarm will work. You can download the source code and research software. Source code
Of course, this DIY is just the design of the core part. If you are interested, you can create an appropriate bracket for the human body to be put in the appropriate position, or add several more heat-sensitive sensors to collect multiple channels of data. Or proceed with further design, as the mall anti-theft, set the alarm number to 110; or ...... leave the rest of the imagination to friends who love DIY.

This article is from the "Mars maker" blog, please be sure to keep this source http://5665502.blog.51cto.com/5655502/1282609

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.