Categories
PhysicalComputing

final project – surprise surprise surprise

what is up. charley and i broke through tonight. phwew!


light flight from ben yee on Vimeo.


light flight from ben yee on Vimeo.


light flight guts from ben yee on Vimeo.

and here’s the working code we implemented

/* code modified by Ben and Charley
from James and Christian’s Balloon Tree
*/

int photoSwitch = 2;
int motorPin0 = 3; // pin in hbridge to arduino for motor
int motorPin1 = 4; // pin in hbridge to arduino for motor

int switchPin1 = 7; // pin for switch 1 to arduino
int switchPin2 = 8; // pin for switch 2 to arduino

int state1 = 0; // initial state of switch 1 is open
int state2 = 0; // initial state of switch 2 is open
int motorPinSwap = 0; //variable used to switch direction of motor
int motorPin0value = HIGH; // variable for motor direction
int motorPin1value = LOW; // variable for motor direction

boolean previouslyPressed1 = false; //BOOLEAN STATEMENT USED TO UNDERSTAND THE PREVIOUS STATE OF SWITCH1
boolean previouslyPressed2 = false; //BOOLEAN STATEMENT USED TO UNDERSTAND THE PREVIOUS STATE OF SWITCH2

void setup() {
Serial.begin(9600);
pinMode(motorPin0, OUTPUT);
pinMode(motorPin1, OUTPUT);
//the switch is an input
pinMode(photoSwitch, INPUT);
pinMode(switchPin1, INPUT);
pinMode(switchPin2, INPUT);
}

void loop() {

if (digitalRead(photoSwitch) == HIGH) {
digitalWrite(motorPin0,motorPin0value); //starts motor in one direction using variable motorPin0value
digitalWrite(motorPin1,motorPin1value); //starts motor in one direction using variable motorPin1value

//
state1 = digitalRead(switchPin1); //READING THE STATE SWITCH1
Serial.print(motorPin0value,DEC); //PRINT LINE
Serial.println(motorPin1value,DEC); //PRINT LINE
//********************************* IF STATEMENT FOR SWITCH1 ******************************
if(state1 == 1 && previouslyPressed1 == false) //IF STATEMENT IN ORDER TO CHANGE THE MOTORS DIRECTION
{ //IF SWITCH1 IS TURNED ON, AND IT WAS NOT PREVIOUSLY PRESSED
motorPinSwap = motorPin0value; //THEN SWITCH THE PIN AND REVERSE THE DIRECTION OF THE MOTOR
motorPin0value = motorPin1value; //WHICH IN RETURN MEANS THE SWITCH AS BEEN PREVIOUSLY PRESSED
motorPin1value = motorPinSwap; //WHICH IS WHY IT IS NOW “TRUE”

previouslyPressed1 = true;
}
else if(state1 == 0) //ELSE IF THE SWITCH IS NOT TURNED ON THAN IT HAS ALSO NOT
previouslyPressed1 = false; //BEEN PREVIOUSLY PRESSED

//
state2 = digitalRead(switchPin2); //READING A SECOND STATE USING SWITCH2
Serial.print(motorPin0value,DEC);
Serial.println (motorPin1value,DEC);
//******************************************* IF STATEMENT FOR SWITCH2 **************************************
if(state2 == 1 && previouslyPressed2 == false) //IF STATEMENT IN ORDER TO CHANGE THE MOTORS DIRECTION
{
motorPinSwap = motorPin0value;
motorPin0value = motorPin1value;
motorPin1value = motorPinSwap;

previouslyPressed2 = true;
}
else if(state2 == 0)
previouslyPressed2 = false;

}
else {
digitalWrite(motorPin0, HIGH); // set leg 1 of the H-bridge high
digitalWrite(motorPin1, HIGH); // set leg 2 of the H-bridge
}

}

Categories
PhysicalComputing

final project – progression

charley and i made lots of moves yesterday.

here’s a bunch of images taken over the course of the progress dating in the future even. smile.










our solar-powered-motion-sensor-triggered-super -bright-led unit arrived today. we were happy to find that it includes an auto/off switch and toggles for darkness, sensitivity, and time. also today charley further strengethened the mounting of the motor and added an antenna for the photocell.

though we took a late start to the project, our rapid action and hourly contributions have this “birds the word / light flight / qua quaalh qua quaaal” project near completion.

Categories
PhysicalComputing

final project – and… we’re changing our method again

yay, this should work for real this time. (greg likes the look of our) bigger dc motor. we’re shooting for the windshieldwiper mechanism concept. if only this were my only project in life… it’s so nice outside. arg to time constraints. yay to may and june and more.

Categories
PhysicalComputing

final project – wind issue, change in direction

so we’re moving away from using the fan because we cannot get enough wind with our little radioshack motor. boo. so much for the h-bridge circuit and analog coding success and fan hacking i did yesterday. double boo.

howeeeever, charley found great material for the bird (no need to sew umbrellas together anymore), and we brainstormed more and more and have a new grand concept that should work like butter. no dc motor and fan, but instead a servo, pulleys, and levers. the bird will still be fairly free flowing, but more reliable under our control. we’ll be drilling holes and using the woodshop more too. fun stuff.

