Friday, March 25, 2011

Circuit Construction

The PIC microcontroller circuit is given by my supervisor once the simulation is succeed. It was designed by Mr Mazran as a starter kit for all of the students who are supervise by him. Other than that, to make the model more useful, I have made a switch circuit in order to control the PIC microcontroller. It is infra red transmit and receive circuit which is using the basic component such as IC 555 timer for transmitter and IC 4069 as well as relay in the receiver circuit. The circuit will be function when the switch is turn on at the transmitter and the signal of infra red will be receive at the receiver. Once the signal is transmitted, the PIC microcontroller will turn on. 


Figure 1: IR Transmitter Switch Circuit

Figure 2: PIC microcontroller Circuit


Figure 3: IR Receiver Switch Circuit


Infrared remote controls are using a 32-56 kHz modulated square wave for communication. These circuits are used to transmit a 1-4 kHz digital signal (OOK modulation) through infra light (this is the maximum attainable speed, 1000-4000 bits per sec). The transmitter oscillator runs with adjustable frequency in the 32-56kHz range, and is being turned ON/OFF with the modulating signal, a TTL voltage on the MOD input. On the receiver side a photodiode takes up the signal. The integrated circuit inside the chip is sensitive only around a specified frequency in the 32-56 kHz range. The output is the demodulated digital input (but usually inverted), just what we used to drive the transmitter. When the carrier is present, this output is usually low. When no carrier is detected, the output is usually high.

PLC Modem Connection

This type of Power Line Communication Modem is using IC TDA 5051. This IC is a modem IC, specifically dedicated to ASK transmission by means of the home power supply network, at 600 or 1200 baud data rate. It operates from a single 5 V supply.It is able to control home appliances and provides full digital carrier generation and shaping. The block diagram of the IC and the pin connection are as below:

Figure 1: Block Diagram
Figure 2: Pin Connection of the IC


This is the actual connection of the PLC modem trainer which is available in the lab room. 

Figure 3: The connection of PLC Modem

Figure 4: The actual trainer

At the same time, I need to configure the PLC modem by using Hyper Terminal. All of the connections are as below. The modem is connected to the laptop using serial port and was set to comm 3 in order to connect to the hardware. Once the signal is transmitted, the lamp will turn on simultaneously.

Figure 5: The connection of Hyper Terminal and hardware

Tuesday, February 8, 2011

Project Progress

My project requires switch that will turn on and off the appliances. In order to turn on and off the appliances, the appliances need to have their own frequency.

On Jan,4th 2011, I have got my Power Line Communication modem at Industrial laboratory which provide the modem trainer. The trainer consists of modem that able to accomplish my project soon. The transmitter of the modem have viewed as below :-

FE 03 3F 3F FD
FC 03 3C 07 C6

Meanwhile, the receiver of the modem have viewed as below :-

FE 03 5C 01 A0 ; one device transmitter end to
FE 03 40 01 BC ; one device is status fail

The transmitter and receiver viewed the details of the operation of the trainer after the button start have pushed to turn on. It gives the output of the appliances operation such as fan and light. The picture below is the basic diagram of modem connection with the switch and trainer.

Wednesday, January 12, 2011

Power Line Communication Modem

Just got the power line communication modem from Electronic Laboratory. The pictures are as below:-



Once the modem is available, I will be able to proceed with the study of modem operation and configuration by using Hi-Any Home 1000 user's manual.

PSM 1 Presentation

The PSM 1 presentation was held on 26th of November 2010. Every final year student need to present their project proposal in order to proceed their projects..

The new running light circuit

Bill of Material


Bill Of Materials For running light cct.DSN
Design Title
:
running light cct.DSN
Author
:
Revision
:
Design Created
:
Wednesday, September 01, 2010
Design Last Modified
:
Monday, January 10, 2011
Total Parts In Design
:
21
9 Resistors
Quantity:
References
Value
Order Code
8
R1-R8
470

1
R9
47k

2 Capacitors
Quantity:
References
Value
Order Code
2
C2, C3
15pF

1 Integrated Circuits
Quantity:
References
Value
Order Code
1
U1
PIC16F877A

