Analog I/O
Read sensor values and control PWM outputs from the dashboard.
Accessing Analog Controls
To view analog readings and PWM controls:
- Go to Devices in the sidebar
- Click on your device to open its control panel
- Find the Analog Pins and PWM sections
Reading Analog Values
Analog input pins display their current readings as numbers and progress bars:
Pin 32 - Temperature
2048Range: 0 - 4095 (ESP32)
Pin 33 - Light
3500Range: 0 - 4095 (ESP32)
PWM Sliders
PWM (Pulse Width Modulation) pins have sliders for precise control:
Pin 5 - LED Brightness
128Drag slider: 0 (off) to 255 (max)
Drag the slider to adjust values from 0 to 255. Changes are applied immediately to your device.
Common Use Cases
Temperature Monitoring
Read NTC thermistor or TMP36 sensor values. Higher readings typically mean higher temperature.
Values update automatically every few seconds
Light Level
Monitor photoresistor (LDR) readings. Higher values mean brighter light conditions.
Great for ambient light detection
LED Dimming
Use the PWM slider to smoothly adjust LED brightness from off to full brightness.
128 = 50% brightness, 255 = 100%
Motor Speed
Control DC motor speed with PWM. Lower values = slower, higher values = faster.
Use with motor driver module
ADC Resolution by Board
Different boards have different analog resolution:
| Board | Value Range | ADC Pins |
|---|---|---|
| ESP32 | 0 - 4095 (12-bit) | GPIO 32, 33, 34, 35, 36, 39 |
| ESP8266 | 0 - 1023 (10-bit) | A0 only |
| Arduino Uno | 0 - 1023 (10-bit) | A0 - A5 |
PWM Pins by Board
| Board | PWM Pins | Notes |
|---|---|---|
| ESP32 | All GPIO pins | 16 channels available |
| ESP8266 | All GPIO pins | Software PWM |
| Arduino Uno | 3, 5, 6, 9, 10, 11 | Marked with ~ on board |
Tips
Understanding raw values
The dashboard shows raw ADC values. Use custom dashboards with widgets to display converted values (temperature in °C, light percentage, etc.).
PWM response
PWM changes are instant. If you don't see changes, check that your device is online and the pin is configured correctly.