Everything You Need to Build the Project from Scratch
PLEASE READ THIS DOCUMENT IN THE ORDER IT IS PRESENTED
Hardware Requirements
- Arduino Microcontroller Board
- Nano version recommended due to its weight and size
- Raspberry Pi Model B or B+
- 4GB (or more) SD Card
- Bluetooth HC-05 Model
- Bluetooth Dongle
- Solder Station
- One 70X50 Perfboard
- A breadboard would suffice, but I wouldn't recommend it
- Some single-row Female Pin Headers
- One [1 - 10] KΩ Resistor
- Stranded Wire Cable
- A jumper wire kit if you're planning on setting the circuit up on a breadboard.
Optional Hardware Requirements
- WiFi USB Adapter for the Raspberry Pi
Building the Signal Sender Device
The circuitry of the signal sender device is fairly simple. Following is all the connections you need to make between the Arduino board, HC-05 Bluetooth chip, and the Sonic Alarm system. The hardest part is perhaps figuring out where the VCC and GND wires in the sonic alarm system device are.
NOTE 1: You may want to disconnect the buzzer from the alarm system.
NOTE 2: You can build as many of this device as you want. The server capable of detecting and connecting to them all.
NOTE: The pins on the HC-05 module have been reordered to make the circuit diagram for clarity.
If the circuit diagram is blurry on your screen, clicking on the diagram will load the image with its original dimensions.
Configuring the Signal Sender Device (The Arduino Board)
Now that you have soldered all the components of the signal sender device together, it's time to give the device a brain to process the signals. By processing signals, we are referring to the process of recieving input from the alarm system device and sending it over to the server (which we are yet to configure) via bluetooth.
- In order to burn the brain onto the Arduino board, you need to have the
Arduino IDEinstalled on your computer. If you already have the IDE installed on your computer, you may simply skip this step. If you would like to do this step on a Linux machine, simply typesudo apt-get install -y arduinoto install the IDE on your computer. If you are, howerver, doing this step onWindowsorMac OSX, then you need to visit the officialArduinodownload page to obtain the proper software and a through installation tutorial. - Fire up and
Ardunio IDEsoftware and click onTools, hover over theBoardsubmenu with the mouse, and select theArduino Nano w/ ATmega328option. - Click
File,Open, and use the browser frame to navigate toSignal Sender-- a subdirectory located under the main project directory. In this subdirectory you will find a file namedTriggerer.ino. Click it, and then clickOpen. This will load the content (source code) ofTriggerer.inointo the IDE. - To upload the source code onto the
Arduinoboard, click on the
icon (the button with the arrow pointing to the right). To make sure you are clicking the right button, hovering over the button with the mouse will print the word Uploadright next to the icon itself. This process takes somewhere between 10 and 30 seconds.
NOTE: The IDE prints out
Done Uploading.when the upload process is complete.
Configuring the Pi
The process of configuring the Pi includes: Downloading and installing a Linux system on the Pi. Hooking up the Pi to a stable WiFi router (either via an ethernet cable or using a USB adapter). Cloning the seQre repository from GitHub. Localizing the Pi
Setting Up the SD Card The process of setting up the SD card includes: Downloading a Raspberry Pi-compatible Operating System. Burning the Operating System to the SD card.
The official Raspberry Pi download page contains a variety of Raspberry Pi-compatible operating systems you can download and use. I do, however, recommend using RASPBIAN, since it comes with most of the utilities you need to run this project.
To download the RASPBIAN OS on Linux or Mac OSX, type the following:
cd ~
wget --content-disposition http://downloads.raspberrypi.org/raspbian_latest
On Windows, simply click here and allow your browser to download the 20##-##-wheezy-raspbian.zip file.
- If your Pi is connected to the network via a WiFi USB Adapter, you may want to set it up to connect to your router automatically at boot-up. Here's how you do that:
- If you don't have
gitalready installed on your Pi (which you should already have built into the recommended Linux system), install it with:sudo apt-get install -y git
The last step in this process is localizing the Pi. By localizing we refer to giving the Pi a local http address, so you don't have to worry about figuring out its IP address and/or memorizing it. Here's how that's done:
- Install
avahiby typing the following command
sudo apt-get install -y avahi-daemon
- To specify a local address, type the following commands
cd ~
touch hostname
echo "seQre" > hostname
sudo mv hostname /etc/
- The system now needs a restart to pick up the new new local address. Restart the Pi using
sudo reboot
Author & Collaborators
This system was developed and is currently ONLY maintained by Fadi Hanna Al-Kass