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...
Bookmarks