You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,19 @@
1
1
#Firmata
2
2
3
-
Firmata is a arduino library that establishes a protocol for talking to the Arduino from the host software. The aim is to allow people to completely control the Arduino from software on the host computer.
3
+
Firmata is a protocol for communicating with microcontrollers from software on a host computer. The protocol can be implemented in firmware on any microcontroller architecture as well as software on any host computer software package. The arduino repository described here is a Firmata library for Arduino and Arduino-compatible devices.
4
4
5
5
##Usage
6
6
7
-
To use on your arduino you just need to upload a sketch included in the arduino IDE:
7
+
There are two main models of usage of Firmata. In one model, the author of the Arduino sketch uses the various methods provided by the Firmata library to selectively send and receive data between the Arduino device and the software running on the host computer. For example, a user can send analog data to the host using ``` Firmata.sendAnalog(analogPin, analogRead(analogPin)) ``` or send data packed in a string using ``` Firmata.sendString(stringToSend) ```. See File -> Examples -> Firmata -> AnalogFirmata & EchoString respectively for examples.
8
8
9
-
File > Examples > Firmata > StandardFirmata
9
+
The second and more common model is to load a general purpose sketch called StandardFirmata on the Arduino board and then use the host computer exclusively to interact with the Arduino board. StandardFirmata is located in the Arduino IDE in File -> Examples -> Firmata.
10
10
11
-
Most of the time you will be interacting with arduino with a client library on the host computers. Firmata is implemented in a number of popular programming languages.
11
+
##Firmata Client Libraries
12
+
Most of the time you will be interacting with arduino with a client library on the host computers. Several Firmata client libraries have been implemented in a variety of popular programming languages:
The version of firmata in the arduino IDE contains the latest stable version of firmata. If you need to use any updates made to this repository just clone the repo into the location of firmata in the arduino IDE.
40
+
Note: The above libraries may support various versions of the Firmata protocol and therefore may not support all features of the latest Firmata spec nor all arduino and arduino-compatible boards.
41
+
42
+
##Updating Firmata in the Arduino IDE
43
+
The version of firmata in the arduino IDE contains the latest stable version of firmata (Arduino 1.0 includes Firmata 2.3). If you need to use any updates made to this repository just clone the repo into the location of firmata in the arduino IDE.
0 commit comments