0-10v dc


Closed Thread
Results 1 to 25 of 25

Thread: 0-10v dc

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Ok, fact #1 - I'm no genius...
    fact #2 - good luck getting your code to compile and work in MeLabs PicBasicPro (any version)
    And...that code you posted...why would it stop for you? There's nothing in there to make it stop!
    Thank you very Much, actually i was trying that code in proton,by mistake i pasted.will delete now.
    Since you are a senior member of this forum, and you also understood what code i am searching for, Could you pls help me out. i need to adjust the voltage 0-10 with 2 buttons..
    Help would be appritiated..
    Warm Regards..

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by naga View Post
    Thank you very Much, actually i was trying that code in proton,by mistake i pasted.will delete now.
    Since you are a senior member of this forum, and you also understood what code i am searching for, Could you pls help me out. i need to adjust the voltage 0-10 with 2 buttons..
    Help would be appritiated..
    Warm Regards..
    Again...not a senior member of anything, and I don't use Proton.
    That code you copied was close...so, change it to fit PBP.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    OK, the 555 is good trick, but if you use an LMC66x series op-amp and a single +12 volt supply, you have a 0-10 voltage amplifier with 3 parts! May be 2 more to filter PWM from PIC...

    Ioannis
    Attached Images Attached Images  

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    naga

    If you use a PIC with Hardware PWM (eg 16F628) then varying the Duty in steps of 10% from 0 to 100% (see HPWM command) will give you your ten steps. A simple filter on the output will then give you ten voltage steps from 0v (0%) to 5v (100%).

    I recall posting a circuit for an Op-Amp Voltage Doubler some time back. Do a forum SEARCH, stick that on the end of your filter and presto - you got ten steps of 0-10v.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    I recall posting a circuit for an Op-Amp Voltage Doubler some time back. Do a forum SEARCH, stick that on the end of your filter and presto - you got ten steps of 0-10v.
    http://www.picbasic.co.uk/forum/show...hlight=doubler

    Is that it? I've got it on my 'hot' list of handy items to keep around...

  6. #6
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Or you could use one of these (without the need for a separate high voltage supply):
    http://www.microchip.com/wwwproducts...cName=en010581
    The TCM828/829 are CMOS "charge-pump" voltage converters in ultra-small 5-Pin SOT-23A packages. They invert and/or double an input voltage which can range from +1.5V to +5.5V. Conversion efficiency is typically >95%. Switching frequency is 12kHz for the TCM828 and 35kHz for the TCM829. External component requirement is only two capacitors (3.3µF nominal) for standard voltage inverter applications. With a few additional components a positive doubler can also be built. All other circuitry, including control, oscillator, power MOSFETs are integrated on-chip. Supply current is 50µA (TCM828) and 115µA (TCM829). The TCM828 and TCM829 are available in a 5-Pin SOT-23A surface mount package.

  7. #7
    Join Date
    Sep 2006
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    naga

    If you use a PIC with Hardware PWM (eg 16F628) then varying the Duty in steps of 10% from 0 to 100% (see HPWM command) will give you your ten steps. A simple filter on the output will then give you ten voltage steps from 0v (0%) to 5v (100%).

    I recall posting a circuit for an Op-Amp Voltage Doubler some time back. Do a forum SEARCH, stick that on the end of your filter and presto - you got ten steps of 0-10v.
    Hi, Could you please guide me If a 4MHz oscillator and 16f877a are used. want to control with UP and Down Buttons(10 steps)

    Example: (Porta.0)

    PWM PORTA.0,127,10 ?

    Thank you.
    Last edited by naga; - 17th October 2008 at 14:01.

  8. #8
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Use Portc.1 or Portc.2 and HPWM (see page 73 of the manual)




    B0 var Byte
    Vduty var Byte

    Vduty=0
    B0=1

    Main:

    if UpButton =0 then
    If Vduty<255 Then Vduty=Vduty+B0
    Gosub HpwmSet
    endif

    if DownButton =0 then
    If Vduty>0 then Vduty=Vduty+B0
    Gosub HpwmSet
    endif

    goto Main


    HpwmSet:
    HPWM Channel, Vduty,Frequency
    Return

    with B0 = 1 you have 255 steps , if you want 10 steps set B0 = 25

    UpButton and DownButton are two input ports with a 10K resistor pullup, the switch is normally open.

    Al.

  9. #9
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Sorry should be:
    if DownButton =0 then
    If Vduty>0 then Vduty=Vduty-B0
    Gosub HpwmSet
    endif

Similar Threads

  1. DC to AC convertor
    By The Master in forum Off Topic
    Replies: 11
    Last Post: - 6th February 2010, 17:44
  2. Replies: 24
    Last Post: - 1st December 2009, 08:01
  3. from 5v dc to 1.00v dc precise vref 10mA ?
    By phoenix_1 in forum Schematics
    Replies: 10
    Last Post: - 28th July 2009, 08:11
  4. PIC data along dc line
    By sswcharlie in forum General
    Replies: 0
    Last Post: - 30th August 2008, 08:38
  5. H-Bridge control DC motor
    By Paul F in forum General
    Replies: 2
    Last Post: - 2nd March 2005, 21:04

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