Regulated power supply problem


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2006
    Location
    Surrey, BC, Canada
    Posts
    31

    Angry Regulated power supply problem

    Hello PIC guys! I made PIC controlled power supply for engraving head control(12VDC motor). I used HPWM command for output. I wrote code for basic PWM control , ADC reads value from potentiometer and change duty of HPWM command , but I don’t know how to write feedback procedure which can allow control output voltage regardless of current.
    Please help me, any ideas welcome, maybe I made mistake in my circuit design that's why I provided a diagram
    Vladimir.
    Attached Images Attached Images  
    Last edited by vladimir059@hot; - 4th December 2006 at 03:20.

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    More detail could be handy here.

    "...write feedback procedure which can allow control output voltage regardless of current" does this mean that you need feedback for speed no matter what the current is?

    Simple RPM reading for example; if the speed is lower, then you increase the motor supply through PWM, and if the speed is higher, then you decrease it.

    Is this what you asked for?
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Jul 2006
    Location
    Surrey, BC, Canada
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    Yes I need keep constant RPM of motor, but I cannot phisically control true RPM (due to design restrictions) , I can only control output voltage. If motor stall or reduce RPM, output voltage of PWM circuit will be low.
    Vladimir

  4. #4
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Vladimir,

    (Brushed DC Motor)

    See these Application Notes.

    Brushed DC Motor Fundamentals
    http://ww1.microchip.com/downloads/e...tes/00905a.pdf
    See pages 5, 6 and 7. FEEDBACK MECHANISMS / Back Electro Magnetic Flux (BEMF).

    * * *

    Low-Cost Bidirectional Brushed DC Motor Control Using the PIC16F684
    http://ww1.microchip.com/downloads/e...tes/00893a.pdf
    (With Sensorless Motor Control Feedback).

    Best regards,

    Luciano

  5. #5
    Join Date
    Jul 2006
    Location
    Surrey, BC, Canada
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    Thank you Luciano, this information is very helpful, but most important thing I'm looking for an example of code which can I use as building block for my program. If someone wrote subroutine which is monitoring feedback voltage and changing duty of HPWM command, please let me know, I only need to know basic structure of such program.
    Vladimir

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


    Did you find this post helpful? Yes | No

    Default

    maybe this will help
    http://www.picbasic.co.uk/forum/show...02&postcount=6

    at least a kick-start
    Steve

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

  7. #7
    Join Date
    Jul 2006
    Location
    Surrey, BC, Canada
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    Thank you Mister E. It is all I need for beginning. I will play with this code. Please let me know how critical that op amplifier and it might be substituted somehow.
    Vladimir

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


    Did you find this post helpful? Yes | No

    Default

    the frequency is low and you filter it, so it's close to be pure DC. Any op-amp will work, from grandpa 741 to the most sophisticated.

    lm358,tl071,tl072,lm4558,ne5532,ne5534,lm6132,max4 27,lt1001... etc etc
    Steve

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

Similar Threads

  1. Power Up problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th October 2009, 03:38
  2. PIC backup power supply: switchover ???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th April 2008, 17:05
  3. Need advice for 74VDC power supply
    By Christopher4187 in forum Off Topic
    Replies: 8
    Last Post: - 4th March 2007, 20:54
  4. 12 Servo's together does not seem to work, Power problem
    By macx75 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th December 2006, 19:30
  5. OT - power supply problem
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd March 2006, 00:14

Members who have read this thread : 1

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