UPDATE: This post has been updated to reflect changes in the most recent Raspbian Jessie Lite image (no longer includes Node-RED or node.js) and to use the newDigital I/O for Raspberry Pi Starter Kit对于I/O硬件(新代码,照片和视频)。
TheRaspberry Pi®is an unquestionably powerful computer for just $35. And it really is just that:一台电脑。这意味着PI能够完成许多任务,并且非常适合许多自动化应用程序。
将PI与工业,固态数字投入和输出相结合, and you can build compelling and cost-effective solutions for commercial and industrial applications, too.
One of the easiest and fun ways to quickly build software applications is withNode-RED, the free, open-source software tool designed by IBM Emerging Technologies and used for wiring together hardware devices, APIs, and online services in new and interesting ways.
However, Node-RED is only included in the full PIXEL GUI version of theRaspbian Jessie Operating System, available from raspberrypi.org。Their latest2017-07-05-Raspbian-Jessie-lite.imgbuild for无头操作(no monitor, keyboard, or mouse required) is no longer bundled with either Node-RED or the required software tools node.js and npm.
这篇文章的目的是指导您创建一台无头的Raspberry Pi计算机,该计算机具有最新版本的Node-red,Node.js和NPM,构建节点红色的应用程序,并控制和感知与工业数字I/ I/ I/ I/ I/ I/ I/ I/ I/ I/ I/ I/ I/ I/ Meaction Indial Ighigits I/ I/ Meaction Indigital I/ I/ I/ Meensing GPIOo,迅速而简单。(有关此版本的结果,请参阅该帖子末尾的视频。)
Image: New Opto 22 Digital I/O for Raspberry Pi Starter Kit with Raspberry Pi 3 Computer