Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blocks:app-note:firmata [2023-08-16 16:51]
mattias
blocks:app-note:firmata [2023-08-16 18:13] (current)
mattias
Line 1: Line 1:
-===== Controlling Arduino devices (pinsusing Firmata protocol =====+===== Control Arduino pins using Firmata protocol =====
  
      
 [[https://github.com/firmata/protocol|Firmata]] is a protocol for communicating with microcontrollers to, e.g., set digital outputs and read analog inputs from another computer.  [[https://github.com/firmata/protocol|Firmata]] is a protocol for communicating with microcontrollers to, e.g., set digital outputs and read analog inputs from another computer. 
 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://github.com/pixilab/blocks-script|Blocks driver repo on GitHub]], there is a driver that can be used to control a Firmata-enabled microcontroller from Blocks. This article describes roughtly the steps involved in programming the Firmata software on a microcontroller using the Arduino IDE and how to use the Firmata Blocks driver. It is assumed that the reader is familiar with the Arduino IDE. Firmata and Arduino it not covered within the scope of Pixilab support, any Arduino issues must be directed to the maintainers of firmata and their user forums and documentation or adressed to Pixilab as a consultancy request. 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://github.com/pixilab/blocks-script|Blocks driver repo on GitHub]], there is a driver that can be used to control a Firmata-enabled microcontroller from Blocks. This article describes roughtly the steps involved in programming the Firmata software on a microcontroller using the Arduino IDE and how to use the Firmata Blocks driver. It is assumed that the reader is familiar with the Arduino IDE. Firmata and Arduino it not covered within the scope of Pixilab support, any Arduino issues must be directed to the maintainers of firmata and their user forums and documentation or adressed to Pixilab as a consultancy request.
 +
 +Make sure Blocks version is 6.1 or higher.