element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Design for a Cause - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Design for a Cause - Design Challenge
  • More
  • Cancel
Design for a Cause - Design Challenge
Blog Week 9ish - Code and Function Overview
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kyle90
  • Date Created: 14 Sep 2018 3:32 AM Date Created
  • Views 543 views
  • Likes 4 likes
  • Comments 0 comments
Related
Recommended

Week 9ish - Code and Function Overview

kyle90
kyle90
14 Sep 2018

The Arduino MKR1000 has the ability to send and receive serial data, and this is used to communicate with and control the GSM board. In this way it can initiate phone calls, as well as send and receive text messages. The audio comes from the DAC pin and into the microphone jack of the GSM board (currently via a wire that is soldered in place underneath it). The Arduino also gets the raw analog data from the three axes of the accelerometer. It adds these together for an overall acceleration measurement.

 

When the device is powered on, it can be in one of four states, depending on what inputs it gets and what it is doing. State 0 is the default, for when the "help" button has not been pressed, and no falls have been detected. If a fall is detected, it moves to state 1, plays the alarm sound to alert the user, and waits 15 seconds. If the "cancel" button has not been pressed within those 15 seconds, it will automatically initiate the call to emergency services (which is state 3). Also, if the "help" button is pressed, the 15 second delay is skipped and it goes right to making the call. If the "help" button is pressed when no fall is detected, it moves to state 2, which waits for the "help" button to be pressed again to confirm that the call should be made. Otherwise, pressing the "cancel" button will reset it back to state 0.

 

This, we hope, is an intuitive and user-friendly way for the device to work. One could incorporate different audio files to let the user know exactly what the device is doing, and also a visual display of some sort for those with impaired hearing.

 

image

 

Debugging and thoroughly testing this to make sure it would work reliably involved many text messages being sent from the GSM module.

 

image

But in the end, with everything working, it was all worth it!

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube