Bulb Control using Web App with Raspberry Pi

13
By Deligence Technologies www.deligence.com Bulb Control using Web App with Raspberry Pi

Transcript of Bulb Control using Web App with Raspberry Pi

Page 1: Bulb Control using Web App with Raspberry Pi

By Deligence Technologies www.deligence.com

Bulb Control using Web App with Raspberry Pi

Page 2: Bulb Control using Web App with Raspberry Pi

WHAT WE WILL COVER?Hardware Used• Raspberry pi 3•Relay Module•12 led BulbsSoftware Used

Project Description

Video Presentation

Page 3: Bulb Control using Web App with Raspberry Pi

Hardware UsedRaspberry pi 3Relay Module12 led Bulbs Raspberry Pi 3 Pin Block Diagram:

Page 4: Bulb Control using Web App with Raspberry Pi

Raspberry Pi 3

This is the latest version of raspberry pi. In this we have inbuilt Bluetooth and wi-fi, unlike previously we have to use Wi-Fi dongle in one of its usb port. There are total 40 pins in RPI3. Of the 40 pins, 26 are GPIO pins and the others are power or ground pins (plus two ID EEPROM pins.)

There are 4 USB Port and 1 Ethernet slot, one HDMI port, 1 audio output port and 1 micro usb port and also many other things you can see the diagram on right side. And also we have one micro sd card slot wherein we have to installed the recommended Operating system on micro sd card.

Page 5: Bulb Control using Web App with Raspberry Pi

Raspberry Pi 3There are two ways to interact with your raspberry pi. Either you can interact directly through HDMI port by connecting HDMI to VGA cable, and keyboard and mouse or else you can interact from any system through SSH(Secure Shell). (For example in windows you can interact from putty ssh.)

Page 6: Bulb Control using Web App with Raspberry Pi

Relay Module

We have used 3 four channel relay module to control 12 led bulbs. As we are working with 220 volt ac we have to make sure that our connection are properly connected.

Page 7: Bulb Control using Web App with Raspberry Pi

Circuit Diagram for Relay and Raspberry Pi

For complete isolation with microcontroller we can wire up our circuit as below. Here we have to remove jumper used in jd-vcc and vcc.

Page 8: Bulb Control using Web App with Raspberry Pi

Bulb Connection with Relay and Raspberry Pi 3Here we are connecting our relay to one single Bulb. In this there is no optical isolation we can make it by removing jumper from vcc and jd-vcc. And by giving separate power supply to Jd-VCC as shown in previous slide.

Page 9: Bulb Control using Web App with Raspberry Pi

As below the diagram we’ve just shorted all the com pin of relay and from NO we've taken wire which is going to the entire bulbs one terminal and from the second terminal of bulb it will go to the ac main and the hot line of the ac will be coming from the shorted com pin of relay.

Page 10: Bulb Control using Web App with Raspberry Pi

Software Used -

Raspbian OS: This is the recommended os for raspberry pi. You can also installed other OS from third party. Raspbian OS is debian based OS. We can install it from noobs installer.

Python Idle: This is the software we get in raspbianos. For this project we have used python script.

Pagekite: This is the tool to make a local website publically accessible. We’ve used this to make our local website and ssh servers accessible to any network.

Page 11: Bulb Control using Web App with Raspberry Pi

Project DescriptionIn this project we are going to light the bulb from remote location using web services. In this we are going to use one raspberry pi interfacing with 12 bulb using 3 relay module with low level trigger. We can trigger the relay from anywhere in the world using a website in which we’ll have 16 GUI Button. In each trigger of relay the correspondence Bulb or group of bulb will glow.You can get the code of this demo at https://github.com/DeligenceTechnologies/Bulb-Control-using-Web-App-with-Raspberry-Pi

In case of any query - you can contact us at info [@] deligence.com and for Sales inquires - please contact us at sales [@] deligence.com

Page 12: Bulb Control using Web App with Raspberry Pi

Connect with us –

www.deligence.com/contact-usEmail : [email protected] : +91 9910130340

Page 13: Bulb Control using Web App with Raspberry Pi