analog help


Closed Thread
Results 1 to 6 of 6

Thread: analog help

  1. #1
    Join Date
    Apr 2008
    Posts
    43

    Default analog help

    just wondering if somebody could give me a hand with some old ohms law, I am using the hpwm command to a 4n35 isolater so I can interface with a hendon OM5428 phase controller IC. This chip supplies me with 0v and -14v dc of which I need about -.3v to -7 volt to control the chip's phase output.I have managed to do this with a little persistance and dumb luck in putting a circuit together but it doesnt work well enough, by which I mean out of the commands 255 most of the dimming occurs from 0 to full bright at about 50 and I'm all out of ideas
    anyone??
    p.s dodgy pic of circuit included
    Thankyou in advanced
    Attached Images Attached Images  

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by cphillips82 View Post
    ... by which I mean out of the commands 255 most of the dimming occurs from 0 to full bright at about 50 and I'm all out of ideas anyone??
    You could use 10-bit HPWM.

    Then the 0-255 would give the same output as 0-63 with the 8-bit version, and you'd get 4 times the resolution.

    Here's an easy way to do 10-bit HPWM ...

    HPWM10
    http://www.picbasic.co.uk/forum/show...805&#post37805
    <br>
    DT

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Default

    Hi, Darrel

    Glad to see the site again ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Glad to see the site again ...
    Hi Alain,

    Wow, I just got it running again yesterday.
    Nothing get's past you.

    Cheers,
    DT

  5. #5
    Join Date
    Apr 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    Thanks for your suggestion but I think that would just close my window even further,I wouldnt think this would do much except bring the sweep down to 0 - 20 ,I think this is simply not having the correct value components in place in the voltage divider. But I do think alot which I'm often wrong!

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by cphillips82 View Post
    Thanks for your suggestion but I think that would just close my window even further,I wouldnt think this would do much except bring the sweep down to 0 - 20 ,I think this is simply not having the correct value components in place in the voltage divider. But I do think alot which I'm often wrong!
    Yup, you're thinking the wrong way.

    If the usable range was 0-50 before, then changing to 10-bit will increase that range by a factor of 4, which gives 0-200.

    You could change the resistors in the divider to retain pure PBP. But you may also want to consider the other benefit of HPWM10 ... Glitch Free Operation.

    Constantly updating the normal HPWM command can really mess up the waveform. But with Glitch-Free, it doesn't matter how often the DutyCycle is changed. You'll still get "Clean" PWM.
    <br>
    DT

Similar Threads

  1. pic18f analog comparator problem
    By david.silaghi in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th May 2009, 09:38
  2. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 10:34
  3. 16F88 Analog In
    By Mugelpower in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 25th March 2008, 08:30
  4. Many Analog Inputs
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 10th July 2006, 08:15
  5. analog inputs on 16F716
    By schwinn_rider in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th October 2005, 04:07

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