8 Diodes
Quantity:
References
Value
Order Code
8
D1-D8
LED-BIBY

1 Miscellaneous
Quantity:
References
Value
Order Code
1
X1
CRYSTAL

 
Monday, January 10, 2011  4:43:47 PM


Wednesday, September 1, 2010

Running Light Circuit-Proteus..

Design a running light circuit using Proteus Software


After simulation, click Tools>Bill of Materials>HTML output. BOM used for list of component in the circuit.


Monday, August 30, 2010

Basic Running Light Coding

//running light

#include <16f877a.h>
#use delay(clock = 20000000)
#fuses hs,noprotect,nowdt,nolvp

#byte PORTB=6
#byte PORTC=7

main()
{
   set_tris_b(0);
   set_tris_c(0x01);
   do{
      if (portc==0)
      {
         portb=0b01010101;
         delay_ms(1000);
         portb=0b10101010;
         delay_ms(2000);
      }
      else
      {
         portb=0xFF;
         delay_ms(1000);
      }
   }while(1);
}

Output for the coding..


Compile




Thursday, August 12, 2010

Summary of the Literature Review

 Power Line Communication technology able to control all the home appliances through domestic power line socket. From the IEEE Xplore journals that act as a reference, I am able to add extra information in my final year project. Power Line Communication is used to utilize a domestic power line as a communication cable. The PLC provides high bit-rate data services by using the power grid residing in the vast infrastructure already in place for power distribution, which means that the potential effect of the service could be much higher than that of any other wire line alternative. PLC also easily installed in an existing residence.

Other than that, my project also will be added by PPCOM which is PLC Power-Controlled Outlet Module, the embedded home server and the remote control. It is just easy way by only plug in the home appliances to the PPCOM socket and automatically control without making any additional setting. PPCOM is able to combine multiple AC power sockets. 

In addition, I also would like to use Solid State Relays (SSR) to switch each socket on or off for an electric home appliance. SSR is able to replace mechanical relays because of their many advantages such as miniaturized configuration, elimination of contact bounce, low-energy power consumption, decreased electrical noise and compatibility with digital circuit and high speed switching performance. 
        
Other than that, if needed, I would like to develop a HAT (Home Appliance Translator) to enable conventional appliances without telecommunication capabilities to connect home networks. Users can remotely monitor and control conventional appliances by using HAT and HAT Subs. It is more easily and cheaply without information appliances, new communication infrastructures or complex setting. The HAT will communicate to the PLC that utilizes power lines as the communication medium.


Thursday, August 5, 2010

PSM Proposal..

Already submitted by this morning..August 5, 2010 on week 4.



UNIVERSITI TEKNIKAL MALAYSIA MELAKA
FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

KERTAS CADANGAN PROJEK SARJANA MUDA

  1. CADANGAN PROJEK



I.           Tajuk Projek :
HOME APPLIANCES CONTROL VIA POWER LINE COMMUNICATION (PLC)








II.        Nama Pelajar :
NADIAH  BINTI MD RHADZI









III.      No. Matrik Pelajar :
B
0
2
0
8
1
0
1
0
6
IV.                Kursus :
BENW




Nama Penyelia 1:  ENCIK MAZRAN BIN ESRO




Nama Penyelia 2 (Jika ada) :









……………………………………………...
……………………………………………...
(Tandatangan Pelajar)
(Tandatangan Penyelia & Cop)














Nama
: Nadiah binti Md Rhadzi
Tarikh
: ……………………………....




Tarikh
: ……………………………....
Samb. Tel
: ……………………………....












  1. RINGKASAN PROJEK
Ringkasan projek yang dicadangkan tidak melebihi 200 patah perkataan

The project title is Home appliance control via Power Line Communication (PLC) that will be using PLC modem to connect and control between appliances to a PIC controller. Once the cable of home appliances are plug in to the PLC modem socket, the PIC is able to control the PLC modem and turn on the appliances such as fan, television and lights remotely. Home appliances network able to connect to AC power outlet and control by Power Line Communication (PLC) that have the ability to send high-speed digital data over the power lines between substations and homes and offices.



  1. PENYATAAN MASALAH DAN OBJEKTIF PROJEK
