Digital I/O
Control digital pins on your devices directly from the dashboard.
Accessing Pin Controls
To control digital pins from the dashboard:
- Go to Devices in the sidebar
- Click on your device to open its control panel
- Find the Digital Pins section
Toggle Switches
Each digital output pin has a toggle switch in the dashboard:
ON (HIGH)
Pin outputs 3.3V (or 5V on some boards). LED lights up, relay activates.
OFF (LOW)
Pin outputs 0V (ground). LED turns off, relay deactivates.
Reading Digital Inputs
Digital input pins show their current state in real-time:
HIGH (1)
Pin detects voltage. Button is pressed, sensor is triggered.
LOW (0)
Pin at ground level. Button released, sensor inactive.
Common Use Cases
LED Control
Turn LEDs on/off with toggle switches. Great for status indicators or decorative lighting.
Click the toggle to switch between ON and OFF
Relay Control
Control relays to switch AC devices like lamps, fans, or appliances.
Toggle ON to activate the relay
Button Monitoring
See button states update in real-time as they're pressed.
Shows HIGH when pressed, LOW when released
Motion Sensors
Monitor PIR motion sensor output. Pin goes HIGH when motion is detected.
Status updates automatically every few seconds
Pin Numbering
The dashboard shows pins by their GPIO numbers:
| Board | Common Digital Pins | Notes |
|---|---|---|
| ESP32 | 2, 4, 5, 12-15, 16-19, 21-23, 25-27, 32-33 | Avoid GPIO 6-11 (flash) |
| ESP8266 | D0-D8 (GPIO 16, 5, 4, 0, 2, 14, 12, 13, 15) | Dashboard shows GPIO numbers |
| Arduino Uno | 2-13 | Pins 0-1 reserved for Serial |
Real-Time Updates
Pin states in the dashboard update automatically:
- When you toggle a switch, the change is sent to your device immediately
- Input pin states refresh every few seconds to show current readings
- If the device goes offline, toggle switches become disabled
Tips
Use descriptive labels
Name your pins in the device firmware (e.g., "LED", "Relay", "Button") so they're easy to identify in the dashboard.
Check pin modes
Make sure your firmware sets the correct pin mode (INPUT/OUTPUT) for each pin to work properly.