Code

Project: jvfeatures

jvtypes.h      jvfeatures.h      chessSeg.cpp      jvtypes.cpp      jvtest.cpp      jvfeatures.cpp     

Project: Other

migrateMailbox.scpt.txt     

Project: Infinite HMM Tutorial

run.m      iHMM_tutorial.zip      HDP_HMM.m      README.txt      ConditionalProbabilityTable.m      HDP.m      HMMProblem.m      HMM.m     

Project: RRT

RRT.h      plot_output.py      RRT.tgz      rrt_test.cpp      RRT.cpp      BidirectionalRRT.cpp      AbstractRRT.cpp     

Project: Box2D_friction_mod

WheelConstraint.h      test_TopDownCar.py      b2FrictionJoint.h      python_friction_joint.patch      test_TopDownFrictionJoint.py      TestEntries.cpp      TopDownCar.h      b2FrictionJoint.cpp      box2d_friction_joint.patch     

Project: Dirichlet Process Mixture Tutorial

EM_GM.m      DP_Demo.m      DPMM.m      DP_Tutorial.zip      DirichletProcess.m      gaussian_EM.m     

Project: Arduino_Code

plot_ardunio_data.sh      Arduino_Code.zip      convert_range2D.py      arduino-serial.c      oscilloscope.sh      oscilloscope.pde      motordriver.pde      helicopter_controller.pde      accelerometer_test.pde      ranger_plane_sweep.pde      clodbuster_controller.pde      pwm_manual.pde      ranger_test.pde      servo_test.pde     

Project: ArduCom

arducom.py      setup.py     

Project: support

geshi.php      Protector.php     

Project: Cogent

CodePane.php      NotesPane.php      PicsPane.php      Cogent.php      PubsTable.php     
Click here to download "resources/code/Arduino_Code/oscilloscope/oscilloscope.pde"

resources/code/Arduino_Code/oscilloscope/oscilloscope.pde

#include <stdio.h>

#define PIN0 = 0;
#define PIN1 = 1;
#define PIN2 = 2;
#define PIN3 = 3;
#define PIN4 = 4;
#define PIN5 = 5;
int val0;
int val1;
int val2;
int val3;
int val4;
int val5;
char buf[32];

void setup() {
  // initialize serial port
  Serial.begin(9600);
  analogReference(EXTERNAL); // Expects ground for the system on the aref pin
  /*                           * don't forget to pass through 5K resistor- in case
                               * analogReference settings are wrong we don't want to
                               * damage the microcontroller
  */

}

void loop() {
  // read the value from the sensor:
//  val0 = analogRead(PIN0);
  val1 = analogRead(PIN1);
  val2 = analogRead(PIN2);
  val3 = analogRead(PIN3);
//  val4 = analogRead(PIN4);
//  val5 = analogRead(PIN5);

  //delay(10);

  sprintf(buf,"%d %d %d",val2, val3, val4); // 2:4
  //sprintf(buf,"%d %d %d %d",val2, val3, val4, val5); // 2:5
  //sprintf(buf,"%d %d %d %d %d %d",val0, val1, val2, val3, val4, val5); // all 6

  Serial.println(buf);
}
 

About me

Pic of me