查看“Setup Processing IDE”的源代码
←
Setup Processing IDE
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Language | 搭建Processing开发环境}} {| style="width: 800px;" |- | ==Objective== This turorial will teach you how to set up the Processing IDE, and connects to Microduino to show processing's powerful graphics and interaction function. ==Equipment== *'''[[Microduino-Core]]''' *'''[[Microduino-FT232R]]''' *Other equipment **USB cable one **LED one **330Ω resistor one **Bread one **Breadboard Jumper onebox ==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. Official webpage:http://www.processing.org ==Schematic== [[File:processingControlLED原理图.jpg|600px|center|thumb]] ==Program== https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Processing/setupProcessingDevEnv ==Debug== Before setup the Processing development enviroment, 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: [[File:processingFlode.jpg|600px|center|thumb]] 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: [[File:downArduinoLib.jpg|600px|center|thumb]] 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: [[File:processingDEV.jpg|600px|center|thumb]] It is very similar with Arduino IDE. Step 2: If you want to set up the connection between Processing and Microduino, need choose serial and Arduino(Firmata) function in Sketch-->Import Library. After selected, they are added in IDE automatically, just like the yellow part in following picture. [[File:processingImport.jpg|600px|center|thumb]] 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: [[File:Firmata.jpg|600px|center|thumb]] 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: [[File:processingControlLED连接图.jpg|600px|center|thumb]] Step 5:Compile the program and download it. ==Result== The light will flash with 1s time interval, just like use the Arduino to control. ==Video== |}
该页面使用的模板:
模板:Language
(
查看源代码
)
模板:Nmbox
(
查看源代码
)
返回至
Setup Processing IDE
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息