This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//import the capSense Library | |
#include <CapacitiveSensor.h> | |
//these are the capsense inputs 2 is the common send the second number is the | |
//other digital input the sensor is attached to | |
CapacitiveSensor cs_2_3 = CapacitiveSensor(2,3); | |
CapacitiveSensor cs_2_4 = CapacitiveSensor(2,4); | |
CapacitiveSensor cs_2_5 = CapacitiveSensor(2,5); | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Arduino Stuff | |
import processing.serial.*; | |
import cc.arduino.*; | |
Arduino arduino; | |
//ARDUINO ANALOG INPUTS | |
/****************Drummer One********************/ | |
int drum_one_sensor_1 = 5; | |
int drum_one_value_1 = 0; | |
int drum_one_sensor_2 = 4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Stepper Motor Control - Constant Revolutions | |
This program drives a unipolar or bipolar stepper motor. | |
The motor is attached to digital pins 8 - 11 of the Arduino. | |
Created 03/09/14 | |
Joselyn McDonald | |
Denah Emerson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int soundSensor1 = 0; // piezo 1 connect to analog 0 | |
int soundSensor2 = 1; // piezo 2 connect to analog 1 | |
int threshold = 20; | |
int sensorReading1 = 0; //var to hold anaolg reading of piezo1 | |
int sensorReading2 = 0; //var to hold anaolg reading of piezo2 |
NewerOlder