starts serial communication at 9600 bits per second: Int Beta = 3753.8 //calculated value from callibration Int R_th = 0 //sets an initial value for thermistor resistance Int V_in = 5 // input voltage to voltage divider circuit Int T_o = 273 //Kelvin - equal to 0 deg celc Int R_o = 10000 //resistance of thermistor at 0 degrees celcius Here is my code: //thermistor temperature reading Thermistor_code:24: error: invalid operands of types 'double' and 'int' to binary 'operator^' Thermistor_code.ino: In function 'void loop()': I have written some simple code to read temperatures from a thermistor and I am getting the following error: I am new to the c++ language and I am not use to having to assign operand types to variables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |