Pid system creation

To create a PID system, should a sensor be used? or can only with engines on v5 system

you should use sensors, however the integrated encoders on the v5 motors can be used, just dont expect it to be perfectly precise.

2 Likes

I think you need to provide a little more detail for your question. PID is a basic algorithm that can be applied to a variety of situations. It does require some form of feedback in the form of a sensor in order to inform the algorithm so that it can change its output.

3 Likes

Thank you very much, I mean when coding a PID system, do you necessarily have to use a sensor?

Some kind of sensor is necessary, yes. However this sensor can take a variety of forms. You can use the encoder integrated into the motor as your sensor, or you can use one of the many external rotation sensors as your encoder, such as the red Quadrature Encoders.

4 Likes

Thank you very much, do you know where I can find a file that tells me how to use the built-in encoders in v5 engines?

Which programming environment and language are you using?

I am using Vexcode PRO V5, you know how use the system encoder integrated into the motor?

The documentation listed here: https://api.vexcode.cloud/v5/html/ should assist you. I believe you want this page: https://api.vexcode.cloud/v5/html/classvex_1_1motor.html#ad647199ccdd40a7f626410dee97ba44e

2 Likes