This file contains hidden or 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
#include <Servo.h> | |
class Sweeper { | |
Servo servo; | |
int pos; | |
int inc; | |
int interval; | |
unsigned long lastUpdate; | |
int maximum; | |
int minimum; |
This file contains hidden or 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
// http://www.bajdi.com | |
// Bob the biped | |
// Basic walking gait code | |
#include <Servo.h> | |
// 4 servos | |
Servo leftFootServo; | |
Servo leftHipServo; | |
Servo rightFootServo; | |
Servo rightHipServo; |
This file contains hidden or 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
#include <Sparki.h> | |
void setup() { | |
} | |
void ultrasonicTheremin(){ | |
int maxDist = 60; | |
int minFreq = 50; | |
int maxFreq = 10000; |
This file contains hidden or 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
#include <Sparki.h> | |
const int RIGHT = 0; | |
const int CENTER = 1; | |
const int LEFT = 2; | |
const int freqA = 440; | |
const int freqF = 370; | |
const int freqmidC = 261; |
This file contains hidden or 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
#include <Sparki.h> | |
const int ULTRASONIC = 0; | |
const int RIGHT = 1; | |
const int CENTER = 2; | |
const int LEFT = 3; | |
int freqA = 440; | |
int freqF = 370; | |
int freqmidC = 261; |
This file contains hidden or 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
#include <Sparki.h> | |
int sensorLow = 80000; | |
int sensorHigh = 0; | |
int sensorValue = 0; | |
int calibrationTime = 5000; | |
void setup(){ | |
signal(3, 75); |
This file contains hidden or 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
#include <Sparki.h> | |
int sensorLow = 335; | |
int sensorHigh = 872; | |
int sensorValue; | |
int freq = 440; | |
int maxPitchCount = 20; | |
void setup(){} |
This file contains hidden or 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
/* | |
This is a test sketch for the Adafruit assembled Motor Shield for Arduino v2 | |
It won't work with v1.x motor shields! Only for the v2's with built in PWM | |
control | |
For use with the Adafruit Motor Shield v2 | |
----> http://www.adafruit.com/products/1438 | |
*/ | |
#include <Wire.h> |
This file contains hidden or 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
void setup() { | |
pinMode(13, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(13, HIGH); | |
delay(1000); | |
digitalWrite(13, LOW); |
This file contains hidden or 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 ledPin = 13; | |
int onTime = 1000; | |
int offTime = 500; | |
void setup() { | |
pinMode(ledPin, OUTPUT); | |
} |