Big screens 2014

Big screens 2014 was an amazing cool moving arts show hosted by college students just like us. It took place in the city, which was a 2 hour show. I enjoyed it a lot and saw what your imagination can do. here are some pictures .

this picture looks like a huge graphic design sketch.

bigscreen1

  • bigsreens2
  • bigsreens3
  • bigscreens4
  • bigscreens5
  • bigscreens6

 

Advertisements

Final Project. Monkey has 2nd Chance!!!!

space monkey

What is the project?  My Final is the combination of the Monkey clapper and the LED light.

Who are the project creators? I created this project with the assistance of some classmates and the Professor.

What inspired your project? The American monkey was inspired by the Monkey couch guardian. it simply reacts to motion sensor and goes off as warning sign. furthermore the American Monkey is very cheerful, and is truly with the American spirit. It claps and shake while the buzzer plays the American anthem and the led lights follow along.

Who is the intended user or audience? Both parties are intended to participate, though the project itself is delicate.

What prompts or guides a user to interact with the project?  The Audience  presses the button which triggers the project and its a command for the monkey and lights to start working.

Build

  •  What tools, components and materials are required? The bill of materials for the project consists of:
  • 1 monkey
  • 1 Arduino
  • 1 breadboard
  • 3 led lights- red, white, blue
  • multi color wires- red, yellow, black, orange, green, white, blue
  • push botton
  • piezo buzzer
  • 4 10hlm resistors

Did you use an Arduino? Yes an Arduino was used to transfer current to the board and also for the code.

  • What is your input, output? inut- Attach all wires and components in the right order, connect it to bread boar and arduino, enter code into arduino and push the button
  • Output- American anthem starts to play, monkey claps and led lights go off.

What is the expected build time? Expected “build Time” = >3 hrs

Is the project standalone, modular or dependent? My project is dependent on current, and code also wires that attaches it

Were you able to troubleshoot or debug errors?  Yes, debugging wires that were in the wrong place, soldering components together, and tweaking the code to clear some errors.

Programming

Did you use the Arduino IDE and programming language?  The project used the arduino and i used it to compile the code needed to run the project

What does the code do? the code will tell the piezo buzzer to play various tunes, the led to light up, monkey to clap and continue. else it stops when the button is pushed.

Have you used sufficiently, clearly and correctly used comments? yes the comments explain the function.

Were you able to troubleshoot or debug errors? yes.

Uniqueness

Did you make the project your own? The Monkey now includes a shaded vizer to cover its eyes, a light up hat with the american clors on it and an American flag.

How is your project unique? Code? Design? Build? Use/Interactions?

 

Functionality

 

Does your project work?

Do materials and components used make sense?

Is the project modular or fixed?

 

Interaction

 

Who will use the project?

How will users know how to interact with your project?

Did the actual interaction meet your expectations?

How would you adjust your project based upon observed interactions?

 

Documentation

 

Is your project documented on Maker Commons?

Is there a link to your project in the comments section of the

related assignment post?

Is there a clear description of your project?

Did you include images, schematics, video, text, links, tags,

categories and other tools that help readers follow your project experience?

Does the title for your documentation make sense?

Is your post appropriately tagged and categorized?

Is your documentation post on time?

Did you give credit where you borrowed, were assisted or

were inspired by another?

Is your documentation easy to read (did you use proper syntax,

grammar, etc.)?

Did you include a bill of materials? List of vendors?

Did you explain the difficulty level of the project and sources

to troubleshoot?

Did you explain who the project is intended for?

 

Timeliness and Communication

 

Did you meet milestones and due dates?

Did you communicate with your instructors consistently and clearly?

Did you raise your hand early?

Did you attend each class session and office hours?

IMG_3375

American Monkey- American monkey is one of the friendly neighborhood monkeys. Its unique in a way that represents the American culture, which is full of joy, happiness, and excitement. The American monkey cheers and claps when the American anthem goes off.

step 1- connect the LED’s. red  to pins 10E (longer side) and 12E (shorter side). white to pins 16E (longer side) and 18E (shorter side). blue to pins 22E (longer side) and 24E (shorter side).

bread1 copy

  • step 2- connect the piezo to pins J2 and J5

img_0533

  • img_0531
  • step 3-connected all yellow jumper wires…
    • Yellow Wire A: connected to pin 10A (breadboard) and pin 5
    • Yellow Wire B: connected to pin 16A (breadboard) and pin 4
    • Yellow Wire C: connected to pin 22A (breadboard) and pin 3
    • Yellow WIre D: connected to pin 30D (breadboard) and pin 2

    Finally   red and black jumper wires into the breadboard and arduino.

  • img_0534-1
  • step 3- Connect 2 green jumper wires to the breadboard, first is connected to pin 12 on arduino and pin 5F on the breadboard. other wire is connected to pin 2F and the ground connection on the breadboard (-).
  •      Now work with the monkey.
  • steps as follows:
  • Use the soldering pen to insert a hole in the monkey’s head, then solder a wire into it. after quickly attach a pair of shade to it to create the look of having  a screen vizer.
  • monk1
  • drill a hole into shades and attach wire into it.
  • monk2
  • http://www.youtube.com/watch?v=xVN6vXdbvPY   – the proof of everything put together
  • IMG_3379   The final process attaching the monkey to buzzer
  • IMG_3378

The simple code that got the project working effectively.

  • Screen Shot 2014-12-11 at 3.25.56 PM
  • Screen Shot 2014-12-11 at 3.35.27 PM
  • Screen Shot 2014-12-11 at 3.35.14 PM
  • Screen Shot 2014-12-11 at 3.42.22 PM
  • Screen Shot 2014-12-11 at 3.38.27 PM

 

  • IMG_3223 This was the initial idea intended. As you can see, there are many wires attached to the bread board and back to the lcd. its looks very messy and a bit confusing to work with.  Its very easy for something to go wrong in a tangled situation like this.
  • IMG_3227 A glimpse of the wire attachment which is to be connected to the bread board. furthermore, with wires attached this way, there are open spaces which interferes with the flow of current to either the bread board or the lcd.
  • IMG_3228 Final outlook of the prototype . connections to the board. If you find yourself in this situation, and have a need to tweak a part or correct something, you might be very frustrated when a wire comes out and you are unable to identify with socket it enters.
  • Another solution I encountered from “learn.adafruit.com” was to try another wiring process. so I had to take out my old wire connected to the breadboard and re-wire it a different way.
  • IMG_3269

The third attempt of re-wiring the whole project over. TOOK it OUT. IMG_3270

 

Project 4.1- color mixing lamp

The AIM of this project is to use a TRI-color led and three photoresistors, to create a lamp that smoothly changes color depending on external lighting conditions.  here are steps is to begin. First and foremost make sure you have your arduino kit with all the complete parts included in it. secondly read the book on the particular project, and look for outside sources for some help; those are usually very helpful. Third take the parts out the box and start the process of documenting . here’s an example.

  • Ingredients need for this project.
  • 1 three legged LED
  • ” 220 OHM resistor
  • ” 10 KILOHM resistor
  • ” photoresistor
  • ” breadboard
  • ” arduino board
  • ” jumper wires
  • ” GEL
  • Now all the ingredients are identified, we can move on to the next step.

a) First wire up the breadboard so that you power and ground on both sides.

  • b) now input the three photoresistors on th breadboard so they cross the center from one another, now attach the one end of the photoresistor to the power. on the other side, the 10-kilohm resistor goes to the ground. together the resistor and photresistor forms a voltage divider.
  • c) take the 3 colored gels and place them on top of each photresistor.
  • d) the red gels goes is connected to pin A0, mr green jumps to A1, while mr blue is connected to A2.  the purpose of the filters are to only let in specific wavelength through the sensors its covering. it has very strict orders which means red filter only allows red light, green filter = green, and blue filter = blue light.
  • e) the Led with 4 legs is also cathrode RGB led . its unique features has a separate red, green and blue element inside and one ground.
  • f) by creating a difference btw the voltage and cathode , you’ll have a reaction that causes the led to fade  between its 3 colors.

Here’s what a simple code for this project looks like.

  • 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 11const 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 gelint 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 LEDint 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 sensorvoid 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);
    }

  • IMG_3112

IMG_3118

  • IMG_3104

IMG_3105

IMG_3106

IMG_3107

IMG_3111

IMG_3119

IMG_3120

 

Project 5.1- Model Cue

IMG_3123

The AIM of this project is to use a servo motor to make a mechanical gauge to point out the sort of Mood I am in on this particular day.  this is how you begin. First and foremost make sure you have your arduino kit with all the complete parts included in it. secondly read the book on the particular project, and look for outside sources for some help; those are usually very helpful. Third take the parts out the box and start the process of documenting . here’s an example.

  • Ingredients need for this project.
  • 1 Potentiometer- a type of volt divider.
  • ” servo motor
  • ” motor arm
  • ” 100uf capacitor
  • ” breadboard
  • ” arduino board
  • ” jumper wires
  • ” male head pins
  • Now all the ingredients are identified, we can move on to the next step.

Now the process of putting it all together is a bit challenging.

  • a) first start by attaching 5v and ground to one side of your breadboard from the arduino
  • b) place a Potentiometer on the breadboard, and connect one side to the 5v, and the other to the ground. as you turn the knob, you are changing the ratio of the voltage btw the middle pin and the power. furthermore, connect the middle pin to analog pin 0 which will control the position of the servo motor.
  • c) coming out of the servo motor are 3 color coated wires. red is power, black is ground, and white is the control line that will receive information from the arduino.
  • d) go ahead and attach the three male head into the female ends of the servo wires.
  • e) time to place the pins in the right place. take the red wire and connect it to 5v on the arduino board, then black wires to the ground, and finally white wires to pin 9.
  • f) the servo should start moving. if not( just quit and throw it in the garbage). LOL please dont do that, it wont solve anything but just make you look crazy. instead go back and see which errors you made.
  • By placing the 100uf capacitor across power and ground next to the male heads, it gives you the chance to smooth out any voltage changes that might occur.
  • g) the red gels goes is connected to pin A0, mr green jumps to A1, while mr blue is connected to A2.  the purpose of the filters are to only let in specific wavelength through the sensors its covering. it has very strict orders which means red filter only allows red light, green filter = green, and blue filter = blue light.
  • a Look at what the code looks like.
  • Servo myServo;  // create a servo objectint const potPin = A0; // analog pin used to connect the potentiometer
    int potVal;  // variable to read the value from the analog pin
    int angle;   // variable to hold the angle for the servo motorvoid setup() {
    myServo.attach(9); // attaches the servo on pin 9 to the servo object
    Serial.begin(9600); // open a serial connection to your computer
    }void loop() {
    potVal = analogRead(potPin); // read the value of the potentiometer
    // print out the value to the serial monitor
    Serial.print(“potVal: “);
    Serial.print(potVal);// scale the numbers from the pot
    angle = map(potVal, 0, 1023, 0, 179);// print out the angle for the servo motor
    Serial.print(“, angle: “);
    Serial.println(angle);

    // set the servo position
    myServo.write(angle);

    // wait for the servo to get there
    delay(15);
    }

  • IMG_3114

IMG_3115

IMG_3116

IMG_3117

IMG_3121

IMG_3122

IMG_3124

IMG_3125

Project that came by surprise!!!

The project is to take a walk around campus and identify and describe various sensors and actuators I encounter.

Part ONE

  • Actuator- A type of component that changes electrical energy into motion.
  • Sensors- A component that measures one form of energy (light,heat,or mechanical) and converts it into electrical energy, which the arduino understands. According to the glossary in the arduino project book.
  • some sensors and actuators found in my Arduino kit. here’s a picture
  • sensors_actuators__zps90b62ef6
  • With sensors, it takes the  measurements of a physical variable like light, temperature, humidity, sound, movement, position,  and many more.
  • and actuators and other types of output devices, can display things, make sound or light, vibrate, rotate, and translate, among others.
  • EXAMPLES – we could turn on the light in a room when our PIR sensor senses movement.
  • We could switch on  the air conditioner when our temperature sensor senses a high temperature.
  •  A robot move with aDC motor, and avoid obstacles when an IR sensor senses one in close proximity. We can keep time with an RTC module and display it on an LCD screen
  • sensor1 this a light sensor. the light goes on when someone enters the room. I found this in my classroom
  • sensor2 this is also a sensor. found in the mens bathroom. one your hand goes beneath it, it turns on and sends heat to dry your hands.
  • sensor3

 

PART TWO

  • .) What is Arduino? Arduino is a physical computing platform with a simple microcontroller board, that can sense and control software from the board. It can be used to develop interactive objects and programs that can be run on your computer. they can control variety of lights motors and physical outputs.2.) What is electricity? Current? Voltage? Resistance? Electricity is used in our everyday life. a type of energy generated by electrical charges . to power our tv, radios, hospitals and schools. Its a flow of energy that goes thru power sources like wires that can be distributed everywhere.
  •  Current-  The flow of electrical charge thru a closed-circuit. thats measured in amps
  • Voltage-  Its a measure of potential energy, that a charge might be pushed with if provided a closed ciruuit.
  • Resistance-  Its a measure of how efficiently a material will conduct electricity.
  • 3.) What is a circuit? A circuit is a circular path from a power supply. thru a load and flows back to the end of the supply.
  • How does electricity flow in a circuit? Electricity flows in a circuit only if its closed, meaning if the outgoing path are both closed.4) What is Ohm’s law? OHM’s law is made from 3 mathematical equation that shows the relationship between resistance, current, and voltage. stated as V(voltage)= I(current) * R(Resistance).
  • When might you use it? It can be used to find the voltage in a circuit. or if you want to know the current and resistance in a circuit but want to find the voltage.
  • How would you use it? you could use the ohm’s triangle graphic or ohms law wheel to learn the formulas5.) What is a series circuit? Its a circuit in which resistors which 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 more than two paths that the energy current can flow through. the voltage are the same across each components.
  • 6.) What is the difference between digital and analog signal/voltage? Describe an example.
  • Analog signal is a continuous signal which represents physical measurement.  its denoted by sine waves. ex audio and video transmission analog electronic devices.
  • Digital signals are discrete time signals represented by digital modulations. its denoted by square waves. ex computers, cd’s and dvd’s.
  • 7.) What is code? Code is a program instruction or system of words, letters or symbols for the purpose of secrecy .

8.) What is a variable? A variable is a place in our computer or microcontroller’s memory for storing information needed in a program. it has a name, value, and type.

  • How is it used in Arduino? It can be used to change a variable name. ex Pin= 12;
  • 9.) What is a function?  A function is a block of code that executes a specific task repeatedly.
  •  How is it used in Arduino? its used to reuse code without having to rewrite the code. ex
    • functionName = blinkLED
      • The name describes the action the function does. Calling this function will blink the LED.

    10.) What two functions are required in Arduino code?   The two functions required are the void setup and the void loop.

  •  What do they do? the void setup is usually called when a sketch starts.  its used to initialize variables and pinmode. It only runs once after the power up or reset on the board.
  • void loop- it loops consecutively and allows our programs to change and respond. can also be  used to control the board.
  • 11.) Write one function that sets the pins on an Arduino.
    int ledPin = 10;                 // LED connected to digital pin 10void setup()
    {
    pinMode(ledPin, OUTPUT);      // sets the digital pin as output
    }
    void loop()
    {
    digitalWrite(ledPin, LOW);   // sets the LED on
    delay(1000);                  // waits for a second
    digitalWrite(ledPin, HIGH);    // sets the LED off
    delay(1000);                  // waits for a second
    }

    12.) How do you end a statement in Arduino? In the code or arduino we use the curly braces to start and end a statement.   {}

    13.) What are curly braces/brackets used for in Arduino? curly braces/brackets are used to enclose statements also a major part of the C programming language.

    14.) Describe one digital function and one analog function. – One digital function is the pinMode-which Configures the specified pin to behave either as an input or an output

  • And a Analog reference- which Configures the reference voltage used for analog input
  • 15.) What are conditional statements in Arduino?  conditional statements usually start with the word – if.
    The part that goes after the word IF, is then evaluated.
    We evaluate whether the statement is true or false. – for ex is it raining?
    If it is true, then the last part (or conclusion) is executed – then we take an umbrella.
  • Name one and describe its use. An example of a conditional statement is the IF statement. –  if() statement is the basic of  programming control structures.  allows you to make something happen or not depending on whether a condition is true or not.16.) What is pulse width modulation (PWM)? PWM is a technique for getting analog results with digital means.  controls width of an electric pulse based on the signal information.
  • How does it work? When might you use it in Arduino?17.) What is a multimeter? A multimeter also known as a VOM (Volt-Ohm meter), is an electronic measuring instrument that combines several measurement functions in one unit. A typical multimeter would include basic features such as the ability to measure voltage, current, and resistance.
  • How do you use one? first we Plug the black probe into COM and the red probe into mAVΩ. and Squeeze the probes with a little pressure against the object you want to test.
  • 18.) How do you get code from your Arduino Sketch to an Arduino? What four things should you check for/do? Its called bareminimum code needed to get started.  first the setup function is called when the sketch starts and initializes the variables and pins. after that the loop function comes in. ex
  • 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? Serial motor is a tool built in the arduino IDE allowing sending and receiving serial data to and from a connected Arduino.
  • How do you invoke it in your code? On the Arduino IDE? You do that by doing two digitalWrite operations to set the directions of the motor.  and use the analogWrite() command on the enable pin to change the motor speed.20.) What is baud rate? Baud rate is the unit for symbol rate or modulation rate in symbols per second or pulses per second.

Do as i command … Monkey

For our midterm project, in Hacking and Building we were asked to create a toy,  game, or wearable (clothing or accessory) that uses at least one digital analog input or analog output. To Build a complete, working circuit that uses the Arduino Uno as the microcontroller, & Use components and tools available in our Arduino kit.
After revising the instructions It took a while before a solid idea came to mind. due to the fact that there were various projects that could be done with an Arduino. I knew this project couldn’t be done alone, so a smart idea was to partner with two hackers in the class.  Together a decision to  hack a toy Monkey with the arduino and motion sensor was made.

  • Its called Monkey Musician- the Monkey  moves its head, shakes it body and came with a crash symble so it crashes together. Our goal for this project was to use a motion sensor control that will activate the object to start moving.
The monkey comes with crashes attached to its hand. it moves and claps it together when electrical current flows thru it
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  The monkey comes with crashes attached to its hand. it moves and claps it together when electrical current flows thru it
  • what is a PIR sensor- PIR sensors allow you to sense motion, almost always used to detect whether a human has moved in or out of the sensors range. which can detect levels of infrared radiation.
  • working on the project we stumbled upon alot of major set backs. some items were missing from our kit, we soldered the wrong parts into different place, and most of all the code and PIR motion sensor wasn’t working at all.
  • There were many steps taken to put this all together. As you continue to follow the guide, I’ll explain the steps in very simple terms for you to understand. You can also implement it  if you are inspired enough to duplicate our efforts.  The steps are AS follows;
  • 1) I had to program the Arduino-

monkeyAD1

  • Example of what the code looks like. It didnt work when I used it. but at first it looked right to me.

// 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(1000);
//turn off monkey for 15 seconds so it doesn’t activite itself
digitalWrite(monkeySwitch, LOW);
delay(1000);
}
}

  • I used this code as the PIR motion tester
  • * PIR sensor tester
    */int ledPin = 13; // choose the pin for the LED
    int inputPin = 2; // choose the input pin (for PIR sensor)
    int pirState = HIGH; // we start, assuming no motion detected
    int val = 0; // variable for reading the pin statusvoid setup() {
    pinMode(ledPin, OUTPUT); // declare LED as output
    pinMode(inputPin, INPUT); // declare sensor as inputSerial.begin(9600);
    }void loop(){
    val = digitalRead(inputPin); // read input value
    if (val == HIGH) { // check if the input is HIGH
    digitalWrite(ledPin, HIGH); // turn LED ON
    if (pirState == LOW) {
    // we have just turned on
    Serial.println(“Motion detected!”);
    // We only want to print on the output change, not state
    pirState = HIGH;
    }
    } else {
    digitalWrite(ledPin, LOW); // turn LED OFF
    if (pirState == HIGH){
    // we have just turned of
    Serial.println(“Motion ended!”);
    // We only want to print on the output change, not state
    pirState = LOW;
    }
    }
    }
  • As a result, the Led light up .
  • 2) I hacked the monkey’s power system  –monkeybottom1
  • First  open up the bottom of the monkey, then start taking out the screw attached to it.
  • monkeyb2,
  • same process I had to solder some wires into the back where the battery is connected.

monkeysolder1

  • step 2- you need 2 yellow wires and a soldering pen. as soon as the soldering pen heats up,  begin process . take the wire, add a little solder into the silver caps and place wire inside.
  •  monkeypart1
  • after placing wires into the silver caps, make sure its stable and fits well. slide both yellow wires into the orange case .
  • ,monkeypart2
  • now   insert the orange case back to its original place, and screw it to the cover case for the batery
  •  monkeyend1
  • how the monkey and wire should look after completed. the wires collect current from the batteries in the monkey.

3) building the circuit-

  • circuitbatt1
  • I took out the servo motor and some irrelevant components for this project, in order to make it simple and easy to uderstand.
  • here’s a schematic diagram for the project. reference is from “www.makezine.com/projects/monkey-couch-guardian/”
  •  projectoutline
  • 4) mounting the Relay
  • breadboard4
  • 5) wire the PIR sensor and arduino
  • now I attach some wires to the PIR sensor that will be attached to the arduino microcontroller
  • sensor1
    • another look at the PIR sensor without the wires connected
    • sensorwire1
    •  success- the motion sensor worked . At first i input the code and put the wires and led in its place. but nothing happened
    • so I deceided to reverse how it was placed. and BOOM the led lit up.  even went as far as removing 2 wires from the arduino and ones the PIR detects motion or radiation the led lit up.
    • motionsensor1
    • when the PIR was moved lower or no motion the led went off
    • motionsensor2
    •  and here it is in action; A quick video of proof
    • http://www.youtube.com/watch?v=TrhYJ0oycaA
  • 6) Connecting the arduino to the Relay
  • the wires from the arduino which transmits the power from the arduino to the relay, which is now on the breadboard.
  • (Picture)
  • Connect the Ground jumper wire (red here) to hole d21 on the breadboard (relay pin B).
  • Connect pin 13’s jumper wire (orange) to hole d22 (relay pin A)

Finish the monkey should run perfectly.

After Learning the basics of Arduino and its components, it was time to progress to the next level. This time we’ll be creating something cool. Our project is to build something that can be represented in a Sci Fi movie or in relations to stars wars spaceship. thats what I believe we’ll be working on… you take a look for yourself and decide what the outcome of our project will be.

In order to build our spaceship interface here are the first components needed-

An LED or light-emitting diode which is a component that converts electrical energy into light enerfy. they’re also polarized components that only allows electricity to flow thru them in one direction.

spaceship1_edited

A Resistor- Powerful component that resists the flow of electrical energy and also converts the electrical energy into heat. pretty cool huh??

spaceship2_edited

Mr Switch- Is the one who interrupts the flow of electricity, breaking the circuit when open. when closed it will complete the circuit.

switch2_edited

Red and Black wires are used to transfer electricity from the source to the board

redblack1_edited

Process 1-  we have the Arduino which is the power source for the circuit, then we connect the red wire to the 5V pin on arduino then put the other end into the bus lines in the breadboard. The same process is done for the black wire

switch4

Process 2- The components are in parallel circuits place the swich on the board, including the led and resistor. switch5_edited

Process 3-  we kept the switches and LED  where they are and attached more components to the board. this means that the electrical current are split between them. if the switch is pressed, the LED will light up.

board2_edited

_edited

Process 4- As a result of all the wires and components put together, it looks like this. complicated huh?? not really – as long as you read.  – when the usb cable was connected back to the board the lights only blinked.

For all who don’t know how to code, here’s what the code looks like

Arduino Starter Kit example
Project 2 – Spaceship Interface

This sketch is written to accompany Project 2 in the
Arduino Starter Kit

Parts required:
1 green LED
2 red LEDs
pushbutton
10 kilohm resistor
3 220 ohm resistors

Created 13 September 2012
by Scott Fitzgerald

http://arduino.cc/starterKit

This example code is part of the public domain
*/

// Create a global variable to hold the
// state of the switch. This variable is persistent
// throughout the program. Whenever you refer to
// switchState, you’re talking about the number it holds
int switchstate = 0;

void setup(){
// declare the LED pins as outputs
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);

// declare the switch pin as an input
pinMode(2,INPUT);
}

void loop(){

// read the value of the switch
// digitalRead() checks to see if there is voltage
// on the pin or not
switchstate = digitalRead(2);

// if the button is not pressed
// turn on the green LED and off the red LEDs
if (switchstate == LOW) {
digitalWrite(3, HIGH); // turn the green LED on pin 3 on
digitalWrite(4, LOW); // turn the red LED on pin 4 off
digitalWrite(5, LOW); // turn the red LED on pin 5 off
}
// this else is part of t9 he above if() statement.
// if the switch is not LOW (the button is pressed)
// turn off the green LED and blink alternatively the red LEDs
else {
digitalWrite(3, LOW); // turn the green LED on pin 3 off
digitalWrite(4, LOW); // turn the red LED on pin 4 off
digitalWrite(5, HIGH); // turn the red LED on pin 5 on
// wait for a quarter second before changing the light
delay(250);
digitalWrite(4, HIGH); // turn the red LED on pin 4 on
digitalWrite(5, LOW); // turn the red LED on pin 5 off
// wait for a quarter second before changing the light
delay(250);
}
}   

Furthermore when the code is inputed into the program its then translated to the board that reads it and communicates the orders given. with this particular code the end result should be  when the switch is pushed, the electricity should flow thru the board, touching each wire and component and doing its part. since its alot of voltage, the resistor resists the amount of electricity being generated to the led which makes it light up. in conclusion when the switch is pushed all the led colors should light up .

breadb2_edited

breadb3_edited

breadboard_edited

Protosnap pro mini.

The project was to tweak the code given to us by the professor, and use the code to program our protosnap pro mini board.

-working with the protosnap pro mini was challenging at first. it took days of research to figure out what the issues for the code not working.

– It turned out to be that the FTDI – Future Technology Device International  driver needed to be updated. so I got that done and updated the driver

– At first when the usb cable was plugged to the Sparkfun Protosnap, the board automatically read the code

The ProtoSnap is an Arduino-compatible development platform aimed at teaching the basics of Arduino programming as efficiently as possible.  -www.sparkfun.com
The ProtoSnap is an Arduino-compatible development platform aimed at teaching the basics of Arduino programming as efficiently as possible.
-www.sparkfun.com
the back of the protosnap pro mini.
the back of the protosnap pro mini.

– Parts Included in the board-

  • 1  Arduino Pro mini 5v/16MHz
  • 1  FTDI Basic Breakout 5v
  • 1  Buzzer
  • 1  RGB LED
  • 1  Light Sensor
  • 1 Push Button
  • 1 Protoboard
  • protosnap4_edited

    the USB cable used to connect the  protosnap board to Power
    the USB cable used to connect the protosnap board to Power

Heres what the original code looks like- once the code was entered the RGB Led started to glow. Different color light responded to the code. also  with the buzer; once pushed it makes a loud sound.

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("I am a protosnap, waiting to hear space bar:");
}

void loop() 
{
 
  if(Serial.available() > 0)
    {
    if(Serial.read() == 32)
    Serial.println("I HEARD THAT, OH SNAP!");
    }
    
while(digitalRead(button) == LOW)
{
digitalWrite(buzzer, HIGH);
delayMicroseconds(400);
digitalWrite(buzzer, LOW);
delayMicroseconds(400);
}


int temp = analogRead(light);
if(temp > 100)
{
  digitalWrite(red, HIGH);
  digitalWrite(green, HIGH);
  digitalWrite(blue, HIGH);
}
else 
{
  digitalWrite(red, LOW);
  digitalWrite(green, HIGH);
  digitalWrite(blue, HIGH);
  delay(500);
    digitalWrite(red, HIGH);
  digitalWrite(green, LOW);
  digitalWrite(blue, HIGH);
  delay(500);
    digitalWrite(red, HIGH);
  digitalWrite(green, HIGH);
  digitalWrite(blue, LOW);
  delay(500);
}
}


In order for the colors and Sounds to change, All I did was tweak the code
and input new statements for it. here's what it looks like

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("I am an Intelligent little computer, waiting for your command:");
}

void loop() 
{
 
 if(Serial.available() > 0)
 {
 if(Serial.read() == 32)
 Serial.println("I I, Captain Sam!");
 }
 
while(digitalRead(button) == LOW)
{
digitalWrite(buzzer, LOW);
delayMicroseconds(800);
digitalWrite(buzzer, HIGH);
delayMicroseconds(200);
}


int temp = analogRead(light);
if(temp > 100)
{
 digitalWrite(red, LOW);
 digitalWrite(green, HIGH);
 digitalWrite(blue, HIGH);
}
else 
{
 digitalWrite(red, LOW);
 digitalWrite(green, LOW);
 digitalWrite(blue, HIGH);
 delay(10);
 digitalWrite(red, HIGH);
 digitalWrite(green, HIGH);
 digitalWrite(blue, LOW);
 delay(0);
 digitalWrite(red, HIGH);
 digitalWrite(green, LOW);
 digitalWrite(blue, HIGH);
 delay(10);
}
}

As a result only the Red light on the RGB led shows up. when the button is pushed 
it makes a loud sound and the color turns from red to green.

int bleepybloopbloop = 2; //buzzer's connected to pin 2
int lightPin = A0; // light sensor's connected to analog 0 
int buttonPin = 7; // button's connected to pin 7 
int purpleattemptPin = 3 and 6; // red RGB Led
 // blue RGB Led
 
 const int lightMaximum = 100; // change this to the maximum output of the light sensor
 const int lightMinimum = 0 ; // change this to the minimum value of the light sensor
 const int maxFrequency = 2000; // change this to your preferred high-frequency
 
 void setup() {
 /* set all Led pins as outputs */
 pinMode(purpleattemptPin, OUTPUT);
 pinMode(bleepybloopbloop, OUTPUT); // Read the sensor
 pinMode(buttonPin, INPUT); // setup the button as an input
 }
 
 void loop() {
 int sensorReading = analogRead(lightPin); // Read the sensor
 /* below we'll use map() to change the light sensor value to something
 that'll be cool for the buzzer */
 int thisPitch = map(sensorReading, lightMinimum, lightMaximum, 100, maxFrequency);
 
 /* If we're pressing the button, play a tone for 100ms */
 if (!digitalRead(buttonPin)) {
 tone(bleepybloopbloop, thisPitch, 100); // the tone() function plays a tone on the buzzer 
 }
 
 /* this while loop will loop until you release the button
 the arduino will be doing nothing while its in here */ 
 
 while(!digitalRead(buttonPin));
 }

If you haven’t tried this- You are missing out (9-24-14)

One might ask what is littlebits or who uses littlebits. According to littlebits.cc/about, LittleBits is the easiest and most extensive way to learn and prototype with electronics. anybody can learn it very quickly and begin to create cool projects with it. For my hacking and building class, our project was to  make a circuit that works with the littlebits module and do something intriguing with it. After taking time to learn the uses and functions of each circuit, I deceided to test it out myself and this is what I came up with.

major components that make the littlebits work together.
major components that make the littlebits work together.
what I'm holding is the servo motor. its a controllable motor that can swing back and forth. the input controls how fast or goes the arms go.
what I’m holding is the servo motor. its a controllable motor that can swing back and forth. the input controls how fast or goes the arms go.
This is the DC motor snd motormate. its function is to rotate a shaft when you send it an ON signal. while the motormate makes it easy to attach whels,paper, and lots of materials to the motor.
This is the DC motor snd motormate. its function is to rotate a shaft when you send it an ON signal. while the motormate makes it easy to attach whels,paper, and lots of materials to the motor.
The power module helps you to supply electricity or power thru a 9-volt  battery. attach the cable to the battery and flip on the switch.
The power module helps you to supply electricity or power thru a 9-volt battery. attach the cable to the battery and flip on the switch.
How it looks when you begin attaching pieces together.
How it looks when you begin attaching pieces together.
we have the power connected Plus the slide dimmer,plus the buzzer, servo motor and noise maker all attached together.
we have the power connected Plus the slide dimmer,plus the buzzer, servo motor and noise maker all attached together.
all attachments in place including the RGB led. which is a special light that can be adjusted to various color patterns.
all attachments in place including the RGB led. which is a special light that can be adjusted to various color patterns.
different color and noise pattern
different color and noise pattern

Super-features I wished my Phone had

Being a computer science student innovation excites me. thinking of how far technology has advanced in the past few years gives everybody a peak at what to expect in the near future. Furthermore many companies such as samsung, apple and a suite of other well known companies are perfect example of how technology will progress.

As a big apple supporter, some cool features I’d love my phone to do is to have solar charging power and better battery life. in this matter everyone would be able to do more activities without having to worry about charging it every half an hour.

In order to create this product which will be very efficient for everybody, it will a team of like minded individuals and product knowledge to achieve this goal. Possible some arduino’s might be used, or soldering some parts in and coding.

According to http://www.instructables.com it explains the materials needed to put together a solar powered phone charger. the bill of materials are:

  • -Adafruit Mintyboost kit,
  • Sparkfun small solar cell
  • sparkfun single cell lipoly charger
  • multimeter
  • JST connector
  • double sided adhersive squares
  • 3.7v lipoly battery. also a soldering iron, wire cuttersnand metal shears.