LEGO (n.d.). LEGO Daily Bugle. Retrieved February 12, 2024, from https://www.lego.com/en-ca/product/daily-bugle-76178
The Daily Bugle's antenna, crowned with a pulsating red light, elegantly illuminates when a passing vehicle triggers its sensor.
LEGO (n.d.). LEGO Daily Bugle. Retrieved February 12, 2024, from https://www.lego.com/en-ca/product/daily-bugle-76178
The output will be a Color & Distance sensor which will be detecting motion in front of the building’s street.
Daily Bugle will require one output port on an EV3 hub to connect a sensor. Sensor will be sending signal to the tower light through a wire.
Status: When a vehicle passes in front of the tower, status switches to on. When on, the red light on the tower will blink at interval of 3 seconds. Status returns to off after that.
Interval can be changed
In this example, the location is only available when recently requested:
While True
IF status == "on" THEN
LocationStatus = TRUE
RotateMotor to 0
IF counter % 3 == 0 THEN
Turn off the light
ELSE
Turn on the light
ENDIF
ENDIF
ENDREPEAT