The Imposter

Uncategorized

5:15

My favorite scene throughout this whole movie is the scene where the tourist makes the call to the police about the missing child. I love the lighting of this it seems like the classic dark and rainy scene a lot of movies do with a telephone booth.The lighting gives impression of loneliness using street light to cast heavy shadows during the dark night time. The lighting supported shows that this scene is scary and mysterious. The lighting in this shot enhances the story because it is mostly dark to make us feel a certain way about the missing boy in the phone booth.

24:41

I like the lighting of this scene also it looks like a dramatic. You have him running away from something. I believe the lighting helps you to understand he’s running away, my mother even came to that conclusion showing her a still photo. It’s dark and there are little to no colors. The only color there is dark itself and the person running is dark also, it give a “serious shit is going on” type vibe.

1:02:44

I like this shot because it shows working going on. You have the ceiling fan spinning slowly, sleeves rolled, and papers scattered all over the desk. Shades are closed and he even looks tired. It can be he’s either tired and stressed or found out or working on something secretive or important

Advertisements

post critique enviormental

Uncategorized

I think I did average on this project. My biggest issue with this shooting was LIGHTING. It was so bright outside and every 3 minutes I’m customizing my white balance. I think the only way I could have fixed that was waiting a different day. Another thing I should have done was scout the area before choosing it as a location. Last I went there was 8-9 years ago and it is nowhere as abandoned as it was then. Did not fully fit what I was going for and I feel the only way I could fit what I wanted to go for was shoot at night where all the nat sounds from the trees bring out a spooky feeling. I tried it. Me and my friend go lost in the middle of the woods since our trail were footprints of previous people walking in and out. I did not accurately replicate my treatment idea. I tried to have a two setting scene but because of construction and the storm that hit, I had to change the mood to “A child’s adventure” which I felt was successful.  Fun project nevertheless.

post critique

Uncategorized

I think I did pretty good with my environmental project.  One thing I lacked which was already pointed out to me during presentation I would say was showing the big feature of the stove top. My trouble was the storyboard. Drawing out the scenes then having to make it match the drawings after was hard, but it was strangely fun. My biggest downfall selling the product. In a consumer’s perspective I see something fancy, but what does it do? I think my shot were pretty nice, I felt it was necessary to have close and personal shots

Nightrider to Line Robot

HackingandBuilding

20141211_114322

For my project, I decided to design a 4 wheeler that will ride in the night. Nightrider. Technically, it’ll just move when there is only light hitting the light sensor. Sounds like a simple project but really was not. I bought a maker kit at radioshack that contained wheels, motors, and a motor shield. I first soldered wire to the motors. Each motor consist of two wires. From there, I connect the wires into the circuit that was in the kit. The circuit board has inputs for these wires under M1, M2, M3, and M4 which stands for motors. I connected all four of the wiring to the arduino and uploaded a simple code that’ll make the code move under the board’s library. “move_forward”. uploaded that code, and was part successful. the front two motors would spin, but the back to motors stayed the same.

I checked the wiring and even switched it up and had no luck with progress. This was extremely difficult and irritating because sources online had info on every other board and library EXCEPT for the one I bought. So I browsed through the supporting files, and found a .notepad file. In this file had every keyword that will help control the board. The other stressful part of this project was these keywords came with no explanation. This is what was given:

MakeItRobotics KEYWORD1
dc_write KEYWORD2
m1_action KEYWORD2
m2_action KEYWORD2
go_forward KEYWORD2
go_backward KEYWORD2
turn_left KEYWORD2
turn_right KEYWORD2
turn_front_left KEYWORD2
turn_front_right KEYWORD2
move_stop KEYWORD2
m3_action KEYWORD2
m4_action KEYWORD2
bulldozer_head_up KEYWORD2
bulldozer_head_down KEYWORD2
drilling_head_colckwise KEYWORD2
drilling_head_countercolckwise KEYWORD2
surveillance_head_clockwise KEYWORD2
surveillance_head_counterclockwise KEYWORD2
boxer_left_hand_up KEYWORD2
boxer_left_hand_down KEYWORD2
boxer_right_hand_up KEYWORD2
boxer_right_hand_down KEYWORD2
street_sweeper_inward KEYWORD2
street_sweeper_outward KEYWORD2
catapult_head_clockwise KEYWORD2
catapult_head_counterclockwise KEYWORD2
catapult_head_pull KEYWORD2
catapult_head_throw KEYWORD2
clampingarm_up KEYWORD2
clampingarm_down KEYWORD2
clampingarm_clamp KEYWORD2
clampingarm_release KEYWORD2
spotlight_head_clockwise KEYWORD2
spotlight_head_counterclockwise KEYWORD2
spotlight_head_up KEYWORD2
spotlight_head_down KEYWORD2
spotlight_setup KEYWORD2
spotlight_on KEYWORD2
spotlight_off KEYWORD2
line_following_setup KEYWORD2
trigger_optical1 KEYWORD2
trigger_optical2 KEYWORD2
read_optical KEYWORD2
line_following_turn_left KEYWORD2
line_following_turn_right KEYWORD2

