Arduino Projects

Arduino Sensor Values on Gauges designed in Processing Software, Sensors Dashboard

Processing Software with Arduino for Sensors Dashboard Designing

Processing Software with Arduino:

 

Arduino Sensor Values on Gauges designed in Processing Software– When it comes to the monitoring of different types of sensors, we have many options to monitor sensors. As, for example, we can monitor the sensor values on the serial monitor. This is the most basic way to monitor sensors. And this method is used by almost everyone for project debugging.

Another way to monitor the sensors is to print the sensor values on the LCD, or on the OLED display module, or on the HMI screens.

A third method of monitoring the sensors can be to send the sensor values ​​from the controller board to the loT platform, where we can display the sensor values ​​on different gauges or on other types of widgets. We have many IoT platforms like Blynk, Arduino IoT cloud, Google Spreadsheet, Ubidots, Thingspeak, Google Assistant, Adafruit IO, Firebase, etc.

The 4th method to monitor the sensor can be to design our own Android application and then use that application to monitor the sensors. I have already made videos on this, visit my YouTube channel Electronic Clinic.

And the 5th method can be that we design our own software, in VB.net or C# or Processing. Apart from this, there are many programming languages, by using which we can create desktop applications. I have already made videos on VB6 and VB.NET. In which, I have explained how we can monitor different types of sensors with our designed softwares.

I also talked about the processing software a little while back, I had used the processing software long ago, but I did not make any video on it and I also didn’t write any article about it. So, I decided why not to write a detailed article on the Arduino and Processing. The interface of the processing software is exactly like the Arduino IDE, so it is quite easy to use.

So, in this article, you will learn how to make three gauges in processing software for monitoring Temperature, Humidity, and a Potentiometer. For simplicity, I am using a DHT11 temperature and humidity sensor, and a potentiometer.

Before, I am going to explain the circuit diagram and programming. First, let’s kick off our practical demonstration.



JLCPCB Sponsor:

Arduino processing

Feel free to visit their website https://jlcpcb.com/SKL to not only find out what awesome PCB and Assembly services they offer, but also to easily upload your Gerber files and thus order affordable and high-quality PCBs quickly. You will only need to pay 2 dollars for 1- 4 layers PCBs, and 0 dollars for your PCB assembly. Besides this JLCPCB also offers industrial 3D printing services starting at only 1 dollar.

Practical Demonstration:

Arduino processing

I have connected everything as per the circuit diagram which I will explain in a minute. I have connected my Arduino board with the Laptop using a USB cable. After connecting the Arduino with the Laptop; then I opened the Processing Software. To Run the code I simply clicked on the play button. Right now you can see values of the Temperature, Humidity, and Potentiometer on the Gauges.


Next, I applied heat to the DHT11 Temperature and Humidity Sensor. The DHT11 is quite a slow sensor, it takes a while to update the values. Any I kept applying heat to the sensor for around 10 seconds and the needle on the gauges started to move. It was a moment of delight for me. Then after that I started to rotate the knob of the Potentiometer and it was really quick, there was just a 200ms delay, and this is because, I am using 200 milliseconds delay in the Arduino code.

Arduino processing

You can see the updated Temperature, Humidity, and Potentiometer values on the Gauges. I am sure by now, you might have got an idea of how does this system work. So, without any further delay let’s get started!!!

Amazon Links:

Arduino Nano USB-C Type (Recommended)

DHT11 Temperature and Humidity Sensor

Other Tools and Components:

ESP32 WiFi + Bluetooth Module (Recommended)

Top Arduino Sensors:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!


DHT11 Sensor:

The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin. It is simple to use, but requires careful timing to grab data.

Arduino processing

Description:

  • Low cost
  • 3 to 5V power and I/O
  • 5mA max current use during conversion (while requesting data)
  • Good for 20-80% humidity readings with 5% accuracy
  • Good for 0-50°C temperature readings ±2°C accuracy
  • No more than 1 Hz sampling rate (once every second)
  • Body size 15.5mm x 12mm x 5.5mm

DHT11 with Arduino, Circuit:

Arduino processing

Basically, for this project, we don’t need this 5V regulated power supply, as I will use my laptop to power up the Arduino board. The potentiometer is connected with the Analog pin A0. The other two legs of the Potentiometer are connected with the 5V and GND.

The data Pin is connected with the Arduino Nano D2 pin. The voltage pin is connected with 3.3 volts and the GND pin is connected with the Arduino’s ground.


PCB’s from JLCPCB:

Arduino processing

These are the PCBs, I received from the JLCPCB as you can see the quality is really great. The silkscreen is quite clear and the Blue Solder mask looks amazing. After completing the Soldering, I connected everything as per the circuit diagram which I just explained.

Arduino processing

Don’t get confused with these female headers, I added these for connecting the Oled display module since I will be using this as the development board for testing my other Arduino based projects. Now, let’s take a look at the Arduino programming.



Arduino Programming:

For this project, You will also need to install the DHT11 library for this click on the Sketch Menu then go to the Include Library and then click on the Manage Libraries. Type dht in the search box and then install the dht sensor library.

The purpose of this program is to read the DHT sensor and Potentiometer. And to send these values to the processing Software. Now, let take a look at the Processing code.

Required Library for Processing:

First open the Arduino processing then import the meter library, click on the import library and then click on the manage libraries…

Arduino processing

Write meter and install the library.Arduino processing

As you can see, I have already installed this library. When you are done with installing the meter library. Then you will need code given below. Simply copy and paste it in the Processing software.


Designing Gauges using Processing Software:

port = new Serial(this, “COM14”, 9600);

Next, make sure you enter the same Arduino communication port which you can check by going to the device manager or to the Arduino IDE while your Arduino is connected with the Laptop. My Arduino board was installed on COM14, so that’s why I entered the communication port in the Processing code. Once you are done with all the settings, then finally you can click on the Play button. You should be able to see the Temperature, Humidity, and Potentiometer values on the three gauges respectively.


Watch Video Tutorial

 

Related Articles

2 Comments

  1. Good day Engr Fahad,

    I am new to the Arduino IDE and very interested in your processing software on the Arduino.

    Please advice me as to how I can import the “meters” library using the Arduino IDE v1.8.19.

    I would really like to do this project!

    Thank you in advance.

    JoevW

    1. I have explained this in the Video which i am going to upload tomorrow. You will get a notification if you have subscribed my channel “Electronic Clinic”.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button