Any recommendations for making this less cluttered, feel free to provide.
delay(2000); // Unsure what this does but it was included in the one-wire tutorial
750mS is the recommended minimum conversion time allowance, regardless of power mode.
Quote from: afremont on May 05, 2013, 10:58 am750mS is the recommended minimum conversion time allowance, regardless of power mode.I believe, when the device is fully powered, some devices can be polled for completion. I recall the temperature sensor I was using took considerably less than 750ms.
Do we have data on how much power is consumed by an actual Arduino board in Sleep vs running, for various power sources?I think I've dismissed this as "it doesn't get low enough for long-lived battery operation", but it occurs to me that that is not at all the same as "not significantly lower."
How are you powering the 1-Wire device?
My long-term plan isn't to use my Uno for the final application; I'll use it to make the thing work, then build my own barebones or standalone unit with either an ATmega328 or an ATtiny85. I know I'll have to peruse the ATtiny85 datasheet to get the addresses & settings correct, as they're probably different than the '328P. But the approach & program structure should be the same.
Do you recall how much less it was?
QuoteHow are you powering the 1-Wire device?On my breadboard, I'm powering the 5V rail straight from the Uno 5V pin. The temp sensor gets its supply voltage from that rail.
I was just thinking that it might be an interesting case study to see where (or if) there is some break even point is on polling vs. just waiting it out with a slowly clocked CPU.
Now I feel 1-wire timing tests creeping up on me.