loading

Motor feather, it's cold outside.

Make this wearable high tech, low tech scarf with a built-in thermometer.

No longer will you be wondering how really cold it is when you step outside.

This is suitable as a nice beginner project to delve into Arduino with sensors and neopixel LEDs.

Step 1: Crafty electronics...

Most of the stuff I used I had on hand except a DHT11 humidity and temperature sensor module that I got as the first purchase of the new year.

I reused an Adafruit Flora arduino board, a short length of neopixel strip and a neopixel ring.

I had some leftover white microfleece fabric which I used for the scarf. Anything soft in a light solid color will do.

The finished width of the scarf is about 6 inches wide and the length around 6 feet long.

You will need a small bit of fiberfill batting to diffuse the neopixels or just use a layer of the microfleece.

For the diffuser and neopixel pockets, use something like a muslin or thin light fabric.

You can make the scarf all with a regular sewing machine. I also use a serger as I find that it is useful for straight seams that can be sewn and trimmed at the same time.

.

Step 2: May the Flora be with you...

The generic humidity and temperature sensor module I bought did not come much with instructions on how to use it or anything. I went to the vendor site and all they had was a translated datasheet and the necessary library/sample code. It turns out you need to use this with a 5K pullup resistor. Luckily I had the mega-*bay assortment pack of resistors from which I was able to find something close to use.

Since this was the "cheapest" sensor board I really didn't go in expecting much. It was only spec'ed out to give readings in the 0-50 *C range within a couple of degrees accuracy and likewise with the humidity readings. When it ran I viewed a lot of errors and timeouts. It is a slow updating sensor so even changes to the interval of when the sensor is read did not clear up the number of errors. I then found that it was not returning the temperature in Fahrenheit even though the parameters were set for it to do so.

I did a manual conversion from Celsius in the code to compensate but was still thinking I got a wonky piece of kit. I then go back and look up an Adafruit part which I originally intended to get and browsed through the Adafruit tutorial which led to an optimized library code for the DHT11. I downloaded that, installed, and everything worked fine.

Okay, now I got humidity,temperature and heat index readings coming through on the serial monitor. How about I use that to make a visual thermometer?

I had some neopixel strip segments and neopixel rings to make a thermometer looking setup.

The neopixel strip and the neopixel ring were on their own data pins and needed to be coded as two instances of neopixels..

The visual effects animations for the neopixels were pulled in from the strandtest sample code. I figured out how to get the lights to blank out and go in reverse without the i-- looping since decrement looping did not seem to work.

I had the rainbow wipe run only upon initialization to show that the all the neopixels are in working order.

I used the arduino map function to scale the actual temperature reading into how many neopixels to light up.

I usually don't post up any code since it was still a mishmash work in progress but someone asked for it. The other color animations are in the code so you can play around with it. You can go on the Adafruit Learning System to find the links to their library code used in the sketch. Good luck. (note that you might have to check for wordwrap and wonky code block here)

- update - editor seems to mangle the code - will attach file

Step 3: A little bit of padding never hurts...

I like to diffuse the neopixels so they don't look like a bunch of discrete LEDs. It adds to the effect of looking like a regular liquid filled thermometer.

I had already cut out my fabric used as the shell of the scarf.

I created something like a pillow with fabric encasing a layer of fiberfill batting. An additional layer of outside fabric forms a channel and pocket for the neopixel strip and neopixel ring.

Once the pillow is formed, sketch out the shape of the thermometer.

The pillow is sewn onto the scarf shell by following the outline of the thermometer. This also traps in the light so that it will look like a light filled tube.

I finished off the top and bottom edges of the scarf with the serger.

The entire scarf was then serged on the long edge to create a long tube. It is then turned inside out so that it will look nice on the outside when completed.

Step 4: Bask in the glow...

Since the scarf has been turned inside out to the finished side, you may need to peel back the bottom to access the mounting pocket.

Mount the electronics inside the scarf.

You can slide in the long length of the neopixel strip into its tunnel pocket and stuff the neopixel ring into the bottom pocket. You might want to tape the back of the neopixel ring in position with the end of the neopixel strip to keep it in place so it looks like the thermometer bulb and tube.

Flatten out the rest of the wires. The battery pack I used has an on/off switch so that dangled toward the bottom of the scarf. I didn't have a pocket built for that so I just serged half of the bottom of the scarf to keep the battery pack inside the scarf. A small opening was left so I could reach in and move the switch.

Turn the thermometer scarf on.

You will need to see where the range of lights actually end up. From there, you can calibrate and draw on your scale for Fahrenheit and Celsius. Use a permanent marker or fabric paint. Depending on the accuracy, tolerance and range of your sensor, you will need to adjust your scale.

Now go out and sense your environment.

Add datalogging and GPS capabilities to map out readings.

Add haptic feedback as alarms for staying out in the heat or cold too long to prevent possible hypothermia or heat stress.

Change the light animations or color schemes as you desire.

Enjoy!

<p>Congratulations on your win. Great project.</p>
<p>Thanks. And congratulations to you too. The real satisfaction in making is that you have fun with it.</p>
<p>Oh, absolutely. </p>
Congrats on a great win! That was a phenomenal idea!!!
<p>Thanks. It was really a last minute mashup that was fun to do.</p>
<p>Thanks for the awesome inspiration!! I had some lovely plum wool that was apparently just waiting for such a cool project as this. I embroidered the temperature numbers, and tube-knitted a sheath for the LED strip to be housed into. </p><p>http://www.instructables.com/id/Variable-sized-Knitting-Tube/</p><p>http://www.instructables.com/id/Variable-sized-Knitting-Tube/</p>
<p>Some indoor pics. I used an analog temperature sensor. Works fine, just takes a second or two longer than digital. I also had to use a 1500 mAmp LiPo, as the 150 or 180 didn't supply a consistent current for an accurate reading.</p>
<p>You should submit your pics to Adafruit for their blog. They love to see wearables projects, and especially if you used a Flora. </p>
<p>It was a big hit at the Pond, for sure. Good idea about adafruit.. I totally forgot about that. Going to the blog now...</p>
<p>With your knit technique, it would be cool to make one of those EL wire stickman costumes and skate around in the dark...at least a hoodie, just saying...</p>
<p>That is fantastic! I bet that scarf draws a crowd and fun to watch when you go inside someplace warm after skating. </p>
<p>You're killing me...that's hilarious! I am WAY to tech-challenged to make it, but not to appreciate what you came up with...innovative and fun! And voteworthy :)</p>
<p>Thanks. Not getting hypothermia is serious business.</p><p>It's just a few wires to connect and some sewing, ok, you have to use a computer,...give it a go.</p>
<p>this is great.. you should actually make it heated..</p><p><a href="http://www.instructables.com/id/usb-heated-clothing/">http://www.instructables.com/id/usb-heated-clothin...</a></p><p>very original.!!</p>
<p>Actually, if it were heated, would that affect the near temperature and the whole point of the scarf? We are making this awesome project right now... maybe if just the neck part were heated.. that would be nice and probably not interfere with the sensor.</p>
<p>yep you got it. just place it far away, or use 2 temperature sensors and one for outside and 1 for heated area.?! i make beanies and scarfs all the time for friends and use them effectively myself. just follow the shared instructable post above and give it a try.!!</p>
<p>with thermostatic control... Thanks.</p>
<p>Do you have a parts list? It would make it easier to order...</p>
<p>No parts list but all the stuff is derived from projects using Adafruit parts and arduino experience.</p><p>If you are new to the wearable tech world, you can go on Adafruit's Learning System for tutorials on using their FLORA arduino board and neopixels. See all the previous projects like the ampli-tie or anything else with neopixels.</p><p>You can look up the parts on Adafruit and find the links to their tutorials on the parts page.</p><p>Adafruit FLORA wearable arduino board - you could also use the PRO TRINKET - small form factor arduinos with serial monitor output through USB to watch the data.</p><p>Adafruit neopixel rings and strips. You can get a meter length of 60 LEDs/m or the lower density 30 LEDs/m which looks rougher because the LEDs are more spread out.</p><p>Temp/Humidity sensor module, the DHT22 is more accurate in readings</p><p>Misc stuff like silicone coated wire which is more suited for wearables and flexing, and of course, basic soldering skills and such.</p><p>The craft and sewing stuff is the usual craft and sewing stuff.</p><p>Good luck and show us what you make!</p>
Okay, thanks :)<br>
<p>you come from asian?</p>
<p>Chinese-American.</p>
<p>Poor Mickey</p>
<p>I second that..heated would be even more supercool and I would make one for my daughter, heck I might wear one too..<br></p>
<p>If I should wear this creation, I'd change my middle name in 'balls of molten iron'..</p>
<p>Ah, Brico&quot;Do not stare at my glowing majestic medieval armor codpiece&quot;bart...</p>
<p>Great project! Any way you could post the code? </p>
<p>I added the code to the ible as part of the text so go back in. Give it a go. Good luck.</p>
<p>This is awesome. It is a scarf that tells you if you need a scarf. </p>
<p>Thanks. It's kid friendly and mercury-free.</p>

About This Instructable

8,473views

64favorites

License:

Bio: This author has not updated their profile. They might or might not get around to it sometime.
More by caitlinsdad:Quilling a Masterpiece Geekify a T-Shirt Neopixel Bell Bottom Pants Flares 
Add instructable to: