Home
%3CLINGO-SUB%20id%3D%22lingo-sub-825212%22%20slang%3D%22en-US%22%3ELowering%20the%20barrier%20to%20entry%20when%20teaching%20IoT%20with%20the%20Azure%20IoT%20DevKit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-825212%22%20slang%3D%22en-US%22%3E%3CDIV%3E%3CSPAN%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F128776i7AAA001961D25684%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22projects-devkit-get-started-th.jpg%22%20title%3D%22projects-devkit-get-started-th.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EIoT%20is%20one%20of%20the%20fastest%20growing%20areas%20in%20the%20technology%20space%2C%20and%20academic%20institutions%20are%20eager%20to%20add%20IoT%20modules%20to%20their%20curriculum.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EAt%20it's%20core%20IoT%20involves%20having%20some%20kind%20of%20hardware%2C%20maybe%20with%20sensors%20or%20connectors%20to%20the%20outside%20world%2C%20a%20connection%20to%20the%20internet%2C%20and%20internet%20based%20services%20that%20the%20hardware%20interacts%20with.%20There%20are%20a%20huge%20range%20of%20options%20for%20both%20the%20hardware%20and%20internet%20services%20to%20be%20used%2C%20but%20the%20biggest%20problem%20is%20complexity%20-%20the%20complexity%20of%20configuring%20the%20hardware%2C%20connecting%20it%20to%20the%20internet%20and%20configuring%20the%20internet%20based%20services.%20The%20more%20complex%20the%20setup%2C%20the%20more%20time%20spent%20working%20with%20students%20to%20overcome%20this%20complexity%2C%20and%20the%20less%20time%20available%20to%20teach%20the%20important%20concepts.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EIdeally%20you%20want%20a%20setup%20that%20reduces%20this%20complexity%2C%20a%20setup%20where%20the%20hardware%20is%20self%20contained%20with%20as%20much%20functionality%20as%20possible%2C%20where%20the%20internet%20connection%20and%20the%20internet%20services%20can%20be%20setup%20and%20configured%20with%20minimal%20effort.%20This%20is%20where%20the%20Azure%20IoT%20Dev%20Kit%20comes%20in%2C%20along%20with%20Azure%20IoT%20Hub%20and%20Visual%20Studio%20Code.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSTRONG%3EAzure%20IoT%20Dev%20kit%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EThe%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fmicrosoft.github.io%2Fazure-iot-developer-kit%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EAzure%20IoT%20Dev%20Kit%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%2C%20also%20known%20as%20the%20MXChip%20is%20a%20hardware%20prototyping%20board%20designed%20to%20connect%20to%20Azure%2C%20the%20Microsoft%20cloud%20service.%20It's%20relatively%20cheap%20based%20on%20the%20number%20of%20capabilities%20built%20in.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20560px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F128773i50A94C8199481633%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22MXChipBoard.png%22%20title%3D%22MXChipBoard.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EThe%20MXChip%20board%20showing%20the%20position%20of%20sensors%20and%20connections%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EThis%20is%20a%20great%20prototyping%20board%20-%20it's%20fully%20Arduino-compatible%20so%20can%20be%20coded%20in%20C%2C%20has%20a%20DAP%20link%20emulator%20so%20the%20code%20can%20be%20debugged%20whilst%20running%20on%20the%20board%2C%20and%20has%20a%20host%20of%20sensors%20and%20features%20such%20as%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3ETemperature%2C%20pressure%20and%20humidity%20sensor%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%20Motion%20sensor%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EMagnetometer%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EAn%20OLED%20screen%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3ELEDs%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EButtons%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EMicrophone%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EHeadphone%20socket%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EFinger%20connector%20compatible%20with%20the%20BBC%20micro%3Abit%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSTRONG%3EAzure%20IoT%20Hub%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EAs%20the%20name%20suggests%2C%20the%20Azure%20IoT%20Dev%20Kit%20is%20designed%20to%20work%20with%20Azure.%20Azure%20has%20an%20IoT%20service%20called%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fiot-hub%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EIoT%20Hub%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%2C%20and%20this%20allows%20you%20to%20connect%2C%20monitor%20and%20configure%20millions%20of%20devices.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EThe%20Azure%20IoT%20Dev%20Kit%20can%20be%20quickly%20configured%20to%20connect%20to%20Wifi%20and%20to%20an%20IoT%20Hub%20instance%2C%20and%20upload%20or%20download%20data%20over%20MQTT%20-%20an%20industry%20standard%20protocol%20for%20sending%20messages%20to%20and%20from%20IoT%20devices.%20There's%20even%20a%20blue%20LED%20that%20lights%20up%20when%20the%20device%20is%20connected%20to%20an%20IoT%20hub.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EOnce%20you%20have%20data%20in%20the%20IoT%20hub%2C%20there%20are%20a%20number%20of%20other%20services%20that%20can%20respond%20to%20that%20data%2C%20such%20as%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fstream-analytics%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ES%3C%2FA%3E%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fstream-analytics%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Etream%20Analytics%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bthat%20allows%20you%20to%20analyze%20the%20data%20in%20real%20time%2C%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Ftime-series-insights%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3ETime%20Series%20Insights%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bthat%20allows%20you%20to%20run%20analytics%20over%20time%20series%20data.%20You%20can%20also%20trigger%20serverless%20Azure%20Function%20code%20with%20every%20message%20received%20from%20the%20Dev%20Kit.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EBest%20of%20all%20there%20is%20a%20free%20tier%20for%20IoT%20Hub%20allowing%20you%20to%20send%20thousands%20of%20messages%20a%20day%20to%20the%20hub%20without%20paying%20a%20penny.%20This%20is%20available%20as%20part%20of%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Ffree%2Fstudents%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EAzure%20for%20Students%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Boffer.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3E%3CSTRONG%3EVisual%20Studio%20Code%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EWhat%20brings%20this%20all%20together%20and%20manages%20a%20lot%20of%20the%20complexity%20is%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dvsciot-vscode.vscode-iot-workbench%26amp%3BWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EAzure%20IoT%20Device%20Workbench%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bextension%20for%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcode.visualstudio.com%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EVisual%20Studio%20Code%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%20Using%20this%20extension%20you%20can%20quickly%20create%20an%20IoT%20Hub%20instance%20and%20push%20this%20configuration%20to%20the%20board%20with%20only%20a%20few%20clicks.%20You%20can%20then%20code%20for%20the%20board%20in%20C%20with%20full%20intellisense%2C%20upload%20this%20code%20to%20the%20device%20and%20debug%20with%20only%20a%20few%20clicks.%20Once%20you%20have%20data%20flowing%20you%20can%20monitor%20this%20data%20flow%20both%20ways%20without%20leaving%20VS%20Code.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EUsing%20VS%20Code%20to%20configure%20your%20IoT%20Hub%20and%20board%20means%20your%20students%20can%20forget%20about%20the%20complexity%20of%20configuration%20and%20focus%20on%20what%20is%20important%20-%20learning%20the%20concepts%20such%20as%20MQTT%2C%20IoT%20architecture%2C%20sensors%20and%20real%20time%20data%20analytics.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EVS%20Code%20is%20an%20industry%20standard%20developer%20tool%2C%20so%20the%20same%20tool%20students%20will%20be%20using%20for%20other%20programming%20languages%2C%20and%20may%20use%20when%20the%20enter%20the%20world%20of%20work.%20By%20using%20VS%20Code%20for%20their%20IoT%20projects%20the%20can%20stay%20in%20a%20familiar%20environment%20instead%20of%20using%20custom%20IDEs%20that%20may%20not%20be%20as%20fully%20featured.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSTRONG%3EGetting%20started%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EA%20great%20way%20to%20get%20started%20with%20the%20Azure%20IoT%20Dev%20Kit%20and%20IoT%20Hub%20is%20to%20build%20your%20first%20app.%20I've%20created%20a%20hands-on%20lab%20that%20you%20can%20work%20though%20to%20do%20just%20that%2C%20taking%20advantage%20of%20a%20number%20of%20different%20capabilities%20of%20the%20hardware%20and%20services.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CEM%3EHardware%3C%2FEM%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3ETo%20get%20started%20you%20will%20need%20an%20Azure%20IoT%20Dev%20Kit%2C%20and%20these%20are%20available%20from%20a%20number%20of%20suppliers%20globally.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Famzn.to%2F2CdVgB1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EAmazon%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.dfrobot.com%2Fproduct-1616.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EDFRobot%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.seeedstudio.com%2FAZ3166-IOT-Developer-Kit-p-2922.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3ESeeed%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CEM%3ESoftware%3C%2FEM%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EYou%20will%20need%20to%20install%20a%20few%20applications%20and%20tools%20to%20be%20able%20to%20program%20this%20board%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fcode.visualstudio.com%2FDownload%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EVisual%20Studio%20Code%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.arduino.cc%2Fen%2FMain%2FSoftware%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EArduino%20IDE%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3B-%20%3C%2FSPAN%3E%3CSTRONG%3ENOTE%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3BOn%20Windows%20DO%20NOT%20install%20using%20the%20Windows%20store%2C%20instead%20use%20the%20%3C%2FSPAN%3E%3CEM%3EWindows%20Installer%2C%20for%20Windows%20XP%20and%20up%3C%2FEM%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdotnet.microsoft.com%2Fdownload%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3E.NET%20Core%20SDK%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-functions%2Ffunctions-run-local%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EAzure%20Functions%20Core%20Tools%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EYou%20may%20need%20to%20install%20a%20USB%20driver%20or%20configure%20USB%20support%20to%20communicate%20with%20the%20MXChip.%3C%2FSPAN%3E%3CUL%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EWindows%3A%20Download%20and%20install%20USB%20driver%20from%20%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fwww.st.com%2Fen%2Fdevelopment-tools%2Fstsw-link009.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ESTMicro%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EmacOS%3A%20No%20driver%20is%20required%20for%20macOS.%3C%2FLI%3E%0A%3CLI%3ELinux%3A%20Run%20the%20following%20in%20terminal%20and%20logout%20and%20login%20for%20the%20group%20change%20to%20take%20effect%3A%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3E%23%20Copy%20the%20default%20rules.%20This%20grants%20permission%20to%20the%20group%20'plugdev'%0Asudo%20cp%20~%2F.arduino15%2Fpackages%2FAZ3166%2Ftools%2Fopenocd%2F0.10.0%2Flinux%2Fcontrib%2F60-openocd.rules%20%2Fetc%2Fudev%2Frules.d%2F%0Asudo%20udevadm%20control%20--reload-rules%0A%0A%23%20Add%20yourself%20to%20the%20group%20'plugdev'%0A%23%20Logout%20and%20log%20back%20in%20for%20the%20group%20to%20take%20effect%0Asudo%20usermod%20-a%20-G%20plugdev%20%24(whoami)%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CEM%3EAzure%20account%3C%2FEM%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3ETo%20use%20Azure%20IoT%20Hub%20you%20will%20need%20an%20Azure%20subscription.%20If%20you%20don't%20have%20a%20subscription%20you%20can%20sign%20up%20for%20free.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EIf%20you%20are%20a%20student%20aged%2018%20and%20up%20and%20have%20an%20email%20address%20from%20an%20academic%20institution%2C%20you%20can%20sign%20up%20for%20the%20free%20Azure%20for%20Students%20offer%20at%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Ffree%2Fstudents%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Eazure.microsoft.com%2Ffree%2Fstudents%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%20This%20will%20give%20you%20US%24100%20in%20Azure%20credits%2C%20as%20well%20as%20a%20load%20of%20free%20services%20for%20a%20year%2C%20and%20you%20don't%20need%20a%20credit%20card%20to%20sign%20up.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EYou%20can%20also%20sign%20up%20for%20a%20standard%20Azure%20free%20account%20at%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Ffree%2F%3FWT.mc_id%3Dmxchip-blog-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Eazure.microsoft.com%2Ffree%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%20You%20will%20need%20a%20credit%20card%20for%20verification%20purposes%20only%2C%20you%20will%20not%20be%20billed%20unless%20you%20decide%20to%20upgrade%20your%20account%20to%20a%20paid%20offering.%20This%20will%20give%20you%20%24200%20in%20credits%20to%20use%20in%20the%20first%2030%20days%20as%20well%20as%20free%20services%20for%2012%20months.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CEM%3EThe%20lab%3C%2FEM%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EThis%20lab%20is%20implemented%20in%20both%20C%20and%20C%23.%20The%20code%20running%20on%20the%20MXChip%20is%20in%20C%2C%20the%20code%20for%20the%20Azure%20Functions%20is%20in%20C%23.%20The%20code%20does%20not%20have%20any%20error%20handling%2C%20it%20is%20intended%20to%20be%20as%20short%20as%20possible%20to%20help%20illustrate%20how%20to%20program%20the%20board%20as%20opposed%20to%20being%20production%20ready%20code.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjimbobbennett%2FMXChip-Workshop%2Fblob%2Fmaster%2FSteps%2FConfigureTheBoard.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20%3CSPAN%3EConfigure%20the%20MXChip%20board%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjimbobbennett%2FMXChip-Workshop%2Fblob%2Fmaster%2FSteps%2FConfigureVSCode.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20%3CSPAN%3EConfigure%20Visual%20Studio%20Code%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjimbobbennett%2FMXChip-Workshop%2Fblob%2Fmaster%2FSteps%2FShowingTheTemperature.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EShow%20the%20temperature%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjimbobbennett%2FMXChip-Workshop%2Fblob%2Fmaster%2FSteps%2FSendingTheTemperature.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3ESend%20the%20temperature%20to%20Azure%20IoT%20Hub%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjimbobbennett%2FMXChip-Workshop%2Fblob%2Fmaster%2FSteps%2FStoreTheTemperature.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EStore%20the%20temperature%20using%20Azure%20Functions%20and%20Cosmos%20DB%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjimbobbennett%2FMXChip-Workshop%2Fblob%2Fmaster%2FSteps%2FExposeTheTemperature.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EExpose%20the%20temperature%20using%20Azure%20Functions%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjimbobbennett%2FMXChip-Workshop%2Fblob%2Fmaster%2FSteps%2FControlTheLEDThreshold.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EConfigure%20the%20LED%20colour%20threshold%20using%20Device%20Twins%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjimbobbennett%2FMXChip-Workshop%2Fblob%2Fmaster%2FSteps%2FCleanUp.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EClean%20up%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EYou%20can%20find%20this%20whole%20lab%2C%20including%20the%20final%20code%20in%20GitHub%20at%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjimbobbennett%2FMXChip-Workshop%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Egithub.com%2Fjimbobbennett%2FMXChip-Workshop%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%20This%20lab%20is%20MIT%20licensed%2C%20so%20feel%20free%20to%20use%20it%20in%20any%20way%20you%20want%20to%2C%20including%20running%20it%20at%20student%20events%20such%20as%20Hackathons%20or%20using%20it%20in%20the%20classroom%2C%20either%20in%20its%20entirety%20or%20whatever%20pieces%20you%20need.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-825212%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20Azure%20IoT%20Dev%20Kit%20is%20a%20prototyping%20board%20that%20works%20seamlessly%20with%20Azure%20to%20reduce%20the%20complexity%20when%20getting%20started%20teaching%20and%20building%20IoT%20projects.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft
projects-devkit-get-started-th.jpg

 

IoT is one of the fastest growing areas in the technology space, and academic institutions are eager to add IoT modules to their curriculum.

 

At it's core IoT involves having some kind of hardware, maybe with sensors or connectors to the outside world, a connection to the internet, and internet based services that the hardware interacts with. There are a huge range of options for both the hardware and internet services to be used, but the biggest problem is complexity - the complexity of configuring the hardware, connecting it to the internet and configuring the internet based services. The more complex the setup, the more time spent working with students to overcome this complexity, and the less time available to teach the important concepts.

 

Ideally you want a setup that reduces this complexity, a setup where the hardware is self contained with as much functionality as possible, where the internet connection and the internet services can be setup and configured with minimal effort. This is where the Azure IoT Dev Kit comes in, along with Azure IoT Hub and Visual Studio Code.

 

Azure IoT Dev kit

 

The Azure IoT Dev Kit, also known as the MXChip is a hardware prototyping board designed to connect to Azure, the Microsoft cloud service. It's relatively cheap based on the number of capabilities built in.

 

MXChipBoard.pngThe MXChip board showing the position of sensors and connections

 

This is a great prototyping board - it's fully Arduino-compatible so can be coded in C, has a DAP link emulator so the code can be debugged whilst running on the board, and has a host of sensors and features such as:

 

  • Temperature, pressure and humidity sensor
  • Motion sensor
  • Magnetometer
  • An OLED screen
  • LEDs
  • Buttons
  • Microphone
  • Headphone socket
  • Finger connector compatible with the BBC micro:bit

 

