2 interupts - portb.0 rising and falling edges


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    >> 35+ balls per second...

    Now if ever there was a phrase in a thread that could get my attention...

  2. #2
    EDWARD's Avatar
    EDWARD Guest


    Did you find this post helpful? Yes | No

    Default sry to get back so late.

    thank you for the replys.

    just so theres no worries, i am not doing anything illegal guys. the program i am writing is to update the marker to the 2005 rule book or tournemant paintball here in the USA. although the marker can fire as fast as the hopper can feed (35+ BPS), but it is also adjustable to set at 15 Balls Per Second. I just need some help on getting the 15 balls per second mode better.


    i know that there are many ways to do this, which i have done succesfully but my problem is 2 things: consistancy and "real time control".

    ---the consistancy problem is that i need the marker to fire at a very constant rate, even if the input (actual trigger) is not consistant.

    ---the so called "real time control" problem is that i need the marker to stop firing almost instantly as i stop pulling the trigger. 1 to 2 balls fired after i stop pulling the trigger is the MAX.


    although the marker can fire at a very high rate of fire, all i need is it to work at 15 balls per second (BPS). the trigger needs to be pulled at least 3 times a second for the marker to shoot 15 BPS, but needs to stop alsmost instantly. now do you see why this is a little more complex



    At first i just had a 5 shot burst and if the trigger was pulled before all 5 shots were fired, it would ADD to the number of bursts left. this made for a very consistant fire but would shoot 5 balls after i stopped pulling the trigger not good. if i lowered the 5 to a 2 it required pulling the trigger to fast, but only shot 2 balls after releasing.

    so i had to get creative and utilze the release of the trigger. so now it set to 2 shot burst and ADDs 2 shoots everytime the trigger is pulled or released. this makes for for 4 shots a pull but i need 5. (15 BPS)/(3 pulls per sec) = 5 Balls per pull.

    i was am not wondering if i can use a pulse counting interupt. and if the frequency of pulses goes below 3 per sec it will stop firing. could this be done to stop firing the marker instantly? or would it continue to shoot a few more balls?


    oh yeah i forgot to say that i have all the other stuff figred out already, like the timing of the pnumatics required and the optical sesor delay, custom debouncing, and things of that nature. i was at the field a few days ago shooting 26 BPS of the chrono i need new batteries in my halo i think. also i havnt CHOPPED\BUSTED a ball since i got my eye logic down and i shot over 5 cases through it (10,000 paintballs)
    Last edited by EDWARD; - 15th July 2005 at 01:16.

Similar Threads

  1. Interrupt On both (Rising and Falling)
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 12th March 2008, 14:34

Members who have read this thread : 0

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

Posting Permissions

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