The Association of Model Submariners.

Would you like to react to this message? Create an account in a few clicks or log in to continue.

* THE FORUM FOR ALL THOSE INTERESTED IN BUILDING AND OPERATING MODEL SUBMARINES *



Join the AMS - Registered Forum users can become members of the AMS and it's free ...... To join send an email with your name , address and phone number to amstreasure@googlemail.com


For further details of any events shown here also see the "Shows and Events" section on the forum

*HOPING FOR A BETTER 2021 AND MORE OF THESE EXCELLENT FREE EVENTS ALL AROUND THE COUNTRY!

.

CANCELLED because of coronavirus. Papplewick Pumping Station, Nottingham, Sunday 12th & Monday 13th April
CANCELLED because of coronavirus. Bournville Sub Day, Sunday 10th May 2020

. ,

(CANCELLED) Submarine, Boating & Sailing Weekend, Norwich MBC, Weekend of 25,26th July

,./
.
Model Boat Convention, Haydock Park (Cancelled this year)

.

CANCELLED. Bournville Sub Day, Sunday 13th September

,,,,

(CANCELLED) Club Submarine Regatta, Furness MBC, Barrow in Furness, Sunday 20th Sept 2020

Who is online?

In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests :: 1 Bot

None


Most users ever online was 180 on Tue Nov 05, 2019 6:03 am

Latest topics

» openLRS on 458Mhz and 433Mhz and submarines
Arduino proportional control of a  piston tank - Page 2 EmptySun Nov 29, 2020 9:59 am by C-3PO

» Making end caps
Arduino proportional control of a  piston tank - Page 2 EmptyThu Nov 19, 2020 3:20 pm by Cheapsub

» Hello from New York City.
Arduino proportional control of a  piston tank - Page 2 EmptyWed Nov 18, 2020 12:50 am by Cheapsub

» 915mhz / 868mhz as a viable frequency for submarines.
Arduino proportional control of a  piston tank - Page 2 EmptyMon Nov 16, 2020 6:34 pm by Cheapsub

» John Lambert plans for WWII British T Class sub 3rd. series, unmodified.
Arduino proportional control of a  piston tank - Page 2 EmptySun Nov 15, 2020 10:07 pm by tiger.tim

» Piston Tank - Depth Control (Paper by Wolfgang Baumann & Helmut Huhn)
Arduino proportional control of a  piston tank - Page 2 EmptySat Nov 14, 2020 1:41 pm by david f

» typhoon wanted
Arduino proportional control of a  piston tank - Page 2 EmptyMon Nov 02, 2020 2:10 pm by RanSand

» New AMS member Henry from South Australia
Arduino proportional control of a  piston tank - Page 2 EmptyTue Oct 20, 2020 3:27 pm by david f

» New member intro
Arduino proportional control of a  piston tank - Page 2 EmptyTue Oct 20, 2020 3:23 pm by david f

Statistics

Our users have posted a total of 11227 messages in 1837 subjects

We have 872 registered users

The newest registered user is Paul Flint

    Arduino proportional control of a piston tank

    avatar
    tsenecal
    Guest

    Posts : 140
    Join date : 2015-04-01

    Arduino proportional control of a  piston tank - Page 2 Empty Re: Arduino proportional control of a piston tank

    Post  tsenecal on Thu Feb 21, 2019 3:43 pm

    C-3PO...

    things get even weirder when you throw in what i am doing, and what the Teensy is doing...  they are basically co-opting the software to work with the "almost the same" hardware, bending it far beyond what you would think is prudent in some cases to get their hardware support up to the same level as arduino's IDE support for arduino hardware is.
    david f
    david f
    AMS Treasurer

    Posts : 2133
    Join date : 2010-11-10
    Age : 70
    Location : Cumbria

    Arduino proportional control of a  piston tank - Page 2 Empty Re: Arduino proportional control of a piston tank

    Post  david f on Fri Mar 15, 2019 10:15 am

    I have just been building another piston tank for the CSS Pioneer. (I will post a photo in the next day or so.)

    I have been planning to use one of the smaller commercial H bridge units together with an Arduino for the proportional control. The software is giving some issues in connection with the failsafe (At least it failsafes too successfully, too often!) But just a reminder warning that this software has still not been used "in the wet" in a model.

    The PIC version has been "battle" (Oh alright pond!) tested for a number of years.

    More soon,

    David
    david f
    david f
    AMS Treasurer

    Posts : 2133
    Join date : 2010-11-10
    Age : 70
    Location : Cumbria

    Arduino proportional control of a  piston tank - Page 2 Empty Re: Arduino proportional control of a piston tank

    Post  david f on Mon Mar 18, 2019 9:06 am

    It is beginning to look as if the occasional glitches in failsafe are caused by power supply problems. Intermittent - the worst sort of problem!

    David
    salmon
    salmon
    AMS Forum Owner

    Posts : 300
    Join date : 2011-09-02
    Age : 60
    Location : Las Vegas, Nevada - USA

    Arduino proportional control of a  piston tank - Page 2 Empty Re: Arduino proportional control of a piston tank

    Post  salmon on Mon Mar 18, 2019 11:30 am

    David,
    Do you use the BEC in the ESC or do you use a separate BEC?
    I changed on one sub from using the built in battery elimination circuit on the electronic speed controller to a stand alone BEC. The glitches I was having disappeared.
    Not sure if it was the ESC being glitchy or if I was taxing the built in supply. Remember to disable the power coming from the ESC (either cut or remove the red wire from ESC).
    Peace,
    Tom


    _________________
    If you can cut, drill, saw, hit things and swear a lot, you're well on the way to building a working model sub.
    david f
    david f
    AMS Treasurer

    Posts : 2133
    Join date : 2010-11-10
    Age : 70
    Location : Cumbria

    Arduino proportional control of a  piston tank - Page 2 Empty Re: Arduino proportional control of a piston tank

    Post  david f on Tue Mar 19, 2019 10:34 am

    Thanks Tom. This shows the setup - still a bit of a "lash-up".

    Arduino proportional control of a  piston tank - Page 2 20190310

    You can see I'm using a Micro Gyro ESC. The BEC is well specified but I usually favour a separate switch-mode power supply, for the reasons you give. In this case, I'm trying to save space. The "issues" do seem to be triggered by servo movements.

    There are still some other software issues though. The fail-safe occasionally doesn't!

    David
    david f
    david f
    AMS Treasurer

    Posts : 2133
    Join date : 2010-11-10
    Age : 70
    Location : Cumbria

    Arduino proportional control of a  piston tank - Page 2 Empty Re: Arduino proportional control of a piston tank

    Post  david f on Thu Mar 21, 2019 9:00 am

    A bit more investigation. Servo movements were causing the Arduino to reset.

    I have disconnected the BEC in the Micro Gyro speed controller and moved to a separate switch mode power supply (this has some large electrolytic capacitors in it to buffer any voltage drop.)

    This works better but I'm still getting occasional problems with the failsafe in the Arduino software not working. Interestingly the original PIC controller board is working well in these circumstances. (If you look back in the threads, this board was developed and built to be very tough and well protected.)

    Some conclusions:

    - It is interesting how often built in BECs in speed controllers  don't work well in submarines. Too much demand from servos?

    - I will use the PIC controller board for now. (The sailing season is getting very close!)

    - Still some work needed on the Arduino version of the software in combination with the commercial H Bridges  but that is a better winter activity! (I've made a note in Github to this effect.)

    David


    Last edited by david f on Mon Mar 25, 2019 9:24 am; edited 1 time in total
    avatar
    tsenecal
    Guest

    Posts : 140
    Join date : 2015-04-01

    Arduino proportional control of a  piston tank - Page 2 Empty Re: Arduino proportional control of a piston tank

    Post  tsenecal on Fri Mar 22, 2019 2:37 pm

    David,

    i find that 99% of all ESC BECs that we use (car/boat escs with reverse) are built to handle the load of a single standard size servo... which basically makes them useless for anything other than a 1/10 scale or smaller r/c car.
    david f
    david f
    AMS Treasurer

    Posts : 2133
    Join date : 2010-11-10
    Age : 70
    Location : Cumbria

    Arduino proportional control of a  piston tank - Page 2 Empty Re: Arduino proportional control of a piston tank

    Post  david f on Thu Mar 05, 2020 2:30 pm

    Just to say that I have now tested this software in the "wet" in a real model submarine and it works well.

    I have posted the latest software to Github, for anyone to use:

    https://github.com/rdforrest/submarine-proportional-pistontank

    This version includes a "winch" control option, developed  for something I'm working on.

    I am still getting some problems with my Arduino Nano clones having code corrupted and having to be re-programmed.

    (I have had the same problems with Nanos used with Tim S's Telemetry.)

    I still think that power supply is the problem. I am using a separate power supply (I would never use a speed controller BEC) and I have recently moved back to analogue from switch mode but still with these corruption problems.

    LATER EDIT> I have just checked and it was actually a switch mode power supply in the model. I have installed an analogue one now, so lets see.

    LATER, LATER EDIT ! (March 2020) An analogue power supply failed to solve the corrupt code problem. However I think I may have solved the problem by using a genuine Arduino rather than a clone. This seems to be holding up well so far and without out all the input signal protection I had installed on the clone.

    David

      Current date/time is Tue Dec 01, 2020 12:00 am