Skip to content

Instantly share code, notes, and snippets.

View luigifcruz's full-sized avatar
👨‍💻
Coding!

Luigi Cruz luigifcruz

👨‍💻
Coding!
View GitHub Profile
#define sensorPin A0 // Hall Effect Sensor Pin
#define pwmPin 3 // Transisor Pin
int levitPoint = 690; // Levitation Point relative to the sensor readings
#define FILTER_SHIFT 4
int sensorValue = 0;
int deltaLevit = 15;
int maxL, minL;
int filter_input;
int filter_output;