I’m not sure many folks know this, but I didn’t until I stumbled upon it: Saint Paul residents having a valid and up-to-date library card can access lynda.com online training for free, and you don’t need to be in the library to use it (like you do for some references, like ALLDATA).
It can be a little confusing to sign in. This worked for me:
We have a refrigerator downstairs that once in a while gets left open, and since it’s downstairs, we sometimes don’t catch it in time to save to food. Will and I decided to make something to help solve this.
Our plan is to use our Particle Proton (a tiny Wi-Fi development kit) and connect a temperature sensor. We’ll report that temp to “the cloud” and if the temp rises above some threshold, we’ll use IFTTT to text or call us to let us know to check the fridge.
I got us a free DS18B20 temperature sensor as a sample from Maxim Integrated (how cool is that?) and found some nice sample code here.
The prototype is now sitting in the fridge (photo above), dutifully sending out the temp every 10 seconds. The code is crazy simple.
How to debug when Papa tells you to put the resistor in the wrong place
UPDATE: The 2200mAh 3.7V battery didn’t last until morning, so Next up will be to see whether there’s a way to reduce power consumption. Fewer temp reports to the cloud will obviously help. I wonder if there’s a “low power mode”.
Of course, this was one of those things where you need to complete some projects in order to do the project. In this case we needed to build an AVR programmer so we could program the microprocessor (an ATtiny85). Building the programmer was fun, and Will did a whole bunch of the soldering!
Once that was done, we tried programming the chip…
…and the trashing began. It turns out I didn’t understand how to read the pinouts from the programmer. But once we got help and re-wired and re-tried, we finally got it working! We were able to make our NeoPixel Ring do cool things via this nice code.
One of the things we want to do with all this is help Jack have an “arc reactor” and “repulsers” for his Iron Man suit, so we needed an easier way to program and test our chips, because it was a little hard to work with wires for programming vs. wires for trying things…
So this morning I made this…
…which let’s me program and test easily without a bunch of jumpers and without having to keep moving the chip back and forth. Pretty sweet, and cost about $2 in parts (the board was $1.25).
And now we have easy-to-use joy. :)
Get this, and get it straight: Crime is a sucker’s road and those who travel it wind up in the gutter, the prison, or the grave. There’s no other end… but they never learn.