Disciple in life is one of the very crucial aspects one should have in their life. It all starts with the idea of waking up early in the morning, be it for exercise, meditation, study or maybe to go places. The upcoming fields of computer science like theInternet of Things, Machine Learning, augment and assist the existing skills and technologies we have been using till date. One of the examples of the above idea is a Smart Alarm Clock designed using theBolt IoT module and an online automation platform, Intergromat.
Step-1:Pre-Projectrequirements
- Make sure you have a Bolt IoT module powered on.
- Register on the bolt cloud and connect the bolt device. Register here.
- To use the free online automation platform, sign up on the Intergromat.
- Connect the longer end(+ve end) of the Buzzer to pin 0 (or any other GPIO pin i.e 1 2 3 or 4) of the Bolt.
- Connect the shorter end(-ve end) of the Buzzer to the GND pin of the Bolt.
- Power on the Bolt device using a micro-USB cable.
- Sign in to your Integromat account.
- Click on Create a new scenario.
- Search and select "Bolt iot".
- Enter your API key by clicking on the Add button as shown below. You can find your API key on your Bolt Cloud dashboard.
- Select command as Write digital output.
- Enter the Device ID and select pin 0 as the Buzzer will be connected to this pin.
- Choose the state as HIGH as we want the Buzzer to turn on.
- Next, we want the buzzer to ring for a few seconds at least. So we need to add a delay before switching off the Buzzer again.
- Click on the tools option and select sleep.
- Enter the number of seconds the buzzer should ring for in the input box. For me, 10 seconds of high-intensity buzzer sound is enough to wake me up
- Click on add a new module and choose Bolt IoT again. Now, in this module, we are going to switch off the Buzzer by sending a LOW to the Buzzer.
- Enter the same Bolt ID and Pin, but this time, set the state as LOW.
- So far, we have set up the scenario to ring the buzzer. Now, we will give it some context in the form of the time to ring.
- Click on the little clock icon on the initial Bolt module. This is the scheduling option. Choose the time that you want the alarm to ring and click on OK.
- To test if the buzzer actually works, click on the "Run Once" button. The buzzer should ring for 5 seconds and then switch off.
- ARNAV GAUR, Manipal Institute of Technology
Comments