3vO thank a lot for your replies...
i give you the link about the schematic diagram..
https://www.flickr.com/photos/7406689@N06/2877383923/
'not to worry' i mean the circuit and wiring is already been done and the only problem i face is how to do the programming in the microcode studio so i can compile the program in hex. file and download it in the PIC16F84A...
i know that the program is simple and i try to write it by referring to other programming and the data sheet but it give a lot of error because i just guessing what should i write...
yes you are right about counting the the switch each time it close and i have no problem building the bucket...
hope you can provide some data about the programming and how to write the program...
*sorry for the broken English....hope you understand what i try to say....thanks...