Introduction: Smart Stove
In this world full of distractions, there are few important things we cannot afford to miss upon at any cost. Moreover, such things that require attention from time to time when left unattended, may lead to emergency situations. One such things that need to be dealt with at most diligence is, operating the Stove. Now, imagine you set the stove on and were completely distracted by your Phone or a series on Netflix. Surely, you can assess the aftermath this scenario could lead to.
Installation of Temperature Sensor and Motion Sensor near the stove in the kitchen area The Resident registers his phone number at the Twilio Node Resident receives the message when the stove is left on for a while and is not within the proximity of the stove. The Temperature Sensor is installed near to the stove for detecting the temperature. A Motion Sensor is also placed near the stove that calculates the motion within certain proximity area around the stove. When the resident leaves the stove on and the temperature is at the boiling point of 100 degree celsius, the motion sensor gets triggered sensing the presence of resident in a specified proximity. At this point, when the motion sensor cannot detect the resident at a given proximity threshold, it notifies the resident with an SMS.
Step 1: Required Components
· 1 X Raspberry Pi 3 Model B - Price $35
· 1 X Bread board - Price $6
· 1 X 4.7k Resistor - Price $6
· 1 X Pie header - Price $5
· 1 X Temperature sensor - Price $20
· 1 X PIR motion sensor - Price $2
· 10 X Jumper wires (combination of male and male to female) - Price $5
· 1 X power bank - Price $7
Step 2: Set Up Raspberry Pi
Get the latest copy of Raspbian from: https://www.raspberrypi.org/downloads/
Copy the image on to the SD card from your laptop: This can be done through third party app like Pi Filler or Pi Copier.
Place the SD card in the SD card slot of raspberry Pi and power up the Pi with the power bank. This would boot the PI and loads raspbian image up and running.
Latest version of the Pi comes with WI-FI and Bluetooth capabilities. Make sure that you have enabled SSH and VNC commands from Pi configuration section to remotely access the Pi through your laptop.
Step 3: Connect Your PIR Motion to Pi:
Connect VCC pin to PIN 1 or PIN 2 on the PI for power supply, GND pin to any of ground pin on the PI. Connect Signal of the PIR motion sensor to any of the GPIO pins of the PI.
This is a digital sensor and all the PINS of PI are digital pins hence whenever there is a motion detected the signal send 1 as input.
Step 4: Connect Temperature Sensor to the PI:
DS18B20 is used as temperature sensor, This comes with three terminals, Connect the VCC terminal to PIN 1 or PIN2 (3v or 5v src). Connect the SIG or OUT terminal to GPIO pins of raspberry PI. Ground the final terminal. Connect a 4.7K ohm resistor across SIG and VCC to make it a pull down resistor
Step 5: Node Red Setup and Flow
To initiate node red run the following commands from command prompt or terminal
· SSH pi@<>
Get the ip address and port number on which the node red is started
By default port is set to 1880
Twilio is a cloud communication platform used to send programmable messages over the network to other connected devices.
Usually twilio doesn’t come in outbox node red for raspberry pi. Whenever you want to install twilio node, run the following commands on your raspberry pi terminal
· sudo apt-get update
· sudo apt-get install npm
· npm install node-red-node-twillio
- Using GPIO node collect sensor data from Temperature sensor.
- Once the temperature reaches threshold(ex. 100 Celsius) triggers motion Circuit
- once the circuit doesnt sense any motion with in scheduled time limit, it triggers message through twilio
- Configure the residents phone number after creating a trail account in Twilio in node.
Step 6: Connect All Components
Place the Temperature sensor near the burner and the PIR motion sensor pointing to the entrance of the kitchen.
when ever the temperature reaches the threshold motion circuit gets activated and with in the scheduled time. If the Circuit doesnt sense any motions it triggers a notification through Twilio.