Skip to content

Latest commit

 

History

History
73 lines (43 loc) · 1.98 KB

infinitiy-gauntlet.markdown

File metadata and controls

73 lines (43 loc) · 1.98 KB

Infinity Gauntlet

LEGO (n.d.). LEGO Nano Gauntlet. Retrieved February 12 2024, from https://www.lego.com/en-ca/product/nano-gauntlet-76223

Description

Tony Stark's Infinity Gauntlet from Avengers Endgame. We will add lights in the infinity stones and a motor in the base to make the whole hand spinning.

LEGO (n.d.). LEGO Nano Gauntlet. Retrieved February 12 2024, from https://www.lego.com/en-ca/product/nano-gauntlet-76223

This interaction will only require a motor and lights.

Requirements

The first output will be attached to an EV3 servo motor. The second port will be connected to EV3 Lights.

Pseudocode

This would be the code for the Hand rotation that would be 2 rotations, that will be completed in 1 minute:

While True

If status == "on"

If counter == 0
    Start motor slow clockwise

Else if counter == 30
    Stop motor

Else if counter == 35
    Start motor slow counter-clockwise

Else if counter == 60
    Stop motor

And for the lights in the Infinity Stones, this would go as follow:

While True

If status == "on"

If counter == 0
    Turn on lights

If counter == 100
    Turn off lights

Port Settings

Rotating hand Status: Can be set "on" or "off". (Rotate back and forth constantly)

Lights Status: Can be sent to "on" or "off". (The Infinity Stones will light up and turn off automatically)

➔ Back to Hackathon