chebe: (South Park)
Someone asked me for this and I realised I'd never posted it. (I had dealt with reading the temp here but not the rest of it.) It's not fully done. The timing and lights and such could still do with some tweaking, but I guess that comes down to personalisation. If you'd like to try this project the physical construction is here, and what follows is my code. If you do give it a go I'd love to see how it turns out!

code monkey like you )
chebe: (HandAgainstGlass)
Science Week has just passed. I wanted to do something Arduino related, and remembered the Breathe Project. I'm not a biology person at all, but loved the idea of investigating breathing. Something we do all the time, most of the time completely unaware, until one day it's very cold, or we're told about breathing exercises as a way to relax. Then we start to get an inkling of how important an act it is. So, shamelessly, I decided to make one of my own.

Where I waffle on about construction of a breath sensitive scarf )
chebe: (Default)
The LilyPad range includes a temperature sensor, which is a MCP9700 thermistor type sensor, used for measuring ambient temperatures. It has positive and negative power terminals, and a 's' terminal that you connect to an analogue pin on the LilyPad microcontroller. You set up the code in the same way as for other sensors, and read the value:

Code )

This does give a seemingly accurate reading (oddly enough I seem to lack any other kind of ambient thermometer), except that it fluctuates quite a bit. But in and around what seems like a decent value. I may have to do some form of averaging to smooth it out.

I was using the new Simple Board, so thought I'd see if there was any difference using the Main Board. There's not, exact same results. So my only other thought is that maybe the USB-power is fluctuating and skewing the results. Of course, I don't have a ready way of reading the values while it's solely on battery power, so I can't check. Interesting though. I wonder if anyone has seen this before?
Page generated 2017-Sep-19, Tuesday 08:41 pm
Powered by Dreamwidth Studios