From the MAKE Flickr pool:
The Smart LED connects a single LED to a microcontroller and power source, allowing it to do fun stuff like relate the ambient temperature via pulses of light. Jim Blackhurst’s remix dispenses with the resistors for an even smaller profile, connecting the LED directly to the coin battery and ATTiny25 microcontroller, changing the RGB and flashing as instructed by the ATTiny’s built-in temperature sensor. See Jim’s Flickr set for more views.



“…and flashing as instructed by the ATTiny’s built-in temperature sensor.”
Will the author confirm that the ATTiny25 has an internal temperature sensor. I did a quick look at the datasheet and didn’t see any reference to an internal temperature sensor.
I found the internal temperature sensor in the datasheet. It is connected to ADC4. But, before you get excited about using one like I did, you have to use the internal 1.1vRef for the adc and the accuracy of the sensor is +/-10degC (50degF)!!!!!!!!!!
Thanks, Pete.
+/- 50 degrees? In other words, just for fun!
Wow…it’s +- 10 C degrees, or 18 F degrees. Yes, still not very useful, but at least get your science right.
10degC/50degF is a specific point on the temperature scale and to add or subtract that doesn’t have any logical meaning.
>New Math?
>at least get your science right.
Corrections, without the need to rap somebody’s knuckles for making a mistake, are preferred. Thanks.
Yes, it appears that my Fahrenheit conversion I did at 5:30AM was flawed. The math per se however; I would not call “new math”. 10C*1.8+32 does in fact equal 50F. I should have left out the +32 bit but, out of habit (weather station conversions) I did the *1.8+32.
For the sake of summary: The ATTiny25 does have an internal temperature sensor. It is connected to ADC4. The datasheet claims an accuracy of +/-10C (+/-18F).
Meh.
Atmel’s Application Note AVR122 describes a simple calibration algorithm that can give up to +/-2C accuracy from the internal temp sensor. Pretty good considering it’s basically just a freebie on the chip.
It’s a pretty obscure freebie though because you still need to set the ADC Vref to the internal 1.1v. I think this applies to all channels. So, if its just the temp sensor you want and don’t need to measure any other ADC channels above 1.1v it could work for your project.
Also, +/- 2C is huge in my book. I’m not talking about calibration quality instrumentation but 4C is a lot even for a thermostat.
+/-2C makes it useless as a t-stat, but the precision is plenty for its (probable) intended use- for a high temp alarm in a controller.
Hey Guys.
Yes the 25/45/85 do have a temperature sensor. My understanding is that the +/-10 degree range is a tolerance difference across different chips. Once you have one chip dialled in (I have a variable in my code for a temperature offset which is specific to each chip, and I also use the simply Y=Mx+C calibration) it is nice and accurate within the scope of normal winter to summer indoor temperature fluctuations.
Jim
// What's Trending
Raspberry Pi Design Contest
Maker Faire: Day One
A Photo Tour of Maker Faire
Maker Faire: Day Two
Seventeen Sneaky Secret Hides
Arduino Announces New Wireless Linux Board
10 Things to Connect to Your Raspberry Pi
The Road to the I/O Sensor Network
// What's Shared
A better way to slice a pumpkin
DIY Nerf Darts
In the Maker Shed: Minty Boost USB Charger
100 Dollar Store Organization Ideas for Craft Rooms and Beyond
Mad’s Mouse House
Lace Princess Crowns
I Have a (Puzzling) Dream
Play the Rings of a Tree Trunk Like a Record
// Most Commented
DIY Hacks & How To’s: Get Emergency Power from a Phone Line
Resin Casting: Going from CAD to Engineering-Grade Plastic Parts
Ten Tips for Screws and Screwdrivers
Ten Tips for Better Measurement
Makers on TV: Big Brain Theory
Grow: A Portable CNC Router System
Tool Review: BioLite CampStove
Pitches with Prototypes: Solar Tracker
Trending Topics
Get our Newsletters
About Maker Media
Subscribe
to MAKE!
Get the print and digital versions when you subscribe