* 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 register on the forum first then follow the forum link to our membership form which is on our website


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

Thanks for notification of events and keep 'em coming!

.

, Papplewick pumping station, Nottingham, 21,22 April
Bournville June 2nd 2019, 10am
.

. ,

,

Norwich MBC Submariners joint Model Boat weekend - 27/28th July
.
.Model Boat Convention (Exhibition), 24,25 August

.

. Bournville Dive-In (2) MBC, 15th September

,,,,

Barrow in Furness MBC regatta and submarine event, Sunday 22nd Sept 2019,10am

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 37 on Sun Mar 13, 2011 11:27 am

Latest topics

» trimming 1/96 USS ALBACORE
Sat Mar 23, 2019 12:37 am by merriman

» Arduino proportional control of a piston tank
Fri Mar 22, 2019 2:37 pm by tsenecal

» Piston Ballast Systems
Wed Mar 20, 2019 12:16 am by merriman

» Wayback Machine - We are on it.
Sat Mar 09, 2019 11:29 am by david f

» Resurgam, Nordenfelts II & IV - George Garrett's works.
Sat Mar 09, 2019 10:51 am by david f

» Compass bearing by Telemetry - LSM303 module
Wed Feb 27, 2019 1:00 pm by C-3PO

»  Alexander Engel Russian typhoon Submarine
Thu Feb 21, 2019 2:27 am by deepseadiver

» Norwich Submariners joint Model Boat weekend - 27/28th July 2019
Mon Feb 18, 2019 5:26 pm by nigele(ADMIN)2

» Revell 1:144 212A Conversion
Mon Feb 18, 2019 3:26 am by salmon

Statistics

Our users have posted a total of 10798 messages in 1769 subjects

We have 801 registered users

