************************************************** ***********************
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 " !!!
*****************************************
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 " !!!
*****************************************
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.
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-
Ohm it's not just a good idea... it's the LAW !
Bookmarks