Actually when i include the display commands out side the interrupt for eg. say in a separate function the lcd display some random counts cant say it is multiples of previous count at each time when ir turned off.
when i include the display command in interrupt as shown above the count increases...
conveyor object counting
Guys i m trying to count the no of objects passing in a conveyor belt. for that purpose i am using IR sensor. When sensor goes low it have increase the count by 1.
Now the problem is in the debugger mode it increments the count properly. but while displaying in LCD it...
Well Rob thanks for your suggestion.
It seem there will be some problem in detecting objects while using LDR (it requires a closed surface to detect object). If i am wrong forgive me
So I think the better option would be IR.
so can you suggest me how to program n design using IR pls...
I am just using the conveyor for educational purpose... to show kids how conveyor works. PLC is a good option but i need to finish this one in low budget.
since it is for edu purpose i m not using very big machine (12cm -width and 1 meter length) conveyor and i can control the speed using...
Hello guys
i am designing a simple conveyor system.
I using 12V DC motor with 1500 rpm
Now my problem is, i need to count the no of objects place in the belt on the run time
As well as to control the speed of the motor.
I thought of using IR to count objects, but dono how to get...