The LEGO Group. (n.d.). Car Wash™. Retrieved 2022, from https://www.lego.com/en-ca/product/car-wash-60362
The [Car Wash] (https://www.lego.com/en-ca/product/car-wash-60362) LEGO® set includes a car and the car wash building with brushes that turn once a car is pushed through.
This module will have a car that automatically drives through the car wash. Once a car enters the car wash, a light will turn red to signal that the car wash is in use. A countdown will start. Once the countdown reaches 0, the “car wash process” will be complete. The car will drive out of the car wash and the light will turn green signaling that the car wash is open and available.
The car wash will require three output ports on an EV3 brain.
The first output port will be attached to a motion sensor. The second output port will be attached to a motor pair. The third output port will be attached to a light matrix.
Status: Can be set to "on" or "off". When on car moves through the car wash, the lights turn red and the timer starts. Once the timer hits 120s the light turn green it’s set to off.
Buildings: The ID of the Car Wash building.
In this example, the location is only available when recently requested:
If motion sensor = true
Then matrix light = red and countdown starts
If countdown = 0
Then car drives off