walking_robot_setup KEYWORD2
walking_robot_right_leg_forward KEYWORD2
walking_robot_left_leg_forward KEYWORD2
walking_robot_right_leg_backward KEYWORD2
walking_robot_left_leg_backward KEYWORD2
all_stop KEYWORD2

remote_value_read KEYWORD2
remote_scan KEYWORD2
remote_setup KEYWORD2

sensor_kit_optical_setup KEYWORD2
trigger_optical3 KEYWORD2
read_optical3 KEYWORD2

sensor_kit_mic_setup KEYWORD2
read_mic KEYWORD2

sensor_kit_infrared_setup KEYWORD2
read_infrared KEYWORD2

what helped me narrow down all those keywords was knowing I would not need most of them for they are codes for the other MAKE kits. I just want to make a 4 wheeler so assumed my codes needed from the library  would be the go_forward code and tweak that with an LDR code to put together. Well, it was not that simple. For some reason, the go_forward code controls motor 1 and 2 and not 3 and 4. Not just that, uploaded a demo code “drill” and this happened:

So let us look at why this happens by looking at the code:

#include <MakeItRobotics.h> //include library
MakeItRobotics drilling; //declare object
void setup()
{
Serial.begin(10420); //tell the Arduino to communicate with Make: it PCB
delay(500); // delay 500ms
drilling.all_stop(); // all motors stop
}
// **************************************************************************
// * Main Loop
// **************************************************************************
void loop()
{
drilling.go_forward(80); //forward
delay(1000); //delay 1000ms
drilling.go_backward(80); //backward
delay(1000); //delay 1000ms
drilling.turn_left(80); //turn left
delay(1000); //delay 1000ms
drilling.turn_right(80); //turn right
delay(1000); //delay 1000ms
drilling.all_stop(); //all motors stop
drilling.drilling_head_clockwise(80); //rotate drill head clockwise
delay(1000); //delay 1000ms
drilling.drilling_head_counterclockwise(80); //rotate drill head counterclockwise
delay(1000); //delay 1000ms
drilling.all_stop(); //all motors stop
delay(1000); //delay 1000ms
} //actions repeat continuously until you turn off battery compartments

So what is happening here is the drill moves forward, then back. the next set out coding says “drilling_head_clockwise(80)” which means the supposed drill component moves clockwise. Looking at my nightrider, that is exactly what M3 is doing. I go back to the keywords text and find a set of codes I thought would be useful. m4_action m3_action m2_action m1_action. I assume they meant what m1 to 4 does since they did not specify what these keywords meant. I tried google and the MAKE blog and only found other people running to the same problem as I. No solutions.

D’OH

I later found out that the reason why that board was not making the M4 and M3 motors spin is because the board I purchased was designed  for the robots the kit wanted me to build, which was a tow truck, boxer, surveillance camera, and others. If I applied the specific codes, then I would get a response from both M3 and M4. I could have tweaked some of the coding in the libraries folder , but that would of became too much of an hassle and with the little time I had left, I decided to build a line following robot with the sensors given to me in the kit.

line following robot

line following robot

so the tools required for this project are:

  • circuit board: The board is a dual full-bridge driver designed to drive relays, solenoids, DC and stepping motors. It lets you drive two DC motors with your Arduino board, controlling the speed and direction of each one independently.
  • 2 optical sensors
  • Arduino UNO
  • 2 wheels
  • 2 motors
  • Caster wheel
  • metal parts
  • jump wires
  • sensor wires

What does it do and how it works?

The concept of this robot is for it to follow the black. Except mine does not exactly follow the black line, it avoids it. Here is a demonstration video

Technically it’s not really following but avoiding.

20141216_092950

These optical sensors that I got from radioshack is the brains of this operation. The sensor is able to tell the difference between black and white. The robot uses light that is invisible to us called infrared light(IR). Light travels in waves. If the waves are short, the light appears on the violet end of the rainbow. If the waves are longer, the light appears at the red end of the rainbow. In the line robot I built, the optical  sensor has both an IR transmitter and an IR receiver. It uses the transmitter as a small flashlight and lights up the floor. If it’s pointed at a white area of the floor, it sees the IR reflect back. If it sees the black line, it doesn’t see the reflection. I used a black outlined circle on  a large piece of white paper and set the robot on that line. The robot has two sensors, one on each side of the line. As it drives, if one of the sensors sees the black line, it knows it has to turn, and then turns to put the sensor back over the white part of the paper.

Final

Boo the ghost

Uncategorized

For my final project I decided to do make boo the ghost from mario.  The idea of the project is for boo to light up in the dark and off when the light is on. Why? because boo in Mario chases you when you do not see him, but once you can see him he stops and covers his face. Nothing fancy, it is an Arduino project, so all I need is some resistors, white light LEDs, wires, and a breadboard.

What I want to add to this project is a noise with the lights, like a spooky noise to go with the whole thing

Color changing cramp

Uncategorized

cramp…lamp… get it? it was a pain?… like a cramp (I hang around dawn too much). So the assignment was to put together project number 4 in the Arduino project book which is “Color mixing lamp”.

Ingredients

  • LED
  • 220 OHM Resistors
  • 10 Kilohm Resistors
  • Photoresistors
  • Gel
  • Breadboard
  • Arduino Uno
  • Jump wires

Instructions

  • First you connect your jump wires to the Arduino and breadboard so you have ground and power on both sides.
  • Next place three photoresistors on the breadboard. One side goes into power, the other ground. On the other side attach the resistor to ground
  • Next place the colored gels over the photoresistors. The red connected to A0, the green over A1, and blue over A2. This allows you to light wavelengths of each specific color. So the blue filter passes only blue, red passes through red, and green through green. This allows you to detect the relative color levels in the light that hits your sensor.

Next we have to use the LED with 4 legs, also known as the RGB LED. It is called this because it has separate red, green, and blue elements inside. Connect this in the pins 12-15.

This is how it should look:

20141104_111232

The code:

const int greenLEDPin = 9; // LED connected to digital pin 9
const int redLEDPin = 10; // LED connected to digital pin 10
const int blueLEDPin = 11; // LED connected to digital pin 11

const int redSensorPin = A0; // pin with the photoresistor with the red gel
const int greenSensorPin = A1; // pin with the photoresistor with the green gel
const int blueSensorPin = A2; // pin with the photoresistor with the blue gel

int redValue = 0; // value to write to the red LED
int greenValue = 0; // value to write to the green LED
int blueValue = 0; // value to write to the blue LED

int redSensorValue = 0; // variable to hold the value from the red sensor
int greenSensorValue = 0; // variable to hold the value from the green sensor
int blueSensorValue = 0; // variable to hold the value from the blue sensor

void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);

// set the digital pins as outputs
pinMode(greenLEDPin,OUTPUT);
pinMode(redLEDPin,OUTPUT);
pinMode(blueLEDPin,OUTPUT);
}

void loop() {
// Read the sensors first:

// read the value from the red-filtered photoresistor:
redSensorValue = analogRead(redSensorPin);
// give the ADC a moment to settle
delay(5);
// read the value from the green-filtered photoresistor:
greenSensorValue = analogRead(greenSensorPin);
// give the ADC a moment to settle
delay(5);
// read the value from the blue-filtered photoresistor:
blueSensorValue = analogRead(blueSensorPin);

// print out the values to the serial monitor
Serial.print(“raw sensor Values \t red: “);
Serial.print(redSensorValue);
Serial.print(“\t green: “);
Serial.print(greenSensorValue);
Serial.print(“\t Blue: “);
Serial.println(blueSensorValue);

/*
In order to use the values from the sensor for the LED,
you need to do some math. The ADC provides a 10-bit number,
but analogWrite() uses 8 bits. You’ll want to divide your
sensor readings by 4 to keep them in range of the output.
*/
redValue = redSensorValue/4;
greenValue = greenSensorValue/4;
blueValue = blueSensorValue/4;

// print out the mapped values
Serial.print(“Mapped sensor Values \t red: “);
Serial.print(redValue);
Serial.print(“\t green: “);
Serial.print(greenValue);
Serial.print(“\t Blue: “);
Serial.println(blueValue);

/*
Now that you have a usable value, it’s time to PWM the LED.
*/
analogWrite(redLEDPin, redValue);
analogWrite(greenLEDPin, greenValue);
analogWrite(blueLEDPin, blueValue);
}

after uploading you should get this:

Sensor stroll

HackingandBuilding

Didn’t know what I wanted to choose for the sensor walk until I had to use the bathroom. Washed my hands, and since I like to go green, I used the dryer. But this was not no ordinary dryer. This dryer sensed my hands and activated, which later made my hands nice and warm.

20141028_143229

 

The sensor is that rectangular thing that turns on when I put my hand under it and turns off when I remove my hand. The heat comes from those speaker looking things as shown in the video below

To find out what kind of sensor this was using, I had to first know the different kinds of sensors, yet alone what exactly was a sensor. So a sensor is a device that detects or measures a physical property and responds to it.

This lead me to believe that the hand dryer uses Infrared sensors, because it is in close proximity.

Arduino terms

HackingandBuilding

1.) What is Arduino? A microcomputer that can sense and control the psychical world.

2.) What is electricity? Current? Voltage? Resistance? Electricity is a form of energy caused by charged particles. Current is the flow of electric charge around the circuit. Voltage is the difference in charge between two points in an electrical field. Resistance is is the repulsion of a current within a circuit.

3.) What is a circuit? How does electricity flow in a circuit? A circuit is a path where electrons from a voltage or current source flows.

4) What is Ohm’s law? OHM’s law is made from 3 mathematical equation that shows the relationship between resistance, current, and voltage. When might you use it? It is used to find the voltage in a circuit. How would you use it? Using the OHM’s calculator.

5.) What is a series circuit? It is a circuit where resistors can be connected in many ways.  arranged in a chain form so that the current has only one path for the charges  to take. also has more than one resistor. Parallel circuit? A parallel circuit has multiple current paths for energy to flow through.

6.) What is the difference between digital and analog signal/voltage? Analog is a signal that represents physical measurement.  Digital signals are discrete physical signals that represents values

7.) What is code? Programmed instruction or system of words, letters or symbols for the purpose of secrecy (like a password)

8.) What is a variable?  Information that can be changed. How is it used in Arduino? Same way. Changing variable name Pin=14

9.) What is a function?Code that executes a specific task repeatedly. How is it used in Arduino? have the advantage of not having to repeatedly write down the code.

10.) What two functions are required in Arduino code? What do they do? Void setup and Void Loop. Void setup is in the beginning of a sketch. It starts up variables. Void Loop is consecutive and controls the Arduino

11.) Write one function that sets the pins on an Arduino.

int ledPin = 12;                 // LED connected to digital pin 12

void setup()

{

pinMode(ledPin, OUTPUT);      // sets the digital pin as output

}

void loop()

{

digitalWrite(ledPin, HIGH);   // sets the LED on

delay(1000);                  // waits for a second

digitalWrite(ledPin, LOW);    // sets the LED off

delay(1000);                  // waits for a second

}

12.) How do you end a statement in Arduino? Using curly braces }

13.) What are curly braces/brackets used for in Arduino? curly braces/brackets are used to enclose statements

14.) Describe one digital function and one analog function. Digital function would be PinMode which makes something behave as an in or output

15.) What are conditional statements in Arduino? Statements that start with “If”. Can help evaluate if something is true or false. If blanky bank blank then do this.

16.) What is pulse width modulation (PWM)? How does it work? When might you use it in Arduino?  PWM is used for getting analog results with digital means.

17.) What is a multimeter? How do you use one? A multimeter is an electronic measuring instrument that combines several measurement functions in one unit. Has the ability to measure resistance, current, and voltage.

18.) How do you get code from your Arduino Sketch to an Arduino? What four things should you check for/do? Using “BareMinimum”.  The function is called when a sketch starts. After that the loop function runs:

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

19.) What is the serial monitor for? How do you invoke it in your code? On the Arduino IDE?

20.) What is baud rate? Baud rate sets the data rate in bits per second

 

Monkey Business

Uncategorized

Sam, Tyrone, and I decided to put together for the midterm a motion sensing monkey. The idea of this project is for the monkey to clap and make noises every time someone or something goes by the sensor.

Items needed:

  • Breadboard
  • Jump wires
  • Curious George
  • Arduino Uno
  • Relay
  • PIR Proximity Sensor

First, we had to modify the monkey.  To get into your monkey’s power supply, we connected two wires across the battery terminals in the monkey. We then soldered the wires into the little metal things that press against the batteries. We knew it was a success when we touched both wires together and the monkey activated. The monkey starts banging his instruments and ee oo ah-ing when the wires touch.

Next we had to build the circuit. Here is an overview look of the circuit.

 

20141023_122450

 

 

This is the PIR Proximity Sensor. When you put your hand in front of the sensor, the monkey is suppose to clap. The three connections on the sensor are VCC, OUT, and GND. I connected the VCC wire under the 5V pin on the Arduino, The GND (ground) under the GND pin, and the OUT under pin 13. I then connected the ground jumper (orange) under G29 and the red jumper under C29. The white rectangle in the middle is the relay sensor. The relay on the breadboard replaces the switch on the monkey. We toke off the switch on the monkey in order to connect wires to it (24 and 26).

20141023_122243

Next was to program the Arduino.

Here is the code:

/*
Monkey Couch Guardian
Turns on cymbal-banging toy monkey when PIR motion sensor detects motion.
*/

// pin 13 activates the relay which switches on monkey
const int monkeySwitch = 13;
// pin 12 is input for PIR sensor
const int pirInput = 12;

void setup() {
// initialize monkeySwitch as an output.
pinMode(monkeySwitch, OUTPUT);
// initialize pirInput 12 as an input.
pinMode(pirInput, INPUT);
// waits for 15 seconds to allow PIR sensor to settle down
delay(15000);
}

void loop() {
//read PIR value
int pirState = digitalRead(pirInput);
//check to see if PIR senses motion
if (pirState == HIGH)
{
//turn on monkey
digitalWrite(monkeySwitch, HIGH);
//monkey runs for 5 seconds
delay(5000);
//turn off monkey for 15 seconds so it doesn’t activite itself
digitalWrite(monkeySwitch, LOW);
delay(15000);
}
}

After verifying and uploading the code, the monkey does not respond to sensor. Instead it starts to make noises when the Relay is on.

 

Arduino Fun

Uncategorized

So at first, this programming stuff was highly confusing. Did not understand nothing shown on the software after copy pasting that sample code. Like professor said, reading is fundamental; so I did a lot of reading and browsing through the code and figured out what each (or at least some) code meant.
So first I decreased the delay time on the lights from 500 to 50 to make it go incredibly fast. For a Christmas-like theme, I wanted the lights to be green and red. I learned that If I wanted colors to show I had to code them “HIGH” and those I wanted off I coded “LOW”. So I simple coded red low and the other two colors blue and green high, then coded green low, then red. So the color flash patterns were red green red with the delay time on 50.

Here is my edit of the sample:

int button = 7;
int buzzer = 2;
int light = A0;
int red = 3;
int blue = 6;
int green = 5;
void setup()
{
Serial.begin(9600);

pinMode(buzzer, OUTPUT);
pinMode(red, OUTPUT);
pinMode(green, OUTPUT);
pinMode(blue, OUTPUT);

pinMode(button, INPUT);
Serial.println(“Where does Susie sells seashells?”);
}

void loop()
{

if(Serial.available() > 0)
{
if(Serial.read() == 32)
Serial.println(” Susie sells seashells, down by the seashore!”);
}

while(digitalRead(button) == LOW)
{
digitalWrite(buzzer, HIGH);
delayMicroseconds(400);
digitalWrite(buzzer, LOW);
delayMicroseconds(400);
}
int temp = analogRead(light);
if(temp > 1000)
{
digitalWrite(red, HIGH);
digitalWrite(green, HIGH);
digitalWrite(blue, HIGH);
}
else
{
digitalWrite(red, LOW);
digitalWrite(green, HIGH);
digitalWrite(blue, HIGH);
delay(50);
digitalWrite(red, HIGH);
digitalWrite(green, LOW);
digitalWrite(blue, HIGH);
delay(50);
digitalWrite(red, HIGH);
digitalWrite(green, LOW);
digitalWrite(blue, HIGH);
delay(50);
}
}