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 a guide to past events see the "Shows and Events" section.
Bournville MBC on Sunday 11th August 2024, 10.00 i
::::

Papplewick Pumping Station Sub Weekend, 14th & !5th Sept 2024

P~~~

$$$

Who is online?

In total there are 5 users online :: 0 Registered, 0 Hidden and 5 Guests

None


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

Latest topics

» Robbe Seawolf V2
Gyro / Arudino question EmptyYesterday at 9:21 pm by geofrancis

» 868/915 Mhz as a viable frequency for submarines.
Gyro / Arudino question EmptySun Sep 08, 2024 10:55 pm by geofrancis

» WW2 mini sub build
Gyro / Arudino question EmptyThu Sep 05, 2024 8:15 am by david f

» Trumpeter 1/144 PLAN Type 092 Xia Class SSBN
Gyro / Arudino question EmptyTue Aug 06, 2024 5:42 am by redboat219

» UHF radio control for submarines (openLRS, LoRa, FSK etc. on 458Mhz and 433Mhz )
Gyro / Arudino question EmptySat Jul 27, 2024 9:05 am by david f

» David Forrest's R class
Gyro / Arudino question EmptyFri Jul 19, 2024 1:00 pm by david f

» Futaba -868/915mhz equipment
Gyro / Arudino question EmptySun Jun 09, 2024 10:47 pm by tsenecal

» Darnell type 21 submarine, need some help
Gyro / Arudino question EmptySun Jun 09, 2024 9:35 am by Deep Diver (Fred)

» bladder bags
Gyro / Arudino question EmptyTue May 28, 2024 8:30 am by Deep Diver (Fred)

Statistics

Our users have posted a total of 12493 messages in 1987 subjects

We have 1019 registered users

The newest registered user is Flyboy21

4 posters

    Gyro / Arudino question

    avatar
    timgarrod
    AMS Website Webmaster


    Posts : 259
    Join date : 2013-04-23
    Age : 44

    Gyro / Arudino question Empty Gyro / Arudino question

    Post  timgarrod Tue Jan 31, 2017 5:43 pm

    Evening All,

    Been playing with Arudino for a couple of weeks now and love it. I thinking of replacing the gyro in my tyhoon with one but wondering if this would work.

    when on the surface

    I will have control of both the front plane and rear link together so both go in the same direction. ie / /

    but when under

    I put it in auto mode and then the rear plane are just controlled by the gyro.

    reason for do this is I hoping it will help dive level. is this worth doing.

    cheers
    david f
    david f
    AMS Treasurer


    Posts : 2409
    Join date : 2010-11-10
    Age : 74
    Location : Cumbria

    Gyro / Arudino question Empty Re: Gyro / Arudino question

    Post  david f Thu Feb 02, 2017 5:04 pm

    I haven't tried level control for some time. Then it was using accelerometers with voltage output feeding into the analogue to digital input of PIC processors. It wasn't very good with not enough sensitivity.

    I would try getting a digital accelerometer to talk to an Arduino, if I was you. (By the way it is accelerometers you want. Things that measure gravity (tilt) rather than gyros which (I think!) measure angular acceleration.)

    You might try building on what Tim Senecal has already done using the LSM303 D chip. This is used for telemetry with an Arduino really as a electronic compass. But the chip also has accelerometers for 3 dimensions and all for about £9 !

    You would be able to get the software up and running for the compass and maybe then get a single accelerometer output to then run pwm to a servo.

    I don't know how you are getting on with the Arduino. I find the Nano clones are good. The Serial Monitor is also so useful in getting things running.

    David
    avatar
    timgarrod
    AMS Website Webmaster


    Posts : 259
    Join date : 2013-04-23
    Age : 44

    Gyro / Arudino question Empty Re: Gyro / Arudino question

    Post  timgarrod Thu Feb 02, 2017 5:44 pm

    Hi David,

    Thanks, i will give it a go. think in the kit i got there was a 3 and 2 angle accelerometers. I starting to under stand it and can get it to do what i want with one chanel but not two.

    I got it to read 4 channel on the serial port and display the reading.
    avatar
    SimonH


    Posts : 93
    Join date : 2020-09-29
    Location : Nottingham, UK

    Gyro / Arudino question Empty Re: Gyro / Arudino question

    Post  SimonH Tue May 02, 2023 9:01 pm

    Not sure if you have already found this but looking ahead to possibly using one of the many 3-axis accelerometer boards I found a good paper from the semi manufacturer NXP on how to convert the 3-axis outputs to pitch/roll/yaw.
    Its lots of maths but a lot would simplify based on the fact pitch/roll should be small (unlike aerospace examples), though not sure it would be feasible on an arduino nano. RP2040 versions or raspberry pi pico should have the grunt and code space to do it.
    It also is good at explaing why things can go loopy under certain conditions.

    Rather than include it here, the app note is AN3461 from NXP/Freescale titled 'Tilt Sensing Using a Three-Axis Accelerometer', simply look for NXP AN3461 and it should appear in your favourite browser.

    You still have the task of generating the control surface movement from the pitch angle, but its a start if you like to roll your own stuff.

    david f likes this post

    avatar
    maxx78


    Posts : 18
    Join date : 2022-05-02
    Location : Hamburg, Germany

    Gyro / Arudino question Empty Re: Gyro / Arudino question

    Post  maxx78 Wed May 03, 2023 1:13 pm

    I personally use "off the shelf" boards for quadrocopters and INAV in Airplane mode.

    it has a learning curve but you get a finished control loop and only have to set your PID gains.

    And you need the Channels from the receiver as as von PPM stream, but there adapaters for this.

    https://github.com/iNavFlight/inav

    david f likes this post


      Current date/time is Wed Sep 18, 2024 7:09 am