Electromagnet - Robot Features - VEXcode VR

This Electromagnet on the VEX VR Robot can be controlled to pick up and drop disks with metal cores.

The following article will cover:

  • What is an Electromagnet?
  • How Electromagnets Work 
  • Uses in VEXcode VR

What is an Electromagnet?

An electromagnet is a specific type of magnet where the magnetic field is produced by an electric current. The VEX VR Robot has an electromagnet to pick up and put down disks that contain metal cores.

Disks.png

The VEX VR Robot Electromagnet is located at the front of the robot pointing down towards the Playground currently in use.

VEXcodeVR-MagnetCallout.png


How Electromagnets Work

On specific Playgrounds in VEXcode VR, there are disks with metal cores that can be used with the Electromagnet.

By setting the Electromagnet to boost, the user is able to energize the magnet.

Magnet_boost.png

Any disks beneath the Electromagnet will be picked up by the VR Robot.

Pick_up_disk.png

By setting the Electromagnet to drop, the user de-energizes the magnet.

Magnet_drop.png

Any disk currently being held by the VR Robot Electromagnet will be dropped.

Drop_disk.png


Uses in VEXcode VR

The VEXcode VR Robot Electromagnet can be used on the Disk Transport Playground. Disks of varying colors lie within a walled area.

Unity_2020-04-10_11-03-23.jpg

The following example has the VR Robot drive forward into the Castle walls, turn left, then pick up and drop a blue disk.

Electromagnet_code.png

For an extra challenge, attempt to stack disks on top of one another. While the Electromagnet can only hold one disk at a time, the user is able to stack disks two high and still travel over the stack.

Stack_disks.png