Advice on Input circuitry for 0-10v or Pot


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Oh well, there's some voltage divider and ohm law that i'm not going to explain on a friday

    But to me, when at all possible, i try to avoid any kind of trim pot, software calibration is interesting... but there's alway extra work to be done... and the PIC Vdd, and voltage source have their own error margin as well. So i stick to the simple 2 resistor voltage divider

    If you really want to stick with a Trim Pot, i would suggest something like...
    <img SRC="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2493&stc=1&d=120795014 3">
    Attached Images Attached Images  
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post

    If you really want to stick with a Trim Pot, i would suggest something like...
    I thought that was what the original poster wanted...
    Quote Originally Posted by bcd View Post

    What I can't work out is how to get a 10K pot and a 0-10v input (obviously only one is used at a time) I was thinking a pot between Gnd and the input
    bill.
    Steve, I'm still confused over this, using your circuit effectivly gives 10K and 11.1K (2k + 9.1K) when the pot is at min (ie wiper diectly touching the 10K resistor) which would give 5.26 v, but at the opposite throw, it would be 12K and 9.1K which would give 4.31v to the PIC. I assume that you would therefore use the 0.95v difference as the range to measure for the ADC ?

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    The pot is there for calibration purpose only. inject 10V at the input, then adjust the pot to reach 5v... a bit useless in most case
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    So in essance its a straight divider, 5V (+ or - 0.25 ish of a volt).

    So how would you then take the 5v output and use this to give a voltage range the ADC can use to intern generate the PWM to dim the LED. I assum that any pot between 5v and gnd will thus be in parallel with the 9.1K, hence your comments regardig Ohms Law

    EDIT:
    Or have I missed something, in that the 0-10v stated in the original post is already a varible voltage between zero and 10v, rather than a fixed 10v supply ? If so then I can see your logic
    Last edited by malc-c; - 12th April 2008 at 10:12. Reason: Afterthought :)

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i'm not sue if i follow you malc ... not sure you follow us too no pun intended

    You take the output and plug it directly to the PIC... straight, not much. Sugarless, fat-free, not much, zip, zero,nada. Want to use it to dim a LED? easy...

    ADCIN 0, ByteVar
    HPWM 1,ByteVar,Freq

    If i haven't missed anything in the OP request, he have an external source which provide voltage between 0-10V... and want to monitor it (for xyz reason) with a PIC, hence why the voltage divider.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post

    If i haven't missed anything in the OP request, he have an external source which provide voltage between 0-10V...
    That's the part I missed - I was assuming it was a fixed 10v supply

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    I don't see why any PIC should be used here anyway
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. A/D, Pot, Input, A,B So lost now....
    By Helmutt in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th March 2008, 22:23
  2. 0 - 10V input on PIC 16F876
    By slayerizer in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 14th February 2008, 07:25
  3. Digital Pot Advice
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd October 2007, 20:38
  4. Timing input pulses and re-outputting them
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2007, 01:50
  5. Replies: 4
    Last Post: - 24th January 2007, 22:20

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