Confused?! Tryingto control a paintball solenoid.


Results 1 to 14 of 14

Threaded View

  1. #3
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Ieland,

    I>>The problem I am having is when it fire the 3 burst the shots seem to delay. i am trying to achieve maxium rate of fire. Anyone have and ideas?<<

    I do not know what your setup is, I can only guess.

    1. You will need the PIC to have complete control of your firing.
    2. One pin will be connected to your switch... the other pin will control the firing.
    3. Need to have a timer to measure the timing between each of the shots.

    This is just a quicky, and some of it is in psuedo code and C/C++... But the idea is there.


    Trigger var Porta.2
    Sil var Porta.1
    Var Timer;
    Var Counter;

    Counter=0;
    Timer=0;
    Loop:
    Trigger=0; 'does it have pulling resistors?
    if Trigger=1 gosub Fire
    pause 50 'only allow 1 shot every 1/20 of a second
    if Trigger=0 then Timer++
    if Timer>50 Counter=0; 'resets to single shot, this adjusts delay
    goto Loop

    Fire:
    if Counter<8
    Sil=1 'fire the sucker
    pause 5
    Sil=0
    pause 5 'make sure you are not too fast!
    Endif

    if Counter=8
    Counter=6
    while Counter<8
    Sil=1 'fire the sucker
    pause 5
    Sil=0
    pause 5
    Counter++
    Wend
    Counter=7
    Endif

    Counter++
    Return
    Last edited by Dwayne; - 25th October 2004 at 17:08.
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. A logic gate chip with 1 ea XOR and 2 ea AND gates?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 5th August 2009, 05:29
  2. Control RC servo via Parallax Servo Control
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2005, 08:18
  3. HPWM Motor Control
    By hughgoodbody in forum General
    Replies: 7
    Last Post: - 30th January 2005, 22:41

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