Guides · 15 min read

Raspberry Pi Pico W Phone Control: LED, Relay and DHT22 Sensor

Control a Raspberry Pi Pico W from your phone: set up arduino-pico in Arduino IDE, wire an LED and relay to GP15, a DHT22 to GP16, and see live graphs in BlueGrays IoT.

Controlling a Raspberry Pi Pico W from your phone means switching on the living room lamp from bed, checking the room temperature while you're at work, or seeing remotely whether you left the door open. The wireless chip on the Pico W connects the board to a 2.4 GHz Wi-Fi network. With BlueGrays IoT, the board connects to the BlueGrays server over an encrypted WebSocket connection (TLS, port 443), and your phone connects to the same server. That means your phone and the board don't have to be on the same network: you can flip switches from outside the house over mobile data. No port forwarding, no static IP address and no server of your own required.

In this guide you'll set up a Pico W from scratch. First you'll install the right board package in Arduino IDE and see how to use the BOOTSEL button for the first upload. Then you'll create a device in the app in 5 steps, test it with an LED on GP15, and swap in a relay module on the same pin. After that you'll connect a DHT22 to GP16 and watch temperature and humidity on your phone as live values and graphs. At the end you'll find the Pico W pins for all 8 ready-made templates, fixes for Pico W-specific problems and a quick comparison with the ESP32.

Raspberry Pi Pico board used for phone control
All Pico boards look very similar from the outside. For phone control you need the W version, which has a wireless chip.

Pico vs Pico W: only the W has Wi-Fi

There are four boards in the Raspberry Pi Pico family, and at first glance they look almost identical. The difference comes down to the letter W in the name: W stands for wireless. The Pico W and Pico 2 W have a small metal-shielded wireless chip (Infineon CYW43439) next to the USB port and a PCB antenna at the end of the board. The plain Pico and Pico 2 don't have this chip. No matter how powerful they are, these boards can't join Wi-Fi, so they can't be controlled from your phone. For the board's general specs, see What Is the Raspberry Pi Pico?

BoardProcessorWi-FiPhone control (BlueGrays IoT)
Raspberry Pi PicoRP2040, dual-core, 133 MHzNoneNo
Raspberry Pi Pico WRP2040, dual-core, 133 MHz2.4 GHz (CYW43439)Yes
Raspberry Pi Pico 2RP2350, dual-core, 150 MHzNoneNo
Raspberry Pi Pico 2 WRP2350, dual-core, 150 MHz2.4 GHz (CYW43439)Yes

When people think of the Pico, MicroPython and Thonny usually come to mind. On this route, though, you'll use Arduino IDE. Here's why: BlueGraysIoT, which handles the connection between your phone and the board, is an Arduino library written in C++. Ohmi in the app generates the code as an Arduino sketch tailored to your board, Wi-Fi details and device key. Because the same library also runs on the ESP32, the templates work the same way on both boards. Your MicroPython knowledge isn't wasted: if you want a simple local control panel on the same network, the method in Pico W Wi-Fi Web Server still works. But access from outside the house, graph history and a ready-made phone interface come from this Arduino IDE route.

What you need

Part or toolWhat for?Note
Raspberry Pi Pico W (or Pico 2 W)Main boardGet one with soldered headers; if you don't want to solder, buy the WH version with pre-soldered headers
Micro USB data cableUploading code and powerCharge-only cables have no data lines; your computer won't see the board
Computer and Arduino IDEUploading code to the boardWindows, macOS or Linux
Phone and the BlueGrays appControlling the boardiOS or Android
2.4 GHz Wi-Fi networkInternet access for the boardIt won't connect to 5 GHz networks
LED and 220 Ω resistorFirst safe testAlways try this before the relay
5 V relay moduleSwitching a lamp or outletPrefer a module with an optocoupler
DHT22 temperature and humidity sensorLive values and graphsThe module version has the pull-up resistor built in
Breadboard and jumper wiresBuilding the circuitMale-to-female wires are handy for the relay module

Preparing the Pico W in Arduino IDE

Out of the box, Arduino IDE doesn't recognize the Pico W. First you need to add the arduino-pico core by Earle Philhower. This core supports the Pico W's wireless chip, the Pico 2 W and the networking libraries BlueGraysIoT needs. If you haven't installed the IDE yet, the details are in How to Install Arduino IDE. Then follow these steps in order:

  1. In Arduino IDE, open File › Preferences and add the arduino-pico package URL to the Additional boards manager URLs field. You'll find the URL on the arduino-pico project page. If the field already contains other URLs, put the new one on a separate line.
  2. Open Tools › Board › Boards Manager, type pico in the search box and install the Raspberry Pi Pico/RP2040/RP2350 package. The author should be Earle F. Philhower, III. The download can be a few hundred MB.
  3. Select Raspberry Pi Pico W from the Tools › Board menu. If you're using a Pico 2 W, pick Pico 2 W from the same list. If you select the plain Pico, the Wi-Fi code won't compile.
  4. In Tools › Manage Libraries, search for BlueGraysIoT and click Install. If it asks about dependencies, choose Install all; WebSockets, ArduinoJson and DHT sensor library come along with it. If you run into trouble, see the How to Add an Arduino Library guide.
  5. For the first upload, hold down the white BOOTSEL button on the board while plugging in the USB cable, then release it. A drive called RPI-RP2 appears on your computer (on the Pico 2 W it's called RP2350). In the Tools › Port menu, pick the UF2 Board option or similar and click Upload.
  6. When the first upload finishes, the board restarts and from then on shows up as a normal serial port: something like COM3 on Windows, or /dev/ttyACM0 on macOS and Linux. You usually won't need BOOTSEL for later uploads.
When you search for "pico" in Boards Manager, the Arduino Mbed OS RP2040 Boards package also shows up in the list. This package doesn't support the Pico W's Wi-Fi chip. Code compiled with it either throws errors or, even if it uploads, never connects to the network. If you installed it by mistake you don't have to remove it, but make sure the board selected under Tools › Board comes from the Raspberry Pi Pico/RP2040/RP2350 group.

Creating a device in the app in 5 steps

In the BlueGrays app, go to Workshop › My devices › Add new device. The top of the screen shows "Step n / 5". The flow is the same as for the ESP32; on the Pico W, only the board selection, pin names and upload details differ.

  1. Board and template: For "Which board do you have?", choose Pico W (choose this for the Pico 2 W too). Under "What will it do?", pick one of the 8 templates, for example Room station, and give the device a name like "Living room".
  2. Parts and circuit: The "Get your parts ready" list and the "Connect the wires" diagram come with Pico W pins: relay on GP15, DHT22 on GP16. Relay templates show the warning "If you'll be working with 220 V, do it with someone who knows how. Try it with an LED first."
  3. Wi-Fi and code: Enter the name and password of your 2.4 GHz network. If you like, change the pins in the "Connection pins" section, then tap "Create device and prepare code". The code is generated with your device key, which starts with bgd_. Your Wi-Fi password stays on your phone only and is never sent to the server. Use "Copy code" or "Share" to get the code onto your computer.
  4. Upload in Arduino IDE: Open a new sketch, paste the code and click Upload. Make sure Raspberry Pi Pico W is selected as the board. If needed, hold BOOTSEL while plugging in USB for the first upload. Then open the Serial Monitor at 115200 baud.
  5. Connection: The "Waiting for your board" screen switches automatically to "Connected: Values now arrive in real time." once the board connects. If it doesn't connect within 2 minutes, check that your network is 2.4 GHz, look for the "Wi-Fi connected" message in the Serial Monitor, and double-check upper and lower case in the password.
On the Pico W, USB runs directly through the RP2040 chip itself. That's why you don't need to install a CP210x or CH340 driver like on the ESP32; Windows 10/11, macOS and Linux recognize the board automatically. The equivalent of the ESP32's BOOT button, which you press when an upload gets stuck, is BOOTSEL here. And don't share the code you see in step 3: it contains your device key and Wi-Fi password.

Test with an LED first: LED on GP15 with 220 Ω

Before moving to the relay, connect an LED to the same pin to test the code, Wi-Fi and phone connection on a zero-risk circuit. Choose the Relay lamp or Room station template, connect the LED's long leg to GP15 through a 220 Ω resistor and the short leg to GND. With a red LED the current is about (3.3 − 2.0) / 220 ≈ 5.9 mA; that lights the LED clearly without straining the pin. For other colors or currents you can use the LED resistor calculator. You only need to change one line in the code: set RELAY_ACTIVE_LOW = true to false. Most relay modules switch on with a LOW signal, so the code ships with inverted logic by default. If you don't fix this for the LED, it will be on when the switch on your phone is off and go out when you turn it on.

LED circuitPico W pinPhysical pinNote
220 Ω resistor → LED long leg (+)GP1520Works whichever side of the LED the resistor is on
LED short leg (−)GND18 or 23The board has 8 separate GND pins

Next the relay: a lamp switch with the Pico W

If the LED turns on and off from your phone without trouble, you can move GP15 over to the relay module's IN pin. Set RELAY_ACTIVE_LOW back to true and upload the code again. The relay coil needs 5 V, so power the module not from the 3.3 V pin but from VBUS, which provides 5 V while the board is powered over USB. We covered how relay modules work in detail in What Is a Relay Module?

Relay module pinPico W pinPhysical pinNote
VCCVBUS40About 5 V while the board is powered over USB
GNDGND38Common ground is a must
INGP1520RELAY_PIN = 15 in the code
COM and NONot connected to the board-Wired in series with the load you're switching; on the NO terminal, the circuit closes when the relay energizes

The Pico W's pins output 3.3 V; most 5 V relay modules trigger fine with that signal, but not all of them. On an active-LOW module, when the pin is HIGH there's still 3.3 V on IN, leaving a 1.7 V difference to the 5 V VCC, and on some modules that's enough to dimly light the input LED; the result is a relay that never releases or behaves erratically. Modules with an optocoupler and a JD-VCC jumper are more reliable here; you can read how they work in What Is an Optocoupler? If the relay doesn't click on, or never releases, first measure the voltage on IN, then try a module designed for 3.3 V triggering.

Switching a 220 V mains lamp or outlet with a relay is dangerous. Do it with someone who knows how, and try it with an LED first. Always make connections with the plug pulled, never leave any bare wire ends, and put the circuit inside a closed, insulating enclosure. The solder joints behind the relay's COM and NO screw terminals also carry mains voltage; never leave the module exposed on a breadboard.

Temperature and humidity with a DHT22: room station code

Now let's add a sensor and complete the Room station template: the same board will control the lamp and also send temperature and humidity to your phone. The DHT22 (AM2302) measures from −40 to 80 °C with about ±0.5 °C accuracy, and humidity across 0–100% with ±2–5% accuracy, and it runs on 3.3 V. That's why powering it from the 3V3(OUT) pin is the safest option; the data line then reaches the Pico W at 3.3 V logic level. We compared it with its sibling, the DHT11, in DHT11 Temperature and Humidity Sensor.

DHT22 pinPico W pinPhysical pinNote
VCC (+)3V3(OUT)363.3 V output; don't apply 5 V
DATA (OUT)GP1621DHT dht(16, DHT22) in the code
GND (−)GND23Common ground
Pull-up resistorBetween DATA and 3V3(OUT)-Only the bare 4-pin sensor needs a 10 kΩ; modules have it on board

The code below is exactly what the app generates for the Pico W with the Room station template. The app fills in the three lines at the top with your device key and Wi-Fi details. You don't need to replace the placeholders you see here yourself; just copy the code from the app.

C++ (Arduino IDE)
1/*
2 * Oda istasyonu · BlueGrays IoT
3 * BlueGrays · bluegrays.com
4 * Bu kodu paylaşma: içinde cihaz anahtarın ve Wi-Fi şifren var.
5 * Do not share this code: it contains your device key and Wi-Fi password.
6 */
7
8#include <BlueGraysIoT.h>
9#include <DHT.h>
10
11const char *DEVICE_KEY = "bgd_UYGULAMADAKI_ANAHTARIN";
12const char *WIFI_NAME = "EV_AGI_2_4_GHZ";
13const char *WIFI_PASSWORD = "WIFI_SIFREN";
14
15BlueGraysIoT bg(DEVICE_KEY);
16
17const int RELAY_PIN = 15;           // röle IN ucu GP15 / relay IN on GP15
18const bool RELAY_ACTIVE_LOW = true;  // çoğu röle modülü LOW ile çeker / most relay modules switch on LOW
19void setRelay(bool on) { digitalWrite(RELAY_PIN, (on != RELAY_ACTIVE_LOW) ? HIGH : LOW); }
20DHT dht(16, DHT22);                  // DHT22 veri ucu GP16 / DHT22 data on GP16
21unsigned long lastReadMs = 0;
22
23void setup() {
24  Serial.begin(115200);
25  pinMode(RELAY_PIN, OUTPUT);
26  setRelay(false);
27  bg.onSwitch("lamba", setRelay);
28  dht.begin();
29  bg.setDeadband("sicaklik", 0.1);   // 0,1 °C değişmeden gönderme / send only after a 0.1 °C change
30  bg.setDeadband("nem", 1.0);        // %1 değişmeden gönderme / send only after a 1 % change
31  bg.setDebug(Serial);
32  bg.setLanguage(BG_LANG_TR);
33  bg.begin(WIFI_NAME, WIFI_PASSWORD);
34}
35
36void loop() {
37  bg.loop();  // burada uzun delay() kullanma / avoid long delay() calls here
38  if (millis() - lastReadMs >= 2000) {  // DHT22 en fazla 2 saniyede bir okunur / DHT22 reads at most every 2 s
39    lastReadMs = millis();
40    bg.send("sicaklik", dht.readTemperature());
41    bg.send("nem", dht.readHumidity());
42  }
43}
44
LineWhat it does
BlueGraysIoT bg(DEVICE_KEY)Creates the connection object with your device key; the key is only sent in the connection header and is never printed to the Serial Monitor
RELAY_PIN = 15The relay module's IN pin is on GP15
RELAY_ACTIVE_LOW = trueThe relay switches on with LOW; set it to false when testing with an LED
setRelay(bool on)Writes the correct level to the pin depending on whether the relay is active LOW or HIGH
DHT dht(16, DHT22)Sensor data pin is GP16, sensor type is DHT22
bg.onSwitch("lamba", setRelay)Runs setRelay when you tap the lamba (lamp) switch on your phone
bg.setDeadband("sicaklik", 0.1)No new value is sent until the temperature changes by at least 0.1 °C
bg.setDeadband("nem", 1.0)No new value is sent until the humidity changes by at least 1%
bg.setDebug(Serial) and bg.setLanguage(BG_LANG_TR)Prints status messages to the Serial Monitor in Turkish
bg.begin(WIFI_NAME, WIFI_PASSWORD)Starts connecting to Wi-Fi and the BlueGrays server
bg.loop()Handles incoming commands and keeps the connection alive; must be called frequently inside loop
millis() - lastReadMs >= 2000Reads the DHT22 every 2 seconds and sends the sicaklik (temperature) and nem (humidity) values with bg.send

There's a reason behind the timing in the code. The DHT22 can't be read more than once per second; a 2-second interval stays safely within that limit. The reading uses millis() instead of delay(2000) because bg.loop() has to keep running during the wait. Otherwise, when you tapped the switch on your phone, the lamp would respond with a 2-second delay; details in Arduino millis() vs delay(). The library only sends a value when it changes, and without exceeding your plan's rate. So when the room temperature is steady, no data is sent to the server for nothing. If Wi-Fi drops, the library retries at increasing intervals, sends the values it measured while offline once it reconnects, and restores the lamp switch's last state after a power cut. Once the upload finishes, you should first see "Wi-Fi connected" in the Serial Monitor, followed a few seconds later by "BlueGrays IoT: connected".

Pico W pinout table: default pins for all 8 templates

All 8 templates in the app can be built on the Pico W. The table below shows each one's default Pico W pin and the physical pin number on the board. You can change pins in step 3 of the setup. To see where the pins are on your board, check the Pinout tool.

TemplatePartsPico W pinPhysical pinNote
Relay lampRelay moduleGP1520Relay VCC → VBUS
Temperature and humidityDHT22GP1621Powered from 3V3(OUT)
Room stationRelay + DHT22GP15 + GP1620 + 21The code in this post
RGB LED stripWS2812B (30 LEDs in the code)GP24Adafruit NeoPixel library; power the strip from a separate 5 V supply
Door / windowMagnetic reed sensorGP1419INPUT_PULLUP, other lead to GND
Soil moisture + pumpSoil sensor + relay + pumpGP26 (ADC0) + GP1531 + 20Calibration: dry 3000, wet 1200
Motion detectorPIR (HC-SR501)GP1317PIR output is 3.3 V
Servo curtainSG90 servoGP1722Servo.h bundled with the core; power the servo from a separate 5 V supply
The Pico W has only three external pins that can do analog reads: GP26 (ADC0), GP27 (ADC1) and GP28 (ADC2). That's why the soil moisture sensor sits on GP26. Unlike the ADC2 restriction on the ESP32, the Pico W's ADC keeps working while Wi-Fi is on. GP23, GP24, GP25 and GP29 are used internally for the wireless chip and aren't brought out to the header pins; that's also why the onboard LED is wired to the wireless chip rather than GP25. The soil sensor reading is 12-bit (0–4095). If you measure your own sensor in dry and wet soil and adjust the 3000/1200 values in the code, the percentage will be more accurate; details in Soil Moisture Sensor.

What will you see on your phone?

Once the board connects, the device screen shows Online and the "Last data … ago" line updates. For the room station you'll see a lamp switch plus live values for temperature (°C) and humidity (%). Tap a value to open its graph: you can switch between 1 h, 24 h, 7 days and 30 days. The 7- and 30-day views show hourly averages, and Lowest, Highest and Latest values appear below the graph. As long as the board stays connected, a new point is added to the graph every minute. If you need to see the code again later, the Code and key section on the device screen shows the full code, your device key and Wi-Fi details. If someone has seen your key, Regenerate key instantly invalidates the old one, and you upload the new code to the board once.

FeatureFreePremium
Number of devices1 device (your first device is free)10 devices
Variables with graph history120
History length24 hours30 days
Minimum interval between sends for the same variableAt least 1 secondAt least 0.2 seconds

The room station has two measured variables: temperature and humidity. On the free plan, graph history is kept for only one of them; you still see live values for both. Limits are enforced on the server, so changing the interval in the code won't get around them. The 2-second reading already stays within the 1-second limit. If you remove a device, the device and its graph history are deleted and your device slot is freed up; that way you can try different templates one after another on the free plan.

Pico W-specific problems and fixes

SymptomLikely causeFix
Compilation fails on WiFi.h or network functionsArduino Mbed OS RP2040 Boards package or plain Pico selectedSelect Raspberry Pi Pico W from the Raspberry Pi Pico/RP2040/RP2350 package
Tools › Port menu is emptyCharge-only cable, board never programmed, or a crashed sketchUse a data cable; hold BOOTSEL while plugging in USB and upload again
RPI-RP2 drive doesn't appearBOOTSEL pressed after plugging in the cable, or a faulty cableUnplug the cable, plug it in while holding BOOTSEL, then release; try another USB port
On Linux the port is there but upload gives a permission errorYour user has no serial port permissionAdd your user to the dialout group or install the arduino-pico udev rule, then log out and back in
"Wi-Fi connected" never appears in the Serial Monitor5 GHz network, wrong password or weak signalPick the 2.4 GHz network, check upper and lower case in the password, move the board closer to the router
Phone sees the network but the Pico W can't connectRouter is on 2.4 GHz channel 12 or 13Set the channel to 1–11 in the router settings (1, 6 or 11 are good choices)
2.4 and 5 GHz combined under one network name (band steering)Board sees the network name but the connection is unstableCreate a separate network name for 2.4 GHz on the router
Wi-Fi connected but "BlueGrays IoT: connected" never appearsOld device key, or port 443 blocked on the networkCopy the code again from the Code and key section in the app; try your phone's hotspot
Board restarts when the relay switches onWeak USB power; the relay coil pulls the voltage downUse a better cable and adapter, or power the relay from a separate 5 V supply with common GND
No temperature or humidity readingsDATA wired to the wrong pin, or no pull-up resistorConnect DATA to GP16 (physical pin 21); add a 10 kΩ pull-up on a bare sensor
Knowing the difference between VBUS and VSYS prevents a lot of problems. VBUS (pin 40) is the 5 V coming from the USB cable and is only present while the board is plugged into USB. VSYS (pin 39) is the board's main power input and accepts 1.8–5.5 V. When powered over USB, the voltage on VBUS passes to VSYS through a diode. If you're going to power the board from an external 5 V adapter instead of USB, connect the adapter to VSYS; in that case VBUS stays unused, so power the relay directly from the adapter's 5 V line. Never apply 5 V from outside to the 3V3(OUT) pin.

ESP32 or Pico W?

FeatureESP32 (Dev Module)Raspberry Pi Pico W
ProcessorDual-core, 240 MHzRP2040, dual-core, 133 MHz (RP2350, 150 MHz on the Pico 2 W)
Wireless2.4 GHz Wi-Fi + Bluetooth2.4 GHz Wi-Fi + Bluetooth
Analog input12-bit; only ADC1 (GPIO32–39) while Wi-Fi is on12-bit; 3 external channels (GP26–28), unaffected by Wi-Fi
Usable GPIORoughly 25–34 depending on the board26
USBCP210x or CH340 chip, may need a driverBuilt into the chip, no driver needed
When uploads get stuckBOOT buttonBOOTSEL button
BudgetBeginner-friendlyBeginner-friendly
Phone control with BlueGrays IoTYes, all 8 templatesYes, all 8 templates

In short, either one works for this. Start with whichever you have. The Pico W's advantages are its driver-free USB, its tidy pin layout and an ADC that keeps working with Wi-Fi on. The ESP32's advantages are more pins, higher speed and a far larger archive of examples online. If you want to follow the same steps with an ESP32, we covered it using the GPIO26 and GPIO4 pins in How to Control an ESP32 from Your Phone.

IoT template projects built with the Pico W

BlueGrays has 8 IoT template projects, all free: each comes with a full circuit diagram, parts list and code. These three are shown on the Pico W:

Once your Pico W is set up in Arduino IDE, moving on to a new phone-controlled project takes just a few minutes: pick a template, build the circuit, upload the code Ohmi prepares. Since your first device is free, you can start with an LED and work your way up to a relay and sensor step by step. In the BlueGrays app, turn on the IoT projects filter in Explore to browse these templates and other Pico W projects with step-by-step circuit diagrams and code, and jump straight into setup with the "Set up as IoT device" card on the project page.

Frequently asked questions

Can I control a Pico W from my phone with MicroPython?

The BlueGrays IoT feature works with Arduino IDE and the BlueGraysIoT library; the code the app generates is an Arduino sketch. With MicroPython you can run a web server on the Pico W that you access from the same network, but the ready-made phone interface, access from outside the house and graph history come from the Arduino IDE route.

Does it work with the Raspberry Pi Pico 2 W?

Yes. The Pico 2 W uses the same CYW43439 wireless chip, and the arduino-pico package supports the RP2350. Choose Pico W as the board in the app, and in Arduino IDE select Pico 2 W from the Tools › Board menu; the pins are the same.

Can a regular Raspberry Pi Pico be controlled from a phone?

No, because the plain Pico and Pico 2 have no Wi-Fi chip, so the board can't connect to the internet. For phone control you need a board with W in its name: the Pico W or Pico 2 W. If you have an ESP32, it works with the same templates too.

Do I need internet to control the Pico W?

Yes. Since the board and phone communicate through the BlueGrays server, the Pico W needs internet access over a 2.4 GHz Wi-Fi network, and your phone needs internet over Wi-Fi or mobile data. On the other hand, they don't have to be on the same network, so you can control it from outside the house.

How many devices are free in BlueGrays IoT?

Your first device is free: the free plan includes 1 device, graph history for 1 variable and 24 hours of history. Premium unlocks 10 devices, graph history for 20 variables and 30 days of history. If you remove a device, your device slot is freed up.

Will a 5 V relay module work with the Pico W's 3.3 V signal?

Most 5 V relay modules trigger with a 3.3 V signal, but not all. Some active-LOW modules don't fully release while the pin is HIGH. Choose a module with an optocoupler, power the relay coil with 5 V from VBUS and keep GND common. If the problem persists, use a module designed for 3.3 V triggering.

See all projects
Pico W IoT Temperature and Humidity (DHT22)
PI-96Beginner
IoT

Pico W IoT Temperature and Humidity (DHT22)

Watch your room's temperature and humidity live on your phone wherever you are. This project is the step-by-step guide to the Temperature and humidity IoT template in the app, built with a Raspberry Pi Pico W and a DHT22. Go to Workshop › Devices › Add a device, pick Pico W as the board and Temperature and humidity as the template; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

1
Pico W IoT Door Sensor (Reed Switch)
PI-97Beginner
IoT

Pico W IoT Door Sensor (Reed Switch)

Did you leave the door or window open? Check on your phone wherever you are. This project is the step-by-step guide to the Door / window IoT template in the app, built with a Raspberry Pi Pico W, a reed switch and a small magnet using two wires. Go to Workshop › Devices › Add a device, pick Pico W as the board and Door / window as the template; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

1
Pico W IoT Motion Counter (PIR)
PI-98Beginner
IoT

Pico W IoT Motion Counter (PIR)

Count how many times someone walks through a door or hallway, and see the moment of motion live on your phone. This project is the step-by-step guide to the Motion detector IoT template in the app, built with a Raspberry Pi Pico W and a PIR motion sensor using just 3 wires. Go to Workshop › Devices › Add a device; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

ESP32 IoT Room Station (Relay + DHT22)
ES-99Intermediate
IoT

ESP32 IoT Room Station (Relay + DHT22)

Turn your lamp on from your phone and watch your room's temperature and humidity live, wherever you are. This project is the step-by-step guide to the Room station IoT template in the app, built with an ESP32, a relay module and a DHT22. Go to Workshop › Devices › Add a device and pick Room station; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

3
ESP32 IoT Lamp Switch (Relay)
ES-100Beginner
IoT

ESP32 IoT Lamp Switch (Relay)

Turn your lamp on and off from your phone, wherever you are. This project is the step-by-step guide to the Relay lamp IoT template in the app, built with an ESP32 and a relay module and tried with an LED first. Go to Workshop › Devices › Add a device and pick Relay lamp; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

ESP32 IoT Plant Watering (Soil Sensor + Pump)
ES-102Intermediate
IoT

ESP32 IoT Plant Watering (Soil Sensor + Pump)

Let the pump start by itself when the soil in your pot dries out, and watch the soil moisture live on your phone. This project is the step-by-step guide to the Soil moisture + pump IoT template in the app, built with an ESP32, a soil moisture sensor, a relay and a mini water pump. Go to Workshop › Devices › Add a device; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

ESP32 IoT RGB LED Strip (WS2812B)
ES-101Intermediate
IoT

ESP32 IoT RGB LED Strip (WS2812B)

Control your room's light from your phone: pick a color, set the brightness, turn on the rainbow or breathe effect. This project is the step-by-step guide to the RGB LED strip IoT template in the app, built with an ESP32 and a 30-LED WS2812B strip using three wires. Go to Workshop › Devices › Add a device and pick RGB LED strip; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

1.0(1)
3
ESP32 IoT Curtain Opener (SG90 Servo)
ES-103Intermediate
IoT

ESP32 IoT Curtain Opener (SG90 Servo)

Tap + or − on your phone and the servo turns to that angle at the same moment: open and close a model curtain, a blind's tilt rod or a small lid from wherever you are. This project is the step-by-step guide to the Servo curtain IoT template in the app, built with an ESP32 and an SG90 servo using just 3 wires. Go to Workshop › Devices › Add a device; Ohmi prepares the code with your own device key. The code on this page is an example: the key and Wi-Fi details are placeholders.

3