The following video was made as a tutorial on square waveform generation using an Arduino UNO and Ubuntu. It is a very basic video, and I hope to make another one soon on stepper motor controllers next.
The video was made with OpenShot Video Editor under Ubuntu Linux (similar to Microsoft Windows, Adobe products, or iMac).
int PIN = 13;
void setup() {
pinMode(PIN, OUTPUT);
}
void loop() {
int state = 0;
while(1) { if(state == 0) {
digitalWrite(PIN, LOW); state = 1;
}
else { digitalWrite(PIN, HIGH); state = 0;
}
delay(2000);
}
Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts
Tuesday, July 19, 2011
Subscribe to:
Posts (Atom)
