26-04-2016, 09:09 PMNSA Wrote: 26-04-2016, 09:07 PMMaiki Wrote: 26-04-2016, 08:53 PMNSA Wrote: 26-04-2016, 06:13 PMMaiki Wrote: fuck it, i gave in oh, what do you do with Arduino? newb shit Code:average = 0; for (i=0; i < NUMSAMPLES; i++) { average += samples[i]; } average /= NUMSAMPLES; average = 1023 / average - 1; average = SERIESRESISTOR / average; float steinhart; steinhart = average / THERMISTORNOMINAL; steinhart = log(steinhart); steinhart /= BCOEFFICIENT; steinhart += 1.0 / (TEMPERATURENOMINAL + 273.15); steinhart = 1.0 / steinhart; steinhart -= 273.15; lcd.setCursor (0,1); lcd.print(steinhart); lcd.print(" Celsius "); delay(1000); } nice, a $30 thermometer!
26-04-2016, 09:07 PMMaiki Wrote: 26-04-2016, 08:53 PMNSA Wrote: 26-04-2016, 06:13 PMMaiki Wrote: fuck it, i gave in oh, what do you do with Arduino? newb shit Code:average = 0; for (i=0; i < NUMSAMPLES; i++) { average += samples[i]; } average /= NUMSAMPLES; average = 1023 / average - 1; average = SERIESRESISTOR / average; float steinhart; steinhart = average / THERMISTORNOMINAL; steinhart = log(steinhart); steinhart /= BCOEFFICIENT; steinhart += 1.0 / (TEMPERATURENOMINAL + 273.15); steinhart = 1.0 / steinhart; steinhart -= 273.15; lcd.setCursor (0,1); lcd.print(steinhart); lcd.print(" Celsius "); delay(1000); }
26-04-2016, 08:53 PMNSA Wrote: 26-04-2016, 06:13 PMMaiki Wrote: fuck it, i gave in oh, what do you do with Arduino?
26-04-2016, 06:13 PMMaiki Wrote: fuck it, i gave in
average = 0; for (i=0; i < NUMSAMPLES; i++) { average += samples[i]; } average /= NUMSAMPLES; average = 1023 / average - 1; average = SERIESRESISTOR / average; float steinhart; steinhart = average / THERMISTORNOMINAL; steinhart = log(steinhart); steinhart /= BCOEFFICIENT; steinhart += 1.0 / (TEMPERATURENOMINAL + 273.15); steinhart = 1.0 / steinhart; steinhart -= 273.15; lcd.setCursor (0,1); lcd.print(steinhart); lcd.print(" Celsius "); delay(1000); }
Loading Info...