Dlloydev / QuickPID

A fast PID controller with multiple options. Various Integral anti-windup, Proportional, Derivative and timer control modes.
MIT License
195 stars 50 forks source link

Using a digital sensor #24

Closed petaflot closed 3 years ago

petaflot commented 3 years ago

Using a DS18B20 sensor, which gives me a direct reading of the temperature in Celsius (float)

So "Input" is not an analog pin, but a variable that stores the temperature.

I don't know C++ well enough to understand how the code operates ; looking for clues.

Dlloydev commented 3 years ago

Sorry I didn't reply sooner. I don't have an example that gets temperature without using the analog pin, but soon I'll be getting some new hardware and will be able to do testing on a similar setup and update the examples.

uzi18 commented 3 years ago

Just look on PID_basic example just store/assign your temperatue value in Input variable