Posts | Comments

Planet Arduino

Archive for the ‘thermistor’ Category

Reading the temperature of your environment is pretty easy right? A quick search suggests the utterly ubiquitous DHT11, which speaks a well documented protocol and has libraries for every conceivable microcontroller and platform. Plug that into your Arduino and boom, temperature (and humidity!) readings. But the simple solution doesn’t hit every need, sometimes things need to get more esoteric.

The technique summarized by an image from Microchip Appnote AN685

For years we’ve been watching [Edward]’s heroic efforts to build accessible underwater sensing hardware. When we last heard from him he was working on improving the accuracy of his Arduino’s measurements of the humble NTC thermistor. Now the goal is the same but he has an even more surprising plan, throw the ADC out entirely and sample an analog thermistor using digital IO. It’s actually a pretty simple trick based on an intuitive observation, that microcontrollers are better at measuring time than voltage. 

The basic circuit

The circuit has a minimum of four components: a reference resistor, the thermistor, and a small capacitor with discharge resistor. To sense you configure a timer to count, and an edge interrupt to capture the value in the timer when its input toggles. One sensing cycle consists of discharging the cap through the discharge resistor, enabling the timer and interrupt, then charging it through the value to measure. The value captured from the timer will be correlated to how long it took the cap to charge above the logic-high threshold when the interrupt triggers. By comparing the time to charge through the reference against the time to charge through the thermistor you can calculate their relative resistance. And by performing a few calibration cycles at different temperatures ([Edward] suggests at least 10 degrees apart) you can anchor the measurement system to real temperature.

For all the gory details, including tips for how to save every last joule of energy, check out [Edward]’s post and the Microchip appnote AN685 he references. Besides this series [Edward]’s Cave Pearl Project has already yielded an impressive number of Hackday posts. For more great hardware writeups check out a general hardware build for a single sensing node, or the “temperature sensor” [Edward] made with no external parts at all!

May
23

Tracking cicadas with Radiolab and an Arduino

arduino, arduino hacks, cicadia, Radiolab, thermistor Comments Off on Tracking cicadas with Radiolab and an Arduino 

Cicadia

Once every 17 years, a population of cicadas ranging from Connecticut to the Appalachian highlands of North Carolina emerges to annoy everyone within earshot. The last time east coasters saw this brood was in 1996, making 2013 yet another year of annoying insect pests. The only question is, when will we start to see this year’s cicada brood?

Radiolab, the awesome podcast and public radio show, has put together an awesome project that asks listeners to track when the cicadas in their area will emerge. Cicadas generally enter their loud and obnoxious adult stage when the ground temperature 8 inches below the surface reaches 64º F. Armed with an Arduino, thermistor, and a few wires and resistors, any Radiolab listener can upload soil temperature data to Radiolab servers where all the data will be correlated with documented cicada sightings.

After following the page’s instructions for wiring up a bunch of LEDs and a thermistor to an Arduino, just upload the most well-commented code we’ve ever seen and go outside to take soil temperature measurements. The temperature is displayed in a pseudo-binary format on nine LEDs. To decode the temperature without counting by powers of two, Radiolab has an online decoder that also allows you to upload your data and location.


Filed under: Arduino Hacks
Apr
11

Swarmageddon: Cicadas Helping Crowdsource Citizen Science

arduino, cicada, Electronics, Radiolab, thermistor, WNYC Comments Off on Swarmageddon: Cicadas Helping Crowdsource Citizen Science 

2504764693_e31815f70e_bThe Cicada Tracker project is crowdsourcing soil temperatures to track the emergence of Brood II cicadas, that have been living underground for the past 17 years. Billions and billions of cicadas are expected to emerge over the next few weeks throughout the northeast United States.

Read the full article on MAKE



  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook