Utilizing a laserlight and a phototransistor (RA0), I have created a counter. I'm using PIC16F628A with an onboard 4mhz oscillator. Right now it only displays how many objects have passed by. I would like to add another function which is to display the rate of objects that pass per min. or per hour. I don't know how to incorporate this into the program. Can anyone help me?
Bookmarks