Electronic 10 Project 1: Toy HackingOriginally I wanted to take my Oral B pulsar tooth brush and convert it into a scaled down torpedo. I choose to make a model torpedo so i can later use the same base for another project; I essentially wanted to kill two birds with one stone and same myself time and effort. Unfortunately my old toothbrush did not have a motor i could have used to make my torpedo :(
So instead i decided to build my torpedo from scratch! I believe by building my circuit from the ground up i will better understand how and why the components are used. I have separated my torpedo toy hacking project into 3 parts.
So instead i decided to build my torpedo from scratch! I believe by building my circuit from the ground up i will better understand how and why the components are used. I have separated my torpedo toy hacking project into 3 parts.
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******
I have ran into a problem with my circuit which requires my to have two power sources. I have investigated using capacitors in my circuit but considering i'm looking to running my D/C motor with a volt load of at least 5 volts, it's best if i just install a separate power source.














