The Lounge

Desktops!

Submitted by Sibez, , Thread ID: 20590

Thread Closed

RE: Desktops!

#35
26-04-2016, 09:09 PM
NSA Wrote:
26-04-2016, 09:07 PM
Maiki Wrote:
26-04-2016, 08:53 PM
NSA Wrote:
[Image: Zhhh5qp.jpg]

26-04-2016, 06:13 PM
Maiki Wrote:
[Image: ipllmk.png]


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!

heh, yeah pretty much

Users browsing this thread: 5 Guest(s)