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
/* | |
Simple Arduino loop FPS counter v1.1 | |
Created 2 Mar 2015 | |
Updated 22 Feb 2016 | |
by Michael Braverman | |
CHANGE LOG | |
v1.1 - added optimizations | |
- changed '>' operators to '>=' |
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
// Michael Braverman | |
// Lab Class | |
// 29 September 2015 | |
// Pins | |
const int ledPin = 11; | |
const int buttonPin = 12; | |
const int lightPin = A0; | |
const int potPin = A1; |
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
// Michael Braverman | |
// Lab Class | |
// 29 September 2015 | |
// Pins | |
const int ledPin = 11; | |
const int lightPin = A0; | |
// States and numbers of the sensors and buttons | |
int lightVar; |
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
/* | |
PoemMaschine v1.0 | |
Created 19 Feb 2015 | |
by Michael Braverman | |
Available Online: https://gist.github.com/mixania/813788550e25800a9159 | |
*/ | |
#include <EEPROM.h> | |
#include "SoftwareSerial.h" |
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
/* | |
Artificial Personality Box | |
Created 3 May 2015 | |
by Michael Braverman | |
*/ | |
int whiteLED = 10; | |
int redLED = 12; | |
int greenLED = 9; |
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
int led = 12; | |
int pot = 14; | |
int count; | |
int timeDelay; | |
int sensorValue = 0; // value read from the pot | |
int output = 0; // value output to the PWM (analog out) | |
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
// Emotion Cube | |
// created by Michael Braverman | |
// October 8th, 2015 | |
// Video: https://vimeo.com/144803164 | |
#include <Metro.h> | |
// Read the sensor only once per 100ms (10Hz) | |
Metro metroSensor = Metro(100); |
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
// Feeduino - Automatic Fish Feeder | |
// (c) Michael Braverman, November 2012. | |
// Video: https://youtu.be/1IwfZIiVXiA | |
#include <Servo.h> | |
Servo sServo; // Sweep servo (the one on the top) | |
Servo rServo; // Rotate servo (the one on the bottom) | |
int sDef = 70; // Sweep servo default possition |
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
// Hummin | |
// A broken cathode tube display coming back to life in a | |
// new digital form — a material manifestation of Beethoven’s “Ode to Joy”. | |
// Assembly: https://bfadtdeviceart.wordpress.com/2016/09/06/hummin/ | |
// Created by Michael Braverman | |
// September 3, 2016 | |
int cathodePin = 7; |
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 asyncio | |
import functools | |
import time | |
import requests | |
from tqdm import tqdm | |
def timer(func): | |
"""Timer Decorator for measuring execution performance |