Skip to content

Week 1: Device Setup & First Project

This guide gets you from unboxing to a working project in UIFlow 2.0. Follow each step in order.

The course uses two different M5Stack devices this semester. Your team will receive either an M5StickC Plus or an M5StickS3. The setup process differs between them — each section below uses tabs. Select your device tab each time before reading the instructions.


ItemWhy NeededNotes
LaptopUIFlow 2.0 runs in your browserWindows, Mac, or Linux. Tablets/phones will NOT work
Chrome or Edge browserUIFlow 2.0 requires Web Serial APISafari and Firefox do NOT work. Download Chrome
USB data cableConnect device to your computerMust be a DATA cable, not charge-only. Quick test: can you transfer photos with it?
Laptop chargerSessions are 4 hours longMost batteries won’t last the full session

💡 About 50% of connection issues come from wrong cables

Charge-only cables look identical to data cables but cannot transfer data. If your device is not detected, try a different cable first.


One account per team. One person creates it and shares the login with all teammates.

/ completed — progress saved in your browser


These instructions are for the M5StickC Plus. If your team has an M5StickS3, click the other tab above.

The M5StickC Plus connects to UIFlow 2.0 over WiFi. It communicates with the browser IDE through the M5Stack cloud relay — you need a working WiFi connection during the session.

English (YouTube) ~4 min
Bilibili ~4 min

The M5StickC Plus uses a CP2104 USB-Serial chip. A driver is needed to let your computer communicate with it over USB.

Windows:

  1. Device unplugged — install before connecting
  2. Download the CP210x VCP driver from the M5Stack Downloads page or directly from Silicon Labs
  3. Run the installer → Restart your computer
  4. Plug in the device — Device Manager should show it under Ports (COM & LPT) as CP210x USB to UART Bridge

Mac:

macOS ships a built-in USB serial driver (AppleUSBSLCOM) that works for many Silicon Labs chips — but it has only been confirmed to work with the CP2102. The M5StickC Plus uses a CP2104, which requires the Silicon Labs VCP driver.

  1. Plug in the device first and check if it is automatically detected:

    Terminal window
    ls /dev/tty.SLAB*

    If you see /dev/tty.SLAB_USBtoUART → the device is detected, skip the driver install.

  2. If nothing appears → install the Silicon Labs CP210x VCP driver

  3. After installing, go to System Settings → Privacy & Security → scroll down → look for a message about “Silicon Laboratories” being blocked → click Allow

  4. Restart your Mac, then plug in the device again and recheck with ls /dev/tty.SLAB*

When you power on the device (hold the side button for 2 seconds), you should see the UIFlow boot screen followed by WiFi status information on the display.

If the device shows an unfamiliar screen or appears unresponsive, ask your TA — do not attempt to reflash firmware without permission.

The first time a device is used, it needs WiFi credentials entered.

  1. Power on the device — it creates a WiFi hotspot called M5-XXXXXX
  2. On your laptop, connect to that WiFi network (it may take 20–30 seconds to appear)
  3. Open a browser and go to 192.168.4.1
  4. Enter the session WiFi SSID and password (instructor provides these)
  5. Submit — the device connects to WiFi and reboots
  6. Once connected, the device screen shows your API Key

The API Key is displayed on the device screen after it connects to WiFi — a short alphanumeric string (e.g. 4F8A2C). Write it down. You will need it in Step 3.


M5StickC Plus connects via Internet mode using the API Key from your device screen.

  1. Open uiflow2.m5stack.com in Chrome or Edge
  2. Log in with your team UIFlow 2.0 account
  3. In the top-right connection area, click the connection button
  4. Select Internet mode
  5. Enter the API Key shown on your device screen
  6. Click Connect

You should see a green connected indicator and your device name in the IDE.


  1. Download the starter project: StickCPlus-KnightRider.m5f2
  2. In UIFlow 2.0: File → Import → select the downloaded .m5f2 file
  3. Click Run (▶ button)
  4. Watch the LEDs animate on your device!

Once it’s running, explore the blocks: change LED colours, adjust speed, add conditions. You don’t need to understand everything yet — just start modifying and see what happens.


Your device is connected and running. Now it’s time to build something with it.


Got your device working? Help others! This earns recognition in your assessment.

  1. Solved your setup issue? Great!
  2. Look around — who else is struggling?
  3. Help your teammates first, then help other teams
  4. After helping, report to TA: “I helped [Name] from [Team]”

ℹ️ In your video demo

You can mention helping other teams — but only if you reported it to the TA first for verification.


SymptomQuick Fix
Device not in Device Manager (Windows)Install CP2104 driver, restart computer
ls /dev/tty.SLAB* returns nothing (Mac)Install Silicon Labs driver; approve in System Settings → Privacy & Security
M5-XXXXXX hotspot not appearingHold side button 2s to power on; check UIFlow firmware is installed
WiFi config page won’t load at 192.168.4.1Confirm your laptop is connected to M5-XXXXXX, not your home WiFi
API Key not showing on screenDevice hasn’t connected to WiFi yet — redo WiFi config step
UIFlow shows “Disconnected”Check API Key matches device screen; confirm device is on WiFi
Apple Silicon Mac + VenturaAsk TA — driver install may require Reduced Security mode

If nothing works after 20 minutes: Ask your TA to use their laptop. No penalty — some PCs have IT restrictions that block USB serial access.

See the full Troubleshooting Guide for detailed solutions.

Current page
🤖