Tip | ||
---|---|---|
| ||
|
Pre-requisite:
- Basic Arduino knowledge
- Basic Processing knowledge
Objectives:
- Using processing to directly control Arduino pin outs and read sensor Values.
Descriptions:
- Open Processing and goto Sketch->Import Library->Add Library...
(I have earlier version of processing and it doesn't have this option)
- Type firmata in the search bar and click install
- Prepare Arduino for using Firmata by going to Arduino Environment
Goto File->Examples->Firmata->StandardFirmata, open and upload the programme to Arduino
- Goto processing and open the Examples of the Firmata Processing under Contributed Libraries
- Try the examples. (You need to connect the buttons/sensors/servos accordingly)
- If you have Arduino UNO as the examples in Arduino, you'll need to change the pwm/servo examples' pin number from 4,7 into the pin numbers with "~"
See also:
Page Tree | ||
---|---|---|
|
Appendix:
Installing Firmata for older versions of processing
Please refer to http://playground.arduino.cc/Interfacing/ProcessingiFrame src http://playground.arduino.cc/Interfacing/Processing width 960 height 600 Download the suitable version for your processing and extract the folder to <Your Document Folder>/Processing/libraries/
Restart processing. (close and open)