Sunday, 21 December 2014

FYP2 WEEK 11

Title: Maintenance and testing

  • PROCEDURE
  •   Place the DPDT Relay, relay connection circuit, and PIC circuit on the surface of black perspective board to ensure that all organized and neat.
  •  CD-ROM is placed in front  of the house t to demonstrate the real gate lock system which placed on every household.
  • Bluetooth Module circuit is mounted on a wall of cardboard using double-sided tape.
  •  After all the circuits are organized, testing the whole system to see the output is functioning. The output will be a solenoid.
  •  Open up an Android application on the smartphone, make a pairing and send command A. If the circuit is functioning the gatw will be unlocked and close after receive command B.
  • After first testing is done, next the battery supply of 12 volts is used to see whether the connection of circuit is functioning or not if there is any power failure occur.
  • On DPDT relay, there are two wire of positive and negative that is used to connect with battery supply. Red wire is connected to the positive pole and black wire is connected to the negative pole.
  • Next, unplug both of the adaptor and we can see that the circuit is still functioning because there is an alternative supply by using battery.
  •  Overall, the system runs smoothly after placing all the circuit into the house model to make one working system although there is some minor error during testing.



FYP2 WEEK 10

Title: Make modifications to the house model

The modifications are:
        -Draw windows to make it like a real house
        -Create a door
        -Modified on the roof
    -Make the gate model and also the floor of model 
        -Placed a display stand of card holder at the front of the house model to show the title 

                               












FYP2 WEEK 9

Title: Create a model of Fyp Project

Steps of making house model
·         Find some examples of house model on the internet using color cardboard.
·         The concept of the house will be in white and blue theme to make it more             attractive.
·         Buy the materials needed at bookstore
·         Firstly, design a wall for the front and the back of the house
·         Attached Velcro so that the wall can be opened up to see the interior side
·         Make a base
·         Lastly, make a roof and the roof is removable. 




Tuesday, 18 November 2014

FYP2 WEEK 8

Title: Testing Android application (S2 Bluetooth Terminal)



-      - To test the Android application of S2 Bluetooth Terminal whether it is compatible with the Bluetooth Module.


Interface between Bluetooth Terminal and Bluetooth Module

PROCEDURE
This process assumes the application of ‘S2 Bluetooth Terminal’ has been installed on smartphone and the type of Bluetooth module used is ‘HC-05’. Below is the procedure for communicating virtual communication between ‘S2 Bluetooth Terminal’ and ‘HC-05’ Bluetooth module.

Bluetooth settings

This is the first screen we will see when we want to let the virtual communication begins. Since ‘S2 Bluetooth Terminal’ is all about connecting phone to the Bluetooth module, the very first step to do is to search for Bluetooth device that we want to talk to. Sometimes we would find more than one device because of other Bluetooth devices around us. We need to find out which one is our device which has been set to the Bluetooth module. If our device does not appear on the phone screen, we should check if Bluetooth module is powered and discover able.

Bluetooth pairing request


            After found the device that we want to connect, tap on the ‘HC-05’ device and the Bluetooth pairing dialog will pop up. This is the part where we enter Bluetooth module’s PIN to begin pairing. The PIN act as a password and the PIN set will be ‘1234’. Some modules will have ‘0000’ but it is less common. Type it in and hit “OK”. If the PIN is right, pairing is done.

S2 Bluetooth Terminal’ application


        After pairing request is successful at the Bluetooth settings, we need to open up the ‘S2 Bluetooth Terminal’ application to make a connection with Bluetooth module. This application is terminal software for communication with the Bluetooth device by using SPP (Serial Port Profile) and equivalently liked to a serial port line connection including transmitter and receiver signal. Once again we need to select ‘HC-05’ device to make a connection. Then, the ‘connected to HC-05’ will pop op on the screen indicated that the connection between application and HC-05 Bluetooth module is successful. 

Successfully connected device


            As shown Figure 4.3 above, if we managed to add our Bluetooth device to application of ‘S2 Bluetooth Terminal’ we will see one new device, namely the device we added at the top of the phone screen. This time it should connect successfully indicated by a dialog of “connected: HC-05”. If not, repeat the pairing process.

Result and Analysis

            First of all, power on the Bluetooth. Then, at the Bluetooth settings, search for a device of HC-05 and begin the pairing with this device. The Bluetooth module will ask for password. Enter the correct password and it should start pairing. Later, take the smartphone and open up the Android application to let the virtual communication begin between the Bluetooth module and the smartphone. Hit the connect button shown at the Android application it should start connecting. If connection could be established the red LED on the Bluetooth module will double flicker per second and the green LED will continually light up.

FYP2 WEEK7

Title: Burn the program into PIC using Microcontroller Programmer




-For this week also i have reconstruct new circuit for voltage regulator to getting voltage that suitable for my pic circuit and output circuit and the design has show in figure 
below: 




FYP2 WEEK 6 (2)

Title: Simulate the program using Proteus software (Testing PIC circuit)


FYP2 WEEK 6

Title :Do selection of the program

Design the program using PICC compiler software

-Do selection for the program is important because the program is the main process for the project. For this project, PICC compiler was selected because the program is simple and easy to understand.

 Steps to write down the program:

  • -       Open PICC compiler shortcut
  • -       Open new file
  • -       Save as new file. The new file that we save (example : ZAHIR) will have extension c (example : ZAHIR.c)
  • -       Write down the program


After write down the program, windows will be like below: