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:



FYP2 WEEK 5

Title : Bluetooth Module circuit


ANALYSIS
-Bluetooth Module is no need to be soldered on its pin as compare to the other circuits that I have done in previous week since it is just “Plug & Play”.

-The Bluetooth module works on 3.3V level only. High voltage like 5V will permanently damage the module.Therefore, if application requires to be operated at 5V then use a LM1117-3.3 regulator to convert the 5V level to 3.3V level as required by module. By considering this factor, I have to add the LM1117T circuit since the supply voltage from the PIC is 5V. From here, LM 1117T will do its task by reducing the voltage from 5V to 3.3V as required by HC-05 Bluetooth. The diagram as shown below.


Full view of Bluetooth module circuit

FYP2 WEEK 4 (3)

Title :Apply the components on copper board and do the soldering process

-To solder the components on the board according to the PCB design for each circuit.

-To make a connection for all component on the copper board.

                          
  Soldering components on PIC circuit      Soldering components on Relay circuit



                 
      Top view: PIC circuit                                   Bottom view: PIC circuit

                           
     Top view: Relay circuit                         Bottom view: Relay circuit

Troubleshooting the circuit
-After soldering the entire component on the copper board. The circuit must be troubleshoot to check whether the components are connected properly according to the PCB layout.


FYP2 WEEK 4 (2)

Title :Make a drilling process after etching the circuit design

-Holes through a PCB are typically drilled with small-diameter drill bits made of solid coated tungsten carbide. Coated tungsten carbide is recommended since many board materials are very abrasive and drilling must be high RPM and high feed to be cost effective. Drill bits must also remain sharp so as not to mar or tear the traces. Drilling with high-speed-steel is simply not feasible since the drill bits will dull quickly and thus tear the copper and ruin the boards.

-In this project, I am using the Pro’s Kit super mini drill 12V to make the drilling process

Next, drill the holes using a driller.

This is the result after the board had been rubbed by sandpaper to remove the remaining copper that not been covered by carbon ink. Lastly, this circuit is ready to be constructed with the components.