Cerebro#

Introducción#

Brain blocks allow your robot to report information about the battery connected to the EXP Brain, such as battery voltage, current, and charge capacity. These blocks also allow you to respond to button presses on the EXP Brain.

A continuación se muestra una lista de los bloques disponibles:

Brain button pressed#

The Brain button pressed Boolean block reports whether a specified button on the Brain is currently being pressed.

  • True – The specified button on the Brain is being pressed.

  • False – The specified button on the Brain is not being pressed.

<¿Botón del cerebro [ presionado?>

Parámetro

Descripción

botón

¿Qué botón usar?:

  • Comprobar

cuando empezó
[Display a message when the Brain's button is pressed.]
esperar hasta <¿Botón del cerebro [Check v] presionado?>
imprimir [Check was pressed!] en la pantalla ▶

Voltaje de la batería#

Voltage is the electrical pressure supplied to the battery. The Battery voltage reporter block reports the battery’s current voltage, which can help you check whether the battery is charged enough for the robot to run reliably, ranging from 7.0 to 8.0 Volts.

(voltaje de la batería en voltios)

Parámetros

Descripción

Este bloque no tiene parámetros.

Corriente de la batería#

Current is how much electrical flow the robot is using from the battery. The Battery current reporter block reports the battery’s current draw, which can help you see how hard the robot is working or whether motors may be under extra load, ranging from 0.0 to 15.0 Amps.

(corriente de la batería en amperios)

Parámetros

Descripción

Este bloque no tiene parámetros.

Capacidad de la batería#

The Battery capacity reporter block reports the battery level, as a percentage from 0% to 100%.

(battery capacity in %)

Parámetros

Descripción

Este bloque no tiene parámetros.

cuando el botón del cerebro#

El bloque cuando se presiona el botón del cerebro ejecuta la pila adjunta cuando se presiona o se suelta un botón específico en el cerebro.

cuando Cerebro [ botón %2  :: hat events

Parámetro

Descripción

botón

Determines which button will trigger the event:

  • Check

action

Determines when the attached stack of blocks will execute: pressed will run when a button is pressed, and released will run when a button is released.

Avance hasta que se detecte un objeto a menos de 200 mm.#
cuando Cerebro [ botón %2  :: hat events
[Display a message when the Brain's button is pressed.]
imprimir [Left arrow pressed!] en la pantalla ▶