Thursday, September 29, 2016

mini_project_2

-I did Project 14 on the Arduino book that came with the kit to see how the board can communicate with Processing. So far, it takes a while to update the value read from the Serial Monitor in Processing. I thought that the program and freezing.



Wednesday, September 28, 2016

Simple_motor_control

Project 15 Simple Motor Control:


Mini Project Update 2/5

I found a link on how to hollow out a book here. This is what I am planning on doing in order to hide the wires for my mini project and for the final one. I'm going to be asking around to see if anyone has an old hard covered book that they don't need. If I cant find one I'm sure I can buy a cheap one at Goodwill.

The Arduino projects book has an exercise on how to show text on the LCD screen. It's in project 11 and its called Crystal Ball. I'm going to use this as a base for my mini project and final project and learn how to connect everything properly. I still need to figure out how to generate random text via the code and how to make the two button options I want.





Code Used:

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

const int switchPin = 6;
int switchState = 0;
int prevSwitchState = 0;
int reply;

void setup(){
    lcd.begin(16, 2);
    pinMode(switchPin, INPUT);
    lcd.print("Ask the");
   
    lcd.setCursor(0, 1);
    lcd.print("Crystal Ball!");
  }

 void loop(){
    switchState = digitalRead(switchPin);

    if(switchState != prevSwitchState){
      if(switchState == LOW){
        reply = random(8);

        lcd.clear();
        lcd.setCursor(0,0);
        lcd.print("The ball says:");
        lcd.setCursor(0, 1);

        switch(reply){
            case 0:
            lcd.print("Yes");
            break;
            case 1:
            lcd.print("Most Likely");
            break;
            case 2:
            lcd.print("Certainly");
            break;
            case 3:
            lcd.print("Outlook Good");
            break;
            case 4:
            lcd.print("Unsure");
            break;
            case 5:
            lcd.print("Ask Again");
            break;
            case 6:
            lcd.print("Doubtful");
            break;
            case 7:
            lcd.print("No");
            break;
         
          }
        }
      }
prevSwitchState = switchState;
   

  }

Mini Project Update 1/5

For my final project, I am aiming to make an interactive story using the LCD screen and buttons with the Arduino. I've been taking notes on possible ways on how to further expand on this idea and how I would want to present it. I know I want to either create some sort of book-looking box or use a real book in order to encase all the wires. I am not sure if I want to create my own story or if I should take an existing well known fairy tale/fable and depending on the user's choice the ending is altered.

As for the mini project, I want to start experimenting with using the LCD screen and generating random text. I have about 35 character spaces on the screen that was given in our kit, so wording needs to be short and to the point. I was informed that we have more screens that may hold more characters, so I will see if I can borrow one.

.

Week 6 Mon. September 26, 2016 | Ch. 4 project 14

Project 14 - Light Sensor


Tom Igoe

I think what Tom Igoe says about collaborating with others to learn new things and new ways to make art is very relevant and true. That being said, this is collaboration in an idealized sense. Sometimes collaboration can be stifling.
I find interesting the questions he asks in regards to the performance design portion of collaborating with diverse people all doing essentially something very similar. They are good ways of directing my own projects which are performative in nature, in one way or another.

Light Sensor

Project 14 - Light Sensor:




Tuesday, September 27, 2016

Tom Igoe Interview

Reading the interview with Tom Igoe was interesting. He touches on a lot of points on art and design. I also like how he mentioned the video game industry. Like how he mentioned, it's thanks to the video game industry that there has been a great contribution in design and technology. He also knows that a variety of skills and knowledge are needed for the practice in his field, especially physical computing. It was also interesting to read the interview on a person who is a teacher, and to understand everything from his perspective.

9/26 Homework - Project 14 and Reading Response

Interview with Tom Igoe 

Igoe discussed about a variety of different things with this interview, mostly at the behest of the interviewer who seemed like they wanted to get a general sense of what he does and advocates for. He definitely has the mindset of a teacher, and emphasizes the work he does with his students and the ideas he instills in them. Igoe understands that a variety of skills and knowledge are needed for the practice in his field, especially in that of physical computing. It's also nice to see another source of validation and inspiration to do projects and pieces utilizing simple techniques and sensors. Despite the technical simplicity, everything can still be very profound. And it can be applied in various ways, from entertainment to something evocative to a form of activism.

Project 14 - Light Sensor

 

Motors and Servos

Project 15: Simple Motor Control

Project 25: Servo Control

The power set-up part of these was a little intimidating, with all the resistors and the 9V battery. I'm using a servo in my first gesture, and used this power setup in my first tests, mostly because I don't know the consequences of just using the 5.5 V that the Arduino provides. I assume worst case scenario is something catches fire. Then the second worst case scenario would be that it just doesn't have enough power to turn on.

Chapter 4: Projects 11 - 14

Project 11: Piezo Sound Alarm

Project 12: Piezo Melody Player

Project 13: Piezo Knock Sensor

Project 14: Light Sensor

The piezo and the light-sensitive resistor are both pretty cool tools. I really liked the melody player project, it made me realize how much I underestimated the piezo.

Love-o-Meter

Final Set-Up

I had to mess with the base temperature a little bit for the lights to be off at room temperature. It also isn't shown in the video, but I later changed the code a little bit so that each of the lights lights up individually; in the code in this video, the last two lights come on simultaneously.

I changed it to:

  if(temperature < baselineTemp+1) {
    digitalWrite(2, LOW);
    digitalWrite(3, LOW);
    digitalWrite(4, LOW);
  } else if(temperature >= baselineTemp+1 && temperature < baselineTemp+3){
    digitalWrite(2, HIGH);
    digitalWrite(3, LOW);
    digitalWrite(4, LOW);
  } else if(temperature >= baselineTemp+3 && temperature < baselineTemp+5){
    digitalWrite(2, HIGH);
    digitalWrite(3, HIGH);
    digitalWrite(4, LOW);
  }else if (temperature >= baselineTemp+5 && temperature < baselineTemp+7) {
    digitalWrite(2, HIGH);
    digitalWrite(3, HIGH);
    digitalWrite(4, HIGH);
  }


Sensor Webisode


Interview with Tom Igoe HW

I personally enjoyed reading this interview with Tom lgoe. He touches a lot of points regarding art, design and engineering that I wish I had the opportunity to read my freshman year. As a Digital Art & Sciences Engineering major, I've always contemplated the relationship between those three, and honestly I don't think they are separate entities and that they all work together to achieve some sort of common goal. He mentioned: 

"I think you learn so much from working for and with others that strengthens your artwork that you’d be a fool not to collaborate or work for others from time to time, at least."
Regardless who you interact with(programmers, product designers, marketing and etc), it only heighten our own understandings of how everything will work together as a whole. I did enjoyed his comment below, where he stated the advantages of training as an artist but noted that this was only part of the equation. As a designer at heart, I found his responses to the interview quite an interesting read. 

I do think that art training at its best gives people a heightened sensitivity to sensual cues (audio, visual, tactile, etc), and in some cases a strong ability to analyze work from an aesthetic perspective. That is valuable in this field. But it’s only part of the equation. 

Signal Project Idea | Mini project update 1/5

The Sunset Within

So for my signal project's idea, I want to create a signifier that indicates the passage of time. I'm personally intrigued by the different colors the sunset produces. I'm going to create a shell in the form of a book that "locks" the passage of time within. I want to create an illusion of sunset by mixing colors with leds that changes over set incremental period of time. This project will be mainly exploring how the passage of time within a book could run parallel and independent with the "real" time of the world. 

Tom Igoe interview

When he starts to explain his ideas and examples of work that are great physical computing advances; he mentions the game dance revolution. I would like to elaborate on that idea and agree with him that video games and the entertainment industry create great inventions that contribute to the work of art and technology. This got me thinking of VR and AR and how they have become really popular and are a great way to show physical computing to the world where you actually wear a computer on your head and do something physical with it. I just thought that was a cool comparison.

Monday, September 26, 2016

Extra_credit_ Adafruit DC_motor

Adafruit H bridge tutorial:



