jamed
Junior Member level 3
- Joined
- Jul 29, 2010
- Messages
- 28
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- roma
- Activity points
- 1,467
Hi
i want to use arduino as USB-DAQ and read it by matlab
i achieved that, by using this code in arduino:
but the problem in this method is: the max sample rate in this method is 1000 sample per second,because the minimum delay is 1 millisecond
so i want a method to increase the sample rate to 4000 sample per second
how can i do that?
i want to use arduino as USB-DAQ and read it by matlab
i achieved that, by using this code in arduino:
Code:
int valor = 0;
int analogin = A2;
void setup(){
Serial.begin(9600);
}
void loop(){
valor = analogRead(analogin);
Serial.println(valor);
delay(100);
}
but the problem in this method is: the max sample rate in this method is 1000 sample per second,because the minimum delay is 1 millisecond
so i want a method to increase the sample rate to 4000 sample per second
how can i do that?