Help with water speed please


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322


    Did you find this post helpful? Yes | No

    Default Re: Help with water speed please

    Thank you so much Alain for the links! To be perfectly honest my math skills are not good enough to write the formula so a PIC can process it.

    Hope you and your family and friends also have a great Christmas and a Happy New Year!

    Best, Ed

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Help with water speed please

    Hi, Ed

    as the speed range will be limited ( even for Red October !!! ), I think you'd better use a retrieve table plus linear interpolation.

    the 32 bits square root calculations needing too much CPU time ... for the expected result
    ( and I hope your sub' not used in sea water or "not so clean " water ... you might use a different density coeff : http://www.csgnetwork.com/h2odenscalc.html )

    may be you also could have a look for a possible temp coeff use ...

    Wish you all the best
    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322


    Did you find this post helpful? Yes | No

    Default Re: Help with water speed please

    Thanks Alain!
    I do have and can add a seperate temperature sensor for the same PIC and the sub only run in swimming pools, ponds, and lakes with clear water. According to the fine fun folks at Eagletree systems I could never reach the top speed in water as the 0-2 psi range is for airplanes and speedboats. They use a "strange" calculation method they do not wish to disclose. Good catch by the way! My sub is very close to the sub used in the movie "The Hunt for Red October" which is a Russian Typhoon! So what would the caculation code look like?

    Best, Ed

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: Help with water speed please

    ъжлйбес3=8игфефгш

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: Help with water speed please

    Russian joke aside, make your own algorithm.

    Write up code to set up your sub to go X speed for Y amount of seconds. X speed meaning a set number for the duty cycle controlling the prop. Make sure Y is long enough for speed to stabilize then save the PSI measurement. Increase X a couple of times, each time saving psi data. You will make your own plot based on your data. It might not be exact according to their 'top secret' calculation method but you shouldn't care. Its all relative. You measure then associate a number with the PSI settings.

    If you want to be trick, make your own speed trap using another Microchip and a couple of sensors to make your own algorithm. That might be a bit overkill.

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Help with water speed please

    Simple speed trap:
    Tie a magnet at the end of a length of string.
    Place a residential alarm switch inside the tail of the sub.
    Apply a metal plate using tape over the switch.
    Extend the plate beyond the prop to protect the string.
    Monitor the switch from your PIC.
    Then you have a simple repeatable way of calculating distance travelled over time while you tweak your formulas.

    Edit: watertight, with no holes to plug up later either.

    Robert

  7. #7
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322


    Did you find this post helpful? Yes | No

    Default Re: Help with water speed please

    Thanks guys!
    I will not receive my pressure sensor until after the first of the year. I have set up a way to test pressure vs speed with a tub of water and a motor attached to a shaft that spins in the water and travels a known distance with a stop watch that starts and stops at rev.

    All my best, Ed

  8. #8
    Join Date
    Apr 2010
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: Help with water speed please

    Quote Originally Posted by Demon View Post
    Simple speed trap:
    Tie a magnet at the end of a length of string.
    Place a residential alarm switch inside the tail of the sub.
    Apply a metal plate using tape over the switch.
    Extend the plate beyond the prop to protect the string.
    Monitor the switch from your PIC.
    Then you have a simple repeatable way of calculating distance travelled over time while you tweak your formulas.

    Edit: watertight, with no holes to plug up later either.

    Robert
    You are a practical genius .

Similar Threads

  1. Under water control data
    By Macgman2000 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th September 2011, 01:07
  2. water flow meter..
    By ecca in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th May 2010, 10:11
  3. Best choice for detecting water?
    By ShortBus in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 13th October 2009, 20:18
  4. Replies: 0
    Last Post: - 7th August 2008, 09:02
  5. Electric water valve
    By Christopher4187 in forum Off Topic
    Replies: 2
    Last Post: - 6th April 2008, 21:41

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts