psikyo:
The one on my pc. I wanna read the ram of my pc desktop.
...
Well that's an entirely different thing, maybe you could have mentioned that in the first place. Given that this is an Arduino forum we all assumed you were talking about the Arduino memory.
I have no idea how to do this.
system
October 31, 2016, 9:42pm
22
You could parse /proc/meminfo
OS dependent.
But Python (C based) can get that info (CPU and RAM usage) from various OSs and output Serial via a USB line...
PSUTIL - A Python System Stats library
Then using pySerial - you can output Serial data via USB
PySerial libraries
psikyo
November 1, 2016, 1:37pm
24
Yes,it's a stepper motor but it requires 12v to operate on hence,the step up booster
psikyo
November 1, 2016, 2:28pm
25
Actually,I just need the code on how to write it on arduino.
Why not start by experimenting with the Stepper library then?
The Arduino programming language Reference, organized into Functions, Variable and Constant, and Structure keywords.
You'll need a stepper motor driver to handle the 12V pulses to make the motor move - Arduino will send 5V pulses to the motor driver, the motor driver will output 12V pulses to the motor.
Example: Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit [v2.3] : ID 1438 : $19.95 : Adafruit Industries, Unique & fun DIY electronics and kits
Check Sparkfun.com , Pololu.com for drivers also.
psikyo
November 2, 2016, 1:28pm
27
CrossRoads:
Why not start by experimenting with the Stepper library then?
Stepper - Arduino Reference
You'll need a stepper motor driver to handle the 12V pulses to make the motor move - Arduino will send 5V pulses to the motor driver, the motor driver will output 12V pulses to the motor.
Example: Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit [v2.3] : ID 1438 : $19.95 : Adafruit Industries, Unique & fun DIY electronics and kits
Check Sparkfun.com , Pololu.com for drivers also.
Okay! But how to write the code for the arduino to get the PC ram usage from?
I already said: I don't know what it takes to get that number to pop out on the serial port for an Arduino to do something with it.
psikyo:
But how to write the code for the arduino to get the PC ram usage from?
That information is operating system specific. You failed to mention the operating system.
There are posts above that range from hints to actual working code. You failed to read them.
There is a post above that hints "PC ram usage" is far too vague. You failed to narrow / qualify what you want.