Welcome back! In this instructable I will be guiding you in making your own digital thermometer with a momentary backlight. This instructable uses parts from the Intel Edison IoT Dev Kit, which was very generously given to me from Intel and Instructables. Specifically, the parts used are as follows:
Before going any farther, I want to thank Intel and Instructables for
being awesome by selecting me along with 249 others to receive a Dev Kit. That was very surprising to me, and I am very grateful for it. Thank you!
Step 1: Wire it all up
First, plug the Grove shield into the Edison, making sure it is facing the correct direction (it will not go in the other way.) Next, plug in the following using Grove cables:
If you want, and have the ability to do so, you may print a mount for the 3 modules. I'm attaching my design, which holds the display in the center with the temperature and button modules beside it. I printed mine with 0.3 mm layer height, no raft and 10% infill in ABS with a Makerbot Replicator Dual.
Make sure the switch on the Grove shield is facing toward the "5v" label above it, as this will power all devices connected with 5v as opposed to 3v3.Temp-button-LCD_mount.stl
Step 2: Code the code
Now for the fun part: coding. Coding is my favorite part of making, hence why I am going to be majoring in computer science when I get into college. There are some parts in this program which are customizable, from the delay in the backlight to the color of the backlight. Let's get started, shall we?
I'm new to GitHub, so please bear with my lacking skill in it. (If you have any pointers or tips, I very much appreciate them!) The only file you should need is the Arduino sketch file, .ino. You will need the Wire, rgb_lcd and math libraries.
Here is what you can customize (in format of "line # : what it changes):
And of course, you may change variable names around as you feel fit.
Step 3: Possible future updates
With programming comes constant updates. Like in tinkering with DIY machines, programs continue to become better and better (sometimes worse) as time progresses. Some possible changes to this code include:
If you have any ideas, post a comment or edit the git (I don't know how that works.)
Step 4: Upload and enjoy!
To upload, you should only need 1 micro USB cable plugged into the inner port (the one closer to the switch.) Now you can place this module anywhere (with a power outlet) and have a real-time digital thermometer! Just a note, the temperature can deviate up/down 1.5ºC, or near 3ºF both ways!
Thanks for listening! I'll see you next Instructable!