BeagleBone Home Automation Blueprints by Rodolfo Giometti

By Rodolfo Giometti

Key Features

  • Build, organize, and enhance your circuits through step by step instructional of functional examples, from preliminary board setup to machine motive force management
  • Get entry to a number of varieties of desktop peripherals to observe and regulate your household setting utilizing this guide
  • This e-book is unfold throughout 10 chapters all enthusiastic about one sensible domestic automation project

Book Description

BeagleBone is a microboard notebook that runs Linux. it may well hook up with the net and will run OSes reminiscent of Android and Ubuntu. BeagleBone is used for various diversified reasons and tasks, from basic initiatives comparable to development a thermostat to extra complex ones akin to domestic safety systems.

Packed with real-world examples, this publication gives you examples of the way to attach numerous sensors and an actuator to the BeagleBone Black. you are going to tips on how to supply entry to them, to be able to notice simple-to-complex tracking and controlling platforms to help you take keep an eye on of the home. additionally, you will locate software program examples of imposing net interfaces utilizing the classical PHP/HTML pair with JavaScript, utilizing advanced APIs to have interaction with a Google doctors account, WhatsApp, or fb. This consultant is a useful educational while you are making plans to take advantage of a BeagleBone Black in a house automation project.

What you are going to learn

  • Build a CO (and different fuel) sensor with a buzzer/LED alarm to sign excessive concentrations
  • Log atmosphere information and plot it in a posh manner
  • Develop an easy internet interface with a LAMP platform
  • Prepare complicated internet interfaces in JavaScript and get to understand how you can circulation video facts from a webcam
  • Use APIs to get entry to a Google doctors account or a WhatsApp/Facebook account to control a house automation system
  • Add customized gadget drivers to control an LED with varied blinking frequencies
  • Discover how one can paintings with digital parts to construct small circuits
  • Use an NFS, temperature sensor, relays, and different peripherals to watch and regulate your surroundings

About the Author

Rodolfo Giometti is an engineer, IT expert, and GNU/Linux professional. He has over 15 years of expertise operating with systems in accordance with x86 (PC), ARM, MIPS, and PowerPC. he's the 1st writer and a maintainer of the LinuxPPS undertaking (Linux's pulse in line with moment subsystem.) He actively contributes to the Linux resource code with a number of patches and new gadget drivers for numerous units. His components of center services are in writing gadget drivers for brand spanking new peripherals, figuring out exact Linux ports for numerous customized embedded forums, and constructing keep watch over automation and distant tracking platforms. he's the cofounder of the Cosino venture, the place he develops software program for keep watch over automation platforms. he's additionally the co-CEO at HCE Engineering S.r.l., a number one business embedded systems-based company.

Table of Contents

  1. Dangerous fuel Sensors
  2. Ultrasonic Parking Assistant
  3. Aquarium Monitor
  4. Google medical doctors climate Station
  5. WhatsApp Laundry Room Monitor
  6. Baby Room Sentinel
  7. Facebook Plant Monitor
  8. Intrusion Detection System
  9. Twitter entry keep an eye on approach with shrewdpermanent Card and RFID
  10. A lighting fixtures supervisor with a television distant Controller
  11. A instant domestic Controller with Z-Wave

Show description

Read or Download BeagleBone Home Automation Blueprints PDF

Best personal computers books

Micro Mart [UK] (19 November 2015)

The UKs in basic terms Weekly IT journal, Micro Mart is filled with information, stories, gains and offers. Written in an available sort, the journal informs, entertains and contains lovers of every age and stocks our ardour for computing with them in a humanized and opinionated demeanour.

Laptops For Dummies Quick Reference

Likelihood is, you sought after a pc simply because it’s compact, transportable, and will get the task performed. You’ll wish this ebook for a similar purposes. sufficiently small to slot into your desktop case, it can provide what you want to utilize your laptop—even if it’s your first desktop. After an advent that familiarizes you with the and software program plus operational necessities, it contains concise information on: Connecting stuff jointly, together with details on WiFi and Bluetooth The necessities of home windows, from the Startup Menu and regulate Panel to the Recycle bin dealing with garage and utilizing folders, subfolders, and directories operating with documents utilizing the web Keyboard shortcuts, plus shortcuts for Microsoft be aware, Excel, and PowerPoint hassle capturing, together with the seven much more likely assets of difficulties uncomplicated and entire with a word list that defines tech phrases in layman’s language and an index that is helping you discover the knowledge you wish speedy, Laptops For Dummies speedy Reference is a realistic, transportable primer for machine clients.

Is This Thing On?, revised edition: A Computer Handbook for Late Bloomers, Technophobes, and the Kicking & Screaming

Now up-to-date and revised, the user-friendliest, so much reassuring, jargon-free, smartest, and such a lot entire nuts-and-bolts consultant for seniors, who're the fastest-growing demographic between social networks. Abby Stokes is the suitable consultant to the electronic area: She’s taught greater than 140,000 seniors tips on how to use a working laptop or computer.

Additional resources for BeagleBone Home Automation Blueprints

Sample text

Controlling the environment Now, we only need the glue between the sensors and actuators managing tasks, that is, a periodic function that according to the user inputs periodically checks whether the alarms must be activated according to the information read, or not. php script is as follows: function daemon_body() { global $loop_time; global $actuators; # The main loop dbg("start main loop (loop_time=${loop_time}s)"); while (sleep($loop_time) == 0) { dbg("loop start"); # Get the gas concentrations and set the "alarm" variable $mq2 = db_get_status("mq2"); $mq2_th_ppm = db_get_config("mq2_th_ppm"); dbg("mq2/mq2_th_ppm=$mq2/$mq2_th_ppm"); $mq4 = db_get_status("mq4"); $mq4_th_ppm = db_get_config("mq4_th_ppm"); dbg("mq4/mq4_th_ppm=$mq4/$mq4_th_ppm"); $mq5 = db_get_status("mq5"); $mq5_th_ppm = db_get_config("mq5_th_ppm"); dbg("mq5/mq5_th_ppm=$mq5/$mq5_th_ppm"); $mq7 = db_get_status("mq7"); [ 22 ] Chapter 1 $mq7_th_ppm = db_get_config("mq7_th_ppm"); dbg("mq7/mq7_th_ppm=$mq7/$mq7_th_ppm"); $alarm = $mq2 >= $mq2_th_ppm || $mq2 >= $mq2_th_ppm || $mq2 >= $mq2_th_ppm || $mq2 >= $mq2_th_ppm ?

In order to do these actions, we have to properly set up the GPIO lines that manage the LED and the buzzer as shown previously, and then we have to talk with the GSM module through the serial port to send the SMS message. To do this last step, we have to to install the gsm-utils package where we can find the gsmsendsms command, which is used to actually send the SMS. 144 Serial Number: 356308042878501 Then, we can verify the current PIN status by using the following command: root@beaglebone:~# gsmctl -d /dev/ttyO1 pin READY [ 18 ] Chapter 1 The preceding message shows us that the GSM module is correctly configured and the SIM in it is ready to operate; however, the SIM must be enabled by inserting the proper PIN number if we get the following message: gsmsendsms[ERROR]: ME/TA error 'SIM PIN required' (code 311) In this case, we must use the following command: root@beaglebone:~# gsmctl -d /dev/ttyO1 -I "+cpin=NNNN" In the preceding command, NNNN is the PIN number of your SIM.

To do the trick, we use the old_alarm and sms_time variables to save the last loop status. sh file in the book's example code repository. php[5474]: send SMS... "); system('gsmsendsms -d /dev/ttyO1 "' . PHONE_NUM . "'); } Basically, here we use the system() function to call the gsmsendsms command. You may note that gsmsendsms takes a while to send the SMS. It's normal. Controlling the environment Now, we only need the glue between the sensors and actuators managing tasks, that is, a periodic function that according to the user inputs periodically checks whether the alarms must be activated according to the information read, or not.

Download PDF sample

Rated 4.51 of 5 – based on 19 votes