Skip to content

An IoT noise machine and temperature control device in one.

Notifications You must be signed in to change notification settings

Terrabits/nap-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nap Time

An IoT noise machine and temperature control device in one.

Requirements

  • Raspberry pi (with 3.5 mm audio out)
  • SD memory card
  • Micro-usb power supply
  • DS18B20 one-wire digital temperature sensor
  • 4.7 KΩ or 10 KΩ resistor
  • An Op-Amp / audio amplifier
  • 4-8 Ohm speaker
  • Oittm WiFi Smart Plug B072F1WBS3
  • Raspbian lite

Steps

Apply raspbian lite to SD memory card (MacOS).

diskutil list # note disk id <i>
diskutil unmountDisk /dev/disk<i>
sudo dd bs=1m if=path/to/raspbian.img of=/dev/rdisk<i> conv=sync
# image mounts to /Volumes/boot
touch /Volumes/boot/ssh
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid="YOUR_NETWORK_NAME"
    psk="YOUR_PASSWORD"
    key_mgmt=WPA-PSK
}
EOF

Put the SD card into the Pi and power up. Wait until Pi connects to your wifi, then SSH into it and do the following:

passwd # set new password for user pi
sudo apt-get update
sudo apt-get upgrade
sudo raspi-config # change hostname
sudo echo "dtoverlay=w1-gpio" >> /boot/config.txt
sudo reboot

After reboot, hostname should be updated and temperature sensor should be available.

sudo modprobe w1-gpio
sudo modprobe w1-therm
ls /sys/bus/w1/devices # Should display as 28-XXXXXXXXXXXX
cd /sys/bus/w1/devices/28-XXXXXXXXXXXX
cat w1_slave

References

About

An IoT noise machine and temperature control device in one.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published