Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.27 KB

chrismas-tree.markdown

File metadata and controls

46 lines (28 loc) · 1.27 KB

Christmas tree

Christmas tree

The LEGO Group. (n.d.). Christmas tree™. Retrieved 2022, from https://www.lego.com/en-nl/product/christmas-tree-40573

Description

The [Christmas Tree] (https://www.lego.com/en-nl/product/christmas-tree-40573) The lighting of the Christmas tree will work according to color brightness. To make it work, we are going to use a color sensor. Input will be color brightness to the sensor. Output led bulb will light.

Requirements

Christmas tree will require two output ports on an EV3 brain.

Sensors

The only output port(blub) will be attached to an EV3 brain.

Port Settings

Status: Can be set to "on" or "off". When on {"status": "off"} 25% Dark automatically on by the sensor.

Port JSON

Christmas tree turns on light by a sensor

Pseudocode

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

If ( sensor > 25){ turn off light}
else (sensor <= 25){ turn on light}

➔ Back to Hackathon