Hi,..
that serial port is slow, and an mbed is very fast.
I think you need to quantify what you mean when you say
"as fast as possible",
are we talking 1000 readings a second ? slower or faster ?
it depends what sensor you are reading, as to what makes sense.
If 64k is enough to hold your data, (what are we talking 8 bytes?) We are talking of the order of 300 readings/sec over 20 secs is possible. Hold that in an array, then you just have to send the 60k down the serial line.
you need to mention some numbers.
to some people 10hz is fast, to others 10khz is fast.
I've not really needed to do anything over a few hz for data acquisition yet, and I've been writing that down to an SDCard connected to an mbed.
I don't know how fast that could run, as I say, depends what you are calling fast. Maybe time for a benchtest!
Hello Everyone,
I'm trying to send some data readed from mBed to a computer for further processing. I have 4 inputs (readed as float), a counter (int), and 4 char for separation format: counter;#;#;#;# . The main critiria I have is to read the data as fast as possible from the sensors for about 20 seconds, this time might increase (all data received at same frequency).
1) What would be the best way to receive the data and send it to the computer, storing the readed data into some array and after done with the reading beging to send the data to the computer (via serial)? Or send the data directly (via serial)? Can there be any better method?
2) As mBed has 64KB of RAM I do not know if I will be able to store in the board. What will be faster, store on an EEPROM (24LC256) or send the data directly to the computer (via serial)?
I will really appreciate your help. Thank you.