Inspiration

Building applications that provides safety in anyway is really helpfull. Avoiding drunk driving through technology has been like a revolution where many experts are trying to get it done.

What it does

It prevents a person who is driving car when drunk. If the driver is drunk by using an Alcohol Detector and if found positive the system first stops the car engine

How I built it

STEP 1) Connecting the BOLT unit to your Mobile WiFi Hotspot -

Connect your Bolt's Micro SD card to your computer. In the setting file, set the ssid to your mobile hotspot name and also set the password field to your hotspots password. Re insert the micro sd card in the bolt unit. Switch on your mobile hotspot enabling mobile data. Wait for the bolt unit to connect to your hotspot. It is indicated by a constant blue led. STEP2) Finding your BOLT Unit's IP Address using any IP scanner application -

Download any Ip scanner application. We used Advanced IP Scanner. First press the IP button on the top. Now press the scan button. In the search results, look for the ip address of your bolt unit. You may copy it somewhere for future use. Enter your bolt unit's ip address on your web browser. If everything is in working order, the default index page should show. STEP3) Connecting the Alcohol Detector to your BOLT Unit. -

1) Connect the ground pin of the MQ-3 sensor to the ground of bolt unit. 2) Connect the Vcc pin of MQ-3 sensor to 5v pin on bolt unit. 3)Connect the output pin of MQ-3 sensor to the pin where the input is desired.Keep in mind that the pin must be capable of taking analog input E.g. pin A0. 4) You may write a simple code to make sure your sensor is working properly. At normal conditions, the sensor should read value around 30ppm.

Step 5: Programming the BOLT Unit using HTML.

Step 6: Using IFTTT to send an Email on trigger.

Go to home page of IFTTT site and click on channels. Now search for maker in search box. And after getting search results Click on Maker . After clicking on maker you will redirected to maker channel page. Click on triggers as incircled in image below. Now click on Create a new Receipe for making a receipe. Click on this for choosing input for the recipe. Now search for maker and after getting search results click on Maker icon. Click on connect button as incircled in image. After that click on Continue to next step. Here you will click on Choose a trigger. Now here we will enter a event name and note down this event name. After typing event name click on Create Trigger Now, your own trigger event is created. The next step is choose action to be performed. Click on that Search for gmail. We chose gmail. You can choose any event like twitter,slack,youtube etc. Now click on connect and give them authorization to access your gmail account. Here you choose a action After choosing action click on Create Action. Click on Create Recipe . Now you recipe is ready. Now you will be redirected to this Recipe page. Now again click on channel and search for maker channel. Click on maker icon . The next step is to click on "How to Trigger Events" . Now you can see the key for your trigger event. Now type your event name and copy that whole line and save it somewhere. Now click on Test it as I encircled in image . Now you trigger is ready. Your code must contain the functionality of triggering this event and also to send the geo-location via the mail.

Challenges I ran into

Integration was the part where I got stuck. Initially notification was triggered but event in IFTTT to send email was not working. However at the end it was successful.

Accomplishments that I'm proud of

This project really added a value in real life scenario.

What I learned

Learned IFTTT services and connected IFTTT with Bolt Iot

What's next for Preventing Drunk Driving

Use Internet to find GPS location and requests for a cab to any preferred cab service with the exact GPS location.

Built With

  • alcohol-detector
  • bolt-iot
  • html
  • ifttt
Share this project:

Updates