未加星标

4 versatile boards for fast, inexpensive IoT development

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二04 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

Want to develop wearable or very compact applications, networked applications, Internet of Things (IoT) devices, and prototype your brainstorms quickly and inexpensively? Then this roundup of versatile open source hardware boards is for you. All you need is a few pieces of hardware, basic soldering skills, and some javascript know-how.

With the commoditization of chips for connecting to networks, more and more devices can now be controlled via the Internet to do everything from remote temperature sensing to turning off lights in your home while you’re halfway around the world. In years past, however, if you were a JavaScript developer and wanted prototype network-connected devices, you either needed to learn how to develop firmware using a vendor’s custom tool chain, master C or C++ to write Arduino sketches, or partner with a hardware engineer.

Thankfully, with the proliferation of IoT platforms, a vibrant community has emerged and tools have been developed with which anyone can create prototypes using only a few pieces of hardware, some basic soldering skills, and JavaScript code.

Let's take a look at four excellent popular platforms: MbientLab MetaWear, ESP8266, Arduino, and Raspberry Pi.

MbientLab MetaWear

MetaWear is one of the best choices on the market for developing a wearable or compact application that requires a very small power draw. These boards are not much larger than a stack of quarters, support Bluetooth Low Energy (LE) for communication, and are equipped with a number of different sensors, including an accelerometer, galvanic skin response, gyroscope, ambient temperature sensor, and GPIO pins for attaching additional devices. For JavaScript developers there are two mechanisms for prototyping with this board. The first is an open source Apache Cordova plugin that supports both iOS and Android, whereas the second, a Node.js plugin, is still a bit more rudimentary. Both of these solutions allow you to interact with the device over Bluetooth, but no JavaScript is directly executed on the device. Prices start at $45.

ESP8266

For applications with connectivity needs that extend beyond Bluetooth LE, the ESP8266 is a great option. These boards are slightly bigger than MetaWear, and have a more open design with several output pins and built-in Wi-Fi. Their most compelling selling point is support for Espruino, a JavaScript framework for microcontrollers that runs JavaScript directly on the board. Arduino firmware has been ported to the board, which means that you can use it as a standalone Arduino unit. Boards cost as little as $3 for a basic module, and $6 for a developer's kit.

Arduino

Arduino was one of the first user-accessible open source platforms for working with Internet of Things (IoT) applications. Although the most efficient code written for Arduino is C++-based, you can flash sketches on devices that support the Firmata protocol, which specifies how a host computer communicates with a microcontroller. Once Firmata is installed there are a number of frameworks in languages like JavaScript, python, and Ruby that interact with the board from an USB-attached computer. While there are wireless Firmata options available, support is better and more reliable via hardwired connections to the host computer. The most popular platform for JavaScript support is Johnny-Five, a framework that allows you to leverage all of the power of Node.js for controlling different sensors or lights. Arduino boards can be purchased for as little as $4.

Raspberry Pi

It is important to note that the MetaWear, ESP8266, and Arduino are microcontrollers: low-powered computers that are designed to run one program at a time. They have the advantage of consuming less power and are often less expensive than a full computer. Most have less than 4MB flash memory and equally small amounts of RAM, which means that they cannot run the large operating systems that we're accustomed to. But, what if you need to create a device that can do multiple things at once?

This is where theRaspberry Pi comes in. Itis a small computer that supports linux and windows 10. Depending on the model, it has 256, 512, or 1024MB of RAM, and supports most microSD cards. If you have a project that requires interaction with digital sensors you can use Node.js along with custom drivers to control them directly from the Pi. If you have an analog sensor (see Analog vs. Digital ), it can be combined with Arduino and Johnny-Five. Raspberry Pi units start at $5 and typically average about $15 if you include an SD card and Wi-Fi adapter, which makes them a very inexpensive segue into IoT development.

Lance Gleason will be speaking about this topicatAll Things Openin Raleigh onOctober 26.

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

分页:12
转载请注明
本文标题:4 versatile boards for fast, inexpensive IoT development
本站链接:http://www.codesec.net/view/480699.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(27)