Sensor Input
Thermistor
Thermistors are used for reading the temperature of the environments. These are particularly important for components like ESCs, which habitually create high amounts of heat. We are no strangers to having one catch on fire under wrong specs. RIP first plane 2021-Winter -- 2021--Summer.
While both thermometers and thermistors both read temperature, a thermal resistor only mimics this functuality by having a varying resistance with temperature. We calculate the temperature by the present reading of the voltage. We implmenent it in a voltage divider circuit.
For reading temperature the thermistor has a set resistance that changes with temperature. We use a voltage divider to measure temperature, with the thermistor as R1 and the other as a measured resistor. We hook up the circuit like this.
V_out is the measured voltage and for us was connected to pin A0.
Voltage
Current
For the current source here is some code for finding the current and voltage and other.
Some useful examples of functions from the Adafruit_INA260 library to look into