top of page

Assignments

Assignment #1

The interactive artwork I found is called Future Self made by rAndom International, it is an exhibit that features a hanging panel of LED lights with motion sensors on them. I think the project was made by programming some sort of motion detection technology or sensors with LED lights, that are linked to a computer. I think a lot of people were involved in making this project complete, to me it looks very intricate and things that are intricate usually do not have just one person working on the project. You need different people with different skills to do certain things, not every person can do everything by themselves. I personally think that this project took anywhere from a few months to a year or more too completely be finished. 

Link to website: https://www.random-international.com/future-self-2012

Assignment #2

my initial thoughts on this assignment were that it would be easy. It is easy i have added scrolling text, a short animation, and 3 button presses. I look forward to being able to do more with the program as it seems very interesting.

Assignment #3

My initial thoughts on this project were absolutely nothing until i started to play around with some LED's and different block elements in the code and figured out that by having each LED be turned on by a button press and can also have scrolling text and an image, i could create a sort of game out of it. at first i had trouble with figuring out how this would be achieved but after i tried a few things i realized that it wasn't that hard to accomplish. so for the finished assignment I have 3 LED lights and with each different button press, a different colored LED lights up and then has scrolling text and an image.

the game i came up with is sort of like a game show, using a green LED to signify being correct or answering a question correctly, it lights up green and shows a check mark with scrolling text saying Correct!. The second LED lights up with an X and scrolling text saying WRONG!. the last LED lights up and shows an exclamation point, in some game shows, contestants have a hint option or ask  the audience or something similar, so it shows the exclamation point and has scrolling text saying Hint!

84540903_168149461266907_916488006266152
83610736_490472205186675_725877337053829
83657208_591658581680781_534548686748568
83668247_1077942222541359_23788211264123

Assignment #4

for my project I coded 3 buttons, one starts one song and lights up an LED, another button that stops all music and LEDs, and a third button that turns on a second LED and plays a different song. it took awhile to figure out the correct way to wire the breadboard and my laptop crashed completely at one point, but i kept trying and got the wiring correct and the coding correct.

84270824_614790492400839_764362195229632
85074394_222656348754830_901505351297479
85010002_557062814883596_410493252950346

Assignment #5

For this project, I wired 2 button presses on the microbit itself that turn on 2 LEDs, a photocell next the the 2 LEDs and a potentiometer. I wired the 2 LEDs  near the photocell so when you turn them on you can change the pitch of the sound being played, the potentiometer controlls the speed the notes are being played at. I found that trying to correctly wire and code this assignment proved to be slightly difficult as I had to incorporate other functions learned in previous classes along with all the new stuff learned in current classes into one code so remembering how to do everything isnt the easiest.

83800855_187626195784901_323711462190717
86384357_2235300730105908_36844500643794
86353765_744145089444233_192448271828910
86402644_830998974035294_285172295441947

Idea For Midterm Project

I was thinking, maybe I could make an alarm, by using the distance sensor measuring how close someone or something is close enough to the lets say for  now its a box or a safe the distance could be set for a specific amount to play a siren sound when someone is too close to it, and using a motor make some red LEDs spin, and also using the speaker to play the alarm sound. To make it be more than just the breadboard I can use a small box and cut a hole out for the distance sensor, and then I'd have to figure out how to have room for a motor and the LEDs. Basically its a motion sensing alarm that when you get too close to it, it makes a noise and spins red LEDs. 

Midterm Project

My project is a motion sensing alarm. When you get close enough to the distance sensor, the alarm will sound and LEDs, will turn on. In the real world, I think this could be used in a household setting, you cold set up a a time frame where the sensor will be active, lets say night time until morning, if an intruder would try to break into a house, the alarm will sound hopefully scaring them off. An outdoor alarm system, that could work with an indoor alarm system.  For the project I used alligator clips, LEDs, the mircobit, a speaker, the battery pack, the distance sensor, 220 ohm resistors, and the pin cables, a box. I used a box from a package i had ordered to show that this could be used in packages to potentially ward off porch pirates. when the porch pirate would approach the box, the alarm will sound and the LEDs will go off, drawing attention to them, hopefully making them leave.

assignment 7

my process for creating this was to see what i was able to do. i spent a few hours on positioning the triangles to where i wanted them to be. i originally was them on one end of the rectangle, but I did not like how it looked. so in trying to move them i figured i would raise the number from lets say 200 to 300 to see where it would end up. i decided i wanted my designs to be a layered look. with the ellipses it was easier than most shapes. i just had to decrease the sizes of each ellipse to make it fit inside the original bottom layer shape. with the squircle, i decided to do the layering style but in a corner of the shape instead of the center. for the triangles, as i had a little bit of difficulty positioning them, the final result isn't fully what i had in mind but i still like the result. and finally with the rectangles, when i tried to do the layering style from the center i couldn't get it to work but then just used what was done which was the rectangle basically moved up and got smaller so it created a very nice looking layered look.

just in case the code link doesn't work, i am going to paste the entire code here just to be safe.

code:

// xvar1, xvar2, and yvar1 are for the ellipses on the left side of the screen and move up and down and left and right
// 

 

var xvar1;
var xvar2;
var yvar1;
var yvar2;
var rvar1;
var rvar2;
function setup() {
  createCanvas(400,400);
  xvar1 = 50;
  xvar2 = 350;
  yvar1 = 50;
  yvar2 = 300;
  rvar1 = 150;
  rvar2 = 100;
  
}

function draw() {
  background(250);
  fill('black');
  noStroke();
  //rectangles
  
  fill('red');
  rect(rvar1,rvar2,100,200);
  fill(255, 96, 0);
  rect(rvar1,rvar2,100,175);
  fill(255, 239, 0);
  rect(rvar1,rvar2,100,150);
  fill(55, 255, 0);
  rect(rvar1,rvar2,100,125);
  fill(0, 14, 255);
  rect(rvar1,rvar2,100,100);
  fill(98, 0, 255);
  rect(rvar1,rvar2,100,75);
  fill(175, 0, 255);
  rect(rvar1,rvar2,100,50);
  fill(252, 0, 255);
  rect(rvar1,rvar2,100,25);
 
  // ellipses
  
  fill('red');
  ellipse(xvar1,yvar1,100); 
  fill('orange');
  ellipse(xvar1,yvar1,75);
  fill('yellow');
  ellipse(xvar1,yvar1,50);
  fill('lime');
  ellipse(xvar1,yvar1,25);
  fill(0, 33, 255);
  ellipse(xvar1,yvar1,10);
  fill('navy');
  ellipse(xvar2,yvar1,100);
  fill('indigo');
  ellipse(xvar2,yvar1,75);
  fill('purple');
  ellipse(xvar2,yvar1,50);
  fill('violet');
  ellipse(xvar2,yvar1,25);
  fill('hotpink');
  ellipse(xvar2,yvar1,10);
  
  // squares (squircle)
  
  fill('lime');
  square(1,yvar2,105,20);
  fill('yellow');
  square(21,yvar2,85,20);
  fill(255,173,0);
  square(41,yvar2,65,20);
  fill(199,32,32);
  square(58,yvar2,48,15);
  fill(100, 16, 55);
  square(76,yvar2,30,10);
  fill(255,0,179);
 
  // triangles
  
  fill(255,0,0);
  triangle(400,400,400,300,300,300);
  fill(255, 0, 224);
  triangle(400,400,400,300,350,350);
  fill(128, 0, 255);
  triangle(300,300,300,400,400,400);
  fill(0, 18, 255);
  triangle(500,500,500,350,350,350);
  
  
}

Assignment #8

CODE: https://editor.p5js.org/rlevine/sketches/25wmBffRn

i first made an ellipse and attached a series of rectangles to it  so it made a design, then i coded it to move vertically and change the fill when it hits the top or bottom of the canvas. I then used that same design to have the shape move horizontally while also changing colors in the same way. For the third shape i made a squircle (a square circle) and had that move horizontally but this time since trying to get the fill to change properly i left it flickering because why not it looks cool to me and 3 of the same things aren't interesting so its a change from the other 2 shapes.

Assignment #9

Click on the screen to be able to interact with it

Assignment #10

final project idea

a ball catching game where the ball changes color at random times or intervals or when it hits a wall, then i could add rectangles as walls and if possible have them change color at random intervals or when the ball hits it, then ill have a score counter for everytime the ball gets caught, i was thinking that if there is a way to have the speed of the ball change everytime it hits a wall horizontally and vertically or if that isnt possible, then have the speed change randomly whichever would be harder for a user. then i could possibly add a timer for 2 minutes and the user has to try to catch the ball as many times as they possibly can in 2 minutes while the ball is changing speeds randomly, once the timer hits 0 its game over. maybe to make it more difficult i could have the background flash different colors but that might  be overkill

so the elements ill need will be for the shapes, the colors so rgb variables, speed variables, mousePressed functions, the timer, the score counter, a way for the code to know when the ball is caught.

code examples that will be helpful could be ball catch, color changes randomly by itself, speed changes by itself if possible, code that can tell when the ball has been caught.
 

Response to Classmates Project

My thoughts on my classmates are that the idea is very creative and it is executed really well. Drawing an ellipse to the screen then using a rectangle to cover it up is really cool. Its something I would never have thought of. Its a good idea. I like how the rectangle is able to cover up the ellipses. It is very well done. One thing I would add to the instructions for someone who doesn't know the program would be to tell them to click the mouse button to start drawing otherwise they might think it doesn't work

bottom of page