In my thread, someone suggested a state machine and a way of causing a pause without the use of a delay, which, as you say puts a lag in and affects the performance of the rest of the system
I can't work with such a big block diagram - I need to approach it in small subsections so as not to get bombarded visually!
I could do with some clues on the inspection area!
I've got it to recognise plastic tops easily on the Capacitive Proximity Detector and the Infra-Red Reflective Sensor, but the section before is causing me grief. I have used some boolean logic to say 'if the inductive sensor goes from false to true, and then the infra-red through beam goes from false to true THEN it's a metal object that is passing - this would be fine BUT the code iterates so quick with my shift register that false to true is recognised, but then it iterates again too quickly and true to true is picked up and provides false, so it doesn't then think the object is metal when the infra-red beam is broken
so I need a way of saying
If F->T Then True
If T->T Then True
Else False
any good with Boolean Logic? 😄