mustapha guedouar
Published © MIT

Control Pico W From Anywhere (No Coding!)

Control your Raspberry Pi Pico W remotely from anywhere in the world. No coding required! Control relays & monitor sensors.

BeginnerProtip1 hour49
Control Pico W From Anywhere (No Coding!)

Things used in this project

Hardware components

Raspberry Pi Pico W
Raspberry Pi Pico W
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1
relay module 5vdc
×1

Story

Read more

Code

No code needed ! OceanRemote generates the complete Arduino code for you

C/C++
control your pico w from any place in earth
// This code is auto-generated by OceanRemote
// Create your free account to get your unique code:
// https://www.oceanremote.net

#include <ArduinoJson.h>
#include <WiFi.h>

// Your WiFi credentials
const char* ssid = "YOUR_WIFI_SSID";
const char* password = "YOUR_WIFI_PASSWORD";

// OceanRemote API endpoint
const char* serverUrl = "https://www.oceanremote.net/api/device/state/";

// Your unique device token (get from OceanRemote)
String deviceToken = "YOUR_UNIQUE_TOKEN_HERE";

void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  
  Serial.println("Connected to WiFi!");
}

void loop() {
  // Your generated code goes here
  // OceanRemote provides the complete code
  delay(2000);
}

Credits

mustapha guedouar
2 projects • 0 followers
Industrial automation engineer & teacher. 17 years hardware. 6 years coding. Started on ship electrical systems.

Comments