how to calculate reverse value with scale


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2005
    Location
    France
    Posts
    50

    Default how to calculate reverse value with scale

    Hi,

    I cannot find how to convert my level value from receiver (from -130dBm to -30dBm) I do not use minus -> so 130 to 30
    My display (nextion type) has a "vu meter" witch needs 0 to 100
    When my receiver value is 130, I need to send 0 to LCD
    When my receiver value is 30 then I need to send 100 to LCD

    Regards

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default Re: how to calculate reverse value with scale

    output = (reading+130)*10/16
    should do it. Where I assume you are reading -130 to +30.

    Thus, a reading of -130 will give output = 0
    and a reading of +30 will give output = 100

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,376


    Did you find this post helpful? Yes | No

    Default Re: how to calculate reverse value with scale

    or

    output = 130-reading
    should do it. Where I assume you are reading 130 to 30.

    Thus, a reading of 130 will give output = 0
    and a reading of 30 will give output = 100
    Warning I'm not a teacher

  4. #4
    Join Date
    Sep 2005
    Location
    France
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: how to calculate reverse value with scale

    Ohhh yes yes ! I'm so tired... didn't saw as simple as it is !
    Regards

Similar Threads

  1. Reverse Bit Order?
    By Art in forum General
    Replies: 3
    Last Post: - 23rd January 2010, 23:52
  2. How to reverse polarity on output pulse??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th June 2009, 14:25
  3. clock runs reverse and fast:(
    By HYETİK in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd March 2009, 12:44
  4. Servo reverse
    By bill_23 in forum mel PIC BASIC
    Replies: 6
    Last Post: - 22nd February 2009, 21:06
  5. What is the best way to make forward reverse
    By guanerrr in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th April 2006, 18:01

Members who have read this thread : 1

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