Logarithm in PBP


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    May I suppose the number in the "Power" column has to be displayed ... or is it just your Index ???

    In this case ... It would be much easier to use if the "Volts" were integers numbers and "Power" decimals ... I know: some more work for you !!!

    Alain

    See Also Here : http://curveexpert.webhop.net/

    That Helps ... isn't it ???
    I display only the volts

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


    Did you find this post helpful? Yes | No

    Question ???????????????????????????????????

    Quote Originally Posted by savnik View Post
    I display only the volts
    read from previous posts :

    << I want to measure the volts at the input of pic , and show on LCD the power >>

    Could you give me a decent explanation ???

    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
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    read from previous posts :

    << I want to measure the volts at the input of pic , and show on LCD the power >>

    Could you give me a decent explanation ???

    Alain
    I have a linear for FM and i want to measure the power.
    From the power meter i take the indication which is in volt.This volt i want to show on LCD. But the power change in logarithm scale and this is my problem.

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


    Did you find this post helpful? Yes | No

    Question What do you really want to do ???

    This volt i want to show on LCD.

    > Where's the problem, then, If you only want to display the voltage ???


    But the power change in logarithm scale and this is my problem.

    > This needs some USEFUL enlightments ... if you do not need to display the Power !!!

    > Do you want to display Voltage in dBv ???

    > Do you want to display Voltage in some BARGRAPH mode ??? ...

    those ONLY could give any sense to your question !!!

    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 " !!!
    *****************************************

  5. #5
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    This volt i want to show on LCD.

    > Where's the problem, then, If you only want to display the voltage ???


    But the power change in logarithm scale and this is my problem.

    > This needs some USEFUL enlightments ... if you do not need to display the Power !!!

    > Do you want to display Voltage in dBv ???

    > Do you want to display Voltage in some BARGRAPH mode ??? ...

    those ONLY could give any sense to your question !!!

    Alain
    My english is not so good.
    I want the voltage which measure with the pic , to show on lcd in dBm or dBv or watt (the table which post in #6)
    Last edited by savnik; - 28th March 2007 at 16:58.

  6. #6
    Join Date
    Oct 2005
    Location
    Loveland CO USA
    Posts
    83


    Did you find this post helpful? Yes | No

    Smile voltage to power simple math

    Savnik,

    You need to get a book on basic electronics. Voltage Current Power and Resistance.
    Power = voltage * current
    In your case you can not see the current so: Power = Voltage * Voltage /Resistance (Voltage squared)
    To prove that look at your table. Voltage of 22.4 volts = 10 watts and Voltage of 44.7 volts = 40 watts. Voltage increases 2:1 and power increases 4:1. That proves there is a voltage squared * constant.

    Voltage * Voltage/50 = Power

    To convert to db is very hard or very simple depending on how you look at it. You can fight BIG math for weeks. When you understand db it is almost as simple as finding Power. I will not tell you how now. You need to think about it for a while.

    RonS.

  7. #7
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ronsimpson View Post
    Savnik,

    You need to get a book on basic electronics. Voltage Current Power and Resistance.
    Power = voltage * current
    In your case you can not see the current so: Power = Voltage * Voltage /Resistance (Voltage squared)
    To prove that look at your table. Voltage of 22.4 volts = 10 watts and Voltage of 44.7 volts = 40 watts. Voltage increases 2:1 and power increases 4:1. That proves there is a voltage squared * constant.

    Voltage * Voltage/50 = Power

    To convert to db is very hard or very simple depending on how you look at it. You can fight BIG math for weeks. When you understand db it is almost as simple as finding Power. I will not tell you how now. You need to think about it for a while.

    RonS.
    I am a electronic for 30 years.
    Thank you for your help. You give me some idea how to calculate.

  8. #8
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile

    Hi Savnik,

    If I read your problem correctly:

    Quote Originally Posted by savnik View Post
    I have a linear for FM and i want to measure the power.
    From the power meter i take the indication which is in volt. This volt I want to show on LCD. But the power change in logarithm scale and this is my problem.

    My english is not so good.
    I want the voltage which measure with the pic , to show on lcd in dBm or dBv or watt (the table which post in #6)
    You have a RF amplifier that has an analog power meter. The power meter reads a voltage and displays the power on a Logarithmic scale. The input, to move the meter, is voltage. The scale painted on the meter face is logarithmical.

    You need the PIC’s adc input to read the DC voltage running the meter and then using mathematics or a “look-up” table convert the voltage to the equivalent power in Watts. You have already calculated the table, posted in your previous post.

    Is this close to the question? I am just trying to help with clarifying the question. Sorry I don’t have an answer for you.

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  9. #9
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pic_User View Post
    Hi Savnik,

    If I read your problem correctly:


    You have a RF amplifier that has an analog power meter. The power meter reads a voltage and displays the power on a Logarithmic scale. The input, to move the meter, is voltage. The scale painted on the meter face is logarithmical.

    You need the PIC’s adc input to read the DC voltage running the meter and then using mathematics or a “look-up” table convert the voltage to the equivalent power in Watts. You have already calculated the table, posted in your previous post.

    Is this close to the question? I am just trying to help with clarifying the question. Sorry I don’t have an answer for you.

    -Adam-
    Yes, it is my question.

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. Extensions to PBP variables
    By John_Mac in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd October 2009, 05:21
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. PBP / XP Crash
    By pondindustrial in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2005, 03:16

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