Skip to content

Instantly share code, notes, and snippets.

@nataliefreed
nataliefreed / test.pde
Last active December 19, 2015 10:19
this is a test
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
@nataliefreed
nataliefreed / GettingStartedCapturePS3Eye.pde
Last active December 24, 2015 10:49
Small change to GettingStartedCapture, a Processing example from the Video library, to switch camera to external camera (a PS3 Eye). Intended as a project starting point for students of Building and Programming Intelligent Machines at LWHS, Fall 2013.
/**
*
* Getting Started with Capture.
*
* Reading and displaying an image from an attached Capture device.
*
* Edit 10-1-13 by nataliefreed: uses external camera (PS3 Eye)
*
*/
/*
Natalie Freed, 10-3-2013
Example of multiple counters increasing at different rates, for LWHS Building and Programming Intelligent Machines Fall 2013.
To use, open Serial Monitor to view output.
*/
@nataliefreed
nataliefreed / SynchronizingCounterAndModulo.ino
Created October 3, 2013 22:09
Example of using a single counter and the modulo operator (%) to time multiple events.
/*
Natalie Freed, 10-3-2013
Example of using a single counter and the modulo operator (%) to time multiple events.
For LWHS Building and Programming Intelligent Machines Fall 2013.
To use, open Serial Monitor to view output.
@nataliefreed
nataliefreed / SynchronizingMillis.ino
Created October 3, 2013 22:11
Example of using millis() function to time multiple events happening at different rates.
/*
Natalie Freed, 10-3-2013
Example of using millis() function to time multiple events happening at different rates.
For LWHS Building and Programming Intelligent Machines Fall 2013.
To use, open Serial Monitor to view output.
@nataliefreed
nataliefreed / MMA7361.ino
Last active December 30, 2015 10:28
Arduino MMA7361 accelerometer (Sparkfun breakout https://www.sparkfun.com/products/9652)Implementation of the math from this excellent guide: http://www.starlino.com/imu_guide.html
/*
//
// Code for MMA7361 accelerometer (Sparkfun breakout https://www.sparkfun.com/products/9652)
// Natalie Freed
// 12-5-2013
//
// Implementation of the math from this excellent guide: http://www.starlino.com/imu_guide.html
//
//
*/
@nataliefreed
nataliefreed / turtle.pde
Last active June 6, 2020 10:39
Turtle Graphics in Processing: This program shows another way to think about moving through Processing's coordinate system, inspired by Logo. Instead of placing points on a grid, you can imagine yourself as being somewhere on the grid, facing a direction. You can move forward or turn. The drawn line follows behind you.
// Turtle Graphics in Processing
// Natalie Freed, February 2013
// This program shows another way to think about moving
// through Processing's coordinate system. Instead of placing
// points on a grid, you can imagine yourself as being somewhere
// on the grid, facing a direction. You can move forward or turn.
// The drawn line follows behind you.
PVector loc; //current location
float orientation; //current orientation
@nataliefreed
nataliefreed / TinkerableArray.pde
Last active August 29, 2015 13:56 — forked from anonymous/TinkerableArray.pde
Sketch for experimenting with image arrays in Processing.
int rows = 10;
int columns = 12;
int[] circles = new int[rows*columns];
int index;
int spacing = 50;
int circleSize = 6;
void setup()
{
@nataliefreed
nataliefreed / speedcontrol.ino
Last active August 29, 2015 13:56
Robotic arm speed control
/*
Robotic arm speed control demo
Natalie Freed, Jan 2014
*/
#include <Servo.h>
Servo base, shoulder, elbow, wrist, gripper;
@nataliefreed
nataliefreed / DraggableExample.pde
Last active August 29, 2015 13:57
Draggable objects and handler example for Processing 2.0 Natalie Freed, March 2014
/*
Draggable objects and handler example for Processing 2.0
Natalie Freed, March 2014
*/
DraggableHandler circles;
void setup()
{
size(500, 500);