Nov 242017
 

We’ve recently had some PCBs made that allow you to attach a PIR movement sensor, buzzer, and magnetic door sensor to your micro:bit.

The PIR movement sensor is wired to pin 0 on the micro:bit, the magnetic door sensor contacts connect to pin 1, and the buzzer is wired to pin 2.

You can use the board as the basis for lots of different projects. You can make several micro:bit alarm boards talk to each other using the Radio function. You can attach the micro:bit to your PC or Mac and use Thonny/Python3 to read serial line messages from the micro:bit and send an email to your phone whenever the sensors are triggered or write events to a log file. The PDF manual contains examples of both.

Our PDF manual for the Alarm Board can be downloaded from http://www.securipi.co.uk/alarmbit.pdf

You can buy a ready-assembled board with the PIR sensor, magnetic door contacts and 3 metres of cable from Amazon for £13.99 https://www.amazon.co.uk/dp/B0778WBMJB

Here’s what the Thonny/Python3 code looks like running on a Windows 7 PC. This code reads “Serial Line” messages from the micro:bit’s USB port and stores the time and date of alarm triggers in a log file. Read our PDF manual to see more examples.

We can also supply the Alarm Board in a self-assembly kit that you solder together yourself for £7.95 https://www.ebay.co.uk/itm/162765653352

The PIR modules we supply have been modified to work at 3 volts (there’s a page explaining how to do that in our PDF manual).

May 152017
 

Home Automation and Security projects book for Raspberry Pi

raspberry2(1)

Our latest ebook is now available to download instantly in PDF format from www.trcomputers.co.uk and as a Kindle eBook from Amazon at https://www.amazon.co.uk/dp/B071LC88M1

You can download a Sample PDF

Contents:

Chapter 1 – Wireless Doorbell project for under £20/$25.
We show you how to receive signals from a Lloytron MIP wireless doorbell push on your Pi, and have your Pi take a photo from a Raspberry Pi camera module, time & date stamp it, and email it to your phone. We also show you how to play a custom MP3 door chime sample when the doorbell is pressed – your doorbell can now be any MP3 sound you like. Also works with Lloytron MIP wireless door sensors, wireless PIRs and other generic wireless driveway alarms. We also show you how to take pictures from USB webcams, USB video capture devices, scan for Bluetooth & WiFi MAC addresses when the doorbell is pushed or sensor triggered.

Chapter 2 – Reverse-engineer 433MHz & 315MHz wireless gadgets using £10/$12 of hardware.
Learn how to receive/clone codes from remote controls and re-transmit signals to wireless remote control mains sockets, relays and light switches that operate at 433.92MHz (Europe) or 315MHz (North America) AM and use Manchester/OOK encoding using your Pi. Learn codes and then turn lights, relays and power sockets on and off at set times using Python. Control lights, relays, and power sockets from a web page on your phone or tablet. We also include a Python script that can capture a wireless code & replay it, or replay a different code with the same timing values, or a range of codes. (no more time wasted messing about with Audacity, Inspectrum, RTL-SDR, Baudline and GNU Radio).

Chapter 3 – How to control hardware from a web browser.
Learn how to use Apache web server on your Pi to interact with a web page on your phone. Contains Javascript/CGI and PHP examples. Turn an LED on and off from anywhere using two buttons on your phone’s web browser. Turn remote control mains sockets, lights and relays on and off from anywhere using buttons on your phone’s web browser.

Chapter 4 – Working with CCTV audio on your Pi.
Learn how to stream high quality CCTV audio from one place to another. We show you the best hardware to use.

Chapter 5 – Make a pan and tilt CCTV mount for your Raspberry Pi camera for around £12/$15.
We show you how to control two SG90 mini servos and a pan tilt bracket from your Raspberry Pi. Control the camera using graphical buttons and sliders on your Pi’s desktop. Stream video to VLC media player at remote location and control camera via SSH. Stream video to a remote web browser and remote control pan and tilt from same web browser window.