Need help with a pulse counter project PIC18F2620


Closed Thread
Results 1 to 2 of 2
  1. #1
    blackrider's Avatar
    blackrider Guest

    Default Need help with a pulse counter project 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.


  2. #2
    Join Date
    Mar 2009
    Location
    Florida USA
    Posts
    22


    Did you find this post helpful? Yes | No

    Question Trackball etc.

    Hi blackrider:

    The output from the trackball is a rectangular signal and you don't normally need a Schmidt trigger. If you needed one, there is one inside of many "PIC's".
    Is this the only thing you want to do with the PIC? The 18F2620 would be too "BIG" for this project. Also, what is the approx. frequency coming from the mouse and what is the time frame for the signal to be measured, like pulse per seconds, minutes etc?

Similar Threads

  1. Pulse Counter
    By srspinho in forum Code Examples
    Replies: 13
    Last Post: - 5th May 2012, 22:56
  2. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 02:59
  3. Replies: 3
    Last Post: - 13th September 2008, 18:40
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27
  5. Pulse Counter in Assembly
    By orlandoG in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st March 2007, 02:23

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts