- お役立ち記事
- A minimal configuration for collecting operational data from old equipment using Node-RED and Raspberry Pi
A minimal configuration for collecting operational data from old equipment using Node-RED and Raspberry Pi

目次
Introduction to Collecting Operational Data
In today’s fast-paced technological climate, having real-time access to operational data is crucial for businesses.
However, many organizations still rely on older equipment that lacks modern data collection capabilities.
This can pose a significant challenge when attempting to streamline operations and remain competitive.
Fortunately, Node-RED and Raspberry Pi offer a cost-effective solution for collecting data from outdated machinery, providing an opportunity to harness valuable insights without a complete infrastructure overhaul.
Why Use Node-RED and Raspberry Pi?
Node-RED is an open-source flow-based development tool designed for wiring together hardware devices, APIs, and online services.
Its intuitive interface makes it accessible to both experienced developers and novices alike.
Raspberry Pi, a low-cost, credit-card-sized computer, provides the perfect platform to integrate Node-RED with older equipment.
Together, they create a powerful yet economical data collection and integration system.
Ease of Use
One of the key benefits of using Node-RED and Raspberry Pi is their ease of use.
Node-RED’s visual editor allows you to create data flows by simply dragging and dropping nodes onto a canvas.
This means you don’t need to have in-depth programming skills to start collecting data.
Moreover, Raspberry Pi supports various input/output channels, making it versatile for connecting with diverse types of equipment.
Cost-Effectiveness
For businesses operating on a tight budget, Node-RED and Raspberry Pi offer a financially viable solution.
Unlike purchasing expensive new equipment, this approach leverages affordable hardware to achieve the same result.
The cost of a Raspberry Pi is significantly lower than many modern alternatives, and the software is free, minimizing both initial investment and operational costs.
Setting Up Your Minimal Configuration
To begin collecting operational data from older equipment with Node-RED and Raspberry Pi, here’s a basic setup guide.
Gather Your Materials
First, ensure you have the necessary materials: a Raspberry Pi (preferably the latest model for enhanced performance), a power supply, an SD card with sufficient storage, a network cable or Wi-Fi module, and compatible connectors for your specific equipment.
Install Operating System and Software
Start by installing an operating system on your Raspberry Pi.
Raspberry Pi OS (formerly Raspbian) is recommended as it’s optimized for the device.
Write the operating system image onto your SD card using a tool like Balena Etcher.
Once Raspberry Pi OS is installed, make sure to update it by running:
“`
sudo apt-get update
sudo apt-get upgrade
“`
Next, install Node.js, a prerequisite for Node-RED:
“`
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash –
sudo apt-get install -y nodejs
“`
Finally, install Node-RED with:
“`
sudo npm install -g –unsafe-perm node-red
“`
Configure Data Collection Flows
Launch Node-RED on your Raspberry Pi with the command:
“`
node-red-start
“`
This command will open Node-RED’s web-based interface.
Access it by typing `http://
In the Node-RED editor, create a flow to collect data from your old equipment.
Drag input and output nodes onto the canvas, and connect them to represent your data’s path.
For instance, if your equipment outputs data via a serial connection, use the serial input node to capture this data.
Configure your nodes by double-clicking them and setting parameters like port number and data rates to match your equipment’s specifications.
Once your flow is configured, deploy it to start collecting data.
Processing and Analyzing Data
With data now streaming from your equipment, the next step is to process and analyze it.
Node-RED provides several nodes for data manipulation and visualization.
Data Filtering and Manipulation
Use Node-RED’s function nodes to filter, transform, or calculate data as needed.
For instance, if you’re monitoring temperature from a machine, you might want to filter out outliers or convert units from Celsius to Fahrenheit.
Programming JavaScript within these nodes allows for flexible data manipulation.
Data Storage and Integration
To retain collected data for long-term analysis, use Node-RED’s storage nodes to save information to databases like MySQL or cloud services like AWS.
This makes it possible to integrate your data with existing business intelligence tools for deeper insights.
Visualizing Data
Visualize operational data using Node-RED’s dashboard nodes.
These enable the creation of custom dashboards displaying graphs, gauges, or charts, offering a real-time view of your equipment’s performance.
A visual representation makes it easier for decision-makers to interpret data and respond promptly to any anomalies.
Advantages of Upgrading Old Equipment with Node-RED and Raspberry Pi
By bringing older machinery into the digital age, businesses can benefit from several advantages.
Improved Efficiency and Productivity
Access to real-time data allows for better scheduling, predictive maintenance, and resource allocation.
This leads to improved operational efficiency and a reduction in downtime, ultimately enhancing productivity.
Data-Driven Decision Making
Having a wealth of data at your fingertips empowers organizations to make informed decisions.
Data patterns and trends can reveal insights that guide strategic planning and operational improvements.
Scalability and Flexibility
The system you create with Node-RED and Raspberry Pi is highly scalable.
As your business grows or your technology needs evolve, you can easily expand your data collection network by adding more Raspberry Pis or configuring new data flows in Node-RED.
Conclusion
Integrating Node-RED and Raspberry Pi with older equipment is a smart way to revitalize your infrastructure and keep pace with technological advancements.
With their cost-effectiveness, simplicity, and versatility, these tools provide an ideal solution for businesses seeking to harness the power of operational data without extensive resources.
Embark on this transformation today, and unlock data-driven insights to propel your organization towards success.
資料ダウンロード
QCD管理受発注クラウド「newji」は、受発注部門で必要なQCD管理全てを備えた、現場特化型兼クラウド型の今世紀最高の受発注管理システムとなります。
NEWJI DX
製造業に特化したデジタルトランスフォーメーション(DX)の実現を目指す請負開発型のコンサルティングサービスです。AI、iPaaS、および先端の技術を駆使して、製造プロセスの効率化、業務効率化、チームワーク強化、コスト削減、品質向上を実現します。このサービスは、製造業の課題を深く理解し、それに対する最適なデジタルソリューションを提供することで、企業が持続的な成長とイノベーションを達成できるようサポートします。
製造業ニュース解説
製造業、主に購買・調達部門にお勤めの方々に向けた情報を配信しております。
新任の方やベテランの方、管理職を対象とした幅広いコンテンツをご用意しております。
お問い合わせ
コストダウンが利益に直結する術だと理解していても、なかなか前に進めることができない状況。そんな時は、newjiのコストダウン自動化機能で大きく利益貢献しよう!
(β版非公開)