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 help with a pulse counter project PIC18F2620

Status
Not open for further replies.

blackrider

Newbie level 1
Joined
Apr 3, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
pic18f2620

I decomposed my ps2 tracking ball old mouse and I want to use from it those IR emitter and detector(optocoupler), the ball and
those cilinders with slotted disc in a end.Between transmitter and receiver will be that slotted disc that will rotate.
From the IR detector I'll take the pulse signal and it would go in an amplifier with histerezis (Schmitt trigger), so if the signal
would be in sinus form or sinus with lot of noise I can make it digitaly one with 0 and 1 logical applied to PIC18F2620.
And the data goes to RS232 so I can read the data in hyperterminal of WinXP.

I am new to the world of PIC programming and it will be very much useful for me if anybody can give me some advices
and a code that will read the pulse signal continuously and display the digital values in hyperterminal of WinXP of how fast is spinning the cilinders by force of the ball.

I made a block schematic for moment but in short time I need to go deeper.

Thanks in advance.Your valuable help will help me to complete my project.

**broken link removed**
 

schematic of pic18f2620

this until the photo Tr is off the logic level at the output is high. connect it to one of the ext interrupt pins Port b (pin 1,2,3 ) and generate an interrupt when the pulse level goes to low (set ext_h_L). and u can use a variable in the program to count the pulses. this should not be a problem =)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top