Magnet#

Energize Electromagnet#

The Energize Electromagnet block is used to set the GO Electromagnet to two different actions: boost or drop.

  energize [magnet v] to [boost v]

Select which mode for the Electromagnet to use:

  • boost - Turns on the electromagnet indefinitely or until the Energize Electromagnet block is used with the drop parameter.

  • drop - Releases any object the electromagnet is holding.

Electromagnet modes: boost for continuous power or drop to release objects, illustrated in the Energize Electromagnet block.

In this example, the Electromagnet will turn on for 2 seconds before turning off.

  when started :: hat events
  energize [magnet v] to [boost v]
  wait (2) seconds
  energize [magnet v] to [drop v]