Azure IoT Hub

 

As the name suggests, the Azure IoT Dev Kit is designed to work with Azure. Azure has an IoT service called IoT Hub, and this allows you to connect, monitor and configure millions of devices.

 

The Azure IoT Dev Kit can be quickly configured to connect to Wifi and to an IoT Hub instance, and upload or download data over MQTT - an industry standard protocol for sending messages to and from IoT devices. There's even a blue LED that lights up when the device is connected to an IoT hub.

 

Once you have data in the IoT hub, there are a number of other services that can respond to that data, such as Stream Analytics that allows you to analyze the data in real time, Time Series Insights that allows you to run analytics over time series data. You can also trigger serverless Azure Function code with every message received from the Dev Kit.

 

Best of all there is a free tier for IoT Hub allowing you to send thousands of messages a day to the hub without paying a penny. This is available as part of the Azure for Students offer.

 

Visual Studio Code

 

What brings this all together and manages a lot of the complexity is the Azure IoT Device Workbench extension for Visual Studio Code. Using this extension you can quickly create an IoT Hub instance and push this configuration to the board with only a few clicks. You can then code for the board in C with full intellisense, upload this code to the device and debug with only a few clicks. Once you have data flowing you can monitor this data flow both ways without leaving VS Code.

 

Using VS Code to configure your IoT Hub and board means your students can forget about the complexity of configuration and focus on what is important - learning the concepts such as MQTT, IoT architecture, sensors and real time data analytics.

 

