I'll show you, how to monitor some hardware variables.
- 52,540 views
- 25 comments
- 53 respects
Components and supplies
| × | 1 | ||
| × | 1 | ||
| × | 1 |
First of all, we need to download additional library for easy access to our hardware variables. Open Hardware Monitor. After unpacking, we have our library: OpenHardwareMonitorLib.dll. Create new project - Windows Forms Application - Right click on References in Solution Explorer - Browse - OpenHardwareMonitorLib.dll and don't forget to. A hardware monitoring tool works by polling data from across a system using hardware health sensors. A hardware monitoring tool collects all the data it receives from these sensors and is designed to make this information useful by sending alerts when thresholds are crossed and visually displaying the data values using graphs located in a. This is a very nice program that supplies a lot of hardware information, including MB temps, HD temps, CPU temps, CPU voltages, RAM voltages, CPU load, and fan speeds. It is highly configurable, and any of the data streams can be shown in the system tray; in addition, the colors of the tray displays can be changed. CPUID Hardware Monitor is another hardware monitor software from the makers of CPU-Z. Its a very simple software that only lets you monitor CPU core temperature, clock speed, and load along with Hard Drive temperature and utilization. For each of these parameters, real time values, minimum values, and maximum values are displayed.
About this project
Introduction
The idea for this project was born actually from the need of fun and knowledge. This project is easy to make and has many applications. We can use it, for example, to control, store and display some hardware variables.
Let's get started
First of all, we need to connect our LCD (I was using I2C converter) :
When we did this, we can move to the next part..
Let's write some code..
Set 16x2 LCD with address 0x3F - address of I2C bus device can be found from scanning via simple sketch available on Arduino Playground.
Now we have to declare a
String
variable to store our Serial input and setup rest of stuff. If we would like to send data directly by a string variable it could be problematic, because of about one-second latency based on string size. To avoid this use
char
variable and add it to our inData
.Ok, everything's fine but when receiving data stop coming? There is solution:
![Hardware Hardware](https://www.itprc.com/wp-content/uploads/2020/01/Zabbix-screenshot.png)
When last of char will be * Arduino will know when to proceed next part, Now we have to handle our message. We need to get rid of this
*
char so:And finally:
But.. We have second line unused.. Here is the solution
When last of char will be # Arduino will set the second line of our LCD and print other data.
Configuration
Why C#, not C or C++ ? C# is easy and fast (fast.. I mean in writing)
First of all, we need to download additional library for easy access to our hardware variables.
After unpacking, we have our library: OpenHardwareMonitorLib.dll
Create new project -> Windows Forms Application -> Right click on References in Solution Explorer -> Browse -> OpenHardwareMonitorLib.dll and don't forget to check it.
Appearance
Prepare our form:
Now code..
Some directives..
And declarations..
c
is Open Hardware Monitor object. We have to enable CPU and GPU. In Form Load event put this:In form constructor:
Vectoraster 7 1 1 download free. add:
and then, anywhere:
Simple.. Initialize declared variables, scan for open ports and add it to the
comboBox1
Now major function to store and send variables:
Don't forget to add
Status()
function to timer tick event.Now connect button:
We're checking if a port is already open, if not setting timer interval from comboBox2 and run everything up!
Disconnect button:
Write last data to Arduino to said that we're done.
You can add some functions like for e.g. hide to tray etc. (Full code below)
Program has to be run with administrator privileges!
Code
Schematics
Author
zakrzu
- 1 project
- 18 followers
Published on
February 2, 2017Write a comment
Members who respect this project
and 45 others
See similar projectsyou might like
Table of contents
Hardware Monitoring Software Windows 10
Write a comment