360 likes | 560 Views
University of Bahrain College of Engineering Department of Electrical and Electronics Engineering . EEG490 Senior Project Muna Al- Omari Taqua Salaheldin. Supervised by: Dr. Mohab Mangoud. Home automation using mobile phones and RF radios. Why Home automation . Objective.
E N D
University of Bahrain College of Engineering Department of Electrical and Electronics Engineering EEG490 Senior Project Muna Al-Omari Taqua Salaheldin Supervised by: Dr. MohabMangoud Home automation using mobile phones and RF radios
Objective. • Introduction. • Main idea. • wireless serial communication. • Equipment used. • Design implementation. • Conclusion. • Future scope. • Questions. Overview
Main Idea Device unit 1 Portable unit Device unit 2 Device unit 3 Device unit 3
Main idea Device is ON
Arduino. • GPRS shield. • PIC microcontroller. • RF transceivers. • RF 433 MHz • RF 315 MHz • RF 2.4 GHz • Switching Relays. Equipment used
Arduino board contains everything needed to support the microcontroller; it has 14 digital input/output pins, 6 analog inputs, a 16 MHz crystal oscillator, a USB connection. Arduino
GPRS Shield • The Arduino GPRS/GSM Shield is a physical add-on to Arduino. • Comes with a library to send/receive SMS and voice calls. • GPRS Shield is configured and controlled via its UART using simple AT commands. Arduino GPRS/GSM Shield
PIC referred to "Peripheral Interface Controller“. • Designed for embedded application. • PICs are popular due to: • Their low cost. • Wide availability. • Large user base. • Availability of low cost or free development tools. • Serial programming . Pic microcontroller Microcontroller
PIC16F877A Pic microcontroller PIC16F877A Pins Assignment
RF 433 MHz transceiver • receiver and the transmitter has 8 pins. • The transmitter manufactured with a transmit power of 1W (10m). • Operating frequency of 433.92MHZ and operating voltage of 5V. RF transceivers RF 433MHz Receiver RF 433MHz Transmitter
RF Transceiver • RF 315 MHz transceiver • receiver and the transmitter has 3 pins. • Transmitter can be used to transmit signal up to 100 meters • Operating frequency of 315 MHZ and operating voltage of 5V. RF 315 MHz receiver RF 315 MHz transmitter
RF 2.4 GHz Transceiver • Operation in the world wide ISM (Industrial, Scientific and Medical) frequency band at 2.400 - 2.4835GHz. • configured and operated through a Serial Peripheral Interface (SPI). • Supplied with 3.3 v. • The SPI interface uses four pins, CSN, SCK, MISO, and MOSI for data transmission and reception. RF Transceivers nRf24L01- 2.4 GHz RF transceiver
RF Transceivers • RF 2.4 GHz Transceiver • RF 2.4GHz module is built into many different microcontroller devices, such as Arduino. connect the module pins from 2.4 GHz transceiver to Arduino
A small current energizes the relay, which closes a gate, allowing a large current to flow through. Switching Relays Switching Relay
There are two types of contacts in the switching relay: • Normal open contact NO • Normal close contact NC Switching Relays
USART SPI Serial communication
USART stands for Universal Synchronous Asynchronous Receiver Transmitter. Takes bytes of data and transmits the individual bits in a sequential fashion. At destination, second USART reassembles the bits into complete bytes. least significant bit first USart
One pin can be used for transmission and another pin can be used for reception. USARTs must be set for the same bit speed Full duplex operation. USART
SPI stands for Serial Peripheral Interface. • SPI is a Synchronous protocol. • It has a clock pulse along with the data. • Only the master device can control the clock line. • Data typically changesduring the rising or falling edge of SCK. • SPI is a Master-Slave protocol. • One master device (usually a microcontroller). • Operate with one or more slave devices . SPI protocol
SPI protocol • Full duplex mode. • Data is always “exchanged” between devices. • Each device has two data lines, one for input and one for output. Master connected to single slave and multiple slaves
Modes Modes of operation SMS Mode Switch Mode Outdoor usage Indoor usage
SMS mode – flow chart SMS mode chosen SMS received? Extract key number No Yes Broadcast Key # FB signal received? Send FB SMS No Yes
Command signal to Device unit Mode Select switch PIC 16 Microcontroller 3-bits link 433 MHz Transmitter SW1 315 MHz Receiver SW2 GPRS Shield + Arduino SW3 Feedback signal from Device unit 2.4 GHz Transmitter SMS mode Feedback Signal RC unit layout back
PIC 16 Microcontroller Signal From portable unit Relay 433 MHz Receiver Arduino 2.4 GHz Transmitter Signal To portable unit DU with SMS feedback
PIC 16 PIC 16 433 RX 433 TX Arduino 2.4 TRX 315 RX GPRS 2.4 TRX SMS Mode feedback 433 RX 2.4 TRX back
Command signal to Device unit Mode Select switch PIC 16 Microcontroller 3-bits link 433 MHz Transmitter SW1 315 MHz Receiver SW2 GPRS Shield + Arduino SW3 Feedback signal from Device unit 2.4 GHz Transmitter SMS mode Feedback Signal RC unit layout
PIC 16 433 RX 2.4 TRX Switch mode feedback PIC 16 433 TX 433 RX GPRS 315 RX 315 RX 315 TX
Successfully able to remotely control three (multiple) devices. For indoor control RF communications is used without the use of cables or wires at all. • Feedback signal is received from home appliances to indicate their status via RF radios. • SMS control has been successfully implemented; users have an access to control home appliances from their cell phone 24/7 worldwide. • Feedback SMS is received from home devices when their status is changed by a command SMS. • Managing to program two different Microcontrollers from PIC and AVR families using different software. In addition, three different RF transceivers are employed effectively. Conclusion
Using sensors to develop a Smart Home. 2.4 GHz and Zigbee transceiver for full duplex and channels options. More specialized product. Tablets and smart phones interface App. Future scope
لو كنت أعرف فوق الشكر منزلة أعلى من الشكر عند الله في الثمن إذا منحتكها مني مهذبة حذوا على حذو ما أوليت من حسن Thank you!
Questions “To get answers of life , ask questions” ― Sukant Ratnakar