Skip to content

Bug with I contribution ? #110

Description

@SeByDocKy

Hello,

I am trying a new usage for your simplePID package, this time dedicaced for EV charging thanks to an OpenEVSE module. The idea is to regulate the AC current value sent to the car (through the OpenEVSE) according to a DC battery current measure. For my particular application, input (DC battery current) can vary about - 40A up to 40A and the output (AC current sent) is between 6A up to 20A (for example)... So PID must be a function from [-40,40]ADC |---> [6,20]AAC

When I first tried with these setting, actually with just some Kp non-zero value (Kp=0.2, Ki=Kd=0) and setpoint = 0A, I noticed the regulation was not working, i.e. the output was always staying at 6A (the output_min value) whatever the error was largely positive.... I noticed a potential problem (or something I didn't understood) with the P,I,D contributions values:

The Icontribution whatever Ki = 0 converged to the output_min value.... here 6A... More assuming I momentanary set the output_min point to 7A, the Icontribution shift to 7... but if I revert back output_min to 6A, the Icontribution.... now slowly decreases from 7A to 6A (I guess according the Ki value)
See figure attached below

Image

For me it's not normal... and would explain why the regulation don't "take off"...

Cheers,

Sébastien

BTW... it would be also nice if we can change the default device_class/icon of the output.. .coz for my application it's not percent but current device_class..

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionMore information needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions