Here is the latest update for the torpedo that will be mounted and operated by the AUV.
motoron:
high motor
goto main
killswitch:
sertxd("kill",#b0,cr,lf)
low motor
end
Above is the code i wrote for my micro controller PICAXE. The logic of the program is to continually have power fed to the circuit until the momentary button is activated. Once the momentary button is activated the micro controller will execute 'killswitch' which kills all circuit protocol and power to the entire system.
Parts list:
(1) PICAXE micro controller
(1) momentary button
(x) necessary resistors
(1) LED
(2) transistors
(1) back EMF suppression diode
(1) D/C motor
Let me give a brief explanation for a few items. the micro controller is necessary because i wish to have an LED allowing me to be able to check the completion of the circuit. The momentary button will be mounted in the tip of the torpedo so when it hit something it will stop the program and motor.
(1) PICAXE micro controller
(1) momentary button
(x) necessary resistors
(1) LED
(2) transistors
(1) back EMF suppression diode
(1) D/C motor
Let me give a brief explanation for a few items. the micro controller is necessary because i wish to have an LED allowing me to be able to check the completion of the circuit. The momentary button will be mounted in the tip of the torpedo so when it hit something it will stop the program and motor.
Part 2: Code
symbol motor = 1
main:
readadc 4,b0 sertxd("msg",#b0,cr,lf)
pause 1000
if b0 >100 then motoron
if b0 <100 then killswitch
goto main
readadc 4,b0 sertxd("msg",#b0,cr,lf)
pause 1000
if b0 >100 then motoron
if b0 <100 then killswitch
goto main
motoron:
high motor
goto main
killswitch:
sertxd("kill",#b0,cr,lf)
low motor
end
Above is the code i wrote for my micro controller PICAXE. The logic of the program is to continually have power fed to the circuit until the momentary button is activated. Once the momentary button is activated the micro controller will execute 'killswitch' which kills all circuit protocol and power to the entire system.
Part 3: Mechanics
I havent settled on a tube to mount all my components in yet. Originally i wanted to mount all the components into a cigar tube, however discovering that i will need to have two separate power sources(one for the micro controller and one for the motor) and an added safety measure compartment to keep water away from all the electronics, i had to re-think the final product. Currently I'm leaning towards a fortified piece of plastic pipe, but i'm also investigating other options like different types of metal tubes. I have pictured right now is how i will be attaching the drive shaft to the motor as well as the propeller. My "universal" joint is plastic tubing that fits snugly around the drive shaft and the D/C motor shaft. I also use the same plastic tubing to ensure a tight around my drive shaft propeller. For the portion of the drive shaft that will pass through the hull to water i have obtained a hollow shaft that fits snug around the drive shaft. The fit is almost bearing like so i think with a little grease in side the tube PLUS the safety compartment that will separate the water from the electronic compartment.
******UPDATE******
the torpedo circuit is complete and works properly.
the code that is written for the circuit is executing properly.
the step before testing is to mount the components in an air tight hull.
and the final step before freeing the design of the torpedo is choosing a technique to integrate the torpedo into the AUV
the torpedo circuit is complete and works properly.
the code that is written for the circuit is executing properly.
the step before testing is to mount the components in an air tight hull.
and the final step before freeing the design of the torpedo is choosing a technique to integrate the torpedo into the AUV



No comments:
Post a Comment