Smart Home Automation Forum

Full Version: How to use "arduino library" for KC868-H32B Pro
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
We have made arduino library for KC868-H32B Pro smart controller. it is open source and free for DIYer use.

1. Install ESP32 USB driver to your computer.

download from: https://www.kincony.com/download/CH341SER.zip
after installed USB driver, connect USB cable to your KC868-H32B Pro USB port. 
[Image: attachment.php?aid=1504]   

Then you will find COM port in windows OS "device manager"
[Image: attachment.php?aid=1499]   

2. Enable "ESP32 Development Mode" by KC868-H32B Pro Ethernet setting.
[Image: attachment.php?aid=1500]   

3. Install library in arduino IDE.

[attachment=1581]
[attachment=1582]
[attachment=1583]

here have many demo simple code for how to use KC868-H32B Pro smart controller's relay output and input sensor port.

[attachment=1584]
This is sample code how to turn ON/OFF one relay.