Skip to content

Instantly share code, notes, and snippets.

ulrichzwingli

Block or report user

Report or block ulrichzwingli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:e7b1b05e545f0ca438a84ab0df0eefd0
var shadow;
var user;
var shoe;
var a1;
var b1;
var angle;
var v1;
var v2;
var q;
View gist:8780e28a0a2f8edd172ef8a5d44a5cbf
char val; // Data received from the serial port
int ledPin = 13; // Set the pin to digital I/O 13
#include <Servo.h>
Servo servo1;
void setup() {
pinMode(ledPin, OUTPUT); // Set pin as OUTPUT
Serial.begin(9600); // Start serial communication at 9600 bps
servo1.attach(10);
View gist:a6862f168d44723732797311e48054d8
import org.openkinect.processing.*;
import processing.serial.*;
// Kinect Library object
Kinect kinect;
PImage img;
float minThresh = 900;
float maxThresh = 940;
float mf;
float sumX = 0;
float sumY = 0;
View gist:2d25996b88698c1ab082f1c2ce5a0dbf
PImage shadow;
PImage user;
PImage shoe;
PVector a = new PVector(150, 0);
PVector b = new PVector(0, 150);
float angle;
PVector v1;
PVector v2;
float q;
float len;
View gist:fede6ee637a128c67089331957f8de5c
var shadow;
var user;
var shoe;
var a1;
var b1;
var angle;
var v1;
var v2;
var q;
@ulrichzwingli
ulrichzwingli / gist:67f62b999cd210ab5f052de1d0eeea55
Created Dec 2, 2017
FYF_Arduino_Code_Controlling_winch_shadow_p3
View gist:67f62b999cd210ab5f052de1d0eeea55
char val; // Data received from the serial port
int ledPin = 13; // Set the pin to digital I/O 13
//int servoVal = 0;
#include <Servo.h>
Servo servo1;
void setup() {
pinMode(ledPin, OUTPUT); // Set pin as OUTPUT
Serial.begin(9600); // Start serial communication at 9600 bps
servo1.attach(9);
View gist:f54d1fcbfdade4ee3e1b05a88f1a9fce
PImage shadow;
import org.openkinect.freenect.*;
import org.openkinect.processing.*;
import processing.serial.*;
PVector a = new PVector(150, 0);
PVector b = new PVector(0, 150);
float angle;
PVector v1;
PVector v2;
@ulrichzwingli
ulrichzwingli / gist:6f34d7acac683399a16a4d6b02ae2ce6
Created Dec 2, 2017
FYF_Processing_code_controlling_winch_servo_and_shadow
View gist:6f34d7acac683399a16a4d6b02ae2ce6
PImage shadow;
import processing.serial.*;
PVector a = new PVector(150, 0);
PVector b = new PVector(0, 150);
float angle;
PVector v1;
PVector v2;
float q;
float len;
float root;
@ulrichzwingli
ulrichzwingli / gist:7d3a05210d698f7dacab788a24eaa899
Created Nov 24, 2017
FYF : Stage 2 : Kinect position tracking (Slow version)
View gist:7d3a05210d698f7dacab788a24eaa899
import org.openkinect.freenect.*;
import org.openkinect.processing.*;
// Kinect Library object
Kinect kinect;
PImage img;
float minThresh = 200;
float maxThresh = 600;
View gist:1e8154fa8b1a891bbaa45d1fa6586b04
import org.openkinect.processing.*; //<>//
// Kinect Library object
Kinect kinect;
PImage img;
float minThresh = 200;
float maxThresh = 600;
float sumX = 0;
float sumY = 0;
You can’t perform that action at this time.