We’ll see how to create, trigger and automate audio effects with Room and we’ll add light effects with a simple connected prop:
Part 1: Create (preloaded) audio effect
Part 2: Add light effect with simple prop
Part 3: Trigger audio/lights effect when challenge is completed
Part 2: Add light effect with simple prop
Light effects are as important as audio effects for immersive experience.
Controlling lights requires a prop connected to the network to receive orders from Room via MQTT broker.
You can learn about DIY props here and get props source there on GitHub.
We use an Arduino MKR WiFi 1010 to control 6 lights with a 8-relays SSR module:
- we configure the MQTT command of the Audio Box effect
- we test the MQTT command
- we build and connect the Light prop
- we add the Light prop to Room props
- we test the whole audio/lights effect with Room
Configure MQTT command
- enter an MQTT topic for testing
- enter a command to be sent to the prop
- Apply
Test MQTT command is sent
From the File menu, open the Sent message window:
Now, when you trigger the Thunder storm effect, a message is posted in Room/Test effect topic:
Build and connect a Light prop
We keep this tutorial simple by building a simple prop with an Arduino MKR WiFi 1010 to control 6 lights. with a 8-relays SSR module (see RELAY_MODULES.md).
- Download ArduinoProps.zip
- Open Arduino IDE
- Install ArtduinoProps library
- Install WiFiNINA library
Relative links on GitHub:
Add your Light prop to Room
Add the prop in Room software:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
work in progress…