1

i would like to measure some signals from arduino and send it to a pc using USART and display the results in a c# winform application. Does anyone have such a project example ? Besides, i want to send the data in live time mode, each values should be directly transmitted and then the second measurement ( sample rate 100 kHz ) Thanks a lot

5
  • Are you sure you can support that sample rate with your communications? Commented Jul 22, 2014 at 2:41
  • 3
    The maximum sampling rate for analog signals is 10 kHz at default 10 bit resolution. Digital should be ok. The USB bus is nominally 12 MBit/s. Assuming 1-byte data size, you would probably have to send the data in 64 byte bursts(max packet size) if you want a chance of having eneough bandwidth since there is also overhead. Whether possible would depend on the Leonardo USB implementation and possibly also hardware/software on the PC.
    – user2973
    Commented Jul 22, 2014 at 7:05
  • User2973, you should post your comment as an answer, and then the OP should accept it. (Excellent, through treatment of the question. Voted.)
    – Duncan C
    Commented Jul 23, 2014 at 1:21
  • ok, if we assume with 5 KHz samle rate, do you can any suggestion for c# PC program to control the board ? Commented Jul 24, 2014 at 15:39
  • This question was never specific enough for the rules of this site, and has clearly been abandoned for over a year. Voting to close. Commented Oct 4, 2015 at 18:22

1 Answer 1

2

Am I missing the point here or wouldn't the C# just have to open a Serial connection to the board and read and write to that to control the program running on the Arduino? Yes the board is connected by USB, but that's only so it can open a serial connection. To be honest I don't think you will be able to sample at that speed, you might be better looking at ICs that directly interface with GPIO and RS232/USB.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.