I hereby claim:
- I am gabeschamberg on github.
- I am grabe (https://keybase.io/grabe) on keybase.
- I have a public key ASAFnnwdpNKjP3iCR3jDA-8xPNCEEKDzIyRbh4p8y4jozQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
int cPin = 4; | |
int dPin = 5; | |
int ePin = 6; | |
int fPin = 7; | |
int gPin = 8; | |
int aPin = 9; | |
int bPin = 10; | |
void setup() { | |
Serial.begin(9600); |
int potPin = A0; | |
void setup() { | |
Serial.begin(115200); | |
} | |
void loop() { | |
int potVal = analogRead(potPin); | |
Serial.println(potVal); | |
} |
int micPin = A0; | |
void setup() { | |
Serial.begin(115200); | |
} | |
void loop() { | |
int micVal = analogRead(micPin); | |
Serial.println(micVal); | |
} |
# Packages for filtering | |
from scipy.signal import butter, lfilter | |
def lowpass(data,fs,cutoff,order=5): | |
# The nyquist frequency is half of the sampling freq. | |
nyq = 0.5 * fs | |
# Find the cutoff frequency in digital domain | |
low = cutoff / nyq | |
# Get the filter coefficients | |
b, a = butter(order, low, btype='low') |