Difference between revisions of "Setup Processing IDE"
(Created page with "{{Language | 搭建Processing开发环境}} {| style="width: 800px;" |- | ==Objective== This turorial will teach you how to set up the Processing IDE, and connects to Microdui...") |
|||
Line 4: | Line 4: | ||
| | | | ||
==Objective== | ==Objective== | ||
− | This | + | This tutorial will teach you how to set up the Processing IDE, and connects to Microduino to show processing's powerful graphics and interaction function. |
==Equipment== | ==Equipment== | ||
Line 15: | Line 15: | ||
**330Ω resistor one | **330Ω resistor one | ||
**Bread one | **Bread one | ||
− | **Breadboard Jumper | + | **Breadboard Jumper one box |
==Processing== | ==Processing== | ||
Processing is an open source programming language and integrated development environment (IDE) built for the electronic arts, new media art, and visual design communities with the purpose of teaching the fundamentals of computer programming in a visual context, and to serve as the foundation for electronic sketchbooks. The project was initiated in 2001 by Casey Reas and Benjamin Fry, both formerly of the Aesthetics and Computation Group at the MIT Media Lab. One of the stated aims of Processing is to act as a tool to get non-programmers started with programming, through the instant gratification of visual feedback. The language builds on the Java language, but uses a simplified syntax and graphics programming model. | Processing is an open source programming language and integrated development environment (IDE) built for the electronic arts, new media art, and visual design communities with the purpose of teaching the fundamentals of computer programming in a visual context, and to serve as the foundation for electronic sketchbooks. The project was initiated in 2001 by Casey Reas and Benjamin Fry, both formerly of the Aesthetics and Computation Group at the MIT Media Lab. One of the stated aims of Processing is to act as a tool to get non-programmers started with programming, through the instant gratification of visual feedback. The language builds on the Java language, but uses a simplified syntax and graphics programming model. | ||
− | Official | + | Official webpage: http://www.processing.org |
Line 31: | Line 31: | ||
==Debug== | ==Debug== | ||
− | Before setup the Processing development | + | Before setup the Processing development environment, you need install JAVA JDK firstly. You can download the JDK package from orical webpage. |
− | Step | + | Step 1: Download Processing from official webpage. Put the folder to anywhere you want. |
https://www.processing.org/download/ | https://www.processing.org/download/ | ||
Line 60: | Line 60: | ||
Select the Microduino core module, then download directly, then Processing can communicate with Microduino. | Select the Microduino core module, then download directly, then Processing can communicate with Microduino. | ||
− | Step | + | Step 3: Explain the code: |
//default define first com port | //default define first com port | ||
Line 76: | Line 76: | ||
− | Step | + | Step 5: Compile the program and download it. |
==Result== | ==Result== |
Latest revision as of 08:59, 13 September 2016
Language: | English • 中文 |
---|
ObjectiveThis tutorial will teach you how to set up the Processing IDE, and connects to Microduino to show processing's powerful graphics and interaction function. Equipment
ProcessingProcessing is an open source programming language and integrated development environment (IDE) built for the electronic arts, new media art, and visual design communities with the purpose of teaching the fundamentals of computer programming in a visual context, and to serve as the foundation for electronic sketchbooks. The project was initiated in 2001 by Casey Reas and Benjamin Fry, both formerly of the Aesthetics and Computation Group at the MIT Media Lab. One of the stated aims of Processing is to act as a tool to get non-programmers started with programming, through the instant gratification of visual feedback. The language builds on the Java language, but uses a simplified syntax and graphics programming model. Official webpage: http://www.processing.org
SchematicProgramDebugBefore setup the Processing development environment, you need install JAVA JDK firstly. You can download the JDK package from orical webpage. Step 1: Download Processing from official webpage. Put the folder to anywhere you want. https://www.processing.org/download/ Open the folder you can see following contents: Download the Processing's Arduino library which used to communicate with Arduino. Open the link "http://playground.arduino.cc/Interfacing/Processing", you can see following prompt: Click download, and uncompress the Arduino folder, then copy to modes\java\libraries folder of Processing, restart Processing IDE. Click the processing.exe to open the Processing window, as follows: It is very similar with Arduino IDE.
Serial used to monitor serial data. Arduino(Firmata) uses to control Microduino. Open the Arduino IDE, download the "Examples > Firmata > StandardFirmata sketch" program to the Microduino core, as follows: Select the Microduino core module, then download directly, then Processing can communicate with Microduino. Step 3: Explain the code: //default define first com port arduino = new Arduino(this, Arduino.list()[0], 57600); //set LED pin is output arduino.pinMode(ledPin, Arduino.OUTPUT); //digitalWrite hight to ledpin arduino.digitalWrite(ledPin, Arduino.HIGH); Set the baud rate to 57600. You need set the same baud rate in Processig and Microduino. Step 4: Set up hardware system, as follows:
ResultThe light will flash with 1s time interval, just like use the Arduino to control. Video |