Sila nyatakan secara jelas masalah dan objektif untuk projek yang dicadangkan.

Compare to the current problem, utilities need to control the electrical equipment manually and do not have remote to control their appliances when they are outside of their home or the switch is away from the user actual situation. There are many methods such as wireless, wired Mod bus, RS 485, CAN and so on. Another alternative method to reduce wire harness at home or office by using existing power outlet. Instead, there are several objectives as follows:

-       To control home appliances remotely.
-       To apply an alternative method besides the wireless communication system where the data transmitted using existing power lines.
-       To reduce wire harness using existing power outlet.
-       To apply the PLC modem with PIC, switch and home appliance.



  1. SKOP KERJA
Terangkan secara jelas skop kerja projek.

The project will use PIC as the controller, PLC modem for wireless network, remote switch to control the appliances, AT command for PLC advanced configuration to control a modem and RS 232 daughter card inclusive in the PLC modem.


  1. METODOLOGI PROJEK
Terangkan prosedur dan kaedah yang akan digunakan untuk mencapai objektif projek.
This project using remote circuit, PLC modem and the PIC controller. The PIC will use C programming to control the remote and PLC modem. Meanwhile, PLC modem require AT command configuration in order to connect to the home appliances. In Part 1 will explain about software development for PIC and PLC, Part 2 for hardware development and Part 3 for interface of the project.
                       Part 1 Software             Part 2 Hardware                 Part 3 Project


  The diagram of connection between PLC modem, PIC controller and the home appliances.



  1. JANGKAAN HASIL
Bincangkan jangkaan hasil untuk projek yang dicadangkan.

From the expectation, this hardware will be using PLC modem to connect and control between the home appliances to a controller using PIC controller. Once the project success, all the consumer will able to control all of their electrical appliances in a single remote.



  1. RUJUKAN
Senaraikan rujukan yang digunakan dalam projek yang dicadangkan..

 [1] UART/RS232/RS485/USB/Ethernet over Power line Communication Transceiver,
       Linksprite Technologies,Inc, January,2009

 [2] July 24, 2010. SparkFun Electronics Powerline Communication Modem PLC-UART.
                        http://www.sparkfun.com/commerce/product_info.php?products.

 [3] July 25, 2010. Power Line Modem.
            http://www.anglia-m2m.com/power_line_modems.asp

Senaraikan aktiviti-aktiviti utama bagi projek yang dicadangkan. Nyatakan jangka masa yang diperlukan bagi setiap aktiviti.

2010
Project Activities:
July
August
September
October
November
Disember

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20




Find PSM project:
Taklimat PSM







Cuti Pertengahan Semester 1






Cuti Ulang Kaji
Peperiksaan Akhir Semester 1
Cuti Akhir Semester 1
- Discuss with supervisor.
- Research on PLC, PIC theory.
- Project registration.
Proposal submission













Literature Review Summary













- Find the journals, references and articles.





Research on the Software :













- study on CCS C program & Simulate using Proteus


- PIC - start with simple program LED



- AT command





- RS232 daughter card





PCB Design













PSM 1 Seminar.














Preliminary report submission to supervisor.













Cuti Ulang Kaji
Hardware Construction:













- Remote circuit
- PIC circuit
- RS232 circuit


I. PERANCANGAN PROJEK


Senaraikan aktiviti-aktiviti utama bagi projek yang dicadangkan. Nyatakan jangka masa yang diperlukan bagi setiap aktiviti.



2011

Project Activities:
January
February
March
April
May


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

Hardware Construction:




Cuti Pertengahan Semester 2










Cuti Ulang Kaji
Peperiksaan Akhir Semester 2



- Remote circuit

- PIC circuit

- RS232 circuit

Software development:

















- PIC programming

- AT command

- Burn to PIC

Hardware development:

















- PIC circuit



- Remote circuit



- PLC socket



- Prototype



Seminar PSM 2

















Revision for PSM final report

















Submit PSM draf final report to supervisor

















Submit PSM report with book cover to faculty