• Contant
  • Project
  • Assigments
  • About me
  • HOME

Fablab Seoul

JIN`s Fab Academy 2018:
How to make almost everything


week14: Interface and Application Programming


1. Learning how to the processing

Processing is a language and development tool in which code is released, and was developed by MIT Media Lab.
Processing is Java-based and has Java's grammar, but is characterized by its simplicity.
Today, Aduno, which is used in coding training, has been greatly influenced by processing.
So I studied processing.
Processing can be downloaded from `here on the site.`
Anyone who does not have Java can download it from
`the website here.`
ecause processing is a famous software tool, you can learn it while watching a course on YouTube. I also attended a class on YouTube.
`the website here.`

Processing function


-size(Length , width);-
-frameRate(Frame Rate);-
-print (Variable value);-
-line(x,y);-
-rectMode(CENTER); // Change x and y to the center point of the rectangle
-rect(x, y, Length , width);-
-ellipseMode(CORNER);
-ellipse(x, y, Length , width);-
-smooth();
triangle();
quad();
bezier();
bezierVertex ();
curve();
beginShape();
curveVertex();
endShape();-

Reference:
`here on the site.`


It provides a variety of visual images through processing. I think utilization is high and I want to continue learning.

It is easily downloadable from the Processing homepage.

I made a simple white box using processing only.
And I wanted to make an image that can tell distance from an object through Sonar sensor. So I modified the Aduino code a little.
Previously it used serial communication but modified it to link processing and deleted println (' cm .) to send only numbers to processing.
We failed a lot at first because we did not know that we should only get rid of the units and send the numbers.
I wrote down Aduino code and processing code.
In processing, the line made the height of the numbers visible.
And as I stretched to the side, I made a code with the feeling of looking at the graph.


With the help of the same team,
`youngsik`
helped me understand the processing code. Thank you !!!

-My mistake-

When processing with Aduino, there are fewer errors if only numbers are sent.
Be careful of this part because errors occur when sending units or text.
I wanted to visually express many sensors through processing but I could not deal with them due to lack of time. I'm so sad.

-Download File-

sonar_processing,code