VS Code is an industry standard developer tool, so the same tool students will be using for other programming languages, and may use when the enter the world of work. By using VS Code for their IoT projects the can stay in a familiar environment instead of using custom IDEs that may not be as fully featured.

 

Getting started

 

A great way to get started with the Azure IoT Dev Kit and IoT Hub is to build your first app. I've created a hands-on lab that you can work though to do just that, taking advantage of a number of different capabilities of the hardware and services.

 

Hardware

 

To get started you will need an Azure IoT Dev Kit, and these are available from a number of suppliers globally.

 

 

Software

 

You will need to install a few applications and tools to be able to program this board:

 

  • Visual Studio Code
  • Arduino IDE - NOTE On Windows DO NOT install using the Windows store, instead use the Windows Installer, for Windows XP and up.
  • .NET Core SDK
  • Azure Functions Core Tools
  • You may need to install a USB driver or configure USB support to communicate with the MXChip.
    • Windows: Download and install USB driver from STMicro.
    • macOS: No driver is required for macOS.
    • Linux: Run the following in terminal and logout and login for the group change to take effect:
      # Copy the default rules. This grants permission to the group 'plugdev'
      sudo cp ~/.arduino15/packages/AZ3166/tools/openocd/0.10.0/linux/contrib/60-openocd.rules /etc/udev/rules.d/
      sudo udevadm control --reload-rules
      
      # Add yourself to the group 'plugdev'
      # Logout and log back in for the group to take effect
      sudo usermod -a -G plugdev $(whoami)​

 

