I'm new to PID. My goal: control the motor to get it to run a given RPM by a potmeter (which is setpoint). Sensor is optical (detects white line, reflections), counts 100 round in x amount of time. Small calculation gives detected RPM. I'm using an Arduino and the PID library.
Now my question. Let's say I've implemented the PID lib on the arduino. It all calculates and so on, but it gives a PID_value which I don't understand.
Ex: setpoint = 5000 detected = 4999 received PID value = 40
It's my guess that this (or rather: all) PID-lib I'm using always gives a value between 0 and 255 and I have to map/scale that value to my AC trigger. Could someone point me in the right direction? Thanks!