Hello again. Today I am going to show an ongoing project I am working on. My company has bestowed upon me the pleasure to build a demo kit for one of our product lines. I work in the low voltage industry that includes fire alarm, security, video surveillance and structured cable (voice and data). While designing the demo kit, it was brought to my attention that there are many situations that we are unable to simulate at trade shows or at a customer site, especially when we are talking about releasing chemical agent or setting off sirens.
Anyways, a coworker came up to me and said that it would be cool if we could have video play when an alarm occurs on a panel. Immediately, I thought of a Raspberry Pi. Virtually all security and fire alarm panels are nothing more than microcontrollers on steroids, thus have no video capabilities. They do have IO though….lots and lots of IOs.
Step 1: BOM
Here is the bill of material you will need for this project:
- Raspberry Pi (I used a Model B)
- SD card or micro SD card with adapter (I used a class 10 16gb micro SD card with adapter)
- Micro USB power cable (700ma minimum)
- Keyboard and mouse
- GPIO ribbon cable and cobbler
- you can use female to male jumpers if you have them
- Jumper wires
- HDMI cable
- SD card reader
- Internet connection (i used a usb wifi adapter but a hardwired connection is always better)
- Raspbian Jessie (my version is from 11/21/2015)
- omxplayer (built in to Raspbian)
- Python 3 (built in to Raspbian)
Step 2: Setting up the Pi
GETTING THE OS
First things first, we need to set up the SD card with the OS for the Raspberry Pi.
On your computer, go to https://www.raspberrypi.org/downloads/raspbian/ to download Raspbian.
Once you have the file downloaded, unzip the file.
Follow the instructions Here based on your type of computer to install Raspbian onto your SD card.
I have followed the instructions for Windows and Mac and they have all worked great. I will try the Linux version when my Linux boxes are freed up from their duties.
POWER IT UP
Now, insert your SD card into your Pi and power it up. Make sure you have your keyboard, mouse, TV and internet connection all plugged in as well.
For more detail: Play Video With Python and GPIO