we also discussed ideas for presention:
lights off yes.
stillness then triggered by flapping motion.
video shoot on blue screen? sky video behind perhaps.
setup before or during break.

*new* video of the wings phase 2

Categories
PhysicalComputing

final project – working light sensor and motor

working the code out on our own was pretty darn satisfying today. h-bridge. analog. yes. we’ll need to tweak the speeds/values once we get the actual fan and bird setup, but this is functional. see the lil video here.


int sensorPin = 0; // analog input photocell
int potValue = 0; //value read from photocell
int motor1Pin = 3; // H-bridge leg 1
int motor2Pin = 4; // H-bridge leg 2
int speedPin = 9; // H-bridge enable pin

void setup() {
// set the PWM as an input:
pinMode(sensorPin, INPUT);
Serial.begin(9600);
// set other pins as outputs:
pinMode(motor1Pin, OUTPUT);
pinMode(motor2Pin, OUTPUT);
pinMode(speedPin, OUTPUT);
}

void loop() {
potValue = analogRead(sensorPin); // read the pot value
analogWrite(speedPin, potValue); // PWM the sensor value with the pot value
Serial.println(potValue); // print pot value back to the debugger pane

if (potValue >= 800) {
analogWrite(motor2Pin, potValue*4); // set leg 2 of the H-bridge “high”
}
else if (potValue >= 400 && potValue

Categories
PhysicalComputing

final project – more forward and such

charley’s plan is to work more with the bird prototype tonight. i worked on the code that would control our motor/fan by use of a photo cell. the motor i had was broken somehow since i left it, so it was difficult to test, but this is pretty much the same as the h-bridge lab, so i just recreated that guy, and im hoping our stuff will work when we get together tomorrow. the solar powered/motioned sensing/light shining component is to arrive on monday. come together project, c’mon.

Categories
PhysicalComputing

final project – light flight? the bird’s the word?

charley and i met sunday and made some good progress on our project. our plan is mapped. we ordered parts, and we tinkered with a prototype of a wing. see a little video

some email exchange action too:
part one:
one giant bird made of lightweight material with a wingspan in the 4 to 5 foot range. the wings would have a reflective quality. this bird would hang from the ceiling and otherwise be independent. underneath the bird would be a fan whose motor would be hooked to a power supply and an arduino. the arduino would have a light sensor attached.

part two:
a solar panel would collect energy and store it in a 6v battery that runs to a series of led lights and a motion detector (this comes as an assembled product). the led lights would glow at the underbelly of the bird where the reflective qualities would light (thinking there is some sort of spray that glows or reflects?) but also trigger the light sensor to ignite the motor of the fan. the fan would then blow air creating lift in the wings of the bird.

subject to small refinements and alterations. we’re ordering parts and researching materials currently, not in that order.

all good in the hood for now. we should be in nice shape for next week….hopefully.

Categories
PhysicalComputing

lab 8 (midi)

so tim stutts and i worked on this lab together. we had it all hooked up seemingly correct, but for some reason it didn’t work. thus we didn’t get to the creative application portion of the assignment. after class though, greg spotted out problem, which was just that the connector pins we soddered were “reversed.” good stuff.

class itself was super informative as well. we’re approaching the end now…


Categories
TacticalMedia

on point

Final project: my first experimentation with radio with the primary aim of extending our class content by sharing some quality musical tracks by conscious artists and exposing their value from a humble tactical media perspective (my perspective) and hopefully progressing others “tactical media” perspective to develop.

Layer a) the artist uses lyrics and the popularity of their music to spread a message and reach a large audience
Layer b) me bringing their work to another audience and having a good time

An intro went through like so…

Hey ITP community, this is Ben and this is the inaugural broadcast of On Point.

On Point, inspired by a course here called Tactical Media led by extraordinaire Marisa Olson, is an experimental radio show, looking to expand your minds to the revolutionary aspects and possibilities around ITP. Each episode will bring you a different artist (or two if you lucky) who has taken the medium, in our case music and made it you know, a little battlefield of rebellion. The artists I’m spotlighting are well known to probably just a small minority, but hopefully their names will sit on everyone’s tongue as favorite flavors from now on. I want to take you through their lyrics and explore some points to be held in our collective consciousness.

Not to blow your minds with too many songs at once, we’ll take it two at a time. In between takes it’s all about making connects. That’s why I’m here — to bring you into the medium and the message out to you. So for tonight, get ready for some Ozomatli and Talib Kweli. And remember, that extra a pinch of theory is gonna make it taste really gooood.

Now let me start you out with a first nibble on some Ozomatli – an up-tempo and optimistic group whose members actually met through their affiliation with the Peace and Justice Centre in LA and their first performance was at a picket line during a strike. They offer an infectious fusion of hip-hop, funk, reggae and Latin beats, with a few African and Middle Eastern-style rhythms thrown in, plus a fairly healthy dose of rock as well. The music acts as a conduit for the band’s explosive message.