Introduction: Blue Smart Socket- Device/App(smart Surge Protector)

About: Working as Sr.Software Engineer in .Net,Java also Mobile developer.

Blue Smart Socket is a smart power socket that can be controlled with Blue Smart Socket, a smart phone app build for the device.

Aim of the project is to control the Home appliances remotely, control the light based on visibility and control the fans and A/C based on current room temperature.

Why we need?: There is a need for such device as we don't often see now a days. if we can make device such as this, people can use and save lot of money on energy. Many times, when we leave home, we forget to turn off the lights and fans. By letting the app control your devices saves lot of energy.

Features:

1. Simple to use app, just open the app and turn on and off device that you want to control. (Voice enabled app is in beta stage).

2. Operates on 5V, it is safe.

3. Components are inexpensive, device costs less than $15 with 4-6 sockets on board.

4. Connect your fans/ac to Temperature enabled sockets(4). They will turn on when room temperature is too hot.

5. Connect your light to Light enabled sockets(5). They will turn on when room is darker or visibility is low.

6. All Sockets are demand sockets. You can turn them on when ever you need.

7. Free android app. can be downloaded.

8. LCD status shows the current status of each socket if they are on or off.

https://play.google.com/store/apps/details?id=rana...

or

http://bss.novainfosys.com/

Please check out my two videos

Other see below

Note: This is not a toy. Device uses 250AC/110AC, not recommended for age below 18.

HIGH VOLTAGE: HAZARD OF ELECTRICAL SHOCK It calls your attention to items or operations that could be dangerous to you and other persons operation this equipment.

WARNING: Indicates a potentially hazardous situation which, if not avoided, can result
in serious injury or death

Though it is a working example, I do not warrant any of the components or software and I am not responsible for any damages either persons or equipment.

Step 1: Required Theory Concepts

PIC16689 microcontroller has a built in USART hardware that
allows to communicate with a wide range of serial devices such as Bluetooth, memory chips, LCDs, personal computers, etc.

USART uses serial communication. In Serial Transmission only one bit of a byte is transmitted at a time. There is only one communication line, thorough which bits are transmitted sequentially. The key challenge in a serial data link is to maintain the synchronization between the transmitter and the receiver. The asynchronous method uses a start and stop bit protocol to synchronize the two ends. Each character byte is sent in a frame consisting of a start bit , followed by the character bits, followed (optionally) by a parity bit, and finalized by one or more stop bits. The sender and receiver have to be initialized to use the same data rate, number of data bits, and number of stop bits.

As shown in above diagram, once the communication channel is made between Smart Phone and Bluetooth device(Paired), Smartphone can send data to the Bluetooth device through serial wireless communication. Bluetooth will communicate with PIC16f689 microchip with microcontroller USAT hardware and program the microchip act according to the data.

*ref http://embedded-lab.com/

Step 2: Parts/Tools/Gatherings

Following parts are need for full version of Blue Smart Socket

1.Few Resisters for draining device current.

2.PIC16F689 microcontroller

3.Two capacitors of 22uf.

4.20Hz oscillator

5.Couple of LEDs

6.POT for LCD backlight

7.Light sensor LDR

8. LM35DZ Temperature sensor

9. Atleast, one relay 5V 10Amp 110AC/250AC you can add upto 5 relays

10. A breadboard

11. A Bluetooth module HC06/05

12. Hitachi HD44780 LCD

13. Couple of connection wires as needed

14. A 5V power adapter or USB adapter

15. Cable for USB adapter

Tools:

For programming Microchip MPLAB

For Simulation Proteus

Gatherings:

Datasheets are very useful referee to pic datasheets

www.microchip.com

Please see image for reference.

Step 3: Micro Controller Program/Chip Burning

Download attached .hex file and program PIC16F689.

Step 4: Simulation/Circuit Setup and Connections

It is always good practice to simulate the code. You can use Proteus software to simulate the code. I feel that it is worth instead of doing everything on in circuit. You can save lot of time.

Follow the above image to connect all the components together as shown in picture. Connect empty pins to ground.

See Data sheet from step 2 for micro controller pin numbers and power connections.

Step 5: Blue Smart Socket App

Go to www.play.google.com Android App store and install Blue smart Socket or

Click here

you can also go to www.bss.novainfosys.com and download the app and install.

App must be used only with Blue Smart Socket device that is created above.

Step 6: Final Step

Power the board and Run the installed Blue Smart Socket App on your android device. First time, It will ask for few permissions. Say yes to both.

At this time, Bluetooth device on board should be blinking. It means it is ready for pairing. Go back to app and click search device button on the screen. Search device brings all the Bluetooth devices in around. select HC05/06 from the list. If successfully paired, LED blinking stops and LED glow continues.

Now, device is ready for communication. You may turn on the sockets and see the output on the board.

Please see my video for detailed description.

Also, see other project entries on this contest

Step 7: Voice Controlled Smart Fan- Fine Example PCB Version

Voice Controlled Smart Fan- Fine Example PCB Version

Voice controlled smart fan is smart phone/Blue Smart Socket app operated portal fan

Aim of the project is to control the fan remotely with voice control, control the fan based on speach made to mobile phone control the fans.Senior citizens still think that smart phone is too complex and too many buttons. By allowing them speck and control the fan let them use such devices.

See full video how it works

https://www.youtube.com/watch?v=dXBkUjZVcdc

Microcontroller Contest

Participated in the
Microcontroller Contest

First Time Author Challenge

Participated in the
First Time Author Challenge

Tech Contest

Participated in the
Tech Contest

Formlabs Contest

Participated in the
Formlabs Contest