Pages: [1]   Go Down
Author Topic: E GOAL!  (Read 370 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I need to programm arduino and read signal from four straungauge base sensors sample @ 10 KHZ. About 5-6 mS between mesurements.

Topic: The aim is to make a goal that can measure the speed and accuracy of a ball landing on it. A suggestion of implementation is to make straingauge based sensors and interface them to an Arduino board.

I have Arduino Uno, it is possible to sample at this high freq right?
How can I transfer mesurments to EXEL or MATLAB?

Can u please help me?
« Last Edit: April 25, 2012, 06:42:12 am by Dewalt » Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13479
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
s sample @ 10 KHZ. About 5 mS between mesurements

how do you do that?  10.000 measurements with 5 ms in between makes at least 50 seconds in my math, or did I miss something?

Quote
I have Arduino Uno, it is possible to sample at this high freq right?
An Arduino can sample at 7-8 Khz if you use analogRead(), should be enough to get started.

you can get higher sampling speeds - http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1208715493/11 -

Quote
How can I transfer mesurments to EXEL or MATLAB?
You can send the values to any PC over a serial port. Capture the data with a terminal like putty.exe

This code should get your started
Code:
void setup()
{
  Serial.begin(115200);
}

unsigned long lastTime = 0;

void loop()
{
  while (micros() -100 < lastTime);
  lastTime = micros();
  unsigned long value = analogRead(A0);  // to be replaced by fast analogRead
  Serial.write(value);
}

Quote
Can u please help me?
just did, now it is your turn to make the next step.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot, I was pretty lost today! Hope I have now something to start with!
Logged

Pages: [1]   Go Up
Jump to: