OptoBlog

OptoNews: Industrial I/O for Raspberry Pi - new code examples

Posted by Jean Femia on Mar 1, 2017 4:01:52 PM

Are you using G4 or SNAP digital I/O with your Raspberry Pi®?

A lot of engineers are finding a Pi surprisingly useful in real industrial applications, as well as for prototyping and experimenting. Used with Opto 22's reliable industrial I/O, your Pi can safely switch 5-60 VDC, 120 VAC, and 240 VAC loads. 

Read More

Topics: optonews, I/O, GPIO, G4 I/O, OptoNews 2017-03-01, Raspberry Pi, Digital I/O for Raspberry Pi

OptoNews Tip: Using Node-RED with Raspberry Pi

Posted by Jean Femia on Dec 14, 2016 3:56:38 PM

It's true: you can use your Raspberry Pi to monitor and control real-world industrial devices.

Reliable Opto 22 G4 digital I/O and SNAP digital I/O now work with your Pi. 

One of the simplest ways to program your Pi may be Node-RED, designed by IBM Emerging Technologies.

Read More

Topics: Discrete control, optonews, I/O, Node-RED, G4 I/O, OptoNews 2016-12-14, Raspberry Pi, Digital I/O for Raspberry Pi

How to Build a Raspberry Pi with Node-RED and Industrial GPIO

Posted by Benson Hougland on Dec 14, 2016 3:39:17 PM

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 new Digital I/O for Raspberry Pi Starter Kit for I/O hardware (new code, photos, and video).

The Raspberry Pi® is an unquestionably powerful computer for just $35. And it really is just that: a computer. That means the Pi is capable of many tasks and perfect for many automation applications.

Couple the Pi to industrial, solid-state digital inputs and outputs, 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 with Node-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 the Raspbian Jessie Operating System, available from raspberrypi.org. Their latest 2017-07-05-raspbian-jessie-lite.img build for headless operation (no monitor, keyboard, or mouse required) is no longer bundled with either Node-RED or the required software tools node.js and npm.

The purpose of this post is to guide you through creating a headless Raspberry Pi computer with the latest versions of Node-RED, node.js, and npm, building a Node-RED application, and controlling and sensing GPIO connected to industrial digital I/O, quickly and simply. (For a sneak peek at the result of this build, see the video near the end of this post.)

Image: New Opto 22 Digital I/O for Raspberry Pi Starter Kit with Raspberry Pi 3 Computer

Read More

Topics: Node-RED, GPIO, G4 I/O, Raspberry Pi, Digital I/O for Raspberry Pi

    Subscribe to Email Updates

    Recent Posts

    Posts by Topic

    see all