(with IoT Setup And Basic Min App Inventor IoT: Gyroscope

1y ago
12 Views
2 Downloads
941.20 KB
6 Pages
Last View : 30d ago
Last Download : 3m ago
Upload by : Josiah Pursley
Transcription

App Inventor IoT:Gyroscope20min(with IoT Setup and BasicConnection tutorials completed)This tutorial will help you get started with App Inventor IoT and the built-ingyroscope on the Arduino 101 controller. A gyroscope measure angular velocity,which measures the speed of rotation of an object (the Arduino).Before you start you should first complete the App Inventor IoT Setup tutorial toset up your Arduino device. For this tutorial make sure GYROSCOPE is set toENABLED and all others are set to DISABLED. You should also click the arrow button in the topleft to upload the code.

Next, you should complete the App Inventor IoT Basic Connection tutorial tomake a basic connection to the Arduino device. If you prefer, you can downloadthe completed .aia file here.The remaining steps all build off of the the starter code for Basic Connectiontutorial and .aia: Drag a Label from the User Interface Palette and drop it betweenLabelStatus and ListBLE Rename the Label "LabelData". Change its text to “Data: “. In the Palette window, click on Extension at the bottom and then on "Importextension" and click on "URL". Paste in this appinventor.iot.arduino101.aix Add the Arduino101Gyroscope extension to your app by dragging it ontothe Viewer.

Next, we need to let App Inventor know which BLE device is reading the gyroscopedata. Click on Ardunio101Gyroscope1 in the Components pane.In the Properties pane, click on BluetoothDevice and select BluetoothLE1.

Now switch to the Blocks Editor viewFirst, we want to request data updates when the gyroscope sensor values on theArduino change. from Arduino101Gyroscope1 in the Blocks pane, addcall Arduino101Gyroscope1.RequestGyroscopeDataUpdates to theexisting when BluetoothLE1.Connected block from the Basic Connectiontutorial.Next, we need to store the data we receive from the sensor. From the Variablesdrawer in the Blocks pane, drag an initialize global name to block and name it"X Angle". From the Math drawer, add a number block and set it to "0". We'll usethis to keep track of the sensor value. Do this again, and rename the secondvariable "Y Angle"

Let's make a new procedure to display the current readings in the LabelDatawhen we get new data. You can create a procedure by dragging out a purpleprocedure block from the Procedures drawer in the Blocks pane. Let's rename itupdateDataLabel. from LabelData in the Blocks pane, add set LabelData.Text to. from the Text drawer connect a join block. From the Text drawer, connect a text block and type"Position: " From the Text drawer, connect a text block and type "X " (note the extra space after the X) We need three more slots in the join block. Hover over the blue gear on the join block In the popup, attach three of the string blocks the the twoalready there From the Variables drawer, connect a get global X Angle block From the Text drawer, connect a text block and type " Y " (note the spaces before and after the Y) From the Variables drawer, connect a get global Y Angle block

Finally, we need to call the procedure when this data is received. From the Arduino101Gyroscope1 drawer in the Blocks pane, dragwhen Ardunio101Gyroscope1.GyroscopeDataReceived from the Variables drawer, add set global X Angle to Hover over the orange "X Anxle" in .GyroscopeDataReceived to seethe get X Angle block. Drag the get X Angle block from this windowand snap to set global X Angle. Do the same thing for Y Angle. From the Procedures drawer, add call updateDataLabel.Your app should now be working! Connect your Arduino device using the MITAI2 Companion (if you haven't already). Test it out by moving the Arduino aroundin the air. If it is working, you should see the data labels change.

App Inventor IoT: Gyroscope This tutorial will help you get started with App Inventor IoT and the built-in gyroscope on the Arduino 101 controller. A gyroscope measure angular velocity, which measures the speed of rotation of an object (the Arduino). Before you start you should first complete the App Inventor IoT Setup tutorial to

Related Documents:

SAP Cloud Platform Internet of Things Device Management Your Gateway System Environment Cloud Platform PaaSeg., HANA, Kafka, PostgreSQL App User Admin IoT Core Service IoT Message Management Service Your IoT Data IoT service IoT Gateway Edge Devices Device 1 Device 2 Device 3 IoT Gateway Cloud IoT Service Cockpit Send and receive

MINOR DEGREE IN INTERNET OF THINGS (IoT) (DRAFT SYLLABUS) Course Structure Sr. No. Semester Temp. Course Code Course Title L T P Credits 1. 3 IoT-1 Introduction to Internet of Things 3 0 2 4 2. 4 IoT-2 IoT Protocols 3 0 2 4 3. 5 IoT-3 IoT System Design 3 0 2 4 4. 6 IoT-4 Industry 4.0 and IIoT 3 0 2 4 5.

Open Data Application Programming Interface (API) for IoT Data in Smart Cities and Communities Y.FW.IC.MDSC Framework of identification and connectivity of Moving Devices in Smart City Y.IoT-DA-Counterfeit Information Management Digital Architecture to combat counterfeiting in IoT Y.IoT-Interop An architecture for IoT interoperability Y.IoT-IoD-PT

Oracle IoT Cloud Service . IoT Cloud Service delivers solid foundation to quickly build IoT solutions . that integrates with your enterprise applications . and extend the reach of the IoT and business applications to your physical devices . and sensors . Devices . Business Applications . IoT Cloud Service Platform . Connect . Analyze .

IoT, discuss how IoT operations can be governed and what is needed, including the roles and responsibilities involved in IoT governance, and describe a proposed governance framework implementation as well as the future challenges facing IoT governance. This paper is intended to showcase how IoT governance can be implemented.

RUCKUS IoT-ready access points (APs)—Built-in IoT radios to establish multi-standard wireless access for Wi-Fi and non-Wi-Fi IoT endpoints. RUCKUS IoT modules—Radio or radio-and-sensor devices that connect to a RUCKUS IoT-ready AP to enable endpoint connectivity based on standards such as Bluetooth Low Energy (BLE) and Zigbee.

Essentials WS IoT 2019 Datacenter WS IoT 2019 Storage Standard WS IoT 2019 Storage Workgroup WS IoT 2019 . product key like Windows 10 IoT Enterprise? No. It does have Product Key Entry Activation (PKEA) but all Windows Server editions since 2008 use OEM Activ

API Structure Over 500 member companies involved in all aspects of the oil and natural gas industry Over 700 committees and task forces covering various advocacy and technical issues Staff of 240 led by board of directors who are the CEO’s of API member companies . API Standards Program All industry segments active in standardization: Exploration and Production Refining Petroleum .