User manual
45
4.2 RESULT
Figure 4.1 : Programming successfully compiled
The C++ programming is compiled successfully with no error. The full coding can
be referring to Appendix.
i. Part I
For microcontroller part, the programming was tested using the SK40C
hardware before the project is combined together.
RB0 button define sensor 1 while RB1 indicate sensor 2. Imagine a person
pass through sensor 1 and 0.5 second after that, he should be pass through sensor 2,
RB1 must be pressed 0.5 second after RB0 to represent the actual system. For the
demo purpose, the programming is set to limit the counting up to five only. When the
counter count up to five, it will shows the counter reach “Full Count” and the counter
cannot count further.