Advanced Search
Search Results
164 total results found
How to use a Reed Switch
Physical Computing
Tutorials
... // LED pin - active-high void setup() { Serial.begin(9600); // Since the other end of the reed switch is connected to ground, we need // to pull-up the reed switch pin internally. pinMode(REED_PIN, INPUT_PULLUP); pinMode(LED_PIN, OUTPUT); } v...
How to use a EMG Muscle Sensor
Physical Computing
Tutorials
...ZE]; int data_index, sum; void setup() { // Serial connection begin Serial.begin(115200); pinMode(13, OUTPUT); } void loop() { static unsigned long past = 0; unsigned long present = micros(); unsigned long interval = present - past; past ...