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
  • About Us
  • 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
Azure Sphere Starter Kit
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Azure Sphere Starter Kit
  • More
  • Cancel
Azure Sphere Starter Kit
Blog [PROJECT] Part 5... Getting Started With Microsoft Azure Guide, and a Simple Azure Sphere Sensor Project
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Azure Sphere Starter Kit to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Catwell
  • Date Created: 30 Sep 2019 5:27 PM Date Created
  • Views 1543 views
  • Likes 6 likes
  • Comments 6 comments
  • tutorial
  • microsoft
  • project
  • azure
  • diy
  • cabeatwell
Related
Recommended

[PROJECT] Part 5... Getting Started With Microsoft Azure Guide, and a Simple Azure Sphere Sensor Project

Catwell
Catwell
30 Sep 2019

Please make sure Part 1, Part 2, Part 3 and Part 4 are correct before moving on to Part 5 below.

 

 

Section 5: Running the ShockDetect application!

 

5.1. Extract the attached zip file for this post to a directory of your choice. Make it a simple to type location, I recommend. Like C:\Shockdetect

 

 

5.2. In Azure Sphere Developer Console, navigate to that unzip location and run the ShowIoTCentralConfig.exe application that is located in Tools directory. You could also do this in Windows File Explorer.

Choose not to use the Work/School Account.

image

 

5.3. After receiving the information, type the following command:

azsphere tenant show-selected

 

5.4. Double click on AzureIoT.sln from ShockDetect\AzureIoT directory and double click on app_manifest.jsonfile, fill out:

CmdArgs

AllowedConnection

DeviceAuthentication

 

image

 

5.5. You can just Run Project with the green arrow on your Device:

image

 

5.6. Just after calibrating device message to IoT Central Application is sent so, you can receive email and notice it on Azure IoT Central Application:

image

 

5.7. Working without shake – nothing is sent to Azure IoT Central Application:

image

 

5.8. After you shake device you see something like this:

image

 

And you should receive email and see results in IoT Central Application:

image

 

5.9. You can stop the application:

image

 

There you go... you just ran your first Azure IoT project!

 

It was a lot of setup for some good payoff.

Now you can take advantage of all the Azure Sphere's on-board features and modules, develop around them...

 

Like the "Sensing the World Challenge," you could use my project as a base or follow the setup the Azure Sphere Kit - connecting it to the contest server.

I should have started there, tbh... image

 

 

 

 

Attachments:
Cabe Atwell Azure ShockDetect.zip
  • Sign in to reply
  • bwilless
    bwilless over 5 years ago in reply to aurock

    Hi Steve,

     

    We've seen the I2C buss get into a bad state.  Power cycle your device and the issue should clear.

     

    Brian

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • aurock
    aurock over 5 years ago

    I've gotten through everything up to step 5.5, at which point I'm getting this error:

    LPS22HH not found!

     

     

    Failed to read LSM22HH device ID, exiting

    Closing file descriptors

    Application exiting.

     

     

    Child exited with status 0

    What would cause this?

     

    My device is running OS version 19.09

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • iteratek
    iteratek over 5 years ago in reply to iteratek

    Sorry.

    Do "open the Project Properties and select a 'Target API Set' that this SDK supports" and works

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • iteratek
    iteratek over 5 years ago

    My error after "Could not get the IoT Hub endpoint information."

     

    Error Target API Set 2+Beta1905 is not supported by this SDK. Please update your SDK at http://aka.ms/AzureSphereSDKDownload, or open the Project Properties and select a 'Target API Set' that this SDK supports. Available targets are: [1, 2, 3, 3+Beta1909]. Ensure that the Configuration selected on that page includes the active build configuration (e.g. Debug, Release, All Configurations). AzureIoT D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Application Type\Linux\1.0\AzureSphere.targets 47

     

    I need update OS in AvNet board?

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • wlynt3
    wlynt3 over 6 years ago

    I too am seeing "Could not get the IoT Hub endpoint information." Thoughts?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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