Friday, 24 February 2012
WEEK 4
Programming for the system to function as we expected.
The programming shown as follow:
#include <16F877A.H>
#fuses NOWDT,HS, NOPUT,NOPROTECT
#use delay (clock=20000000)
#define PUSH_BUTTON PIN_D0
#define PUSH_BUTTON1 PIN_D1
#define PUSH_BUTTON2 PIN_D2
void main ()
{
int x=1,y=1,z=1;
int count=0;
while(TRUE)
{
output_a(count);
x=input(PIN_D0);
y=input(PIN_D1);
z=input(PIN_D2);
if(x==0)
{
output_b(0b00011111);
if(y==0)
{
count++;
delay_ms(300);
output_a(count);
output_b(0b00011111);
output_c(0b00000001);
delay_ms(1000);
output_c(0b00000011);
delay_ms(1000);
output_c(0b00000111);
delay_ms(1000);
output_c(0b00001111);
delay_ms(1000);
output_c(0b00011111);
delay_ms(1000);
}
else if(z==0)
{
count--;
delay_ms(300);
output_a(count);
output_b(0b00011111);
output_c(0b00011111);
delay_ms(1000);
output_c(0b00011110);
delay_ms(1000);
output_c(0b00011100);
delay_ms(1000);
output_c(0b00011000);
delay_ms(1000);
output_c(0b00010000);
delay_ms(1000);
output_c(0b00000000);
delay_ms(1000);
}
}
else
output_b(0b00000000);
}
}
Thursday, 16 February 2012
WEEK 3
R&D on the street lighting module that cover it's bulb, distance between street light poles.
It will help us on how to reduce the scale of the project by following what is the exact scale of street light.
It will help us on how to reduce the scale of the project by following what is the exact scale of street light.
Tuesday, 7 February 2012
WEEK 2
On second week another briefing held on Gemilang Hall. From this briefing the FYP committee inform that all the thesis submit and claim can be do on week 17.
Circuit for LDR sensor and power supply to be approved by supervisor.
Circuit for LDR sensor and power supply to be approved by supervisor.
LDR sensor circuit
Power supply circuit
Subscribe to:
Posts (Atom)