Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.

Slides:



Advertisements
Similar presentations
10 uses for a Raspberry Pi in 10 minutes. Who is this guy? Rob on Twitter Web Developer Lead developer at Quidsin.com Open Source Proponent.
Advertisements

Computer Basics I Course Outline 1: What is a computer? 2: What is an operating system? Using a Desktop Computer 3: What are the basic parts of a desktop.
ComfortLink™ II Control. ComfortLink™ II Smart Control This is not just a thermostat. It’s an energy command center. Trane ComfortLink™ II is an easy-to-use,
BEYOND SMARTPHONES WITH RASPBERRY PI BY - ASHISH KSHIRSAGAR.
Building your own Chartplotter with AIS, Radar, & Autopilot
Lesson 5-Accessing Networks. Overview Introduction to Windows XP Professional. Introduction to Novell Client. Introduction to Red Hat Linux workstation.
Introduction to the Raspberry Pi ® Saman Amighi 10/2013 ® Raspberry Pi Foundation.
Building an APRS Weather Station for Under $300 APRS Wx station presentation by Chris, W8CWG, Mound Amateur Radio Association 3 Dec 2014.
Embedded Programming and Robotics Lesson 12 Introducing the Raspberry Pi Intro to Raspberry Pi1.
An illustrated introduction to building a computer using a Raspberry Pi 2. A Raspberry Pi, that is! Images from Microsoft clipart.
What is Router? Router is a device which makes communication between two or more networks present in different geographical locations. Routers are data.
RaspberryPi Ira Goldstein Siena College. What is a Raspberry Pi? University of Cambridge’s Computer Laboratory – Decline in skill level – Designed for.
Raspberry Pi Training Truman College Goals of our Training Today Unbox and boot up the Raspberry Pi (RPi) Learn how to access the desktop graphical.
SINGLE BOARD COMPUTERS -KEVIN JOSE. WHY DO WE USE THEM? Good performance at low price GPIO capability to interact with the outside world Small form factor,
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Pi In The Sky Chris Stubbs. What’s in the HAB kit Balloon (keep this safe) Parachute PITS kit Raspberry Pi Model A (for flight) + SD + Camera Raspberry.
1 A web enabled compact flash card reader eeble. 2 Weeble Team Chris Foster Nicole DiGrazia Mike Kacirek Website
Chapter 7 Microsoft Windows XP. Windows XP Versions XP Home XP Home XP Professional XP Professional XP Professional 64-Bit XP Professional 64-Bit XP Media.
The PC The PC is a standard computing platform, built around a EISA bus (1988) –IBM compatible –“Intel Architecture” from Intel or AMD or other companies.
Raspberry Pi.
Home Intrusion Detection System Andre, Irena, Priyanka, Balta.
DHP Agenda: How to Access Web Interface of the DHP-1320 on Access Point Mode How to Access Web Interface of the DHP-1320 on Router Mode How to Change.
DPNM Lab., POSTECH 1/8 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
Introduction :  In the beginning, the calculator is the basic idea of computers out, then that arrived at the large computers.  in1980 or late seventies.
Servo Motors Precise angular motion. Servo Motors Raspberry Pi Webcam Interfaces Keeping track of things.
Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schiffli.
Bonus EV3 Programming Lessons LEGO MINDSTORMS EV3Dev and Raspberry Pi Communicator.
Bonus EV3 Programming Lessons LEGO MINDSTORMS ev3dev and Raspberry Pi IR Light controller.
HOW TO INSTALL WINDOWS 7? This step-by-step guide demonstrates how to install Windows 7 Ultimate. The guide is similar for other versions of Windows 7.
Embedded Software Design Week I Class Introduction Course Coverage Hardware Platforms * Some of this slides are inspired/copied from Dr. Mark Brehob’s.
Information Systems Technology Ross Malaga A Copyright © 2005 Prentice Hall, Inc. A-1 INSIDE YOUR COMPUTER.
Rasberry pi 2 model B. Selve computeren i rasberry pi’en.
Introducing the Raspberry Pi Nauru ICT Department April 2016.
SEPTEMBER 8, 2015 Computer Hardware 1-1. HARDWARE TERMS CPU — Central Processing Unit RAM — Random-Access Memory  “random-access” means the CPU can read.
Raspberry Pisentation. Power Micro SD card slot Ethernet Jack Video 4 Pole Screw Hole 4 Screw Hole 3 Screw Hole 2 Screw Hole 1 Camera Ribbon Input.
PCs ENVIRONMENT and PERIPHERALS Lecture 4. An expansion cards: - An expansion card (expansion board) is an electronic circuit board that adds more functionality.
Farhin Al Masud What is Raspberry PI? o Low cost, credit card sized computer o SOC (System on a chip) o Founded by Raspberry PI foundation.
Raspberry PI 2 Installation & Demo App By Wayne Keadle.
An introduction to the Raspberry Pi. What is a Raspberry Pi?  University of Cambridge’s Computer Laboratory  Decline in skill level  Designed for education.
RaspberryPi.
SCRATCH Weather Dashboard
Building Raspberry Pi Controllers with Python
Introduction to Raspberry Pi & Kano
Workshop on Raspberry Pi 3
Computer System Laboratory
Ira Goldstein Siena College
RASPBERRY PI WORKSHOP.
Implementation of Embedded OS
IoT 101 with Raspberry Pi and Azure
Computer System Laboratory
By: Brian Johnson, AB6UI 20 Sept 2017
D-STAR InfoCon 2015 at Big Spring TX Part 3 – Doing More With D-STAR
A microcontroller Raspberry Pi 2 Model B V1.1 RPi
WORKSHOP LED CONTROL.
Programming with Arduinos and Rapsberry Pi
Lighting LEDs with a RASPBERRY PI
INTRODUCTION TO THE RASPBERRY PI Darrell Davis KT4WX
Engineering Innovation Center
Creating a Media Server with a Raspberry Pi
Raspberry Pi.
Raspberry Pi Pi 2 Model B.
An introduction to the Raspberry Pi
Raspberry Pi. Introduction to Raspberry Pi Python Electronics Linux Outline.
Presenter: Nicholas Exner
What is a Raspberry Pi? The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard.
Reading / Writing analogue devices LED + Game-controller
Beginning Raspberry Pi
Emphasis: Get it working and do stuff!
Setting up a Webcam on a Raspberry Pi
IoT System Development with Raspberry Pi and Django
Presentation transcript:

Raspberry Pi Project Control Your Home Lights with a Raspberry Pi

What’s Raspberry Pi

Raspberry Pi is a single-board computer capable of doing everything you’d expect a desktop computer to do. Raspberry Pi comes in 4 different models A, B, B+ and 2 Raspberry Pi 2 is the latest and the fastest.

Raspberry-pi B+ technical specifications CPU 700 MHZ Memory Card Slot fits micro SD card Audio Output GPIO Connector 40 Pin Camera connector Display connector

Raspberry-pi B+ technical specifications 4 USB Port Ethernet socket HDMI port Memory 512 MB of RAM Power Micro USB socket 2.0 OS boots from Micro SD card

Hardware required for the project RaspberryPI TV/Computer Monitor HDMI Cable WIFI adapter Channel relay Female to Female Jumper Cable 16 GB micro SD card Power Outlet Electric Cables Keyboard & Mouse

OS and Web Server OS IS RASPBIAN Apache web server

Languages Python PHP HTML

OS Installation and Configuration Download and install SDFormatter software Format your micro SD card using SDFormatter software Download and Install Win32DiskImager software. Download the OS Image Run the Win32DiskImager and select the OS Imagefile. Select the micro SD card then Click Write.

OS Installation and Configuration Once completed remove the micro SD card and insert it into your Raspberry Pi Connect your Raspberry Pi to TV or computer monitor using your HDMI cable. Power up your raspberry Pi. You will be shown raspi-config on first booting into Raspbian.

OS Installation and Configuration

Click option 2 to change the password Click option 4 to change language and time zone Click on advanced option to enable ssh just incase you want to ssh to Raspberry Pi Once you finish with your changing click finish to take you to the desktop.

OS Installation and Configuration Connect to Internet Insert your WIFI adapter and install the driver or connect directly to your router or switch using Ethernet cable.

Web Server Installation Using LXTerminal type command below 1- Ifconfig To get an IP address for your Raspberry Pi 2- sudo apt-get update To update your system’s package 3- sudo apt-get upgrade To upgrade all installed packages to their latest versions.

Web Server Installation Using LXTerminal type Once web server installed, go to web browses and type your Raspberry Pi IP address or type to test your web server. If you get It Works! That means your webserver is working fine.

Install PHP To install PHP type:

Project Connect your Raspberry Pi GPIO to your 8 Channels relay Raspberry pi has 40 GPIO Pin, 26 can be used as digital inputs or outputs. 14 can be used for power Channels relay had 10 Pin 8 for each relay and 2 for power

Project

Since I’m using only 8 channels relay, I used 10 GPIO Pin, 8 digital I/O, 1 5v, and 1 ground.

Connecting RaspberryPI GPIO to 8 Channels Relay RaspberryPI GPIO8 Channels Relay GRN GPIO26IN1 GPIO19IN2 GPIO11IN3 GPIO13IN4 GPIO27IN5 GPIO26IN6 GPIO10IN7 GPIO09IN8 5VVCC

Python Codes import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(26, GPIO.OUT) GPIO.output(26, True) GPIO.output(26, False) GPIO.setup(19, GPIO.OUT) GPIO.output(19, True) GPIO.output(19, False)

Python Codes (Continuous) GPIO.setup(11, GPIO.OUT) GPIO.output(11, True) GPIO.output(11, False) GPIO.setup(13, GPIO.OUT) GPIO.output(13, True) GPIO.output(13, False) GPIO.setup(27, GPIO.OUT) GPIO.output(27, True) GPIO.output(27, False)

Python Codes (Continuous) GPIO.setup(22, GPIO.OUT) GPIO.output(22, True) GPIO.output(22, False) GPIO.setup(10, GPIO.OUT) GPIO.output(10, True) GPIO.output(10, False) GPIO.setup(9, GPIO.OUT) GPIO.output(9, True) GPIO.output(9, False)

PHP codes

PHP codes (Continuous)

Test PHP codes To test you PHP code, save the PHP codes on /var/www/ and call it index.php then go to the internet browser and type your Raspberry Pi IP address or type You should see your PHP codes as designed and you are able to control the light locally.

To control the light form anywhere is the world. Using the internet browser type: to get your public IP address. Set up port forwarding on your router Type your public IP address from different LAN to test you PHP codes. After testing, Create simple HTML codes to hyperlink your public IP address

HTML Codes Untitled Document

After creating your HTML codes you need to host you website. I used godaddy to host my site. Connect your 8 channels relay to your 8 power outlet Each relay have negative and positive that they need to be connected to the negative and positive in the power outlet.

Connecting 8 Channels Relay to Power outlet.

Final Project Video