Home Forums General Input signals

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • katsaronas
    Participant
    Post count: 3

    Hello,
    I have an inverter which has one capacitor as a power source, and I want to keep the voltage of the capacitor’s pins at 400VDC. The best choice to do this, is a PID controller, I think. And my question is:
    Will the osPID do the job? What input and output cards should I use ? Thank you.

    Brett
    Keymaster
    Post count: 101

    Will the osPID do the job?

    I’m skeptical that it will. the osPID has a sample time of 250mS. this is more than adequate for things like temperature, level, and pressure, but it’s likely WAY to slow for electricity.

    katsaronas
    Participant
    Post count: 3

    So it’s better a PID loop running in arduino instead? I’m not sure but I think that arduino can sample at ~88kHz with some modifications.

    Brett
    Keymaster
    Post count: 101

    even using the PID library on the arduino may not be an option: http://brettbeauregard.com/blog/2011/04/how-fast-is-the-arduino-pid-library/

    because it uses floating point math, it’s not terribly fast. if your program did NOTHING but pid (no analogRead, no analogWrite) the fastest you could get would be ~12kHz.

    katsaronas
    Participant
    Post count: 3

    So what is your suggestion? What can I do? Should I try a different controller, maybe more powerful-> 32bit pic?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.