in class assignment for 9/21


Mini-Project Signal

-I see signals as getting an output when you run a program that can be used to debug code. The best example from my major in Computer Engineering that involves signals would be printing to the Console with print statements. So, for my mini-project I want to use the LCD that came with the Arduino kit to display an output as if it was a Terminal.
-I did project 11 on the Arduino book that came with the kit to familiarize myself with the LCD's library or API.






Mini Project Idea

signal as referred to in electrical engineering is a function that "conveys information about the behavior or attributes of some phenomenon". I was thinking about doing a play on that. Maybe do a grid of LEDs that create an image when responding to certain signals, or make something that creates sound when a signal is input into it.

Homework

What is the relationship between heat and electricity. Please provide a metaphor.
Why is it warm near an incandescent light bulb?What is a superconductor? What are they used for in real life? You may have to look this up. How could one make a metal a superconductor?What is Ampere's Law?If current of the same size flows in the same direction in two electric wires placed side by side, what happens?What happens if current of the same size flows in opposite directions in two electric wires placed side by side?Please read about Flemings Left and Right Hand Rule. Think about this Rule with respect to the motors we have made this week.


Heat is the light of my life. They are like two peas in a pod.
The light made by the incandescent lightbulb produces heat. The large amount of heat makes the light.
A super conductor is a super cooled metal that has no electrical resistance, allowing a current to flow once applied without a continuous power source. They are used in MRI machines and particle accelerators. To make a super conductor, one needs liquid nitrogen.
Ampere's Law says that the magnetic field created by an electric current is proportional to the size of that electric current.
If a current of the same size flows in the same direction and if the two electric wires are placed side by side then a force of attraction is produced by the two wires.

If opposite directions, then they cancel out.

Mini-Project | Ideas for SIGNAL

Idea 1:

Translation. I was considering exploring the idea of translating a numerical value of some sort, such as a heart rate, into a visual representation through the display pad we have in our kits. Possibly having a low, high, or average heart rate translate into different "emoji" faces - a frown, a smile, or a blank face. I am still considering other possible variants of this idea, but I'm not particularly sure of the displays capabilities.

Follow up idea: Maybe I could create something on the computer that would respond to a reading from the Arduino? Like a drawing or a gif?

Idea 2:

Lock. I'd like to try to create a door that locks with a finger print scanner used to unlock it. Mostly to explore the use of different arduino materials. It's not very concept heavy as of yet, but it's something I'd like to explore. Maybe it would sound an alarm if the fingerprint did not match.

Idea 3:

App. Apparently you can control the Arduino with a mobile app. I'd like to explore the possibility of utilizing this tool.

Sunday, September 25, 2016

Mini Project - Signal 9/25

My interpretation of signal will be implemented by creating some of control interface between the Arduino and the Unity game engine. Using this communication, some sort of control for the player character will be established. This control can be implemented through the buttons or the potentiometer that were provided by the starter kit. Whichever is easiest and/or provides the best means of control that I want.

As for the subject matter, I wanted this be something of a precursor to my final project, which was about the relationship of the physical and digital world. The environment will be fairly simple for this project. I maybe wanted to do something paradoxical: having the player character encounter a similar setup in the "game" to what the actual user was interacting with in the real world. That, or make something even simpler. Perhaps the buttons or levels that the player controls would affect some sort of signal, shader, pattern, object, etc. in the game. The environment in the digital world is altered in the physical.

Here is a video about communicating with Unity utilizing the Arduino.


Manga questions

1. Heat is alcohol and light is the drunkenness that comes when enough is present.
2. The light emission of an incandescent bulb functions by means of large amounts of heat emissions.
3. A super conductor is a super cooled metal that has no electrical resistance, allowing a current to flow once applied without a continuous power source. They are used in MRI machines and article accelerators. I would need access to a lab with at least liquid nitrogen and very specific metals to create a super conductor.
4. Amperes law states that a circular electromagnetic field will be produced around a wire that has electricity flowing through it.
5. A force of attraction is produced between the two wires.
6. The fields cancel each other out.

9/21 Classwork - Motors

DC Motor


Servo Control

 

9/21 Homework

1. Heat that is produced when a current flows through an electric resistance is called joule heat, which in turn causes thermal vibration to occur. Heat is generated by the vibrations of the atoms within a material; these continuously moving atoms make it more difficult for electrons to pass through as the heat increases. Thus, this impedes the current's flow. It is like moving through a hallway full of people. If everyone is standing still, it is easy for you to maneuver around. But, if everyone is moving all at once, it becomes more difficult to traverse through the hall.

2. Incandescent bulbs rely on thermal emission to produce visible light. The thermal energy in the bulb is released as electromagnetic waves, producing both heat and light.

3. A superconductor is a material that has next to no impedance of electron movement due to atomic obstruction. This happens in most metals when made cold enough, though most materials need to approach absolute zero in order to achieve superconductivity. Today, superconductivity is used in digital circuits, powerful electromagnets, radiography machines, and particle detectors.

4. Ampere's law states that magnetic fields are generated in a circular pattern around the conductor of a current.

5. A current of the same size flowing in the same direction through two wires side-by-side produces a stacked magnetic field that encompasses both wires; it also creates a force of attraction between them.

6. If a current of the same size flows through the two wires in opposite directions, a force of repulsion is created and their respective magnetic fields disappear.

project 1 process

I've been working on an Incan pyramid kinda thing that has a triangular plexiglass window attached to the top of it. I'm still not entirely sure what electrical stuff is going to be integrated into the piece, but my mind was so scattered between ideas, I just had to start something to create some mental boundaries. I am thinking that as viewers approach the object, an ultrasonic range detector will increase the speed of LED flashes illuminating the plexi window (which I will either glue cattail seeds to or paint with encaustic).

Affordances recflection

Affordances make up the grounds for everything we interact with, from chairs to people to people systems.
The environment offers many affordances and a way of life is a utilized set of affordances.

I found it interesting when Gibson was talking about barriers and imprisonment as locomotion impeded on all sides and that the story of the saint on the high pillar was imprisoned by precipices. Similarly, one may be imprisoned in a building not because you are locked in, but because there are zombies outside. But maybe your unwillingness to become a zombie is just your high pillar.

Depending on what the object is, it may be interepreted as affording different things to the animal that is interacting with it. This tells us something about our way of life or way of thinking.
       A hand held tool may afford writing, but what is it affording if one chews on it in creative anxiety?


Affordances + Questions 9.21.2016

Beginnings and endings of complex things + ambient perceptions of them to derive "value" and "meaning" can be described as the "affordances" of the environment. Ecological physics.
"a specific combination of the properties of its substance and its surfaces taken with reference to an animal." Combinations of properties create meaning ("niche" is how an animal lives). In singularity, they are irrelevant.
What is the stimulus information? How is perceived?
Perceive in rigidity + levelness + flatness + extendedness.
Animals' niches must be present in the environment before the animal can adopt them. Post hoc ergo, propter hoc. Niche is a setting environmental features that are suitable for the animal, into which it fits metaphorically. "The organism depends on its environment for its life, but the environment does not depend on the organism for its existence." There is only one world, natural or synthetic. This does not alter the balance of "affordances." Things afford substance to us (nourishment to eat.) Substances offer a layout to us in order for us to interact with them (water is wet to wade in.) Things can hide places. Animals with hands can manipulate small detached objects. Babies first notice what an object has to afford, rather than what it is. Good affordances good to man. Bad affordances hurt man.
"Invitation Character / Valence:" knee-jerk impulse of what affordances you want to reap from an object. Subjective. Affordances = objective.
The affordances of the niche are measured in relation to the physical limitations of the body.
Lack of detecting affordances = misperception.

1. Heat because electricity because thermal emission. Light because heat is inefficient. Light without heat is luminescence.
2. Infrared emissions in incandescent bulbs are super-heated create light.
3. Superconductors are materials that conduct electricity with no resistance. This means that, unlike the more familiar conductors such as copper or steel, a superconductor can carry a current indefinitely without losing any energy. MRIs scan bodies. How to make a superconductor.
4. Ampere's Law describes the circular motion of a magnetic field around a conductor.
5. Same size current + same direction = magnetic field.
6. Same size current + different directions = magnetic field disappears.

Manga Guide to Electricity Read 90-116



What happens if current of the same size flows in opposite directions in two electric wires placed side by side? What is the relationship between heat and electricity. Please provide a metaphor.

Heat is the vibrations of atoms and molecules. When you touch a metalic object, the heat in your hand causes the atoms in the object to vibrate faster. The vibrations can move very quickly from atom to atom, so the heat gets carried away from the point of contact. That's what makes it feel cold. Like when I pet (current) my dog and she sheds (heat) everywhere.

Why is it warm near an incandescent light bulb?
because of thermal emission, when the temperature of a substance increases and thermal energy is emitted as electromagnetic waves


What is a superconductor? What are they used for in real life? You may have to look this up. How could one make a metal a superconductor?
A material that can conduct electricity or transport electrons with no resistance.

What is Ampere's Law?
Ampere's Law states that for any closed loop path, the sum of the length elements times the magnetic field in the direction of the length element is equal to the permeability times the electric current enclosed in the loop.


If current of the same size flows in the same direction in two electric wires placed side by side, what happens?
If two parallel wires have currents traveling in the same direction, the magnetic fields generated by those currents between the wires will both point in opposite directions resulting in the wires attracting each other.


What happens if current of the same size flows in opposite directions in two electric wires placed side by side?
a force of repulsion is generated between the wires







Wednesday, September 21, 2016

9/21 cw and hw

project 11
project 12
project 13
project 14
project 15
project 25


Motors working in class

Classwork for week of 9/19

Project 11



Project 12



Project 13



Project 14



Project 15



Project 25


project 25 (servo 1)


9/21/16 | HW

What is the relationship between heat and electricity. Please provide a metaphor.

Heat and electricity are both forms of energy. Electricity is a form of energy that can be easily stored and converted from potential energy to kinetic (working) energy. Heat is generally given off as "waste" or energy that wasn't used in a system. If we compare the flow of electrons with flow of water, the heat in the system will be any water that is leaked from the pipes due to inefficiency of the system that was build.

Why is it warm near an incandescent light bulb?
Like I mentioned above, energy that is not used in a system is given off as waste in the form of heat. Incandescent light bulbs is one of the most inefficient system. Only around 10% of energy is converted into electricity or visible light, and around 90% of the energy is given off as waste and thus the heat.

What is a superconductor? What are they used for in real life? You may have to look this up. How could one make a metal a superconductor?
A superconductor is a substance capable of conducting electricity current with practically no resistance. Due to it's nature, superconductors can create large magnetic fields, that are extremely useful in MRI devices, superconductive trains that literally floats on the rail to eliminate friction. Most metal can become superconductors when at it's critical melting points. Example for aluminum to become superconductive requires the medal to be melted to -457 degrees. 

What is Ampere's Law?
Ampere's Law relates the relationship between magnetic field an current. Mathematically it can be written as the line integral of the magnetic field around some closed loop is equal to the times the algebraic sum of the currents which pass through the loop.

If current of the same size flows in the same direction in two electric wires placed side by side, what happens?

It will attract each other.

What happens if current of the same size flows in opposite directions in two electric wires placed side by side?

It will repel each other.

Classwork 9.21.2016

Ch5.Proj15 with extra special fan application here.

Chapter 4 & CH5 project 15

Piezo alarm
Piezo tune
Potentiometer motor

Week 5 | In Class Work

Arduino Project 11



Arduino Project 12




Arduino Project 13



Arduino Project 14


Arduino Project 15



Week 5 Wed. September 21, 2016 | Ch. 5 project 15

Project 15



Classwork | 9/21/16


Driving a DC Motor

Servo Control


Monday, September 19, 2016

Ch4 Project 11-14


In-Class Exercises 09-19

Project 11:


Project 12:



Project 13:




9/19 In-Class Work - Projects 11 thru 13

Project 11 - Piezo Sounder Alarm


Project 12 - Piezo Melody Player


Project 13 - Piezo Knock Sensor

 

Project 11, 12, 13 | 9/19/16

Project 11


Project 12


Project 13



Week 5 September 19, 2016 | Ch. 4 Projects 11, 12, 13 In-Class Assignment

Project 11 Piezo Sounder Alarm


Project 12 Piezo Sound Melody Player



Project 13 Piezo Knock Sensor







Classwork 9.19.2016

Batterina Here.
Ch3. Proj13. Tap Tap LED Here.

Homework 9.14.2016

Ch3. Proj 7. Here.
Ch3. Proj 8. Here.
Ch3. Proj 9. Here.
Ch3. Proj 10. Here.
Love-O-Meter Here.

Love_o_Meter


-As cold as ice...

Sunday, September 18, 2016

9/20 hw

project 7
project 8
project 9
project 10
"love-o-meter"

Arduino Project 7, 8, 9, 10 and Love - o - Meter

Project 7


Project 8



Project 9



Project 10



Love - o - Meter




Week 4 Wed. September 14, 2016 | Love-O-Meter Homework


Ch 8 and love o meter

Pulsating LED

LED Mood Lamp

LED fire

Serial Controlled Mood Lamp


The Great 'Love-o-Meter'

Week 4 Wed. September 14, 2016 | Project 7, 8, 9, 10

Project 7


Project 8



Project 9



Project 10




Week 4 | Homework

Graphite Exercise




Arduino Project 7




Arduino Project 8




Arduino Project 9




Arduino Project 10





Love-O-Meter




Having difficulties getting this to work. The temperature gauge works, and there doesn't seem to be anything wrong with the code, but the LEDs aren't responding.

Chapter 3 Projects

Project 7 Pulsating Lamp:


Project 8 RGB Mood Lamp:



Project 9 LED Fire Effect:



Project 10 Serial Controlled Mood Lamp:













Work 9/18/16











Love-o-Meter | 9/18/16

Love-o-Meter

Saturday, September 17, 2016

DIY Potentiometers Look up

3 Links:

http://electronics.stackexchange.com/questions/24420/how-can-i-make-my-own-potentiometer

http://cnmat.berkeley.edu/recipe/diy_position_sensing_linear_potentiometer_using_conductive_rubber

https://www.thonk.co.uk/product-category/potentiometer/

Project 6 Ex2

Ex. 2 Bouncing Ball:


And here is the code:


9/14 Love-o-Meter Project


9/14 Chapter 3 - Exercises 7 thru 10

Exercise 7 - Pulsating Lamp


Exercise 8 - RGB Mood Lamp


Exercise 9 - LED Fire Effect


Exercise 10 - Serial Controlled Mood Lamp

 

Friday, September 16, 2016

Chapter 3: Projects 7 - 10

The Rest of the Projects from Chapter 3


Project 7: Pulsating Lamp

This one was pretty straight-forward. I guess Arduino doesn't have a built-in variable for pi, because the code had to type it out to the first four decimals.

Project 8: RGB Mood Lamp

This one seemed to work really slowly, and also seemed to get stuck on a particular color after a little while. I might have just been impatient, though. The book said to also use a piece of paper to help blend the colors, and I think it kind of helps.

Project 9: LED Fire Effect

This was a lot like the RGB mood lamp, except that the delay was randomized and made the LEDs seem to flicker.

Project 10: Serial-Controlled Mood Lamp

This was the only one that I had trouble with. The program seemed to acknowledge only the second and third values that I input to the serial monitor, and ignore the first.

For example, if I typed in r200, nothing would change. But if I typed in b127, r200, it would change the red LED to an intensity of 200, and do nothing to the blue. Similarly, if I typed r200, b127, g255, it would skip the red value, and change only the blue and green.

Otherwise, it seemed to work alright.

Graphite Resistor

Graphite Resistor Activity
Graphite drawing

My graphite drawing didn't work too well. I had to hold the wires from the Arduino right next to the LED to get even a hint of brightness. I guess my lines are too thin.

Testing the Drawing

Wednesday, September 14, 2016

Chapter 3 | Project 7,8,9,10 | LED Mood lamps

Chapter 7

Chapter 8

Chapter 9

Chapter 10

Project 7-10 Videos

Project 7

Project 8

Project 9

Project 10

9/12 HW

 1. The speed of an electron revolves around the center of the nucleus while electrical motion depends on the current of electrons.

2. Resistance can change energy by slowing it down so it can be used more efficiently and not damage an appliance(s). An example is chargers for devices such as cell phones or ac adapter charger for a laptop.

3. A DC current only travels in one direction while an AC current travels back and forth.

4a. 14ohm
4b.  3.4ohm

LOVE-O-Meter


Project 7, 8, 9, and 10


Software to draw circuits free

I used this program that is very useful for drawing circuits and is called LabVIEW from National Instruments. UF students get a free license. More information:
https://www.software.ufl.edu/student-agreements/
Look under LabVIEW.

Tuesday, September 13, 2016

9/12/16 | In class exercises

Light Chase part 3

Bounce Light

DIY Circuit - the struggle is too real without a clipper...

9/12 Homework - Graphite Drawing Resistor


Full Drawing


9/12 In-Class Work

Fixed Interactive LED Chase


Bouncing LED Chase

 

In-Class Exercises 9.12.2016

 Directional LEDs meet in the middle here.
"Bouncing" LEDs here.
Graphite circuit here.

Monday 9/12 | In Class

"Bounce"



Monday, September 12, 2016

In-Class Exercise 09-12

EX1:


LED Chasing Effect Both Sides/Bouncing/Graphite


Week 3 Assignments

Project 5:



Project 6:



Labeled Image:




1. The speed of electrical motion is composed of 3 different velocities: The individual electron velocity in a metal wire is typically millions of kilometers per hour, the drift velocity is typically only a few meters per hour while the signal velocity is a hundred million to a trillion kilometers per hour.

2. Energy, or Power = Voltage * Current => P = V * I => P = I * R * I => P = I^2 * R
    The unit of power is the Watt. Example: My MacBook Pro with Retina Display charger has 60 W MagSafe 2 Power Adapter. Input: 100 - 240 V ~1.5 A

3.  In direct current (DC), the electric charge (current) only flows in one direction. Electric charge in alternating current (AC), on the other hand, changes direction periodically. The voltage in AC circuits also periodically reverses because the current changes direction. Examples: In my Nintendo 3DS, the buttons A, B, X, Y can represent DC (ON or OFF, or how I like to put it: True or False), while the slider next to the upper screen that controls the volume represents AC (it can increase or decrease periodically over time.)


9/12/16



Week 4 Mon. September 12, 2016 | Project 6 In-class assignment

Quickly look up DIY potentiometers and post links to 3 on blog.

This link has more than 3 possible DIY potentiometers

http://electronics.stackexchange.com/questions/24420/how-can-i-make-my-own-potentiometer


















CODE

byte ledPin[] = {4, 5, 6, 7, 8, 9, 10, 11, 12, 13};
int ledDelay;
int direction = 1;
int currentLED = 0;
int counterdirection = -1;
int secondLED = 9;
unsigned long changeTime;
int potPin = 2;

void setup() {
  for (int x=0; x<10; x++){
      pinMode(ledPin[x], OUTPUT);
    }
    changeTime = millis();

  }

  void loop() {
    ledDelay = analogRead(potPin);
    if ((millis() - changeTime) > ledDelay) {
      changeLED();
      changeTime = millis();
      }
    }
 
void changeLED(){
    for (int x=0; x<10; x++){
      digitalWrite(ledPin[x], LOW);
      }

      digitalWrite(ledPin[currentLED], HIGH);
      digitalWrite(ledPin[secondLED], HIGH);
   
      currentLED += direction;
      secondLED += counterdirection;

      if (currentLED == 4) {direction = -1;}
      if (currentLED == 0) {direction = 1;}
      if(secondLED == 9) {counterdirection = -1;}
      if(secondLED == 5) {counterdirection = 1;}
  }




Week 3 homework