Programming
Development
The
circuit had been draw and simulated by using PCB Wizard software. While the
coding used in the PIC16F877A is in C Programming which had been compile and
run by using C-Compiler software. Then, the programs are loaded into the PIC
microchip. After that, the PIC is attached to the circuit to run the
project. The circuit connections for
Smart Mailbox are as shown in Figure below.
The Circuit Connection
The sensor detects incoming mail
and number of mail based on the calculation in the methodology. The data from
the sensor are send to the PIC and converted from analog to digital signal.
According to the data signal from the circuit that had been build, the data are
send to the receiver.
After each
program file was loaded into each microcontroller using PIC KIT programmer, IR
Sensor and GSM Module was installed into the mailbox. Then all circuit board
was switched on as Figure below.
The Circuit installed into the Mailbox
Before the letter inserted into the mailbox, the LED
is turn GREEN to show the empty of mailbox. After the letter has been inserted
into the mailbox, the LED turned on to the RED to inform the letter is inside
the mailbox. The buzzer produces sound after few moments or GSM will send
message to the user to inform the incoming mail.
Overall Result Analysis of The Project
List of Connected Sensor/Actuator to the PIC
|
Connected To
|
|
Sensor / Actuator
|
Function
|
|
RA0
|
IR
sensor
|
To
detect mail
|
RB0
|
Pin
E LCD
|
Display
message on LCD
|
RB1
|
Pin RS LCD
|
Display message on LCD
|
RB2
|
Pin R/W LCD
|
Display message on LCD
|
RB4
|
Pin DB4 LCD
|
Display message on LCD
|
RB5
|
Pin DB5 LCD
|
Display message on LCD
|
RB6
|
Pin DB6 LCD
|
Display message on LCD
|
RB7
|
Pin DB7 LCD
|
Display message on LCD
|
RC0
|
Red
LED
|
Turn
on red LED
|
RC1
|
Green
LED
|
Turn
on green LED
|
RC4
|
Push
button 1
|
|
RC6
|
Pin
11 max232
|
Send
data to GSM
|
RC7
|
Pin
12 max232
|
Receive
data from GSM
|
RD2
|
Push button 2
|
|
RD3
|
Push button 3
|
|
RE0
|
Buzzer
|
Turn
on buzzer
|