This great tutorial will show you how to create an electronic puzzle box to keep your information secret! via Raspberrypi
Before you write the code to make your temperature lock mechanism, it’s important to understand how it will behave and how you will create that behaviour with code. There are many ways you could use temperature in a lock mechanism, but in this activity you’ll make a program that does the following:
Finds out the current temperature
Chooses a target temperature close to the current temperature
Gives you a clue as to whether it’s too cold or too hot compared to the target temperature
Continually checks the current temperature until it’s close enough to the target temperature
Finally, the program will give an indication that the temperature lock is unlocked
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!