Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:app-note:firmata [2023-08-16 16:45] mattias |
blocks:app-note:firmata [2023-08-16 18:13] (current) mattias |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Controlling | + | ===== Control |
| | ||
[[https:// | [[https:// | ||
This allows rather effortless access to the digital pins on a mainly Arduino compatible microcontrollers supported by Firmata, that can be used to detect button presses and control relays and outputs. In the [[https:// | This allows rather effortless access to the digital pins on a mainly Arduino compatible microcontrollers supported by Firmata, that can be used to detect button presses and control relays and outputs. In the [[https:// | ||
+ | |||
+ | Make sure Blocks version is 6.1 or higher. | ||
Line 12: | Line 14: | ||
* In the Arduino IDE Library Manager, search for and install Firmata version >= 2.5.9. | * In the Arduino IDE Library Manager, search for and install Firmata version >= 2.5.9. | ||
- | * In the Arduino IDE, open the file libraries/ | + | * In the Arduino IDE, open the file libraries/ |
* Build the project and upload the sketch to the microcontroller. | * Build the project and upload the sketch to the microcontroller. | ||
Line 18: | Line 20: | ||
* Make sure the driver files have been installed on the server. | * Make sure the driver files have been installed on the server. | ||
* Connect the Firmata enabled device to a PIXILAB Player Spot. | * Connect the Firmata enabled device to a PIXILAB Player Spot. | ||
- | * Add the serial device in the Blocks editor on the Manage page. Use the " | + | * Add the serial device in the Blocks editor on the Manage page and specify the Display spot where the Arduino was connected. |
* Configure the device using the network device Custom Options field in the blocks editor. The json scheme is explained at the top comment of the drivers source code. | * Configure the device using the network device Custom Options field in the blocks editor. The json scheme is explained at the top comment of the drivers source code. | ||