Azure account

 

To use Azure IoT Hub you will need an Azure subscription. If you don't have a subscription you can sign up for free.

 

If you are a student aged 18 and up and have an email address from an academic institution, you can sign up for the free Azure for Students offer at azure.microsoft.com/free/students. This will give you US$100 in Azure credits, as well as a load of free services for a year, and you don't need a credit card to sign up.

 

You can also sign up for a standard Azure free account at azure.microsoft.com/free. You will need a credit card for verification purposes only, you will not be billed unless you decide to upgrade your account to a paid offering. This will give you $200 in credits to use in the first 30 days as well as free services for 12 months.

 

The lab

 

This lab is implemented in both C and C#. The code running on the MXChip is in C, the code for the Azure Functions is in C#. The code does not have any error handling, it is intended to be as short as possible to help illustrate how to program the board as opposed to being production ready code.

 

  1. Configure the MXChip board
  2. Configure Visual Studio Code
  3. Show the temperature
  4. Send the temperature to Azure IoT Hub
  5. Store the temperature using Azure Functions and Cosmos DB
  6. Expose the temperature using Azure Functions
  7. Configure the LED colour threshold using Device Twins
  8. Clean up

 

You can find this whole lab, including the final code in GitHub at github.com/jimbobbennett/MXChip-Workshop. This lab is MIT licensed, so feel free to use it in any way you want to, including running it at student events such as Hackathons or using it in the classroom, either in its entirety or whatever pieces you need.