Page 1 of 1

Modify Kp, Ki, Kd of red pitaya PID

Posted: Thu Nov 01, 2018 5:33 pm
by gerardpc
Hi,

I would need to use the internal PID of the redpitaya, described here

https://github.com/RedPitaya/RedPitaya/ ... /src/pid.c

as far as I understand, this is always ON but with 0 coefficients on the three gains. How can I access the registers to modify this parameters? I'm having a really hard time finding information, if you don't have any prior experience with FPGA design it's difficult to understand what one could do.

Another option I've found is using this:

https://github.com/Xilinx/HLx_Examples/ ... _pid_contr

i.e., a Xilinx PID design. If I wanted to use this, what would I need to do to upload this to the fpga and run it?

Re: Modify Kp, Ki, Kd of red pitaya PID

Posted: Thu Nov 01, 2018 7:28 pm
by Ste_Trat
you could try:

https://pyrpl.readthedocs.io/en/latest/

i really like it, perhaps you too...

Re: Modify Kp, Ki, Kd of red pitaya PID

Posted: Mon Nov 05, 2018 9:38 am
by gerardpc
I've checked it, but the PID only has PI term. Maybe there is an easy way to tweak it, but I was using the exe so...