IoT temperature sensor network used to monitor the heat in my attic
https://temp-sensor-mct.mybluemix.net/graphdata
Required Hardware
- Raspberry Pi
- I am using Raspberry Pi version 1 Model B. I'd recommend a newer version
- DS18B20 Thermal sensor, easily ordered online from a variety of retailers
- I ordered mine through eBay
- https://www.adafruit.com/product/381
- A breadboard (for easy connecting)
- I already had one from an Arduino kit I own
- Single LED
- Jumper cables (purchased or home-made from 22 AWG)
- Install Raspbian via NOOBS, just take the defaults, you can hack on it later
- Enable SSH by default so you can SSH in and do the work
sudo raspi-config
- Select
5 Interfacing options
- Select
P2 enable SSH
- Change the default password! The default password is 'raspberry', so change the password to something better
- [Install your favorite editor (if not already provided)[(https://www.raspberrypi.org/documentation/linux/usage/text-editors.md)
sudo apt-get install vim
- Configure your pi to boot with 1-wire GPIO support
sudo ./configure_w1_pi.sh
- Reboot your pi
sudo reboot
To sanity check your pi is configured with GPIO support, wire up a simple LED to GPIO 7 and run python led_flash.py
. If things are properly configured and wired, the LED will flash on and off (really a dim) every second.
Follow the AdaFruit guide: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/hardware
http://jacobsschool.ucsd.edu/news/news_releases/release.sfe?id=1094