What Arduino are you using? If you're trying to get metrics back from the PC via the USB serial connection, what operating system is running on the PC? If you aren't trying to do that, please explain what you're trying to do.
I am using Uno R3, I want to collect CPU Usage, Used RAM, CPU and GPU Temperatures and send it to the LCD connected to the arduino though the serial port. My operating system is Windows. So far i did this;
Public Class Form1
Public Enum TempFormat
Public Declare Function NvCplGetThermalSettings Lib "nvcpl.dll" (ByVal windowsMonitorNumber As UInt32, _
ByRef coreTemp As UInt32, ByRef ambientTemp As UInt32, ByRef upperLimit As UInt32) As Boolean
Private Property usedram As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = Enabled
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label1.Text = "CPU kullan?m?: " + ProgressBar1.Value.ToString + "%"
ProgressBar1.Value = PerformanceCounter1.NextValue.ToString
Dim dblAns As Double
dblAns = (My.Computer.Info.TotalPhysicalMemory.ToString / 1024) / 1024
usedram = Format(dblAns, "###,###,##0") - PerformanceCounter2.NextValue
Label2.Text = usedram.ToString + " MB"
usedram = PerformanceCounter3.NextValue
ProgressBar2.Value = usedram.ToString
I am currently making it just visual on a form. When im finished i will transfer data with serial port. My CPU Usage and Ram usage is working well but just CPU and GPU temperatures are too hard work for me please help about two.