I'm looking for some suggestions


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2009
    Posts
    18

    Question I'm looking for some suggestions

    Hi All,
    I'm using PicBasic Pro, a PIC16F877, a STE250NS10 Power MOSFET and a AD536A RMS to DC converter in this project.
    The programs I've written work well almost all of the time but, there are some exceptions.

    I need to run a Hydrogen Generator at between 17 and 20 Amps in order for it to be most effective and efficient. Because of greatly varying alternator output voltages on some vehicles, this is difficult to realize. Newer Chevrolet Pickup's have voltage swings greater than 3 volts, from 12.0 to 15.1 volts. This 3 volt range can cause the Generator's current to vary way to much! The AD536A's output (mentioned above) is stable and is being fed into an onboard A2D (8 bit). I'm using the HPWM command and some Potassium Hydroxide to control the Generator's current. While monitoring the generator's current draw, if it's lower than 17 amps, I need to turn the HPWM on harder. If the generator's current draw is greater than 20 amps, I need to turn the HPWM on less.

    I'm looking for some suggestions on how to accomplish this because I certainly don't know how!

    Any and all suggestions are very welcome and will be greatly appreciated!

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hello Roddy Wayne,
    It is a matter of measuring the voltage drop across a known resistance, the more voltage lost, the higher the current being used by the load. I would use the ADC to measure the voltage on both sides and subtract the lower from the higher. Build a lookup table with PWM duty cycle calibrations.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    Since you have a RMS-DC converter, I suspect you already know the output current via this dc reading. If this is true, all it takes is a little proportional control to correct the output in relation to the input.

    The PWM will be proportional to the error in the actual output.

  4. #4
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    If you need to measure current, use an Allegro Hall-effect sensor. Isolated, accurate, high-output.
    Charles Linquist

  5. #5
    Join Date
    Apr 2009
    Posts
    18


    Did you find this post helpful? Yes | No

    Default Thanks Jerson!

    Quote Originally Posted by Jerson View Post
    Since you have a RMS-DC converter, I suspect you already know the output current via this dc reading. If this is true, all it takes is a little proportional control to correct the output in relation to the input.

    The PWM will be proportional to the error in the actual output.
    Yes, you are right in assuming that I have detected this current draw correctly. So, I guess I'll need to build a lookup table with the PWM percentages in it.

    Thanks again Jerson!

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