Shop OBEX P1 Docs P2 Docs Learn Events
High speed counter — Parallax Forums

High speed counter

haimhaim Posts: 25
edited 2007-07-12 16:00 in BASIC Stamp
Hi,
·
Help me·please.
1. What is the Maximum·speed·if I·use the BS2 as a pulse counter?
2.·I wonder if I can use the·BS2 to·be programmed as a high speed·counter.
The functions of the counter would be just like most of the high speed counters.·When the incoming pulse reached the preset number then an output pulse would be generated. The reset number can be changed by two push buttons. One is for increase and the other is for decrease.
·
Thank you very much
·
Hai··
·

Comments

  • pwillardpwillard Posts: 321
    edited 2007-07-10 18:48
    You might want to think about placing a·binary counter in front of the Stamp input pin you want to use.· This way you can selectively divide the input signal by a known amount before being processed.· (IE; 74LS390, 74HCT4040, etc.)
  • stamptrolstamptrol Posts: 1,731
    edited 2007-07-11 11:39
    Hai,

    The max counting speed depends largely on how much other code the Stamp has to process while not missing any incoming pulses.

    In a similar application, I counted fairly reliably at 30 to 60 pulses per second.

    For true high-speed counting, an external counter will give the processor some extra time to do other things, then come back and check the counter.

    If you can give us some more details, I'm sure several other suggestions will emerge.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • haimhaim Posts: 25
    edited 2007-07-11 17:33
    Thanks for the responds.
    I need to set up a device that could send out a pulse to trigger the camera to take a registered photo on the high speed moving paper web.
    I know a high speed counter could do the job. Use the cue mark on paper as a reset and count the encoder pulse to trigger the camera.
    But I want something better and easier for the operators to set up the camera. 1. Automatically measure and calculate the form length.
    2. Use half of the form length as the initial preset to trigger the camera.
    3. Use two push buttons to adjust the registration trigger, one is for increase and the other is for decrease.
    Thanks

    Hai
  • BeanBean Posts: 8,129
    edited 2007-07-11 17:53
    Hai,
    The Propeller or SX could handle the job.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Never argue with an idiot.· They'll drag you down to their level then beat you with experience.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
  • stamptrolstamptrol Posts: 1,731
    edited 2007-07-12 11:57
    haim,

    I agree with Bean; you will need more processing horsepower.

    To get anything meaningful out of paper web photography, you need to be able to make some small, repeatable adjustments. On the 300 m/min and 1000 m/min machines I worked on, we often had to use high speed movie cameras and review the action frame by frame to see the problem area clearly.

    Cheers

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • haimhaim Posts: 25
    edited 2007-07-12 16:00
    Bean and Tom,

    Thanks for the reply. I don't know anything about the Propeller and SX. Is the BS2-SX you were talking about or something else? I have to look in to the Propeller. Thank you very much.

    Best regards

    Hai
Sign In or Register to comment.