Skip to content

Instantly share code, notes, and snippets.

@marcdjulien
marcdjulien / solemate.ino
Last active August 29, 2015 14:20
SoleMate - Arudio Code
const uint8_t BUF_LEN = 6;
/* Pin values */
int d0 = 0;
int d1 = 0;
int d2 = 0;
int d3 = 0;
int d4 = 0;
int d5 = 0;
unsigned long time = 0;
@marcdjulien
marcdjulien / Main
Created December 10, 2014 22:23
Computer vision smapler.
from Viewer import Viewer
from VideoAnalyzer import VideoAnalyzer
from Constants import *
import time, pygame
import os
os.environ['SDL_VIDEO_CENTERED'] = '1' # Set the window in the center
vw = Viewer()
va = VideoAnalyzer(vw)
@marcdjulien
marcdjulien / CarLogic.py
Created November 19, 2014 01:50
Raphael Turtle Graphics Robot - Uses WiringPi and OpenCV
"""
Marc-Daniel Julien
Akiva Krauthamer
Intro to Physical Compting
Carnegie Mellon University
CarLogic implements all of the behavior of the robot via a
Finite State Machine
"""
from VideoThread import VideoThread
@marcdjulien
marcdjulien / Donatello.py
Created November 4, 2014 06:21
Python script to control the Donatello Robot. Uses WiringPi and OpenCV.
# Marc-Daniel Julien
# Akiva Krauthamer
# Intro to Physical Compting
# Carnegie Mellon University
import cv2
import time, sys
import numpy as np
from scipy import misc
import wiringpi2 as wpi