Simple Math


Closed Thread
Results 1 to 4 of 4

Thread: Simple Math

  1. #1
    Join Date
    Mar 2004
    Location
    Manila
    Posts
    18

    Default Simple Math

    Hi,

    I am playing with a pressure transducer. It has a capacity of 0 to 2.5 bar. the output is 0 to 5vdc proportional to the pressure.

    Here is what I get using RA0 of 16f877.

    At no load.... somewhere around 1.095vdc
    With max load (1.5Bar) .... 2.4985vdc

    Here is the question:

    How can i convert it to percentage.
    1v = O% and 2.5v=100%

    Thanks!
    Brenda

  2. #2
    Join Date
    May 2005
    Posts
    49


    Did you find this post helpful? Yes | No

    Talking A simple suggestion

    1v =1000 mv
    2.5 v =2500 mv
    2500 -1000=1500
    1500 /100 =%1
    i hope it will work
    Asking is not a shame but not learning is a SHAME!!!

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Off topic slightly but I have a silly question, I thought at 2.5 bar it should output 5V, not 2.5V? Either way the math still works.

  4. #4
    Join Date
    Mar 2004
    Location
    Manila
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    hi,
    many many thanks

    brenda

Similar Threads

  1. Simple RF remote control code
    By Bruce in forum Code Examples
    Replies: 13
    Last Post: - 22nd January 2014, 10:45
  2. Simple Blinking LED - WTF!!
    By johnnylynx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st February 2010, 06:19
  3. PBPL Math...new math takes more cycles...Always?
    By skimask in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2008, 10:22
  4. Nasty PBP math help ?
    By Martin in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 30th March 2005, 09:46
  5. Doing Simple Math - getting the wrong answer
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th March 2005, 14:27

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