| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Write serial sensor values to a CSV file

Page history last edited by Will 12 years, 9 months ago

What?

Why?

 

 

Attach your Serial device through a USB hub for power and connect to the BeagleBoard's USB host port.  I am using an Arduino as my serial device. http://arduino.cc

  

On the Arduino I used the following sketch:

char buff[500];
int a = 0;
void setup() {
  Serial.begin(9600);
}

void loop() {
  int a0 = analogRead(A0);
  int a1 = analogRead(A1);
  int a2 = analogRead(A2);
  int a3 = analogRead(A3);
  int a4 = analogRead(A4);
  int a5 = analogRead(A5);
  
  a = a++;
  sprintf(buff, "%d, %d, %d, %d, %d, %d, %d\n",a,a0,a1,a2,a3,a4,a5);
  Serial.print(buff);
  delay(500);
}

 

 

The app:

 

Comments (0)

You don't have permission to comment on this page.