Skip to content

Instantly share code, notes, and snippets.

Keybase proof

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:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gabeschamberg
gabeschamberg / ob_te_v1.ipynb
Last active May 8, 2017 17:51
Notebook describing preliminary results for JIDT analysis of rat data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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);
}
@gabeschamberg
gabeschamberg / read_audio.ino
Created May 10, 2016 23:57
Simple sketch for passing audio samples over serial
int micPin = A0;
void setup() {
Serial.begin(115200);
}
void loop() {
int micVal = analogRead(micPin);
Serial.println(micVal);
}
@gabeschamberg
gabeschamberg / filtered_noise.py
Last active May 10, 2016 16:30
Showing how filtered white noise is still distributed as a Gaussian
# 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')