Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need a PIC 10F220 code that will count the pulses from an IR sensor

Status
Not open for further replies.

gutisie

Junior Member level 1
Joined
Apr 26, 2010
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,426
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! :D
Could anybody give me a hint with it?.
Thanks in advance.
Best regards.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top