how much$$.. code wanted?$??
bobsmith
Posts: 36
I need code for a bs2 and I need to know how much you will charge if you do it.
I need code to make a board for a paintbal gun. The components I will be attaching to the bs2 is solenoid(mosfet), 2 photodiode (beambreak eyemode), on/off switch, 2 pushbuttons, led light, and microswitch.
I want the code to do all this:
Board:
{Mode one is default mode for when powered first up}
- Mode one: eye mode off, 1 pull 1 shot (no bounce), dwell 8
- Mode two: eye mode on, 1 pull 1 shot(no bounce), dwell 8
- Mode three: eye mode off, full auto (do not allow the gun to go faster then 20 balls per second), dwell 8
- Mode four: eye mode on, full auto (do not allow the gun to go faster then 20 balls per second), dwell 8
- Mode five: eye mode off, debounce 1, dwell 8
- Mode six: eye mode on, debounce 1, dwell 8
{Once gun is turned on its in mode 1}
{Button1}
Toggle 0 {pushing button1 once it stays in mode 1}
Toggle 0 {pushing button1 twice it goes in to mode 2}
Toggle 0 { pushing button1 three times it goes in to mode 3}
Toggle 0 {pushing button1 four times it goes in to mode 4}
Toggle 0 {pushing button1 five times it goes in to mode 5}
Toggle 0 {pushing button1 six times it goes in to mode 6}
Toggle 0 {pushing button1 seven times it goes in to mode 1}
Repeats
{Button 2}
Toggle 0 {once button 2 is pressed it sends the board back to mode 1}
Here is a sample code for a bs1 for just simple semiauto mode for a paintball gun board:
'{STAMP BS1}
'{SPORT COM1}
DIRS=11001011 'Input/Output
PINS=10000011 'Low/High
SYMBOL Trigger=PIN0 'INPUT
SYMBOL Emmiter=PIN1 'OUTPUT
SYMBOL Detector=PIN2 'INPUT
SYMBOL Solenoid=PIN3 'OUTPUT
SYMBOL Dwell=B4
SYMBOL Drop=B5
LET dwell=20 'ms
LET drop=20 'ms
ReadyLOOP
BUTTON 0,1,255,0,B1,0,ReadyLOOP
HIGH 3 'Activates Solenoid
PAUSE Dwell
LOW 3 'Deactivates Solenoid
PAUSE Drop
GOTO ReadyLOOP
I need code to make a board for a paintbal gun. The components I will be attaching to the bs2 is solenoid(mosfet), 2 photodiode (beambreak eyemode), on/off switch, 2 pushbuttons, led light, and microswitch.
I want the code to do all this:
Board:
{Mode one is default mode for when powered first up}
- Mode one: eye mode off, 1 pull 1 shot (no bounce), dwell 8
- Mode two: eye mode on, 1 pull 1 shot(no bounce), dwell 8
- Mode three: eye mode off, full auto (do not allow the gun to go faster then 20 balls per second), dwell 8
- Mode four: eye mode on, full auto (do not allow the gun to go faster then 20 balls per second), dwell 8
- Mode five: eye mode off, debounce 1, dwell 8
- Mode six: eye mode on, debounce 1, dwell 8
{Once gun is turned on its in mode 1}
{Button1}
Toggle 0 {pushing button1 once it stays in mode 1}
Toggle 0 {pushing button1 twice it goes in to mode 2}
Toggle 0 { pushing button1 three times it goes in to mode 3}
Toggle 0 {pushing button1 four times it goes in to mode 4}
Toggle 0 {pushing button1 five times it goes in to mode 5}
Toggle 0 {pushing button1 six times it goes in to mode 6}
Toggle 0 {pushing button1 seven times it goes in to mode 1}
Repeats
{Button 2}
Toggle 0 {once button 2 is pressed it sends the board back to mode 1}
Here is a sample code for a bs1 for just simple semiauto mode for a paintball gun board:
'{STAMP BS1}
'{SPORT COM1}
DIRS=11001011 'Input/Output
PINS=10000011 'Low/High
SYMBOL Trigger=PIN0 'INPUT
SYMBOL Emmiter=PIN1 'OUTPUT
SYMBOL Detector=PIN2 'INPUT
SYMBOL Solenoid=PIN3 'OUTPUT
SYMBOL Dwell=B4
SYMBOL Drop=B5
LET dwell=20 'ms
LET drop=20 'ms
ReadyLOOP
BUTTON 0,1,255,0,B1,0,ReadyLOOP
HIGH 3 'Activates Solenoid
PAUSE Dwell
LOW 3 'Deactivates Solenoid
PAUSE Drop
GOTO ReadyLOOP