Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Use arduino as DAQ (increase sample rate)

Status
Not open for further replies.

jamed

Junior Member level 3
Junior Member level 3
Joined
Jul 29, 2010
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
roma
Visit site
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:

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?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top