Hardware Monitor 5 31 – Hardware Monitoring Sensor App

Posted on  by

I'll show you, how to monitor some hardware variables.

  • 52,540 views
  • 25 comments
  • 53 respects

Components and supplies

Arduino Leonardo
or other Arduino device or even Atmega with UART converter
×1
LCD 16x2
×1
Jumper wires (generic)
×1

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.

  • The free Open Hardware Monitor software runs on Microsoft Windows with the.NET Framework version 2.0 and above. On Linux systems the Open Hardware Monitor requires Mono with WinForms.
  • C: Program Files (x86) Windows Kits 10 Tools x64 sensordiagnostictool.exe Once your sensor or location driver is installed and your hardware is attached to your PC, the tool immediately recognizes and records your device in the list of available sensors. The following image shows the Sensor Diagnostic Tool startup screen when several sensors.
  • The PC temperature monitor tool, Moo0 System Monitor Portable comes with advanced features that are usually available in paid versions of a few software. Moreover, it can check the CPU temperature for your computer for free.

Open Hardware Monitor provides a simple interface for monitoring temperature sensors, voltages, fan speeds, and the clock speeds of your computer. It also displays SMART hard drive info. This program is compatible with 32-bit and 64-bit Windows PCs, including all versions from XP to Windows 10.

Let's get started

Monitor

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 Stringvariable 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 charvariable and add it to our inData.

Ok, everything's fine but when receiving data stop coming? There is solution:

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.

Hardware Temperature Monitor

Appearance

Hardware

Prepare our form:

Now code...

Hardware Monitor 5 31 – Hardware Monitoring Sensor Apple

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:

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

Hardware Monitor 5 31 – Hardware Monitoring Sensor Apple Watch

  • 1 project
  • 18 followers

Published on

February 2, 2017
Write a comment

Members who respect this project

and 45 others

See similar projects

Pc Hardware Monitor

you might like

Hardware Monitoring Software Windows 10

Table of contents

Write a comment