Gustavo Gonnet
Published © CC BY-NC-SA

Pool and Sauna Controller

Control your pool and sauna from anywhere!

EasyFull instructions provided5 hours1,572
Pool and Sauna Controller

Things used in this project

Hardware components

Particle Photon I²C 2-Channel SPDT 1-Amp Signal Relay Particle Photon I²C 2-Channel SPDT 1-Amp Signal Relay
We used one of these boards with 4 channels instead.
Particle Photon
Adafruit ds18b20 waterproof digital temperature sensor

Software apps and online services

porter app
Particle 2.0 iOS App


Read more


Plant UML code for the state machine of the firmware

Plain text
To draw the FSM image, copy paste this code in
skinparam backgroundColor LightYellow
skinparam state {
  BackgroundColor LightBlue
  BorderColor Gray
  FontName Impact

[*] --> initState

note left of initState : The system boots\nin this state

initState: 10 seconds
initState -down--> offState: if system was\npreviously off
initState -down--> idleState: if system was\npreviously on

offState: system off
offState -left-> idleState: setOnOff("on")

idleState: heating off
idleState -down-> onState: temperature\n< target
idleState -right-> offState: setOnOff("off")

onState: heating on
onState -up-> idleState: temperature\n> target
onState -up-> offState: setOnOff("off")

github repo

flash this code in your photon


Gustavo Gonnet

Gustavo Gonnet

25 projects • 187 followers
If you need professional help with a project, contact me at
Thanks to Sergio Boyd.


Add projectSign up / Login