Home / How To / Upload Vibration Sensor Value to IOT ThingSpeak with NodeMCU: 4 steps

Upload Vibration Sensor Value to IOT ThingSpeak with NodeMCU: 4 steps



There are several critical machines or expensive equipment that suffer from vibration damage. In such a case, a vibration sensor is required to find out whether or not the machine or equipment produces vibrations. Identifying the object that vibrates continuously is not a difficult job if the right sensor is used to detect the vibration. There are several types of vibration sensors available on the market that can detect vibration by sensing acceleration or speed and can provide excellent results. But such sensors are too expensive where the accelerometer is used.

In this project, connect NodeMCU with Vibration Sensor and LED. When no vibration is detected, the vibration sensor output is 0 (low voltage), otherwise its output is 1

(high voltage). This voltage can be read with PWM pins. If NodeMCU receives 0 (no vibration) from the vibration sensor, the green LED turns on and turns off the red LED. If NodeMCU receives 1 from the vibration sensor, it turns on red LED and turns off green LED. Here, with the help of PWM pins, the sensor value is read as analog and gives intervals for flashing the LED.

ThingSpeak is an Open-Source IoT application and API for storing and retrieving data from hardware devices and sensors. It uses HTTP protocol over the Internet or LAN for its communication. The MATLAB analysis is included to analyze and visualize data received from your hardware or sensor units.
We can create channels for each sensor data. These channels can be set as private channels or you can share the information publicly via public channels. The commercial features include additional features. But we will use the free version when we do it for educational purposes.

(To learn more about ThingSpeak in general and / or the Project, visit https://www.instructables.com/)PO19659002??Features: 3.819659006 Collect data in private channels

  • . Sharing data with public channels
  • REST API and MQTT APIS
  • MATLABĀ® Analytics and visualizations.
  • Worldwide Community
  • This guide uses an LM393 Vibration Sensor to plot its value on ThingSpeak with NodeMCU. In this program, NodeMCU can read and store sensor data in a variable and then upload it to ThingSpeak with its channel name and API key. NodeMCU should be connected to the Internet via Wi-Fi. We will see how to create ThingSpeak channels and configure it on NodeMCU.


    Source link