WOLFRAM SYSTEM MODELER

CustomFirmata

Component that allows custom configuration of the Firmata

Wolfram Language

In[1]:=
SystemModel["ModelPlug.Boards.CustomFirmata"]
Out[1]:=

Information

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.

Parameters (5)

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

Connectors (1)

boardConnector

Type: BoardConnector

Components (1)

board

Type: FirmataBoardObject

Used in Examples (1)

UsingCustomBoard

ModelPlug.Examples

Using a Firmata-compatible board