Thanks your reply!My purpose:
I have a 3D program, my program will read value of sensors from Arduino board throught USB cable. + Hardware:
According to the comments, I have to fix:
Is that right?
* Frequency_board: Measuring frequency form encoder, sent to PC (my froject is written in VC++2008)
* Potentiometer: Mesuring analog input (A0 pin), sent to PC (my project ís written in VC++2008)+ Software:
*Communication between PC and Arduino board
-I am writing an application in VC++2008. I use SerialPort Class (MSDN) (http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx
) to read each byte that Arduino board posted
-On the board,I use "Serial" to read requests from the computer (Serial.read, Serial.ReadBytes) and send the value of the sensor to the computer (Serial.write, Serial.print)
*Progamming for chip
-Analog input: i use function "analogRead(A0)"
-Frequency from encoder: I used library "FreqMeasure" of Paul Stoffregen (best for 0.1 Hz to 1 kHz)
---->>>>It is my understanding. I'm not sure about my methods. Hope you guide, please!
Thank in advance!