Continue our with sonar sensor task, there still some problem with the program code. Make some correction by create function declaration of beeping and beepoff for buzzer sound. As beeping and beepoff on the coding that has high and low pin C1 for buzzer.
Mr Mazran help us by give some hint:
#define DEL500 500 // declare of DEL500 as delay 500
void beeping (int dly) // function declaration of buzzer
{
output_high (pin_c1); // int dly : replace dly by the value at above coding
delay_ms (dly);
output_low (pin_c1);
delay_ms (dly);
}
By afternoon, we complete our second task for understanding sonar sensor and output buzzer with 5 level.
Connection circuit board
LCD display
After done, Mr Mazran give another task by adding timer on the coding. The timer require need to be set at the PIC to send SMS in each 10 minute. We need to study and understand the flow by refer to CCS website and another forum.
0 comments:
Post a Comment