Faculty of Information Studies
fis.unm.si
Pins used
- Photoresistor sensor: GPIO 32
- Main LED: GPIO 33
- Backup LED: GPIO 25
- ESP LED: GPIO 2
Pins used
- Touch Sensor 1: GPIO 13
- Touch Sensor 2: GPIO 12
- Touch Sensor 3: GPIO 14
- Push Button: GPIO 33
- Blue LED: GPIO 27
- Green LED: GPIO 26
- Red LED: GPIO 25
Pins used
- Potentiometer: GPIO 32
- Blue LED: GPIO 27
- Green LED: GPIO 26
- Red LED: GPIO 25
The system consists of
- ESP32
- Web Control Panel (Next.js)
Messages are exchanged in JSON format over WebSocket
Photoresistor (toggle LED):
{
"name": "mainButton",
"value": true
}Photoresistor (set threshold):
{
"name": "threshold",
"value": 1500
}Potentiometer (status):
{
"name": "status",
"value": "ok"
}

