WOLFRAM SYSTEM MODELER
CustomFirmataComponent that allows custom configuration of the Firmata |
SystemModel["ModelPlug.Boards.CustomFirmata"]
This component is for advanced users who can modify the Firmata source code or have a non-Arduino board running Firmata. This component allows you to specify your preferred baud rate and sampling interval.
The baud rate is specified with the 'BaudRate' property. You have to consider that standard serial ports do not support arbitrary baud rates.
When setting the 'UpdatePeriod' property, it is necessary to change the 'Interval length' in the simulation settings, to match the update period.
Port |
Value: "COMX" Type: SerialPort Description: Name of the serial port |
---|---|
ShowPinCapabilities |
Value: true Type: Boolean Description: Set to true if you want to see the capabilities of the pins in your board |
UpdatePeriod |
Value: 0.01 Type: Time (s) Description: Sampling interval. The standard Firmata has a maximum samplig period of 10 ms (0.01 s) |
BaudRate |
Value: 57600 Type: Integer Description: Baud rate used to comunicate with the board |
UseDTR |
Value: false Type: Boolean Description: Some boards like Arduino Leonardo require UseDTR=true |
boardConnector |
Type: BoardConnector |
---|
board |
Type: FirmataBoardObject |
---|
ModelPlug.Examples Using a Firmata-compatible board |