I am Rohini Boralkar, This project is made on BOLT using PIR sensor to prevent railway accidents.
1. Problem StatementMany accidents occur on railway platform. These accidents can be results into serious threat to the respective person and may even cause the death.
2. Purposed SolutionNow, suppose someone's leg has mistakenly goes beneath the platform and has possibility to get injured. Then sensor will sense it and alarm will be activated. Also, Notification will be send to respective person to carried out further action.
3. Required components1. Bolt WiFi Module
Bolt WiFi Module is an IOT platform used to control devices.
2. Passive Infrared Sensor
PIR sensor is an electronic sensor that measures IR light radiating from objects in its field of view. It senses in 120° and its detection ranges from 10 m to 150 m.
4. Demonstration5. Alert Notification
For sending notification Twilio SMS Messaging API is used.
6. Circuit Connections1. The power supply to the PIR sensor is given using 5 V pin of the bolt module. The output of the sensor is given to Digital pin 0 and ground of sensor to ground of the Bolt device.
2. The positive terminal of the buzzer is given to digital pin 3 and ground of buzzer to ground of the Bolt device.
3. The power supply to the bolt device is given by laptop using USB cable and connect this device with mobile hotspot.
Configure buzzer and sensor on Bolt Cloud module. The python coding for this project can be done on either Digital Ocean or on Ubuntu server virtual machine or in python(3.5.4). Here you can learn how to install python 3 and setup local programming environment on Ubuntu OS. After successful installation of Python 3 on your Digital Ocean Droplet or Ubuntu server, we need to installed Bolt IOT library using pip.
sudo pip3 install boltiot
Now, Create an account in Twilio . It will provide private API to send SMS/ alert notification for free. By using following code in python create a 'conf' file with your given credentials.
SID = 'get from Twilio Dashboard'
AUTH_TOKEN = 'get from Twilio Dashboard'
FROM_NUMBER = 'get from Twilio Dashboard(number generated by Twilio)'
TO_NUMBER = 'This is your number. Make sure you are adding +91 in beginning'
8. Core LogicWhen value of PIR sensor will go high, buzzer will be activated and it starts buzzing. Also, notification of accident will be send by Twilio API.
Comments