Page 5 of 7 FirstFirst ... 34567 LastLast
Results 61 to 75 of 99

Thread: Math problem I'm too stupid to solve

  1. #61
    Join Date
    1st March 2007 - 11:30
    Bike
    2014 R1200 GS, 2007 DR 650
    Location
    Whakatane
    Posts
    1,473
    You are all wrong I tell you!

    The answer is: -

    Midnight in a glass bottomed boat times three foot six minus a bottle of orange.

    and if you want to be utterly precise about it, the constant of integration is a banana about that colour.


    Now, what was the question again?
    I may not be as good as I once was, but I'm as good once as I always was.

  2. #62
    Join Date
    5th August 2005 - 14:30
    Bike
    Various
    Location
    Auckland
    Posts
    4,359
    Quote Originally Posted by Bass View Post
    Now, what was the question again?
    The question is why are you pissed at 9:34 in the morning?
    Quote Originally Posted by Tank
    You say "no one wants to fuck with some large bloke on a really angry sounding bike" but the truth of the matter is that you are a balding middle-aged ice-cream seller from Edgecume who wears a hello kitty t-shirt (in your profile pic) and your angry sounding bike is a fucken hyoshit - not some big assed harley with a human skull on the front.

  3. #63
    Join Date
    7th April 2009 - 19:32
    Bike
    VFR400 NC30 "Silver Surfer"
    Location
    Mt Eden, Auckland
    Posts
    959
    Quote Originally Posted by The Stranger View Post
    The question is why are you pissed at 9:34 in the morning?
    He's in Papakura. That seems to be a common theme among people I know who live out there

  4. #64
    Join Date
    1st March 2007 - 11:30
    Bike
    2014 R1200 GS, 2007 DR 650
    Location
    Whakatane
    Posts
    1,473
    Quote Originally Posted by The Stranger View Post
    The question is why are you pissed at 9:34 in the morning?
    Come on! You know that booze doesn't get the colours this bright or the patterns so well defined

    Quote Originally Posted by jono035 View Post
    He's in Papakura. That seems to be a common theme among people I know who live out there

    See above




    Sorry about that. Sixties sense of humour I guess.
    I may not be as good as I once was, but I'm as good once as I always was.

  5. #65
    Join Date
    1st July 2007 - 17:40
    Bike
    my little pony
    Location
    shoebox on middle of road
    Posts
    1,522
    If the cell ps was turned off, the A to D converter being -150mv to 150mv could read full scale deflection negative.
    The scaling algorithm could be coded as to inhibit conversions out of the range of 0 to 30 mv, and even if input voltage is less than say 0.2mv, read 0 to inhibit floating values.

  6. #66
    Join Date
    7th April 2009 - 19:32
    Bike
    VFR400 NC30 "Silver Surfer"
    Location
    Mt Eden, Auckland
    Posts
    959
    Quote Originally Posted by Coldrider View Post
    If the cell ps was turned off, the A to D converter being -150mv to 150mv could read full scale deflection negative.
    The scaling algorithm could be coded as to inhibit conversions out of the range of 0 to 30 mv, and even if input voltage is less than say 0.2mv, read 0 to inhibit floating values.
    Yeah, often with SCADA systems for each value they will have a numerical value and a 'health' status, so that if it goes out of range or there is a comms issue you can tell the difference between an actual zero and a zero due to a failure somewhere along the lines.

    Doing that such that the value is ignored if it is outside a specific range and an error flag is raised would be a good idea.

    Edit: Depending on what the differential amp stage was, my guess is it would read 0mV input with no power. A strain gauge with no supply is basically a resistance between the differential terminals.

  7. #67
    Join Date
    1st July 2007 - 17:40
    Bike
    my little pony
    Location
    shoebox on middle of road
    Posts
    1,522
    Quote Originally Posted by jono035 View Post
    Yeah, often with SCADA systems for each value they will have a numerical value and a 'health' status, so that if it goes out of range or there is a comms issue you can tell the difference between an actual zero and a zero due to a failure somewhere along the lines.

    Doing that such that the value is ignored if it is outside a specific range and an error flag is raised would be a good idea.

    Edit: Depending on what the differential amp stage was, my guess is it would read 0mV input with no power. A strain gauge with no supply is basically a resistance between the differential terminals.
    Yes, been caught out on an Allan Bradley 5/15, maths overflow error shut down the processor, reset and all OK, they tick away for years then out of the blue they bite....

  8. #68
    Join Date
    7th April 2009 - 19:32
    Bike
    VFR400 NC30 "Silver Surfer"
    Location
    Mt Eden, Auckland
    Posts
    959
    Quote Originally Posted by Coldrider View Post
    Yes, been caught out on an Allan Bradley 5/15, maths overflow error shut down the processor, reset and all OK, they tick away for years then out of the blue they bite....
    Yikes... That'd be pretty rough, you'd hope they'd just watchdog and reset in that case?

    The only PLCs I've really gotten familiar with are the Siemens S7 series. Too big to be of any use to me though, too expensive really. I'd rather just get a board made and use a microcontroller...

  9. #69
    Join Date
    16th September 2004 - 16:48
    Bike
    PopTart Katoona
    Location
    CT, USA
    Posts
    6,542
    Blog Entries
    1
    Quote Originally Posted by Mully View Post
    Where's Hitcher?

    It's "maths" not "math". We are not in 'merica.

    As for the question, I'm a simple freight forwarder, so I dunno.
    Actually to correct you a bit there. It is math.
    Maths is actually different. let me explain.
    What is the answer? - Math
    Show your 1-10 times tables - Maths

    One is a question/subject, the other is a task (or series of)
    e.g. I enjoy to run, but i dislike running. I am not good at Math, which is why no one gives me maths to do.
    If you want to get pedantic there is computations, computation and Math.

  10. #70
    Join Date
    16th September 2004 - 16:48
    Bike
    PopTart Katoona
    Location
    CT, USA
    Posts
    6,542
    Blog Entries
    1
    Quote Originally Posted by jono035 View Post
    Yeah, often with SCADA systems for each value they will have a numerical value and a 'health' status, so that if it goes out of range or there is a comms issue you can tell the difference between an actual zero and a zero due to a failure somewhere along the lines.
    Not if the RTC stops at the same time......
    ....funny the Citect manual doesn't state "How to put fire out", Guess i better call them up
    I also love the aspect that you can raise a flag, the SCADA system crashes, the RTU pages you to tell you the system has crashed yet is all irrelevant because windows update needs to restart the PC.
    If only SCADA was designed by a bunch of people who had a procedure rather than a bunch of super intelligent loopy's who wanted to become famous. They can't even talk the same protocol

  11. #71
    Join Date
    7th April 2009 - 19:32
    Bike
    VFR400 NC30 "Silver Surfer"
    Location
    Mt Eden, Auckland
    Posts
    959
    Quote Originally Posted by avgas View Post
    Not if the RTC stops at the same time.....
    So use a simpler clock (doesn't have to be real time, plain RC oscillator for gods sakes) to run your watchdog. With a properly designed watchdog system then this isn't even a problem I've ever bothered with?

    Edit: I'm also not sure what you're on about in terms of the 'SCADA system crashing' due to something about windows update but any of the systems we use have failover controllers to avoid this kind of problem. I do agree with you that most SCADA stuff seems to be woefully lacking in the design department though.

  12. #72
    Join Date
    3rd January 2007 - 22:23
    Bike
    A chubby lollipop
    Location
    I'm over here!
    Posts
    2,539
    Quote Originally Posted by jono035 View Post
    He's in Papakura. That seems to be a common theme among people I know who live out there
    I think living in Papakura would be a good excuse for being pissed 24/7.

  13. #73
    Join Date
    23rd March 2007 - 10:24
    Bike
    Black something
    Location
    Auckland
    Posts
    491
    Quote Originally Posted by jono035 View Post
    yeah, be careful about that... Is it flagging a warning or actually sending an e-mail to make the order? You might find that if something goes wrong (load cell stops giving output, wire corrodes off, power supply dies etc.) then a rate of change detection will trigger...

    Absolute value would be the way that I would do it with it e-mailing you in such a way as to be a reminder rather than an automated system... You can do some basic low pass filtering on the results easily enough too (measure values once per second, sum them every minute and divide by 60 to give you 1 update per minute that attenuates any changes that occur faster than over a 30s or so timeframe).

    If your thing can e-mail you or raise a warning or whatever if the output drops below a certain amount too (no input at all) then that could be useful. May require some filtering as well to not trigger on a bottle change (unless you have a bottle cradle heavy enough to be measured).

    If the system is switching between bottles when the pressure drops then that would be why it waits until one is pretty much empty... The pressure should be constant with temperature until the bottle is empty (ignoring the outgoing rate of the gas etc.).
    I want it fully automated. I'm lazy enough to code something to do it for me. When it reaches the Empty weight (EW) of 35.4kg it will raise a flag. If that flag is still there after 2 days, then its not going to get any smaller. if the weight is within +/- 3kg of what it was when it first hit EW 2 days ago, and as long as it hasn't ordered a bottle in the last 4 days, it will go ahead and order a new one.

    The platform on top of the loadcells the bottles sit on are folded from 3mm stainless steel and weigh 5.86923018234529kg. The software knows something is wrong if it falls below that value.


    Quote Originally Posted by paddy View Post
    Okay now you got me a bit confused, and without seeming adversarial I have a few thoughts/questions. In terms of the "# of divisions" surely that is just about how many SFs you run the conversion to. In terms of you stating the scale as 300, what does a 0mV output from the loadcell represent (and before anyone jumps in with the obvious joke - it's turned off - it's a serious question).
    0mV means 0kg.
    Quote Originally Posted by jono035 View Post
    Sure thing, ask away!

    I'm not really sure what you mean by "how many SF's you run the conversion to". In terms of the ADC itself, the number of divisions comment was meant to say that a 16 bit input ADC will spit out a number between 0 and 65535 which corresponds to what the input voltage is relative to the reference voltage.

    If the input range is 0-1V then 0V in will be 0. 1V in will be 65535. Everything else will be scaled accordingly (0.5V being 32768 for instance). To get a number in your program that refers to the actual voltage being measured then you would divide the ADC output by 65535 in this case to get the measurement. 0-1V doesn't mean there are 1001 counts or anything like that, it isn't integer mathematics.

    Don't worry about getting anything exactly right, there is no way that those modules will be good for all 16 bits of precision. Noise will eat away a pretty massive chunk of that precision, especially when your reference levels are 150mV. To change the ADC output value by 1, the input would have to be accurate to 4.6uV.

    Not entirely sure if that answers your question?
    The loadcell is accurate to about 12grams, compensates for temperature within -10/+40°C.
    The AD is accurate to +/- 0.1% @ +/-150mV, zero drifts +/-6μV/°C
    "And, look, the luscious and fecund fronds of the Silver Fern has given brilliant birth to a stupendous fruit! A red Hondaberry, desposited by a lesser known species of Plonker Gittus Maximus Idiotus."

  14. #74
    Join Date
    7th April 2009 - 19:32
    Bike
    VFR400 NC30 "Silver Surfer"
    Location
    Mt Eden, Auckland
    Posts
    959
    Quote Originally Posted by Winter View Post
    I want it fully automated. I'm lazy enough to code something to do it for me. When it reaches the Empty weight (EW) of 35.4kg it will raise a flag. If that flag is still there after 2 days, then its not going to get any smaller. if the weight is within +/- 3kg of what it was when it first hit EW 2 days ago, and as long as it hasn't ordered a bottle in the last 4 days, it will go ahead and order a new one.

    The platform on top of the loadcells the bottles sit on are folded from 3mm stainless steel and weigh 5.86923018234529kg. The software knows something is wrong if it falls below that value.



    0mV means 0kg.


    The loadcell is accurate to about 12grams, compensates for temperature within -10/+40°C.
    The AD is accurate to +/- 0.1% @ +/-150mV, zero drifts +/-6μV/°C
    0.1% is 10 bit precision more or less, which is pretty much exactly what I would have suspected. What you described at the start sounds good.

    Your platform weight has a pretty serious excess of precision though given the accuracy numbers you've already stated!

    If you're getting numbers out and they seem all good then sweet.

  15. #75
    Join Date
    23rd March 2007 - 10:24
    Bike
    Black something
    Location
    Auckland
    Posts
    491
    Quote Originally Posted by jono035 View Post
    0.1% is 10 bit precision more or less, which is pretty much exactly what I would have suspected. What you described at the start sounds good.

    Your platform weight has a pretty serious excess of precision though given the accuracy numbers you've already stated!

    If you're getting numbers out and they seem all good then sweet.
    they 'seem' all sweet. But I'd love to get my hand on a 50kg set weight to check it all.

    Can you get 'accurate weights' from somewhere?
    "And, look, the luscious and fecund fronds of the Silver Fern has given brilliant birth to a stupendous fruit! A red Hondaberry, desposited by a lesser known species of Plonker Gittus Maximus Idiotus."

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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