IFTTT is a no‑code automation platform that connects apps, services, and devices using simple trigger‑action rules called Applets. It allows you to automate tasks based on time, weather, voice commands, and many other online events.
In this tutorial, we will use IFTTT with micro:bit and IoT:bit module to control an LED from the cloud. When the time reaches 6:00 PM, IFTTT will send a command to the micro:bit to turn on the LED automatically.
Circuit ConnectionClick the link directly to use the ready-made program.
1. Connect to Wi‑Fi
Before using cloud control, make sure your micro:bit is connected to Wi‑Fi.
Refer to Wi‑Fi setup guide if needed. (Link)
2. Get the Device ID
The Device ID is required for IFTTT to identify and control your micro:bit.
- Go to OLED → Drag initialize OLED with width 128 height 64 → Place inside on start
- Go to IoT:bit → Add On WiFi connected event block
- Inside this block → Add show string → Insert the Device ID variable
When Wi‑Fi connects, the Device ID will appear on the OLED screen.
3. Receive Cloud Commands
After connecting to Wi‑Fi, the micro:bit links to the cloud server and waits for incoming commands.
- Go to WAN Control → Add On WiFi received event block
- Inside this block → Add an if statement → Check the WAN_Command variable
Set the conditions:
- If WAN_Command = "light_on" → Set LED on P0 to brightness 1023
- If WAN_Command = "light_off" → Set LED on P0 to brightness 0
The micro:bit will now respond to commands sent from IFTTT.
4. Display Received Command
- Inside On WiFi received → Add clear OLED display
- Add show string below it → Insert the WAN_Command variable
This displays the received command on the OLED screen for easier debugging..
5. Upload and Run the Code
Now we will configure IFTTT to send the command at 6 PM.
1. Create or Log In to IFTTT
- Go to https://ifttt.com
- Sign up or log in to your account
You’re now ready to create your Applet.
2. Create a New Applet
- Click Create → Applets
3. Set the Trigger
- Click If This
- Search Date & Time
- Select trigger: Every day at
- Choose time: 6:00 PM
- Click Create Trigger
4. Set the Action
- Click Then That
- Search micro:bit
- Select Smarthon IoT (micro:bit)
- Choose action: Control Command
- Enter Device ID (from your OLED display) and Command:
light_on - Click Create Action
Your IFTTT Applet is now ready.
ResultAfter powering on and connecting to Wi‑Fi, the micro:bit automatically connects to the cloud control server and continuously listens for incoming WAN commands.
When the time reaches 6:00 PM, the IFTTT Applet is triggered and sends the command “light_on” to the registered Device ID. The micro:bit receives the command and immediately turns on the LED connected to P0.


_73q4ZG34Oh.jpg?auto=compress%2Cformat&w=48&h=48&fit=fill&bg=ffffff)









Comments