Electro-Magnate
Physical Computing, Uncategorized | (0)
It's 8:08 AM... yes people, 808. and i did consume 8+8 caffeinated beverages over the course of the last 22 hours I've been P-Comping. I'm not great on documentation after I crash out, but here's some Arduino code.
int incomingByte = 0;
//servo variables
int servoPin = 2; // Control pin for servo motor
int minPulse = 500; // Minimum servo position
int maxPulse = 2500; // Maximum servo position
int pulse = 0; // Amount to pulse the servo
int increment = 50; //there are 40 gear teeth of planar movement
//the servo has 2000 explicit values
//this means 1 tooth is our greatest resolution of ...