Skip to content

Control for a Balboa BP2100G0 spa controller using the esp8266

Notifications You must be signed in to change notification settings

cribskip/esp8266_spa

Repository files navigation

Based on the great work over at
https://github.com/ccutrer/balboa_worldwide_app/wiki https://github.com/ccutrer/balboa_worldwide_app/blob/master/doc/protocol.md

esp8266_spa

Control for a Balboa spa controller using the esp8266 (tested on BP2100 and BP601 series)

The sketch connects to the tub, gets an ID and spits out the state to the MQTT broker on topics "Spa/#". You can control the tub using the subscribed topics, f.e. "Spa/light" with message "ON" for maximum compatability with openhab.

Maybe you need to adjust the sketch to your tub configuration (number of pumps, connection of blower, nr of lights...). You may find the DEBUG comments useful for this task.

Bonus: you may add several relays or such like I did ;-)

Getting started

  • Make sure your Spa is using a Balboa controller
  • This is known to work on and developed on a BP2100G0 and BP601 series controllers. Yours may be compatible.
  • Get the parts
  • Flash the esp8266 fom the Arduino IDE or PlatformIO
  • Connect everything together
  • Hook up on the Spa
  • Enjoy and get tubbin' ;-)

Parts

  • Get a esp8266, perferable a Wemos D1 Pro in case you need to attach a seperate antenna
  • RS485 bus transceiver, (for example the "ARCELI TTL To RS485 Adapter 485 Serial Port UART Level Converter Module 3.3V 5V")
  • A DC-DC converter for powering from the Tub (LM2596 for example)
  • breadboard, wire etc...

Hardware connections

Example

  • Look up finding the right wires on https://github.com/ccutrer/balboa_worldwide_app/wiki#physical-layer
  • Connect the DC-DC converter to the supply wires (+ and Ground) from the Tub
  • Set the DC-DC converter to output 3.3V. This output voltage (+ Ground) should then connect to the Wemos D1 Mini Pro and the RS485 transceiver
  • Connect the RS485 transceiver to the A and B wires
  • Connect the esp8266-TX to the RS485 TX
  • Connect the esp8266-RX to the RS485 RX

Example

Debug

  • First, check your voltages - the system is running at 3.3V
  • The RX (and to some extent the TX) LEDs of the RS485 transceiver (if using the one above) should light up as data goes through. If that is the case you know data is being converted from RS485 to TTL
  • The Wemos D1 Mini Pro should spit out data to the MQTT broker (MQTT Spy can be useful here to see: 1. that it is connected to the wifi; 2. that it is connected to the broker). If that is the case, you know the device can communicate over MQTT
  • Swap A and B - in my personal experience, if A & B are the wrong way round, the hot tub display (if you have one) will display (NO COMM) as the RS485 traffic get garbled by the esp8266_spa

Appetiser using OpenHab...

Example

HomeAssistant integration

The system uses HomeAssistant autodiscover and should just appear in the MQTT Integration under "Esp Spa" Example

TODO

  • Add more documentation
  • Add fault reporting
  • Add more setting possibilities (filter cycles, preferences maybe)

About

Control for a Balboa BP2100G0 spa controller using the esp8266

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages