Assignment

Final Project

About Me

Week 13

Group Assignmet page

0.Assignment

write an application that interfaces with an input or output device that you made

1.Programming

What I wanted to do was to press the button on the output to change the color in the circle,
but I have some problems with the output programming.
For a bit of a problem with output programming, os is windows 10, and the application used for programming is Arduino,
First, I can not check the number of ports in the program and check if they are properly connected. The second time I uploaded the code, I got a double check connection.
In the second case, I thought that the finish after milling was wrong, so I tried milling and soldering more than 2 times, but the same symptoms continued to occur.
I switched to os, tried using linux terminal but missing separate. stop. Error message is displayed.
I surfed the Internet and tried some solutions but I failed, so I programmed with the mouse.

I looked a lot of references this week at https://processing.org/reference/, and https://www.youtube.com/user/shiffman.

The code looks like this:

float circleX;
float circleY;

void setup () {
size(500,500);
circleX = random(200,400);
circleY = random(200,400);
background(random (0,255), random (0,255), random (0,255));
stroke(random (0,255), random (0,255), random (0,255));
ellipse(circleX, circleY, 200, 200);
}

void draw () {

}

void mousePressed(){

ellipse(circleX, circleY, 200, 200);
if (mousePressed);
fill (random (0,255), random (0,255), random (0,255));
ellipse(circleX, circleY, 200, 200);

}




I tried to go with the hello.button.45 in 11 weeks instead of the mouse switch, but inevitably this was broken ...
I milled and soldered again to fix it, but I could not find any problems.
I thought about the problem of short, but if it happened, it would be blocked in programming.
So I asked the instructor for advice and the instructor lent the PIR board.


That is an instructor's motionsensor.
To illustrate how the motion sensor was used, I simply programmed it to change colors if motion was detected.

You can download my work here
zip file download