I am building a model of a Los Angeles class submarine from scratch. The reason for this a little convoluted. I already have two subs that I have built from scratch and they are working very nicely, both using arduino to control the systems and routines, which are, I must admit complex. I decided however at Christmas time to build simpler diving system using the classic config of two pistons and using arduino once again to control them.
I will do a regular blog on the build and this is the first one. It will be on my site and I will drop it on here also if that is OK.
So to that end I built two pistons and more importantly the gear boxes, and started playing with them. The idea that is central to this new system is to control the pistons using a laser distance sensor so I can control the ends of their travel without micros switches, and to get the arduino to remember the sweet spot of neutral buoyancy, all managed though the RC. That sums it up. Also to use a pressure gauge to manage depth keeping. (I do this with my current subs and have solved this little issue already!)
I built the pistons in 100mm acrylic tube. (BTW I also use acrylic glue to ‘weld’ in bulkheads, which has been another revelation to me - stupid me.. everyone else knew about this)
So I needed a hull as an afterthought and on researching I decided upon an LA because it looks fantastic, was in Red October, (I know laugh on) and most importantly it can be made with a piece of drainage pipe.
So my challenge has become to build a fully automated, cutting edge sub, quickly and cheaply.
Decision making time.
I am going to build in the following stages.
• One: to rough out the hull with fins, connections, motor and prop
• Two: to build a two piston system with complete arduino control.
• Three: get it all going and adjust
• Four: take the gear out and finish the hull nicely
I am going to build the bow and stern sections using the ‘discovered method,’ messy but effective!
So what scale? The ship is 110 meters long and a 10 meter beam. Using the standard scales of 1:50, 1:72, 1:96 it became apparent the best was 1:72. It gives a boat 1.5 meters long, and a beam of 138mm. Perfect, if a bit big for my Ford Laser.
So I needed some 138 mm tube. Quickly I discovered this is impossible. The pipe that looks best is PVC drain pipe but that is either 160mm or 110mm (OD). So after some procrastination and research I bought some 160 OD PVC pipe for $8, and ripped 80mm out of it length wise on the rip saw. (Had to do some maths (2 pi R)). I also went to the tip and salvaged some polystyrene sheet and using a homemade hot wire cutter and then made a series of sections for the bow and stern.
First the hull.
I used some tape to bind the pipe together while I applied heat to the plastic to get it to remember this size and sit happily as a 140 mm tube. This process was a little tricky as my torch has a narrow point and a couple of bulges occurred that I had to fix by making a piece of wood as a shape holder. (pic) Then I cut the styrene, used some dowel to make shashlick and glued them together using wood glue. When that was dry I used wood glue (water based white glue) to glue some aluminium foil to the styrene to seal it (seems like a good idea) and then to apply one strip of fibreglass to the join of the pipe and the styrene bow and stern. I made this with a lot of hardener so it would go off quickly as this is the ‘weak spot’ of the sealing process with the styrene. (If the liquid resin contacts the styrene the styrene will ‘disappear.’ This worked nicely, and then I applied the first layer of fibreglass to the whole bow and stern, sanded it all roughly and then applied another layer. I have now added a layer of car body filler and I am waiting for that to harden to start some manual sanding.
The planes
In the waiting times I found some 6 ml acrylic sheet and using the power bench saw, cut it to make two halves of the planes. This is for the rudder section, the stern hydro and the hydroplanes on the sail. I have a tried and true method of doing this but this time joined the two halves of the acrylic together using acrylic cement, that not so much glues as ‘welds’ the material together and then used my ‘bench’ belt sander (I got this from a garage sale) to sand them down. This is a very enjoyable process as it is akin to being artist. In the end I now have three hydro dynamically shaped blades with a fixed slot through the middle that is the fulcrum for the pivot of all blades. This was a spectacular success and very easy to do. I now also have in mind a sure fire way of fitting these to the hull. The main issue with the stern is that the single prop shaft goes right through where the axis of the rudder and planes will go, so I have to make an allowance for that. I have that all in my mind and this will not be a problem. I mean it will be but it will be solved.
The sail
Also during the waiting time I roughed out a block of balsa into the dimensions of the sail, and then sanded it down into a hydrodynamic shape. Then I used a tried and true method of fitting two pieces of aluminium flashing to it, (Use on roofs) gluing them together and then removing the piece of balsa. I now have a lovely sail made of aluminium, which is light and strong.
What I need to do now is switch my project to building the motor / shaft seal, and the amazing 7 bladed prop.
Arduino
OK!. Meanwhile I am writing code for the arduino. I have an old sketch that controls my other subs, but they have different ballast systems using an adjusting piston, a pump in/out tank, and two trim tanks. The arduino manages this system, with a pressure sensor very nicely and for a few bucks I have a very nicely automated sub, but they are complex. This boat however will have just two pistons which is an easy, and I may say classic approach.
So I started the code again. It is reading so far three channels of the RC. The channel to move the two pistons in/out, the channel that controls the ‘snaphsot’ and ‘auto’ and another that controls the ‘diving and surfacing routines.’ I am using two distance sensors to remember the relative positions of the pistons, to enable me to limit their travel without micro-switches, and also to remember what I am calling the ‘sweet spot’ which is their positions at neutral buoyancy. The arduino will also remember the water pressure as that controls the depth keeping routine.
The issue I was having trouble with was getting the arduino to read all three sensors at once. I had to use the adafruit forums, always a risky issue for luddites such as me, to get some leads as I couldn’t for the life of me get them working. (I say risky because they are all so good at coding, and I am sure laugh at what I do behind their hands. ‘What an idiot’ I hear them say).
Anyway I don’t care as one of them got me out of gaol and I now have my arduino reading two laser distance sensors, and one pressure gauge. Of interest is that the pressure gauge is a solid as a rock and as I put a little hose into a bottle of water it shows the pressure increasing beautifully, but the distance sensors jiggle around with a 4 mm variation. So I added to the code for each sensor a routine that takes a set number (whatever I choose) of readings, adds them together and averages them. If I use a factor of 40 – 100 it settles the measurement down beautifully, so I now have three solid, dependable readings. Now the coding fun starts! I need to add a control for trimming for and aft, and then writing the diving and surfacing routines and getting the whole thing operating on the bench. Not far away now.
I have pics on my blog
John
I will do a regular blog on the build and this is the first one. It will be on my site and I will drop it on here also if that is OK.
So to that end I built two pistons and more importantly the gear boxes, and started playing with them. The idea that is central to this new system is to control the pistons using a laser distance sensor so I can control the ends of their travel without micros switches, and to get the arduino to remember the sweet spot of neutral buoyancy, all managed though the RC. That sums it up. Also to use a pressure gauge to manage depth keeping. (I do this with my current subs and have solved this little issue already!)
I built the pistons in 100mm acrylic tube. (BTW I also use acrylic glue to ‘weld’ in bulkheads, which has been another revelation to me - stupid me.. everyone else knew about this)
So I needed a hull as an afterthought and on researching I decided upon an LA because it looks fantastic, was in Red October, (I know laugh on) and most importantly it can be made with a piece of drainage pipe.
So my challenge has become to build a fully automated, cutting edge sub, quickly and cheaply.
Decision making time.
I am going to build in the following stages.
• One: to rough out the hull with fins, connections, motor and prop
• Two: to build a two piston system with complete arduino control.
• Three: get it all going and adjust
• Four: take the gear out and finish the hull nicely
I am going to build the bow and stern sections using the ‘discovered method,’ messy but effective!
So what scale? The ship is 110 meters long and a 10 meter beam. Using the standard scales of 1:50, 1:72, 1:96 it became apparent the best was 1:72. It gives a boat 1.5 meters long, and a beam of 138mm. Perfect, if a bit big for my Ford Laser.
So I needed some 138 mm tube. Quickly I discovered this is impossible. The pipe that looks best is PVC drain pipe but that is either 160mm or 110mm (OD). So after some procrastination and research I bought some 160 OD PVC pipe for $8, and ripped 80mm out of it length wise on the rip saw. (Had to do some maths (2 pi R)). I also went to the tip and salvaged some polystyrene sheet and using a homemade hot wire cutter and then made a series of sections for the bow and stern.
First the hull.
I used some tape to bind the pipe together while I applied heat to the plastic to get it to remember this size and sit happily as a 140 mm tube. This process was a little tricky as my torch has a narrow point and a couple of bulges occurred that I had to fix by making a piece of wood as a shape holder. (pic) Then I cut the styrene, used some dowel to make shashlick and glued them together using wood glue. When that was dry I used wood glue (water based white glue) to glue some aluminium foil to the styrene to seal it (seems like a good idea) and then to apply one strip of fibreglass to the join of the pipe and the styrene bow and stern. I made this with a lot of hardener so it would go off quickly as this is the ‘weak spot’ of the sealing process with the styrene. (If the liquid resin contacts the styrene the styrene will ‘disappear.’ This worked nicely, and then I applied the first layer of fibreglass to the whole bow and stern, sanded it all roughly and then applied another layer. I have now added a layer of car body filler and I am waiting for that to harden to start some manual sanding.
The planes
In the waiting times I found some 6 ml acrylic sheet and using the power bench saw, cut it to make two halves of the planes. This is for the rudder section, the stern hydro and the hydroplanes on the sail. I have a tried and true method of doing this but this time joined the two halves of the acrylic together using acrylic cement, that not so much glues as ‘welds’ the material together and then used my ‘bench’ belt sander (I got this from a garage sale) to sand them down. This is a very enjoyable process as it is akin to being artist. In the end I now have three hydro dynamically shaped blades with a fixed slot through the middle that is the fulcrum for the pivot of all blades. This was a spectacular success and very easy to do. I now also have in mind a sure fire way of fitting these to the hull. The main issue with the stern is that the single prop shaft goes right through where the axis of the rudder and planes will go, so I have to make an allowance for that. I have that all in my mind and this will not be a problem. I mean it will be but it will be solved.
The sail
Also during the waiting time I roughed out a block of balsa into the dimensions of the sail, and then sanded it down into a hydrodynamic shape. Then I used a tried and true method of fitting two pieces of aluminium flashing to it, (Use on roofs) gluing them together and then removing the piece of balsa. I now have a lovely sail made of aluminium, which is light and strong.
What I need to do now is switch my project to building the motor / shaft seal, and the amazing 7 bladed prop.
Arduino
OK!. Meanwhile I am writing code for the arduino. I have an old sketch that controls my other subs, but they have different ballast systems using an adjusting piston, a pump in/out tank, and two trim tanks. The arduino manages this system, with a pressure sensor very nicely and for a few bucks I have a very nicely automated sub, but they are complex. This boat however will have just two pistons which is an easy, and I may say classic approach.
So I started the code again. It is reading so far three channels of the RC. The channel to move the two pistons in/out, the channel that controls the ‘snaphsot’ and ‘auto’ and another that controls the ‘diving and surfacing routines.’ I am using two distance sensors to remember the relative positions of the pistons, to enable me to limit their travel without micro-switches, and also to remember what I am calling the ‘sweet spot’ which is their positions at neutral buoyancy. The arduino will also remember the water pressure as that controls the depth keeping routine.
The issue I was having trouble with was getting the arduino to read all three sensors at once. I had to use the adafruit forums, always a risky issue for luddites such as me, to get some leads as I couldn’t for the life of me get them working. (I say risky because they are all so good at coding, and I am sure laugh at what I do behind their hands. ‘What an idiot’ I hear them say).
Anyway I don’t care as one of them got me out of gaol and I now have my arduino reading two laser distance sensors, and one pressure gauge. Of interest is that the pressure gauge is a solid as a rock and as I put a little hose into a bottle of water it shows the pressure increasing beautifully, but the distance sensors jiggle around with a 4 mm variation. So I added to the code for each sensor a routine that takes a set number (whatever I choose) of readings, adds them together and averages them. If I use a factor of 40 – 100 it settles the measurement down beautifully, so I now have three solid, dependable readings. Now the coding fun starts! I need to add a control for trimming for and aft, and then writing the diving and surfacing routines and getting the whole thing operating on the bench. Not far away now.
I have pics on my blog
John
Comment