The international Morse code distress signal was first used by the German government in 1905 and became the standard distress signal around the world just a few years later. It is even used by the military spies to smuggle information from enemy countries. And moreover, it is fun !!!!!
Hardware connections:- Connect the positive(or longer pin or red wire) and the negative(or short pin or black wire) of both LED and buzzer to the 0th port and to the GND port of the Bolt WiFi module respectively.
- Attach a resistor to the LED for reducing the voltage that is being passed through the circuit. (This is not mandatory. This is done for precaution so that the LED won't fuse.)
- Connect USB (Type C) wire to the Bolt WiFi module and provide a power supply.
(Note: Once your Bolt WiFi module gets power supply then the blue LED in it will start blinking and become stable. And once your module is connected to the registered WiFi the green LED will be on.)
Firstly you must make sure you have to set up the following correctly:
1) First, create an account in the bolt cloud. You can do so in the below link:
https://cloud.boltiot.com/login
2) Create an account in Twilio.
Once you log in, you can find the SID and Authentication key as in the below image
3) Create an account in Mailgun.
Once you log in, you can find the Sandbox URL and private API key as in the below image
4) Install Bolt Python Library.
In the terminal type the below codes separately:
sudo apt-get y update
sudo apt install python3-pip
sudo pip3 install boltiot
5) Install kivy package by the following command:
sudo apt-get install python-kivy
Now you are ready for the coding part which you can find at the end….
FURTHER INSTRUCTIONS:In case you are struggling to find your Device ID or API key.
You can see your Device ID in this link and your API key in this link.
For sending long messages:
You can update your account to pro pack for transmitting long messages. You can view your plan through this link: https://cloud.boltiot.com/view_profile/plan
OUTPUTBelow are the notifications sent from Twilio and Mailgun:
Hereby I share the running process of my project.
Comments