Skip to content

Latest commit

 

History

History
84 lines (47 loc) · 1.56 KB

File metadata and controls

84 lines (47 loc) · 1.56 KB

Loop Coaster

Loop Coaster

The LEGO Group. (n.d.). Loop Coaster™. Retrieved 2023, from https://www.lego.com/en-ca/product/loop-coaster-10303

Description

The Loop Coaster LEGO® Loop Coaster is a theme park, where there is motorized coaster going around once.

The LEGO Group. (n.d.). Loop Coaster™. Retrieved 2023, from https://www.lego.com/en-ca/product/loop-coaster-10303

Sensors and Motors

The Loop Coaster will require a Motor and Battery pack.

Loop Coaster Sensors and Motors

Loop Coaster Sensors and Motors

Pseudocode

In this example, the location is only available when recently requested:

Elevator code:

While true

If status == “on”

If counter == 0

Start motor elevating up

Else if counter == 10

Stop motor

Else if counter == 40

Start motor elevator down

Else if counter == 60

Stop motor
Coaster Code:

While true

If status == “on”

If counter == 0

Start motor

Else if counter == 40

Stop motor forward

Else if counter == 50

Start motor backward

Else if counter == 60

Stop motor

➔ Back to Hackathon