Epic Fail?
Posted: Sun Jan 27, 2008 8:36 pm
this sucks the automated part of my propane mortar is anything but automated. i "finished" it about a week ago and gave it to one of my friends so we could test it in a more remote area (everyone in my town has 911 on speed dial, i hate this place). i finally got to test it this weekend but to my surprise the program which had worked flawlessly in simulation failed miserably.
this would make me believe that some were between the proto board and and the final circuit something broke, i have reprogrammed the chip numerous times (in the final board along with the proto board) with no improvements. the problem is the chip seems to lose clock cycles or something so the delays between each stage of firing vary greatly (for example a delay i set to 2 second can be anywhere from 1/2 sec to 3 seconds. does anyone know what would cause this?
extra info...
"final board" = picaxe-18 standard project board
"protoboard" = picaxe experimenter
"chip" = picaxe 18
code....
'pin6 = arming button
'pin7 = projectile sensor
'0 = valve 1
'1 = valve 2
'2 = chamber fan
'3 = igntion
'4' venting valve
main:
label_1: if pin6=1 then label_2 'pin6 is the arm button
goto label_1
label_2: high 0 'meter valve 1 sequence
wait 1
low 0
label_3: if pin7=1 then label_5 'pin7 checks if a projectile is loaded
goto label_3
label_11: if pin7=1 then label_6
goto label_22
label_22: if pin7=0 then label_7
goto label_11
label_5: high 1 'meter valve 2 sequence and fan turn activation
high 2
wait 2
low 1
pause 250
goto label_11
label_6: high 3 'ignition sequence
pause 500
low 3
goto label_11
label_7: high 4 'veting sequence (venting module does no exist) and fan deactivation
wait 3
low 4
low 2
goto label_1
pics...
<img src="http://i78.photobucket.com/albums/j85/i ... 81953d.jpg">
<img src="http://i78.photobucket.com/albums/j85/i ... 81953c.jpg">
<img src="http://i78.photobucket.com/albums/j85/i ... 81953a.jpg">
<img src="http://i78.photobucket.com/albums/j85/i ... 081953.jpg">
this would make me believe that some were between the proto board and and the final circuit something broke, i have reprogrammed the chip numerous times (in the final board along with the proto board) with no improvements. the problem is the chip seems to lose clock cycles or something so the delays between each stage of firing vary greatly (for example a delay i set to 2 second can be anywhere from 1/2 sec to 3 seconds. does anyone know what would cause this?
extra info...
"final board" = picaxe-18 standard project board
"protoboard" = picaxe experimenter
"chip" = picaxe 18
code....
'pin6 = arming button
'pin7 = projectile sensor
'0 = valve 1
'1 = valve 2
'2 = chamber fan
'3 = igntion
'4' venting valve
main:
label_1: if pin6=1 then label_2 'pin6 is the arm button
goto label_1
label_2: high 0 'meter valve 1 sequence
wait 1
low 0
label_3: if pin7=1 then label_5 'pin7 checks if a projectile is loaded
goto label_3
label_11: if pin7=1 then label_6
goto label_22
label_22: if pin7=0 then label_7
goto label_11
label_5: high 1 'meter valve 2 sequence and fan turn activation
high 2
wait 2
low 1
pause 250
goto label_11
label_6: high 3 'ignition sequence
pause 500
low 3
goto label_11
label_7: high 4 'veting sequence (venting module does no exist) and fan deactivation
wait 3
low 4
low 2
goto label_1
pics...
<img src="http://i78.photobucket.com/albums/j85/i ... 81953d.jpg">
<img src="http://i78.photobucket.com/albums/j85/i ... 81953c.jpg">
<img src="http://i78.photobucket.com/albums/j85/i ... 81953a.jpg">
<img src="http://i78.photobucket.com/albums/j85/i ... 081953.jpg">