+ Post New Thread
Page 2 of 2 FirstFirst 1 2
Results 21 to 22 of 22
  1. #21
    Member level 4
    Points: 1,547, Level: 8

    Join Date
    Apr 2013
    Posts
    76
    Helped
    3 / 3
    Points
    1,547
    Level
    8

    Re: Help with PIC16F886 0-55VDC Voltmeter (code adapted fm Arduino)

    Oh! I am very sorry for this! This might misled some people. the "0.05", Should not be there there was some rough experiment I did with that and I supposed to delete the "0.05" afterwards but I forgot. It should not be there please.



    •   AltAdvertisement

        
       

  2. #22
    Advanced Member level 4
    Points: 7,828, Level: 21

    Join Date
    Jan 2015
    Posts
    1,097
    Helped
    346 / 346
    Points
    7,828
    Level
    21

    Re: Help with PIC16F886 0-55VDC Voltmeter (code adapted fm Arduino)

    I had assumed it was an attempt to round to the nearest 10mV. Anyway that would not really make much difference - given the domain of 0V to 55V in a 10-bit ADC, the LSB equates to just over 5mV.
    Unless yo have a VERY well designed and constructed circuit, you will be lucky to get 8 bits of usable data from the ADC (the rest will be noise) which means about +/-200mV is the best you will read.
    Susan



--[[ ]]--