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.

Papplewick Pumping Station SUBMARINE Day. 31st March - 1st April 2024.

$$$

&&&

::::

Who is online?

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

Leogtleo*


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

Latest topics

» Powering and controlling 2 brushed motors with one receiver in an RC submarine
DIY pitch controller EmptyYesterday at 10:31 pm by Leogtleo*

» 868/915 Mhz as a viable frequency for submarines.
DIY pitch controller EmptyThu Feb 29, 2024 11:34 pm by tsenecal

» Sheerline gasket material
DIY pitch controller EmptyTue Feb 20, 2024 12:24 am by Michaelc

» Choice of CAD software and Printer for 3D printing
DIY pitch controller EmptyThu Feb 15, 2024 4:53 pm by david f

» Engel Nautlus
DIY pitch controller EmptyTue Feb 13, 2024 12:15 pm by palmert6

» RF 27/433MHz maximum depth in pools (1-5 ppm chlorine, 6-8pH)
DIY pitch controller EmptyThu Feb 08, 2024 5:05 pm by david f

» Not the hobby I expected :)
DIY pitch controller EmptyThu Feb 08, 2024 4:58 pm by david f

» Arduino proportional control of a piston tank
DIY pitch controller EmptyThu Feb 08, 2024 4:37 pm by david f

» WW2 mini sub build
DIY pitch controller EmptyMon Jan 29, 2024 6:51 pm by tsenecal

Statistics

Our users have posted a total of 12416 messages in 1980 subjects

We have 1002 registered users

The newest registered user is palmert6

3 posters

    DIY pitch controller

    avatar
    tsenecal
    Guest


    Posts : 302
    Join date : 2015-04-01

    DIY pitch controller Empty DIY pitch controller

    Post  tsenecal Fri Apr 22, 2022 7:34 am

    Ran across this video on youtube... thought it might be interesting... i have enough arduinos laying around that i might give this a try...

    https://www.youtube.com/watch?v=gG0X_yIP1oQ

    david f likes this post

    david f
    david f
    AMS Treasurer


    Posts : 2393
    Join date : 2010-11-10
    Age : 73
    Location : Cumbria

    DIY pitch controller Empty Re: DIY pitch controller

    Post  david f Fri Apr 22, 2022 1:39 pm

    Nice job but his $5 build price looks like an underestimate in current circumstances!
    (Farnell quotes £8.50 just for the MPU-6050 chip.)
    David
    avatar
    tsenecal
    Guest


    Posts : 302
    Join date : 2015-04-01

    DIY pitch controller Empty Re: DIY pitch controller

    Post  tsenecal Fri Apr 22, 2022 5:12 pm

    david f wrote:Nice job but his $5 build price looks like an underestimate in current circumstances!
    (Farnell  quotes £8.50 just for the MPU-6050 chip.)
    David

    yep, one of my favorite go to places has them on a breakout board for $7.00, but another has them for $32!!!

    I do have a drawer full of arduino micro pros...   i am thinking that i might give it a try when i get some free time.  the nice thing about DIY is that i can add features that no-one else seems to think are important.


    To be honest, the most interesting thing i got from that video was the arduino "ServoInput" library. I never knew that existed, it would clean up quite a lot of my different projects, it should reduce the amount of code i have to write by about 40 lines.

    david f likes this post

    C-3PO
    C-3PO


    Posts : 95
    Join date : 2018-11-21
    Location : Northamptonshire UK

    DIY pitch controller Empty Re: DIY pitch controller

    Post  C-3PO Mon Apr 25, 2022 3:15 pm

    david f wrote:Nice job but his $5 build price looks like an underestimate in current circumstances!
    (Farnell  quotes £8.50 just for the MPU-6050 chip.)
    David

    GY-521 3 Axis Accelerometer Gyroscope module for Arduino MPU-6050 @ Cricklewood Electronics = £3.00 ex delivery - I guess they have not revalued their stock...

    https://www.cricklewoodelectronics.com/GY-521-3-Axis-Accelerometer-Gyroscope-module-for-Arduino-MPU-6050.html

    Regards
    Jonathan

    david f likes this post

    C-3PO
    C-3PO


    Posts : 95
    Join date : 2018-11-21
    Location : Northamptonshire UK

    DIY pitch controller Empty Re: DIY pitch controller

    Post  C-3PO Thu Apr 28, 2022 11:56 am

    The following may be of some use - if nothing else it might save you from a few more grey hairs!!!

    Unless I have picked up the wrong end of the stick completely - it appears that some of the main core mpu6050 Arduino libraries do not work without an amendment to the code.

    I admit this seems very odd ....

    You can only communicate with the mpu6050 once it has been "woken up" which you do by set the " PWR_MGMT_1 register" to zero

    Code:
    Wire.beginTransmission(MPU_addr);
    Wire.write(0x6B);  // PWR_MGMT_1 registe
    Wire.write(0);     // set to zero (wakes up the MPU-6050)
    Wire.endTransmission(true);

    I spent ages with the main mpu6050 library from github and assumed I had a dead chip when nothing worked. I then downloaded another library (mpu6050 light) and the device sprung into life immediatley.

    Libraries
    Struggled with this one without amended code - https://github.com/ElectronicCats/mpu6050

    This fired up first time - https://github.com/rfetick/MPU6050_light

    Hope this may be of some use

    Regards
    Jonathan

    david f and tsenecal like this post


      Current date/time is Sun Mar 03, 2024 2:43 am