1] Interface your currant sensor as apropriate 2] Write code to count currants 3] See how many currants you can count in a second 4] Investigate what would you need to count different color currants
So im stuck on 1. can you help plz.
"im stuck on 1."
If all you have been asked to do is to "interface" it, does that mean that the sensor has been provided - or, at least, you've been told which one to use?
In that case, the standard procedure for interfacing anything to anything else is: www.8052.com/.../160143
Or do you first have to select or design a suitable sensor?
In that case, there's no way to know how to interface with it before it has been chosen or designed!