Interface and application

Assignment

group assignment:

  • compare as many tool options as possible This week I was introduced to the new software called processing.According to it’s page Processing is a flexible software sketchbook and a language for learning how to code for the visual arts. Download processing form Here
  • Group Assignment Link

    Individual assignment:

  • write an application that interfaces a user with an input &/or output device that you made.
  • In this week we are taught how to code in processing in how to draw canvas in three steps as a basics by our Mr.Ricko. For this week I decided to use Processing to interface with an output device(led) of my input board. So first off I started experimenting with some of the processing codes that Rico introduced us to.

    Download processing from Here

    Creating canvas

  • I draw a canvas with the size of 300 by 300 pixels with the color code of 150 where ‘0’ is black and ‘255’ is white and anything in between the number range will result in the mixture of white and black.
  • When you click on 'Run' button, you will get this canvas.
  • Creating shapes in canvas

    Making a circle and using RGB colors.

    Making a Rectangle using RGB colors.

    Creating button for mouse

    Drawing 2D shape and writing text inside canvas, make shapes that moves with the movement of your mouse, animations, transformations and lots more.

    Now i have used a simple mouse click processing code where when i click on left on the canvas it would turn on the led of my input board and when i click on right it will turn off. So i used the processing and arduino codes.

  • Setting up my board on arduino:
  • 1. To setup on arduino for the programming, Click on tools and selected board manager to install library.
  • Library as megaTiny Core
  • 2. Then install the megaTiny Core
  • After installation, Go to tools -- and select Attiny1614
  • And select the port no as you have connect the with USB
  • Now below i have used the code and added in ardunio IDE.
  • Here is my connection

  • Now let us import the library for serial communication for that follow the steps as follows
  • Code for processing software

    Video

    Design File

    Arduino Code

    Arduino Code