Monday, October 29, 2012

FYP Sem II : Week 12


Title of Activity:


Testing the combination of hardware and software part.

Analysis:

In order to check that both hardware and software part is functioning well, I need to test the whole circuit. I need to check the data from RFID tag is responding or not. The tag should sending back its data (uniques serial number) to the RFID reader. Then, the data can communicate with PIC. Therefore, computer can read these transmission of data.

Here are the procedure or sequence for the project:

1)    Firstly, I need connect all the wires correctly. I also need to connect the main power supply to the plug and serial port from circuit to computer using USB converter. The visual basic also must in running mode.



2)    Then, turn on the ON/OFF switch to turn on the whole circuit. Yellow LED is turned on to indicate the circuit is now running.



3)    The RFID card is touched nearer to the RFID reader and blue LED is turned on to indicate the card.



4)    The PC will displaying the student's identification and the PIC now activate the IR sensor.



5)    Red LED will turn to indicate that there is no voltage bounce to IR sensor.



6)   If IR sensor detects any object, it will turn on the green LED and send signal to computer to print the receipt.




Conclusion:
The project is functioning but the data sometimes did not shown at the PC monitor. However, this is how my project is running.

Saturday, October 13, 2012

FYP Sem II : Week 10


Title of Activity:


Burning or uploading the PIC program into PIC micro-controller

Analysis:

The below instructions are the basic steps to burn the program into PIC


1.      Make sure the connection of PIC programmer is into computer via serial port / USB port.
2.      Insert PIC used which is PIC16F877a into the programmer socket.


3.      Copy ‘Winpic800’ folder from programmer CD into Desktop.
4.      Look for Winpic800.exe in the folder.


5.      Double click Winpic800.exe to start the program.


6.      Select proper PIC name in the top right combo box.


7.     Open the .hex file which is needed to download into PIC. 
8.   Lastly, go to ‘Device’ -> ‘Program All’ to start download program into your PIC.



Conclusion:
The program coding of project is now inside the PIC. The PIC can be connected to PCB board and can be tested. The same procedure is repeated when I have problem during testing the program.

Friday, October 5, 2012

FYP Sem II : Week 9


Title of Activity:

The making of software part, PIC programming

Analysis:

  • As PIC is the main component to control the whole system, the correct programming is needed to be written.
  • C programming is preferred language to be written in PIC16F877a and PIC C compiler is the software used to compile the program.
  • In this project, the PIC need to interface with some other components and devices such as RFID reader, IR sensor, switches, RS232 level converter and LEDs.
  • It is compulsory to determine and declare the input and output port. In this project, 
    1. Input port - 
      • pin 2 (RA0) for IR sensor
      • pin 28 (RD5), 29 (RD6) and 30 (RD7) to detect RFID reader
    2. Output port
      • pin 38 (RB5) for blue LED to indicate IR sensor detected
      • pin 39 (RB6) for green LED to indicate document detected
      • pin 40 (RB7) for red LED to indicate no document detected
      • pin 25 (RC6) for serial port to send data to computer
      •  pin 26 (RC7) for serial port to receive data to computer

  • Below is the program build for PIC:
Figure 1: Set the variables and port address




Figure 2: The main program



Figure 3: The sub function of detection card



Conclusion:
This coding is crucial to execute the performance of circuit.