Go Down

Topic: How can I display my cpu usage (pc) on my arduino? (Read 158 times) previous topic - next topic

Sandro2504

Hello,
How can I read out my cpu usage and send it to the arduino?

Robin2

You need a program running on your PC that collects the data and sends it to the Arduino.

For receiving the data on the Arduino have a look at the examples in Serial Input Basics - simple reliable ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.

The technique in the 3rd example will be the most reliable.

You can send data in a compatible format with code like this (or the equivalent in any other programming language)
Code: [Select]
Serial.print('<'); // start marker
Serial.print(value1);
Serial.print(','); // comma separator
Serial.print(value2);
Serial.println('>'); // end marker



I can't help with the PC program but I'm sure there will be plenty of advice on PC programming forums.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Go Up