BY Michelle Telstra 08 April 2021
So we’ve gone through how we can poll for input from our remote IoT sensors and get data on demand, and push commands to remote devices via SMS. The fun part comes in when we automate alerts based on some environmental triggers!
We connected an Arduino IMU sensor to the IoT board that outputs things like acceleration of the device. To infer if the device has been dropped, we set a threshold for maximum acceleration (on the x, y and z axes). When that level is exceeded, the Arduino device triggers a message to the IoT broker, that puts together an SMS to a pre-defined emergency contact to let them know that the device has fallen.
Consider this device attached to a high value asset, or a patient with mobility issues, you can be alerted immediately if there is a sudden change in their
The cool thing about defining all of this in a system like Node-Red is that you can bringing in various inputs and outputs, plug in other APIs, and it is all done with drag and drop connectors using low-code! (or even no-code if you find what you need open source)
For some use cases, it may be simpler to send an SMS alert directly from your Arduino device. This depends on how complex the process is, and if you need to input any other external data sources. For those who have purchases the Arduino MKR NB 1500 Dev Kit from TelstraDev with a Cat-M1/LTE-M SIM, I’ve outlined your options for sending SMS direct from the Arduino board in this forum: https://dev.telstra.com/content/sending-sms-my-iot-device
Here it is in action!
If you enjoyed this tutorial, and want to take the next step in your API journey, let me know in the comments! What should we cover next?
For further details on this workshop:
GitHub Repo + ReadMe: https://github.com/MichelleHowie/Arduino-MKR-IMU-Fall-Detect
Originally presented at Telstra Health Hack for Digital Healthcare with DeveloperSteve Coochin, November 2020: https://www.youtube.com/watch?v=UebmjYumGoQ&feature=youtu.be&ab_channel=TelstraHealth
If you liked these workshops, keep up to date with TelstraDev! Our next live hackathon will be at Call For Code 2021, where we have contributed to the Developer Starter Kit for the challenge of Zero-Hunger. Check out the GitHub repo for more info and sign up to answer the Call For Code!