{"id":50710,"date":"2020-08-20T00:00:00","date_gmt":"2020-08-20T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/"},"modified":"2025-11-14T07:54:10","modified_gmt":"2025-11-14T15:54:10","slug":"iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc","status":"publish","type":"post","link":"https:\/\/www.griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/","title":{"rendered":"Raspberry Pi\u4e0a\u306eGridDB\u3001Node-Red\u3001Arduino PLC\u3092\u4f7f\u7528\u3057\u305fIIoT\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d39\u4ecb"},"content":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001Modbus\u7d4c\u7531\u3067Industrial Shields M-DUINO 21+ Arduino PLC\u304b\u3089\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308bNode-RED\u30d5\u30ed\u30fc\u3092\u4f5c\u6210\u3057\u3001Raspberry Pi 4\u4e0a\u306eGridDB\u3067Industrial Internet of Things (IIoT)\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u4f4e\u30b3\u30b9\u30c8\u3067\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div style=\"text-align: center;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/v_iLDfq_C6g\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<h2>\u76ee\u6b21<\/h2>\n<ol>\n<li><a href=\"#raspsetup\">Raspberry Pi \u306e\u8a2d\u5b9a<\/a>\n<ul>\n<li>Raspberry Pi OS<\/li>\n<li>GridDB on Raspberry Pi<\/li>\n<li>NodeJS, GridDB Node client<\/li>\n<li>Install Node Red<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#hwsetup\">PLC \u306e\u8a2d\u5b9a<\/a>\n<ul>\n<li>Hardware Setup<\/li>\n<li>Arduino Setup<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#flows\">Node-Red\u30d5\u30ed\u30fc\u306e\u4f5c\u6210<\/a><\/li>\n<\/ol>\n<h2><a name=\"raspsetup\"><\/a>Raspberry Pi \u306e\u8a2d\u5b9a<\/h2>\n<p>\u6700\u521d\u306b\u3001Raspberry PI\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3059\u3002\u6b21\u306bUbuntu\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3055\u3089\u306bNode-RED\u3068\u30ce\u30fc\u30c9\u306b\u52a0\u3048\u3066GridDB\u30b5\u30fc\u30d0\u3001Node.js\u3001GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30d3\u30eb\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h3>Raspberry Pi OS<\/h3>\n<p>GridDB\u306f64\u30d3\u30c3\u30c8OS\u3067\u52d5\u4f5c\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001Pi Imager\u3092\u4f7f\u3063\u306664\u30d3\u30c3\u30c8\u306eUbuntu 18.04\u30b5\u30fc\u30d0\u30a4\u30e1\u30fc\u30b8\u3092\u30de\u30a4\u30af\u30edSD\u30ab\u30fc\u30c9\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-large wp-image-26699\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/pi_imager.png\" alt=\"\" width=\"694\" height=\"472\" srcset=\"\/wp-content\/uploads\/2020\/07\/pi_imager.png 694w, \/wp-content\/uploads\/2020\/07\/pi_imager-300x204.png 300w, \/wp-content\/uploads\/2020\/07\/pi_imager-600x408.png 600w\" sizes=\"(max-width: 694px) 100vw, 694px\" \/><\/p>\n<h3>Raspberry Pi\u4e0a\u3067\u306eGridDB<\/h3>\n<p>\u3053\u308c\u3067Raspberry Pi\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002ARM64\u30d9\u30fc\u30b9\u306eRaspberry Pi\u4e0a\u3067GridDB\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u306e<a href=\"https:\/\/griddb.net\/ja\/blog\/griddb-on-arm-time-series-database-for-your-raspberry-pi\">\u3053\u3061\u3089\u306e\u30d6\u30ed\u30b0<\/a>\u3092\u53c2\u7167\u3057\u3066\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><!--\nPi\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3089\u3001<a href=\"https:\/\/github.com\/griddbnet\/griddb_arm\">GridDB ARM<\/a>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3057\u3001GCC 4.8\u3067\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\u3053\u306e\u624b\u9806\u306e\u8a73\u7d30\u306f\u3001ARM64 \u30d9\u30fc\u30b9\u306e Raspberry Pi \u3067 GridDB \u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e <a href=\"https:\/\/griddb.net\/en\/blog\/griddb-on-arm-time-series-database-for-your-raspberry-pi\">\u30d6\u30ed\u30b0\u8a18\u4e8b<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n\n<pre>\n# git clone https:\/\/github.com\/griddbnet\/griddb_arm.git\n# cd griddb_arm\n# .\/bootstrap.sh\n# CC=gcc-4.8 CXX=g++-4.8 .\/configure\n# make\n<\/pre>\n\n\n\u30d3\u30eb\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u3089GridDB\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\n\n\n<pre>\nexport GS_HOME=\/home\/ubuntu\/griddb\/\nexport GS_LOG=$GS_HOME\/log\nexport PATH=$PATH:$GS_HOME\/bin\nexport CLASSPATH=$CLASSPATH:$GS_HOME\/bin\/gridstore.jar\n\ngs_startnode\nsleep 5\ngs_stat -u admin\/admin\ngs_joincluster -u admin\/admin -n 1\n<\/pre>\n\n\n--><\/p>\n<h3>NodeJS, NodeJS GridDB \u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/h3>\n<p>Node-RED\u306bNode.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306aNode.js\u3068\u305d\u306e\u958b\u767a\u7528\u30d8\u30c3\u30c0\u3001Node.js\u7528\u306e\u30ce\u30fc\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u62bd\u8c61\u5316\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre># sudo apt-get install nodejs nodejs-dev node-nan\n<\/pre>\n<p>\u6b21\u306b\u3001GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001PCRE\u3001SWIG\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<pre>$ export LD_LIBRARY_PATH=\/usr\/local\/lib\n$ wget https:\/\/sourceforge.net\/projects\/pcre\/files\/pcre\/8.39\/pcre-8.39.tar.gz\n$ tar xvfz pcre-8.39.tar.gz\n$ cd pcre-8.39\n$ .\/configure\n$ make\n$ make install\n\n$ wget https:\/\/prdownloads.sourceforge.net\/swig\/swig-3.0.12.tar.gz\n$ tar xvfz swig-3.0.12.tar.gz\n$ cd swig-3.0.12\n$ .\/configure\n$ make\n$ make install\n<\/pre>\n<p>\u3053\u308c\u3067\u5fc5\u8981\u306a\u524d\u63d0\u6761\u4ef6\u304c\u69cb\u7bc9\u3055\u308c\u305f\u306e\u3067\u3001\u6b21\u306bGridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092GitHub\u304b\u3089\u30af\u30ed\u30fc\u30f3\u3057\u3066\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<pre>$ git clone https:\/\/github.com\/griddb\/nodejs_client.git\n$ cd nodejs_client &amp;&amp; make\n<\/pre>\n<h3>Node-RED\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u3053\u308c\u304b\u3089\u4f7f\u7528\u3059\u308bNode-RED\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre># npm install node-red\n# mkdir ~\/.node-red\n# cd ~\/.node-red \n# npm install node-red-contrib-modbus@3.6.1 node-red-dashboard\n<\/pre>\n<p>GridDB Node-RED\u306f npm \u304b\u3089\u306f\u307e\u3060\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre># cd ~\n# git clone https:\/\/github.com\/griddbnet\/node-red-contrib-griddb.git\n# cd ~\/.node-red\n# npm install ~\/node-red-contrib-griddb \n<\/pre>\n<p>\u6b21\u306b\u3001GridDB\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092NODE_PATH\u306b\u8ffd\u52a0\u3057\u3001Node-RED\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre># export NODE_PATH=:\/home\/ubuntu\/nodejs_client\n# ~\/node_modules\/node-red\/bin\/node-red-pi\n<\/pre>\n<p>\u3053\u308c\u3067\u3001Node-RED\u306eWeb\u30da\u30fc\u30b8\uff08http:\/\/your_pi_ip:1880\/\uff09\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u6b21\u306bModbus\u30b5\u30fc\u30d0\u3092\u8ffd\u52a0\u3057\u3066\u3001mduino\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u6b63\u5e38\u306b\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-large wp-image-26706\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/modbus_server.png\" alt=\"\" width=\"800\" height=\"800\" srcset=\"\/wp-content\/uploads\/2020\/07\/modbus_server.png 800w, \/wp-content\/uploads\/2020\/07\/modbus_server-150x150.png 150w, \/wp-content\/uploads\/2020\/07\/modbus_server-300x300.png 300w, \/wp-content\/uploads\/2020\/07\/modbus_server-768x768.png 768w, \/wp-content\/uploads\/2020\/07\/modbus_server-230x230.png 230w, \/wp-content\/uploads\/2020\/07\/modbus_server-400x400.png 400w, \/wp-content\/uploads\/2020\/07\/modbus_server-600x600.png 600w, \/wp-content\/uploads\/2020\/07\/modbus_server-640x640.png 640w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<h2><a name=\"hwsetup\"><\/a>PLC \u306e\u8a2d\u5b9a<\/h2>\n<h3>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u8a2d\u5b9a<\/h3>\n<p>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u8a2d\u5b9a\u306e\u305f\u3081\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3092DIN\u30ec\u30fc\u30eb\u306b\u30de\u30a6\u30f3\u30c8\u3057\u3001\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc\u3092\u914d\u7dda\u3057\u3001Arduino IDE\u3092\u8a2d\u5b9a\u3057\u3001Arduino\u30b9\u30b1\u30c3\u30c1\u3092PLC\u306b\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<p>\u7b46\u8005\u306f\u3001Raspberry Pi4\u3092<a href=\"https:\/\/dinrplate.com\/\">DINRplate<\/a>\u306b\u30de\u30a6\u30f3\u30c8\u3057\u3001DIN\u30ec\u30fc\u30eb\u4e0a\u306b\u304d\u308c\u3044\u306b\u5b9f\u88c5\u3059\u308b\u305f\u3081\u3001<a href=\"https:\/\/www.amazon.com\/Electronics-Salon-Position-Terminal-Distribution-Module\/dp\/B07R647PSW\/ref=sr_1_1?dchild=1&amp;keywords=Electronics-Salon+Slim+DIN+Rail+Mount+16A%2F300V+4x3+Position+Screw+Terminal+Block+Distribution+Module.&amp;qid=1593616215&amp;sr=8-1\">Amazon<\/a>\u3067\u8cfc\u5165\u3057\u305f\u4e00\u822c\u7684\u306a\u30bf\u30fc\u30df\u30ca\u30eb\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002DIN\u30ec\u30fc\u30eb\u306b\u3059\u3079\u3066\u306e\u3082\u306e\u3092\u53d6\u308a\u4ed8\u3051\u308c\u3070\u3001\u3059\u3063\u304d\u308a\u3068\u6574\u7406\u6574\u9813\u3055\u308c\u305f\u72b6\u614b\u3092\u4fdd\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-26793\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-09-at-7.33.01-AM.png\" alt=\"\" width=\"617\" height=\"287\" srcset=\"\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-09-at-7.33.01-AM.png 617w, \/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-09-at-7.33.01-AM-300x140.png 300w, \/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-09-at-7.33.01-AM-600x279.png 600w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/p>\n<p>\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc\u306e\u30a2\u30fc\u30b9\u7dda\u306fM-DUINO\u306e\u30a2\u30fc\u30b9\u7aef\u5b50\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u307e\u3059\u30025 \u30dc\u30eb\u30c8\u306e\u30ef\u30a4\u30e4\u30fc\u3082 M-DUINO \u306e +5 VDC \u30d4\u30f3\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30bb\u30f3\u30b5\u30fc\u30ef\u30a4\u30e4\u30fc\u306f Pin2 \u306b\u63a5\u7d9a\u3055\u308c\u30014.7k \u30aa\u30fc\u30e0\u306e\u62b5\u6297\u304c +5 VDC \u30d0\u30b9\u3068\u30bb\u30f3\u30b5\u30fc\u30d0\u30b9\u306e\u9593\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5341\u5206\u306a\u5927\u304d\u3055\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30d6\u30ed\u30c3\u30af\u304c\u3042\u308c\u3070\u3001\u8907\u6570\u306e DS18B20 \u30bb\u30f3\u30b5\u30fc\u3092\u540c\u3058 M-DUINO \u306e\u30d4\u30f3\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u30a2\u30ca\u30ed\u30b0\u30bb\u30f3\u30b5\u30fc\u3068\u6bd4\u8f03\u3057\u305f\u5834\u5408\u306b DS18B20 \u3092\u4f7f\u7528\u3059\u308b\u5229\u70b9\u306e\u4e00\u3064\u3067\u3059\u3002<\/p>\n<h3>Arduino\u306e\u8a2d\u5b9a<\/h3>\n<p><a href=\"https:\/\/www.arduino.cc\/en\/main\/software\">Arduino IDE<\/a>\u3092\u304a\u4f7f\u3044\u306eOS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8d77\u52d5\u3057\u305f\u5f8c\uff08Raspberry Pi\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u304c\u3001\u7b46\u8005\u306f\u958b\u767a\u7528\u306e\u30ef\u30fc\u30af\u30b9\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u76f4\u63a5\u63a5\u7d9a\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\uff09\u3001Arduino IDE\u306bArduino Modbus\u3068DallasTemperatrure\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26700\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/ide_libs2.png\" alt=\"\" width=\"930\" height=\"525\" srcset=\"\/wp-content\/uploads\/2020\/07\/ide_libs2.png 930w, \/wp-content\/uploads\/2020\/07\/ide_libs2-300x169.png 300w, \/wp-content\/uploads\/2020\/07\/ide_libs2-768x434.png 768w, \/wp-content\/uploads\/2020\/07\/ide_libs2-150x85.png 150w, \/wp-content\/uploads\/2020\/07\/ide_libs2-600x339.png 600w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26701\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/ide_libs.png\" alt=\"\" width=\"930\" height=\"525\" srcset=\"\/wp-content\/uploads\/2020\/07\/ide_libs.png 930w, \/wp-content\/uploads\/2020\/07\/ide_libs-300x169.png 300w, \/wp-content\/uploads\/2020\/07\/ide_libs-768x434.png 768w, \/wp-content\/uploads\/2020\/07\/ide_libs-150x85.png 150w, \/wp-content\/uploads\/2020\/07\/ide_libs-600x339.png 600w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/p>\n<p>Arduino \u306e\u8a2d\u5b9a\u306b\u306f\u3001\u5fc5\u8981\u306a\u30d8\u30c3\u30c0\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001M-Duino \u306e MAC\u30a2\u30c9\u30ec\u30b9 \u3068 IP \u30a2\u30c9\u30ec\u30b9\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002DS18B20\u304b\u3089\u306e\u4fe1\u53f7\u3092\u53d7\u4fe1\u3059\u308b\u305f\u3081\u306bPIN2\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001OneWire\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u9069\u5207\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306bRaspberry Pi\u4e0a\u3067\u52d5\u4f5c\u3059\u308bModBus\u30b5\u30fc\u30d0\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u8d77\u52d5\u624b\u9806\u306f\u7c21\u5358\u3067\u3001\u30a4\u30fc\u30b5\u30cd\u30c3\u30c8\u3068\u30b7\u30ea\u30a2\u30eb\u3092\u8d77\u52d5\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre>#include &lt;SPI.h&gt;\n#include &lt;Ethernet.h&gt;\n#include &lt;ArduinoRS485.h&gt;\n#include &lt;ArduinoModbus.h&gt;\n#include &lt;OneWire.h&gt;\n#include &lt;DallasTemperature.h&gt;\n\nbyte mac[] = { 0xBE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };\nbyte ip[] = { 192, 168, 1, 100 };\n\n#define ONE_WIRE_BUS 2\nOneWire oneWire(ONE_WIRE_BUS);\nDallasTemperature sensors(&amp;oneWire);\n\nEthernetClient etherClient;\nModbusTCPClient modbusTCPClient(etherClient);\n\nIPAddress server(192, 168, 1, 80); \/\/ Modbus server\nvoid setup() {\n\n  Ethernet.begin(mac, ip);\n  Serial.begin(9600);\n\n}\n<\/pre>\n<p>Arduino\u306e\u30eb\u30fc\u30d7\u6a5f\u80fd\u306f\u6bce\u79d2\u5b9f\u884c\u3055\u308c\u3001Modbus\u30b5\u30fc\u30d0\u63a5\u7d9a\u3092\u78ba\u4fdd\u3057\u3001\u6e29\u5ea6\u60c5\u5831\u3092\u53ce\u96c6\u3057\u307e\u3059\u3002\u540c\u30eb\u30fc\u30d7\u5185\u3067\u3001\u6e29\u5ea6\u60c5\u5831\u3092100\u500d\u306b\u3057\u3066\u7cbe\u5ea6\u306e\u7dad\u6301\u306816\u30d3\u30c3\u30c8\u6574\u6570\u578b\u306eModbus\u30ec\u30b8\u30b9\u30bf\u306b\u53ce\u307e\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u6700\u5f8c\u306b16\u30d3\u30c3\u30c8\u6574\u6570\u578b\u306e\u30c7\u30fc\u30bf\u3068\u3057\u3066\u6e29\u5ea6\u60c5\u5831\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<pre>void loop() {\n  \n  if (!modbusTCPClient.connected()) {\n    Serial.println(\"Attempting to connect to Modbus TCP server\");\n\n    if (!modbusTCPClient.begin(server, 10502)) {\n      Serial.println(\"Modbus TCP Client failed to connect!\");\n    } else {\n      Serial.println(\"Modbus TCP Client connected\");\n    }\n  } else {\n    \n    sensors.requestTemperatures();\n    float temp = sensors.getTempCByIndex(0);\n    Serial.print(\"Temperature is: \");\n    \/\/ convert the temperature to int and multiply by 100 to not loose precision\n    unsigned int tempbin = (int)(temp*100); \n    Serial.println(tempbin);\n    \n    if (!modbusTCPClient.holdingRegisterWrite(0, 0x00, tempbin)) {\n      Serial.print(\"Failed to write register! \");\n      Serial.println(modbusTCPClient.lastError());\n    }\n\n    delay(1000);\n  }\n}\n<\/pre>\n<p>\u3053\u308c\u3067Arduino\u306e\u30b3\u30fc\u30c9\u304c\u5b8c\u6210\u3057\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3001\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26714\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/ide_serial-1-1024x607.png\" alt=\"\" width=\"1024\" height=\"607\" srcset=\"\/wp-content\/uploads\/2020\/07\/ide_serial-1-1024x607.png 1024w, \/wp-content\/uploads\/2020\/07\/ide_serial-1-300x178.png 300w, \/wp-content\/uploads\/2020\/07\/ide_serial-1-768x455.png 768w, \/wp-content\/uploads\/2020\/07\/ide_serial-1-600x356.png 600w, \/wp-content\/uploads\/2020\/07\/ide_serial-1.png 1760w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h2><a name=\"flows\"><\/a> Node-RED \u30d5\u30ed\u30fc\u306e\u4f5c\u6210<\/h2>\n<p>\u65e2\u306b\u30d5\u30ed\u30fc\u306bModbus Server\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u3055\u3089\u306b2\u3064\u306e\u63a5\u7d9a\u30ce\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6700\u521d\u306e\u30bb\u30c3\u30c8\u306fModbus\u304b\u3089\u8aad\u307f\u8fbc\u307f\u3001\u30c7\u30fc\u30bf\u3092GridDB-PUT\u30ce\u30fc\u30c9\u304c\u6c42\u3081\u308b\u69cb\u9020\u306b\u5909\u63db\u3057\u3001GridDB\u306b\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26703\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/connected_nodes.png\" alt=\"\" width=\"700\" height=\"291\" srcset=\"\/wp-content\/uploads\/2020\/07\/connected_nodes.png 700w, \/wp-content\/uploads\/2020\/07\/connected_nodes-300x125.png 300w, \/wp-content\/uploads\/2020\/07\/connected_nodes-600x249.png 600w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>\u307e\u305a\u3001Modbus \u30ea\u30fc\u30c9\u30ce\u30fc\u30c9\u304c Modbus \u30b5\u30fc\u30d0\u306b\u63a5\u7d9a\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26707\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/modbus_read.png\" alt=\"\" width=\"499\" height=\"800\" srcset=\"\/wp-content\/uploads\/2020\/07\/modbus_read.png 499w, \/wp-content\/uploads\/2020\/07\/modbus_read-187x300.png 187w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u6e29\u5ea6\u5024\u3092\u66f8\u304d\u8fbc\u3093\u3067\u3044\u308b\u30ec\u30b8\u30b9\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26708\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/modbus_read2.png\" alt=\"\" width=\"601\" height=\"601\" srcset=\"\/wp-content\/uploads\/2020\/07\/modbus_read2.png 601w, \/wp-content\/uploads\/2020\/07\/modbus_read2-150x150.png 150w, \/wp-content\/uploads\/2020\/07\/modbus_read2-300x300.png 300w, \/wp-content\/uploads\/2020\/07\/modbus_read2-230x230.png 230w, \/wp-content\/uploads\/2020\/07\/modbus_read2-400x400.png 400w, \/wp-content\/uploads\/2020\/07\/modbus_read2-600x600.png 600w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/p>\n<p>GridDB-Put\u30ce\u30fc\u30c9\u3078\u306e\u5165\u529b\u306b\u9069\u3057\u305f\u30c7\u30fc\u30bf\u306b\u306a\u308b\u3088\u3046\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u6e29\u5ea6\u306f\u7cbe\u5ea6\u3092\u843d\u3068\u3055\u306a\u3044\u3088\u3046\u306b100\u3092\u639b\u3051\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f100\u3067\u5272\u308aModbus\u30ec\u30b8\u30b9\u30bf\u306b\u53ce\u307e\u308b\u3088\u3046\u306b\u6574\u6570\u306b\u5909\u63db\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26721\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/put-transform.png\" alt=\"\" width=\"420\" height=\"313\" srcset=\"\/wp-content\/uploads\/2020\/07\/put-transform.png 420w, \/wp-content\/uploads\/2020\/07\/put-transform-300x224.png 300w\" sizes=\"(max-width: 420px) 100vw, 420px\" \/><\/p>\n<p>GridDB Put Node \u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u30b9\u30ad\u30fc\u30de\u3092\u66f8\u304d\u8fbc\u3080\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26709\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/griddb_put.png\" alt=\"\" width=\"499\" height=\"499\" srcset=\"\/wp-content\/uploads\/2020\/07\/griddb_put.png 499w, \/wp-content\/uploads\/2020\/07\/griddb_put-150x150.png 150w, \/wp-content\/uploads\/2020\/07\/griddb_put-300x300.png 300w, \/wp-content\/uploads\/2020\/07\/griddb_put-230x230.png 230w, \/wp-content\/uploads\/2020\/07\/griddb_put-400x400.png 400w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>\u63a5\u7d9a\u3055\u308c\u305f\u30ce\u30fc\u30c9\u306e\u7b2c2\u30bb\u30c3\u30c8\u306f\u3001GridDB\u304b\u3089\u8aad\u307f\u8fbc\u307f\u3001Dashboard Nodes\u3092\u4f7f\u7528\u3057\u3066\u5024\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26702\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/connected_nodes1.png\" alt=\"\" width=\"774\" height=\"333\" srcset=\"\/wp-content\/uploads\/2020\/07\/connected_nodes1.png 774w, \/wp-content\/uploads\/2020\/07\/connected_nodes1-300x129.png 300w, \/wp-content\/uploads\/2020\/07\/connected_nodes1-768x330.png 768w, \/wp-content\/uploads\/2020\/07\/connected_nodes1-600x258.png 600w\" sizes=\"(max-width: 774px) 100vw, 774px\" \/><\/p>\n<p>\u4e0a\u8a18\u306e\u66f8\u304d\u8fbc\u307f\u5148\u306eGridDB\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u6700\u65b0\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26704\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/griddb_query.png\" alt=\"\" width=\"500\" height=\"500\" srcset=\"\/wp-content\/uploads\/2020\/07\/griddb_query.png 500w, \/wp-content\/uploads\/2020\/07\/griddb_query-150x150.png 150w, \/wp-content\/uploads\/2020\/07\/griddb_query-300x300.png 300w, \/wp-content\/uploads\/2020\/07\/griddb_query-230x230.png 230w, \/wp-content\/uploads\/2020\/07\/griddb_query-400x400.png 400w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u30af\u30a8\u30ea\u30ce\u30fc\u30c9\u304c\u51fa\u529b\u3059\u308b\u30c7\u30fc\u30bf\u306f\u3001\u30b2\u30fc\u30b8\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b2\u30fc\u30b8\u30ce\u30fc\u30c9\u81ea\u4f53\u306f\u5b9f\u969b\u306e\u8a2d\u5b9a\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26716\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/gauge-1024x640.png\" alt=\"\" width=\"1024\" height=\"640\" srcset=\"\/wp-content\/uploads\/2020\/07\/gauge-1024x640.png 1024w, \/wp-content\/uploads\/2020\/07\/gauge-300x188.png 300w, \/wp-content\/uploads\/2020\/07\/gauge-768x480.png 768w, \/wp-content\/uploads\/2020\/07\/gauge-600x375.png 600w, \/wp-content\/uploads\/2020\/07\/gauge.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001\u30c7\u30fc\u30bf\u3092Chart\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Chart\u30ce\u30fc\u30c9\u81ea\u4f53\u306b\u306f\u8a2d\u5b9a\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26715\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/chart.png\" alt=\"\" width=\"492\" height=\"391\" srcset=\"\/wp-content\/uploads\/2020\/07\/chart.png 492w, \/wp-content\/uploads\/2020\/07\/chart-300x238.png 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/p>\n<p>\u3053\u308c\u3067\u3001\u63a5\u7d9a\u3055\u308c\u305f\u30ce\u30fc\u30c9\u306e\u4e21\u65b9\u306e\u30bb\u30c3\u30c8\u304c\u914d\u5099\u3055\u308c\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u30da\u30fc\u30b8\u3092\u958b\u304f\u3068PLC \u304b\u3089\u53ce\u96c6\u3057\u305f\u30c7\u30fc\u30bf\u304b\u3089\u7c21\u5358\u306a\u53ef\u8996\u5316\u60c5\u5831\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 http:\/\/your_pi_ip:1880\/ui\/<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26698\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2020\/07\/ui-1024x604.png\" alt=\"\" width=\"1024\" height=\"604\" srcset=\"\/wp-content\/uploads\/2020\/07\/ui-1024x604.png 1024w, \/wp-content\/uploads\/2020\/07\/ui-300x177.png 300w, \/wp-content\/uploads\/2020\/07\/ui-768x453.png 768w, \/wp-content\/uploads\/2020\/07\/ui-600x354.png 600w, \/wp-content\/uploads\/2020\/07\/ui.png 1761w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u3053\u308c\u3067\u3001\u30c7\u30b8\u30bf\u30eb\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc\u3001Arduino PLC\u3001Raspberry PI\u304cModbus\u3001GridDB\u3001Node-RED\u30d5\u30ed\u30fc\u306b\u63a5\u7d9a\u3055\u308c\u3001\u3088\u308a\u591a\u304f\u306e\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc\u3084\u4ed6\u306e\u30bb\u30f3\u30b5\u30fc\u30bf\u30a4\u30d7\u3067\u7c21\u5358\u306b\u62e1\u5f35\u3067\u304d\u308b\u30b7\u30f3\u30d7\u30eb\u306aIIoT\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084GridDB\u306b\u95a2\u3059\u308b\u8cea\u554f\u304c\u3042\u308c\u3070\u3001Stack Overflow\u3067\u6c17\u8efd\u306b\u8cea\u554f\u3057\u3066\u304f\u3060\u3055\u3044\u3002https:\/\/stackoverflow.com\/questions\/ask?tags=griddb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001Modbus\u7d4c\u7531\u3067Industrial Shields M-DUINO 21+ Arduino PLC\u304b\u3089\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308bNode-RED\u30d5\u30ed\u30fc\u3092\u4f5c\u6210\u3057\u3001Raspberry Pi 4\u4e0a\u306eGri [&hellip;]<\/p>\n","protected":false},"author":71,"featured_media":50150,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50710","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Raspberry Pi\u4e0a\u306eGridDB\u3001Node-Red\u3001Arduino PLC\u3092\u4f7f\u7528\u3057\u305fIIoT\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d39\u4ecb | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001Modbus\u7d4c\u7531\u3067Industrial Shields M-DUINO 21+ Arduino\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/\u672a\u5206\u985e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Raspberry Pi\u4e0a\u306eGridDB\u3001Node-Red\u3001Arduino PLC\u3092\u4f7f\u7528\u3057\u305fIIoT\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d39\u4ecb | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001Modbus\u7d4c\u7531\u3067Industrial Shields M-DUINO 21+ Arduino\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/\u672a\u5206\u985e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-20T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:54:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.griddb.net\/wp-content\/uploads\/2020\/09\/blockdia1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"810\" \/>\n\t<meta property=\"og:image:height\" content=\"439\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Owen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Owen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/\"},\"author\":{\"name\":\"Owen\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/0f2f6d4b593adde8c43cf3ea5c794c66\"},\"headline\":\"Raspberry Pi\u4e0a\u306eGridDB\u3001Node-Red\u3001Arduino PLC\u3092\u4f7f\u7528\u3057\u305fIIoT\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d39\u4ecb\",\"datePublished\":\"2020-08-20T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:54:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/\"},\"wordCount\":202,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2020\/09\/blockdia1.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/\",\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/\",\"name\":\"Raspberry Pi\u4e0a\u306eGridDB\u3001Node-Red\u3001Arduino PLC\u3092\u4f7f\u7528\u3057\u305fIIoT\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d39\u4ecb | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2020\/09\/blockdia1.png\",\"datePublished\":\"2020-08-20T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:54:10+00:00\",\"description\":\"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001Modbus\u7d4c\u7531\u3067Industrial Shields M-DUINO 21+ Arduino\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2020\/09\/blockdia1.png\",\"contentUrl\":\"\/wp-content\/uploads\/2020\/09\/blockdia1.png\",\"width\":810,\"height\":439},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/0f2f6d4b593adde8c43cf3ea5c794c66\",\"name\":\"Owen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/47438a5c81215c7a9043be1b427e0bbd8dc0f77bd536f147f8495575149e4325?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/47438a5c81215c7a9043be1b427e0bbd8dc0f77bd536f147f8495575149e4325?s=96&d=mm&r=g\",\"caption\":\"Owen\"},\"url\":\"https:\/\/www.griddb.net\/ja\/author\/owen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Raspberry Pi\u4e0a\u306eGridDB\u3001Node-Red\u3001Arduino PLC\u3092\u4f7f\u7528\u3057\u305fIIoT\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d39\u4ecb | GridDB: Open Source Time Series Database for IoT","description":"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001Modbus\u7d4c\u7531\u3067Industrial Shields M-DUINO 21+ Arduino","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/\u672a\u5206\u985e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/","og_locale":"ja_JP","og_type":"article","og_title":"Raspberry Pi\u4e0a\u306eGridDB\u3001Node-Red\u3001Arduino PLC\u3092\u4f7f\u7528\u3057\u305fIIoT\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d39\u4ecb | GridDB: Open Source Time Series Database for IoT","og_description":"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001Modbus\u7d4c\u7531\u3067Industrial Shields M-DUINO 21+ Arduino","og_url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/\u672a\u5206\u985e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2020-08-20T07:00:00+00:00","article_modified_time":"2025-11-14T15:54:10+00:00","og_image":[{"width":810,"height":439,"url":"https:\/\/www.griddb.net\/wp-content\/uploads\/2020\/09\/blockdia1.png","type":"image\/png"}],"author":"Owen","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"Owen","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#article","isPartOf":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/"},"author":{"name":"Owen","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/0f2f6d4b593adde8c43cf3ea5c794c66"},"headline":"Raspberry Pi\u4e0a\u306eGridDB\u3001Node-Red\u3001Arduino PLC\u3092\u4f7f\u7528\u3057\u305fIIoT\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d39\u4ecb","datePublished":"2020-08-20T07:00:00+00:00","dateModified":"2025-11-14T15:54:10+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/"},"wordCount":202,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2020\/09\/blockdia1.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/","url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/","name":"Raspberry Pi\u4e0a\u306eGridDB\u3001Node-Red\u3001Arduino PLC\u3092\u4f7f\u7528\u3057\u305fIIoT\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d39\u4ecb | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#primaryimage"},"image":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2020\/09\/blockdia1.png","datePublished":"2020-08-20T07:00:00+00:00","dateModified":"2025-11-14T15:54:10+00:00","description":"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001Modbus\u7d4c\u7531\u3067Industrial Shields M-DUINO 21+ Arduino","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/iiot-project-using-griddb-on-raspberry-pi-node-red-and-an-arduino-plc\/#primaryimage","url":"\/wp-content\/uploads\/2020\/09\/blockdia1.png","contentUrl":"\/wp-content\/uploads\/2020\/09\/blockdia1.png","width":810,"height":439},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/0f2f6d4b593adde8c43cf3ea5c794c66","name":"Owen","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/47438a5c81215c7a9043be1b427e0bbd8dc0f77bd536f147f8495575149e4325?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/47438a5c81215c7a9043be1b427e0bbd8dc0f77bd536f147f8495575149e4325?s=96&d=mm&r=g","caption":"Owen"},"url":"https:\/\/www.griddb.net\/ja\/author\/owen\/"}]}},"_links":{"self":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50710"}],"version-history":[{"count":1,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50710\/revisions"}],"predecessor-version":[{"id":51550,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50710\/revisions\/51550"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/media\/50150"}],"wp:attachment":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}