diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image01.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image01.jpg new file mode 100644 index 00000000..9947f23a Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image01.jpg differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image02.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image02.jpg new file mode 100644 index 00000000..d5d14089 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image02.jpg differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image03.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image03.jpg new file mode 100644 index 00000000..00b3f8bc Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image03.jpg differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image04.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image04.png new file mode 100644 index 00000000..65c94a22 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image04.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image05.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image05.png new file mode 100644 index 00000000..80ad2019 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image05.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image06.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image06.jpg new file mode 100644 index 00000000..60e35db7 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image06.jpg differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image07.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image07.jpg new file mode 100644 index 00000000..f42c07f1 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image07.jpg differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image08.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image08.jpg new file mode 100644 index 00000000..229ef5dd Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image08.jpg differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image09.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image09.jpg new file mode 100644 index 00000000..6913b5f4 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image09.jpg differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image10.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image10.jpg new file mode 100644 index 00000000..9b68c13b Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image10.jpg differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image11.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image11.jpg new file mode 100644 index 00000000..59f6fc84 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image11.jpg differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image12.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image12.png new file mode 100644 index 00000000..7dfa2be9 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image12.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image13.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image13.png new file mode 100644 index 00000000..561bf008 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image13.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image14.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image14.png new file mode 100644 index 00000000..3c765fa5 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image14.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image15.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image15.png new file mode 100644 index 00000000..9731d80b Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image15.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image16.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image16.png new file mode 100644 index 00000000..666b10d0 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image16.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image17.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image17.png new file mode 100644 index 00000000..0676c66d Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image17.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image18.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image18.png new file mode 100644 index 00000000..a32f61dd Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image18.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image19.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image19.png new file mode 100644 index 00000000..8bd03e3c Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image19.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image20.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image20.png new file mode 100644 index 00000000..a30b86a8 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image20.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image21.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image21.png new file mode 100644 index 00000000..b690c98e Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image21.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image22.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image22.png new file mode 100644 index 00000000..ef5f751d Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image22.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image23.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image23.png new file mode 100644 index 00000000..87565109 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image23.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image24.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image24.png new file mode 100644 index 00000000..99d69aa3 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image24.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image25.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image25.png new file mode 100644 index 00000000..e406a814 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image25.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image26.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image26.png new file mode 100644 index 00000000..f4b433c8 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image26.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image27.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image27.png new file mode 100644 index 00000000..ae6c545e Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image27.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image28.png b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image28.png new file mode 100644 index 00000000..4c3bd8a9 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image28.png differ diff --git a/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image29.jpg b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image29.jpg new file mode 100644 index 00000000..40c80625 Binary files /dev/null and b/.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image29.jpg differ diff --git a/README.md b/README.md index dc422b6a..27a71e4a 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,7 @@ Projects devoted to the use of sensors, audio, or image data specific to the pre * [Motor Pump Predictive Maintenance - Infineon PSoC 6 WiFi-BT Pioneer Kit + CN0549](predictive-maintenance-and-fault-classification/motor-pump-cypress-cn0549.md) * [BrickML Demo Project - 3D Printer Anomaly Detection](predictive-maintenance-and-fault-classification/brickml-3d-printer-anomaly-detection.md) * [Condition Monitoring - Syntiant TinyML Board](predictive-maintenance-and-fault-classification/condition-monitoring-syntiant-tinyml.md) +* [Predictive Maintenance - Commercial Printer - Sony Spresense + CommonSense](predictive-maintenance-and-fault-classification/predictive-maintenance-sony-spresense-commonsense.md) ### Accelerometer & Activity Projects diff --git a/SUMMARY.md b/SUMMARY.md index afc46daa..f8ebb7f9 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -118,6 +118,7 @@ * [Motor Pump Predictive Maintenance - Infineon PSoC 6 WiFi-BT Pioneer Kit + CN0549](predictive-maintenance-and-fault-classification/motor-pump-cypress-cn0549.md) * [BrickML Demo Project - 3D Printer Anomaly Detection](predictive-maintenance-and-fault-classification/brickml-3d-printer-anomaly-detection.md) * [Condition Monitoring - Syntiant TinyML Board](predictive-maintenance-and-fault-classification/condition-monitoring-syntiant-tinyml.md) +* [Predictive Maintenance - Commercial Printer - Sony Spresense + CommonSense](predictive-maintenance-and-fault-classification/predictive-maintenance-sony-spresense-commonsense.md) ## Accelerometer & Activity Projects diff --git a/predictive-maintenance-and-fault-classification/predictive-maintenance-sony-spresense-commonsense.md b/predictive-maintenance-and-fault-classification/predictive-maintenance-sony-spresense-commonsense.md new file mode 100644 index 00000000..d3b25f1a --- /dev/null +++ b/predictive-maintenance-and-fault-classification/predictive-maintenance-sony-spresense-commonsense.md @@ -0,0 +1,346 @@ +--- +description: >- + Measure both air quality inside a commercial printer, as well as motion / vibration, to identify potential issues before major outages occur. +--- + +# Predictive Maintenance - Commercial Printer - Sony Spresense + CommonSense + +Created By: [Zalmotek](https://zalmotek.com) + +Public Project Link: + - [https://studio.edgeimpulse.com/studio/139770](https://studio.edgeimpulse.com/studio/139770) - VoC + - [https://studio.edgeimpulse.com/studio/140871](https://studio.edgeimpulse.com/studio/140871) - Vibration + +GitHub Repo: [https://github.com/Zalmotek/edge-impulse-predictive-maintenance-vibration-commonsense-sony-spresense](https://github.com/Zalmotek/edge-impulse-predictive-maintenance-vibration-commonsense-sony-spresense) + +## Introduction + +Predictive maintenance can help you avoid costly downtime and repairs, by predicting when equipment is going to fail. This allows you to schedule maintenance before the problem occurs. Additionally, predictive maintenance can improve safety by identifying potential hazards before they cause an accident. This allows companies to take steps to prevent accidents from occurring. And last but not least, predictive maintenance can help avoid costly downtime and repairs by predicting when equipment is going to fail. This allows you to schedule maintenance before the problem occurs, instead of waiting for something to break. + +## The Challenge + +The machineries present in a print shop include printers, copiers, and scanners. These machines are used to print, copy, and scan documents. Additionally, there are often other machines present in a print shop such as shredders and laminators. + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image01.jpg) + +One of our clients has a Xerox iGen4 machine in its print shop, and while the machine has been launched a few years ago when it's properly maintained and cared for it can still be used to print materials. Some common problems with Xerox iGen4 print machines include paper jams, toner issues, and printer errors. These problems can cause the machine to fail and result in lost production. Additionally, these problems can also be safety hazards if they are not fixed. While the unit has basic features to identify the above problems in their interface once you start using the machine there are some blind spots that you cannot safely detect. + +The air quality in a print shop can be dangerous because of the chemicals used in the printing process. These chemicals can be harmful to your health if you are exposed to them for too long. + +## Our Solution + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image02.jpg) + +If a print shop has equipment that is predicted to fail, they can schedule maintenance and repairs before the equipment actually fails. This can help avoid costly downtime and lost production. Additionally, if predictive maintenance can identify potential hazards, the print shop can take steps to prevent accidents from occurring. + +Our client needed some extra peace of mind and informed us where issues usually arise. We have chosen the Sony Spresense development board paired with the CommonSense expansion board to monitor vibrations and air quality by being placed directly inside the print unit in key points where they could detect issues and report them in real time. + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image03.jpg) + +The Sony Spresense development board is a processor developed by Sony for IoT and sensing applications. The main board can be operated alone or with the extension board. The Spresense uses Sony’s new chipset on the main board: the CXD5602 System on Chip (SoC) multi core processor with GNSS and the the CXD5247 power management and audio analog interface chip. + +The CommonSense expansion board created by SensiEdge provides an array of very useful sensors that can be used with the Sony Spresense board to capture the data we are interested in, especially the vibration sensor and the air quality one. + +### Hardware requirements +- [Sony Spresense](https://developer.sony.com/develop/spresense/) +- [CommonSense expansion board developed by SensiEdge](https://www.sensiedge.com/commonsense) +- Enclosure with wall mount options + +### Software requirements +- Edge Impulse account +- Arduino CLI +- Edge Impulse CLI +- Git + +## Hardware Setup + +The Spresense main board has the following features: Sony’s CXD5602 Processor, 8 MB Flash memory, PCB with small footprint, Dedicated camera connector, GNSS (GPS) antenna, Pins and LEDs, Multiple GPIO (UART, SPI, I2C, I2S), 2 ADC channels, Application LED x 4 (Green), Power LED (Blue), USB serial port. + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image04.png) + +From the CommonSense expansion board we are interested in LSM6DS3: inertial module: 3D accelerometer and 3D gyroscope and the SGP-40: Air quality sensor: + +The LSM6DS3 is a system-in-package featuring a 3D digital accelerometer and a 3D digital gyroscope. Enabling always-on low-power features for an optimal motion experience. + +The SGP40 is a digital gas sensor designed for easy integration into air purifiers or demand controlled ventilation systems. Sensirion’s CMOSens ® technology offers a complete , easy to use sensor system on a single chip featuring a digital I2C interface and a temperature controlled micro hotplate, providing a humidity compensated VOC based indoor air quality signal . The output signal can be directly processed by Sensirion’s powerful VOC Algorithm to translate the raw signal into a VOC Index as a robust measure for indoor air quality. The VOC Algorithm automatically adapts to the environment the sensor is exposed to. + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image05.png) + +The CommonSense can be plugged directly in the Sony Spresense since its pins are matching perfectly. + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image06.jpg) + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image07.jpg) + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image08.jpg) + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image09.jpg) + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image10.jpg) + +![](../.gitbook/assets/predictive-maintenance-sony-spresense-commonsense/image11.jpg) + +## Software Setup + +### Setting up the build environment + +#### Gnu Arm Embedded Toolchain + +The first step in setting up the build environment for the Sony Spresense board equipped with the Common Sense expansion board is installing the GNU Arm Embedded Toolchain. + +Determine the latest version of the toolchain: + +``` +$ARM_TOOLCHAIN_VERSION=$(curl -s https://developer.arm.com/downloads/-/gnu-rm | grep -Po '

Version \K.+(?=