can't solve this voltage measurement problem


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default

    Would this work or can I get rid of the .1uF cap? What type of cap (material) should I use?

    Also, should I put a 1uF cap in the input to the PIC (it's also my vref voltage)? As Melanie said, this could be causing me problems too.
    Attached Images Attached Images  
    Last edited by Christopher4187; - 26th October 2009 at 16:27. Reason: added info

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


    Did you find this post helpful? Yes | No

    Exclamation Voltage Divider

    Quote Originally Posted by Christopher4187 View Post
    Would this work or can I get rid of the .1uF cap? What type of cap (material) should I use?

    Also, should I put a 1uF cap in the input to the PIC (it's also my vref voltage)? As Melanie said, this could be causing me problems too.
    Hi Christopher,

    That first circuit you attached would send 50 Volts to the PIC!

    This is more like a voltage divider.
    <IMG SRC=" http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3761&stc=1&d=125658271 3">

    -Adam-
    Attached Images Attached Images  
    Last edited by Pic_User; - 26th October 2009 at 18:52. Reason: keep up with other edits
    Ohm it's not just a good idea... it's the LAW !

  3. #3
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default

    I've decided to put the 10uF cap after the voltage divider so the voltage should not be higher than 5V. Can someone just check and see if this capacitor would be sufficient for my issue please?

    It's digikey number 445-2863-ND

    Thanks in advance!

  4. #4
    timmers's Avatar
    timmers Guest


    Did you find this post helpful? Yes | No

    Default

    You're all close, but not quite on the mark. Putting the diode in will rectify the noise, and all you will be measuring is peak noise.

    PIC_USER was close, but if you removed D1, C2, R3 and R4 then you will be creating a potential divider with a low pass filter, and be measuring the average voltage. I would however add a zener diode where R3 is to prevent any overvoltage problems, say a 5v6.

    Values of R1 / R2 would depend on how high you wish to make the impedance, but to get a decent RC timeconstant I would be looking around 68k for the top and 5k6 for the bottom, works out as around 3.8volts into the A2D pin from 50v.
    This would filter off most of the noise above 15hz with a 1uF capacitor.

    Other option is to A2D the full bandwidth and do some averaging in software and calculate the RMS value. But thats not easy and is heavy on register resources.

    Hope this helps.
    Timmers.

Similar Threads

  1. Replies: 19
    Last Post: - 27th May 2010, 03:56
  2. Expanded Scale Voltmeter
    By Pic_User in forum Schematics
    Replies: 6
    Last Post: - 8th February 2008, 20:32
  3. Replies: 6
    Last Post: - 10th January 2008, 10:38
  4. Help with final project
    By OvERKiLL in forum General
    Replies: 4
    Last Post: - 15th December 2006, 20:35
  5. Need Help in Measurement of Voltage
    By apache in forum General
    Replies: 5
    Last Post: - 5th June 2005, 15:39

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