azure iot_探索Azure IoT Arduino Cloud DevKit
azure iot
Someone gave me an Azure IoT DevKit, and it was lovely timing as I'm continuing to learn about IoT. As you may know, I've done a number of Arduino and Raspberry Pi projects, and plugged them into various and sundry clouds, including AWS, Azure, as well as higher-level hobbyist systems like AdaFruit IO (which is super fun, BTW. Love them.)
有人给了我一个Azure IoT DevKit ,这是我继续学习IoT的绝佳时机。 如您所知,我已经完成了许多Arduino和Raspberry Pi项目,并将它们插入各种杂乱的云中,包括AWS,Azure以及AdaFruit IO (这非常有趣,BTW)等高级爱好者系统。 。 爱他们。)
The Azure IoT DevKit is brilliant for a number of reasons, but one of the coolest things is that you don't need a physical one...they have an online simulator! Which is very Inception. You can try out the simulator at https://aka.ms/iot-devkit-simulator. You can literally edit your .ino Arduino files in the browser, connect them to your Azure account, and then deploy them to a virtual DevKit (seen on the right). All the code and how-tos are on GitHub as well.
出于多种原因,Azure IoT DevKit非常出色,但是最酷的事情之一是您不需要物理设备...它们具有在线模拟器! 这是非常盗梦空间。 您可以在https://aka.ms/iot-devkit-simulator上试用模拟器。 您可以在浏览器中直接编辑.ino Arduino文件,将它们连接到您的Azure帐户,然后将它们部署到虚拟DevKit(如右图所示)。 所有代码和操作方法也都在GitHub上。
When you hit Deploy it'll create a Free Azure IoT Hub. Be aware that if you already have a free one you may want to delete it (as you can only have a certain number) or change the template as appropriate. When you're done playing, just delete the entire Resource Group and everything within it will go away.
当您点击部署时,它将创建一个免费的Azure IoT中心。 请注意,如果您已经有一个免费的,则可能要删除它(因为您只能有一个特定的号码),或者适当地更改模板。 播放完毕后,只需删除整个资源组,其中的所有内容都会消失。
Right off the bat you'll have the code to connect to Azure, get tweets from Twitter, and display them on the tiny screen! (Did I mention there's a tiny screen?) You can also "shake" the virtual IoT kit, and exercise the various sensors. It wouldn't be IoT if it didn't have sensors!
马上,您将拥有连接到Azure的代码,从Twitter获取推文并在小屏幕上显示它们的代码! (我是否提到过屏幕很小?)您还可以“摇动”虚拟物联网工具包,并锻炼各种传感器。 如果没有传感器,那将不是物联网!
This is just the simulator, but it's exactly like the real MXChip IoT DevKit. (Get one here) They are less than US$50 and include WiFi, Humidity & Temperature, Gyroscope & Accelerometer, Air Pressure, Magnetometer, Microphone, and IrDA, which is ton for a small dev board. It's also got a tiny 128x64 OLED color screen! Finally, the board also can go into AP mode which lets you easily put it online in minutes.
这只是模拟器,但与真正的MXChip IoT DevKit完全一样。 (在这里买一个)它们不到50美元,包括WiFi,湿度和温度,陀螺仪和加速度计,气压,磁力仪,麦克风和IrDA,这对于一个小型开发板来说是一大笔钱。 它还具有一个很小的128x64 OLED彩色屏幕! 最后,该板还可以进入AP模式,使您可以在几分钟内轻松将其联机。
I love these well-designed elegant little devices. It also shows up as an attached disk and it's easy to upgrade the firmware.
我喜欢这些精心设计的优雅小设备。 它还显示为连接的磁盘,并且很容易升级固件。
You can then dev against the real device with free VS Code if you like. You'll need:
然后,您可以根据需要使用免费的VS Code针对实际设备进行开发。 你需要:
- Node.js and Yarn: Runtime for the setup script and automated tasks. Node.js和Yarn:安装脚本和自动化任务的运行时。
-
Azure CLI 2.0 MSI - Cross-platform command-line experience for managing Azure resources. The MSI contains dependent Python and pip.
Azure CLI 2.0 MSI-用于管理Azure资源的跨平台命令行体验。 MSI包含相关的Python和pip。
-
Visual Studio Code (VS Code): Lightweight code editor for DevKit development.
Visual Studio代码(VS代码):用于DevKit开发的轻型代码编辑器。
-
Visual Studio Code extension for Arduino: Extension that enables Arduino development in Visual Studio Code.
Arduino的Visual Studio Code扩展:可以在Visual Studio Code中实现Arduino开发的扩展。
-
Arduino IDE: The extension for Arduino relies on this tool.
Arduino IDE : Arduino的扩展依赖于此工具。
- DevKit Board Package: Tool chains, libraries, and projects for the DevKit DevKit开发板软件包:DevKit的工具链,库和项目
- ST-Link Utility: Essential tools and drivers.ST-Link实用程序:基本工具和驱动程序。
But this Zip file sets it all up for you on Windows, and head over here for Homebrew/Mac instructions and more details.
但是,此Zip文件可在Windows上为您进行全部设置,并转至此处以获取Homebrew / Mac说明和更多详细信息。
I was very impressed with the Arduino extension for VS Code. No disrespect to the Arduino IDE but you'll likely outgrow it quickly. This free add on to VS Code gives you intellisense and integration Arduino Debugging.
VS Code的Arduino扩展给我留下了深刻的印象。 完全不尊重Arduino IDE,但您可能会很快将其淘汰。 VS Code的这个免费插件为您提供了智能感知和集成Arduino调试功能。
Once you have the basics done, you can graduate to the larger list of projects at https://microsoft.github.io/azure-iot-developer-kit/docs/projects/ that include lots of cool stuff to try out like a cloud based Translator, Door Monitor, and Air Traffic Control Simulator.
完成基础知识后,您可以在https://microsoft.github.io/azure-iot-developer-kit/docs/projects/上找到更大的项目列表,其中包括很多很酷的东西,例如基于云的翻译器,门监控器和空中交通管制模拟器。
All in all, I was super impressed with the polish of it all. There's a LOT to learn, to be clear, but this was a very enjoyable weekend of play.
总而言之,这一切给我留下了深刻的印象。 很明显,还有很多东西需要学习,但这是一个非常愉快的周末。
Sponsor: Get the latest JetBrains Rider for debugging third-party .NET code, Smart Step Into, more debugger improvements, C# Interactive, new project wizard, and formatting code in columns.
赞助商:获取最新的JetBrains Rider,用于调试第三方.NET代码,Smart Step Into,更多调试器改进,C#Interactive,新项目向导以及列中的格式代码。
关于斯科特 (About Scott)
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.
斯科特·汉塞尔曼(Scott Hanselman)是前教授,前金融首席架构师,现在是演讲者,顾问,父亲,糖尿病患者和Microsoft员工。 他是一位失败的单口相声漫画家,一个玉米种植者和一本书的作者。
翻译自: https://www.hanselman.com/blog/exploring-the-azure-iot-arduino-cloud-devkit
azure iot