This file contains 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
import processing.serial.*; | |
import java.awt.event.KeyEvent; | |
import java.io.IOException; | |
Serial myPort; | |
PFont orcFont; | |
int iAngle; | |
int iDistance; | |
void setup() { | |
size(1000, 500); |
This file contains 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> | |
const int TriggerPin = 8; | |
const int EchoPin = 9; | |
const int motorSignalPin = 10; | |
const int startingAngle = 90; | |
const int minimumAngle = 6; | |
const int maximumAngle = 175; | |
const int rotationSpeed = 1; |