gutisie
Junior Member level 1
Hi, my name is Frank, and I am in desperate need of a code in basic for pic10f220.
What it should do is count the pulses from a ir sensor that i have tanken from a mouse (not the optical new ones, I ment the Ir emitter and receiver from old ball mouses).
When it has counted 3 it should stop driven a mosfet which i have conected to a dc motor.
So the routine should be. Always on, and if it detects 3 pulses then stop for say 1 second.
I was thinking of using Cn for 1 to 3, but it does not work....I am absolutley clue less with these things....but I love them!
Could anybody give me a hint with it?.
Thanks in advance.
Best regards.
What it should do is count the pulses from a ir sensor that i have tanken from a mouse (not the optical new ones, I ment the Ir emitter and receiver from old ball mouses).
When it has counted 3 it should stop driven a mosfet which i have conected to a dc motor.
So the routine should be. Always on, and if it detects 3 pulses then stop for say 1 second.
I was thinking of using Cn for 1 to 3, but it does not work....I am absolutley clue less with these things....but I love them!
Could anybody give me a hint with it?.
Thanks in advance.
Best regards.