The newest registered user is pvtspoon

    Compass bearing by Telemetry - LSM303 module

    Share
    david f
    david f
    AMS Treasurer

    Posts : 2022
    Join date : 2010-11-10
    Age : 68
    Location : Cumbria

    Compass bearing by Telemetry - LSM303 module

    Post  david f on Thu Jan 03, 2019 1:48 pm

    I have been making some progress with using this module, which has given me problems in the past. The key thing is to make sure that you run the calibration routine for the Arduino regularly. (Not getting the full 0 to 360 degrees is a sure sign of this.)

    I have installed the LSM303 with its own Arduino and 16x2 LCD screen in a "water tight" box:



    The watertight box is something of an overkill but it was  good 3D printer practise! (It still needs an epoxy resin coating for water-tightness.)

    The compass reading goes as an i2c interface to the telemetry (also gives depth and battery voltage) Arduino via a 1m cable. (Still getting some transmission problems with this. Garbage appears on the screen after a few seconds.)

    David
    C-3PO
    C-3PO

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

    Re: Compass bearing by Telemetry - LSM303 module

    Post  C-3PO on Thu Jan 03, 2019 10:59 pm

    Hi David,

    Are you using i2C Bus Pullup Resistors?

    Is your LSM303 an Adafruit, Pololu or something else?

    Are you using i2c for the LCD screen?

    Do you get the same issue with garbage data if you run the boards example code?

    Perhaps run the i2c scanner to confirm addresses of hardware...

    Regards
    Jonathan
    avatar
    tsenecal
    Guest

    Posts : 119
    Join date : 2015-04-01

    Re: Compass bearing by Telemetry - LSM303 module

    Post  tsenecal on Fri Jan 04, 2019 3:27 am

    the original telemetry dingus i made that is/was documented over on subpirates used a pololu device that was a 3d compass and accelerometer to compensate for tilt in any direction...  it ran right next to the arduino pro micro, which was 2 inches from the receiver, and gave me reasonably accurate heading for the hour or so that i ran the sub at a regatta in california a few weeks after i built it.

    sadly, i haven't been keeping up on the telemetry side of things, and that dingus has been sitting in a drawer since i got back from that regatta...

    the exact part is still available from pololu:

    https://www.pololu.com/product/2127


    I may be assuming too much, but i would think that is what david is using..
    C-3PO
    C-3PO

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

    Re: Compass bearing by Telemetry - LSM303 module

    Post  C-3PO on Fri Jan 04, 2019 7:53 am

    I have used various "compass" boards and found them all a bit frustrating apart from this one - CMPS11 ( now CMPS12) - Whilst expensive it is a solid as a rock.

    I notice having pasted the link that this is version 4 CMPS12 which I have not used.

    http://www.hobbytronics.co.uk/cmps-12-tilt-compass

    The CMPS12 has onboard Kalman filter's  - I can't remember the exact spec of the CMPS11 but if had an onboard buffer of some 25 reads or so to smooth the output
    david f
    david f
    AMS Treasurer

    Posts : 2022
    Join date : 2010-11-10
    Age : 68
    Location : Cumbria

    Re: Compass bearing by Telemetry - LSM303 module

    Post  david f on Fri Jan 04, 2019 9:03 am

    Thanks for the advice Tim and Jonathan.

    The LSM303 IS a Pololu.

    I have fitted 4.7k pullup resistors to the i2c bus which also has the LCD connected.

    The i2c scanner shows the compass Arduino address but only intermittently.

    It is looking like a cable fault (I am using 1 m of audio coax) but your suggestion to run the example software is a nice one.

    I have also tried  a Honeywell compass module HMC5883L but that never gave good readings - maybe calibration issues again?

    I have found compass modules tricky. They work so well in phones!

    It is one of the few sensors which works underwater though.

    Thanks again,

    David
    C-3PO
    C-3PO

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

    Re: Compass bearing by Telemetry - LSM303 module

    Post  C-3PO on Fri Jan 04, 2019 10:20 am

    Hi David,

    All part of the fun!

    I have been playing with a display for my telemetry. In it's early stages but designed to run via wifi on most web browsers so could be on a phone/tablet/pc

    No real data yet - just beginning to explore the concept



    Regards
    Jonathan
    avatar
    tsenecal
    Guest

    Posts : 119
    Join date : 2015-04-01

    Re: Compass bearing by Telemetry - LSM303 module

    Post  tsenecal on Fri Jan 04, 2019 7:07 pm

    I am not using pullup resistors, but as i said, there MIGHT be 2" of wires between the compass module and the arduino. I was able to run the example arduino sketch, and the calibration sketch with zero issues.
    david f
    david f
    AMS Treasurer

    Posts : 2022
    Join date : 2010-11-10
    Age : 68
    Location : Cumbria

    Re: Compass bearing by Telemetry - LSM303 module

    Post  david f on Wed Feb 27, 2019 9:51 am

    I have given up on using the LSM303 in my submarines. It works well on the bench but once you get it into the close confines of a model submarine it stops giving reliable readings. I did try calibrating it "in situ" but this really didn't help.

    I also tried feeding it via its own dedicated arduino  but this just made things more complicated.

    If you have a very large submarine you may able to find a remote location for the compass module (I was looking to use the waterproof box shown earlier.) but it really starts getting too complicated for only a "nice to have" (compass reading by telemetry.) It will work nicely in surface ships , I think.

    On the plus side the 3D printed waterproof box seems to work well. I waterproofed the box by painting the interior with  5 minute epoxy (The "Pound Shop" tube variety.)

    I plan to now use the box for some Pinger  R & D!

    David
    C-3PO
    C-3PO

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

    Re: Compass bearing by Telemetry - LSM303 module

    Post  C-3PO on Wed Feb 27, 2019 1:00 pm

    Doh - senior moment - I realise I had already posted about this device - sorry

    David,

    I have used this compass (below) is several models - works a treat.

    Expensive - yes - but look at the detailed spec and see what's under the hood!!!

    I love the fact that it has an onboard 45 read sampling buffer to smooth the output

    http://www.hobbytronics.co.uk/cmps-12-tilt-compass?keyword=compass

    and the detail

    http://www.robot-electronics.co.uk/files/cmps12.pdf

    Regards
    Jonathan

      Current date/time is Mon Mar 25, 2019 1:49 am