BlocosIA Wiki Editor

Arduino

LEDs, buttons, sensors and servos. Upload StandardFirmata to the board.

In the Arduino IDE: File > Examples > Firmata > StandardFirmata > Upload. Then connect here by USB (Chrome or Edge).

To use it: in the editor, click "Extensions" (bottom corner) and add "Arduino".

Stack

digital pin [0] [on]

Does an action. Snap it below another block.

Stack

board LED (13) [on]

Does an action. Snap it below another block.

Stack

PWM pin [3] with intensity ( ) (0โ€“255)

Does an action. Snap it below another block.

Stack

servo on pin [0] to ( ) degrees

Does an action. Snap it below another block.

Hat

when pin [0] turns [on]

Starts a script when this happens.

Boolean

is pin [0] on?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Reporter

value of pin [A0] (0โ€“1023)

Gives a number or text. Put it inside a round slot.

Boolean

Arduino connected?

Answers true or false. Use it in "if", "repeat until" and "wait until".