KinCony B4M 4-Channel Programmable Smart MOSFET Controller
Frequently Bought Together
Drive your DC devices with speed and precision using the B4M Controller. This 4-channel controller replaces traditional relays with MOSFET solid-state switches, making it the ideal choice for applications requiring silent operation, high-speed switching, or PWM control (like LED dimming or motor speed regulation). Powered by the ESP32-S3 and packed in the same compact enclosure as the B4, it offers a perfect blend of fast outputs and versatile inputs for modern automation projects.
Why You'll Love This Controller
✔ Master High-Speed DC Control
Go beyond simple relays. The B4M’s MOSFET outputs let you dim LEDs, control motor speeds with PWM, and switch DC loads silently and without wear.
✔ All-in-One Sensing & Control
Get 4 fast outputs, 4 analog inputs (for sensors like light or current), and 4 digital inputs in one compact DIN-rail device. It's a complete DC automation hub.
✔ Dual-Platform Simplicity
Use the Tuya App for instant smartphone control, while seamlessly integrating with Home Assistant for advanced local automations. Both work perfectly together out-of-the-box.
✔ Built for Real-World Reliability
Features robust opto-isolated digital inputs (good for long wire runs), a precise RTC, manual override buttons, and industrial communication options like RS-485.
✔ Your Project, Your Code
Whether you prefer the easy KCS v3 firmware, ESPHome, Tasmota, or writing your own code in Arduino or ESP-IDF, the B4M gives you complete freedom.
Among other outstanding features are the following:
- High-Current MOSFETs: Each of the 4 outputs utilizes a 10A driver IC, providing robust control for a wide range of DC devices beyond just signal-level loads.
- Dual-Network Connectivity: Equipped with both Wi-Fi and 100Mbps Ethernet for flexible and resilient network integration, ensuring your controller stays connected.
- Precise Time-Stamping & Logging: Includes a high-precision DS3231 RTC chip (with battery backup) for accurate time-based events and a microSD card slot for logging data.
- Mixed Analog & Digital Inputs: Features a 16-bit ADS1115 ADC for accurate analog readings (0-5V and 4-20mA) alongside 4 opto-isolated digital inputs, all configurable for your specific sensors.
- Expandable I/O: Offers 4x 1-Wire GPIOs (with pull-up resistors) for adding temperature sensors and 3x Free GPIOs (direct to ESP32) for maximum flexibility. An I2C bus extender and RS-485 port are also included.
- Manual Override Buttons: Includes physical buttons for each MOSFET output, allowing you to turn loads on or off manually even if the software or network is down.
Technical Specifications:
| Category | Specification |
|---|---|
| Core Processor | ESP32-S3-WROOM-1U (N16R8 Dual-core 32-bit) |
| Digital Outputs | 4× MOSFET (Max 10A per channel) |
| Precision Analog Inputs | 4 channels via 16-bit ADC (2× 0-5V, 2× 4-20mA) |
| Isolated Digital Inputs | 4× Dry Contact Inputs (Opto-isolated, Up to 500 meters of cable) |
| Wireless Connectivity | 2.4 GHz Wi-Fi, Bluetooth 5.0, Tuya |
| Wired Connectivity | 100M Ethernet (RJ45) IPv4/IPv6, RS485, USB-C, I²C |
| Control & Logic I/O | 3× 1-Wire GPIO (Pull-up resistor), 4× free GPIO (No pull-up resistor, directly connected to ESP32 pins) |
| RTC | DS3231 High-Precision Chip with Battery Socket |
| Display | SSD1306 I²C OLED Screen |
| Storage Interface | SD Card Slot with microSD Support |
| Power Supply | DC 12-24V |
| Dimensions | 122 × 83 × 59 mm |
| Mounting | 35 mm DIN rail (EN 60715) |
I. Firmware Options and Features
| Solution | Ideal For | Key Advantages |
|---|---|---|
| 1. KCS v3 Firmware (Recommended) | Beginners / Zero-Code Users | ✔ Auto-detects Home Assistant via MQTT (no config files) ✔ Works with Tuya App + Alexa/Google Voice Control ✔ Local IFTTT automation (no internet needed) ✔ 2-year free KinCony Cloud (official store only) ✔ Apple HomeKit support (one-tap setup) |
| 2. ESPHome Firmware | Home Assistant Enthusiasts | ✔ Full open-source customization ✔ Web UI + HA deep integration ✔ Full YAML examples |
| 3. Tasmota Firmware | Open-Source Community | ✔ Massive plugin ecosystem ✔ MQTT/Web control + rule engine |
| 4. Arduino/ESP-IDF Custom Code | Developers | ✔ Full Arduino demos ✔ Supports MicroPython/ESP-IDF |
| 5. Hybrid Setup (Best Practice) | Advanced Users | Tuya App (remote via internet) + Home Assistant (local via LAN) – Security + convenience |
II. Technical Resources by Product
Direct links to pin definitions, ESPHome configurations, Arduino demo source codes, and KCS firmware. All open-source and maintained on GitHub.
| Model | KCS Firmware | Pin Definitions | ESPHome (YAML) | Arduino Demos |
|---|---|---|---|---|
|
F4
4‑ch relay · 4 inputs
ADS1115 |
📦 kcs_{KCS_VERSION}.bin | 📄 F4_pin_definition.md |
🔹 with Tuya Tuya module
🔸 without Tuya Ethernet/WiFi only
|
📁 F4/ (11 examples) |
|
F8
8‑ch relay · 8 inputs
PCF8575 |
📦 kcs_{KCS_VERSION}.bin | 📄 F8_pin_definition.md |
🔹 with Tuya Tuya module
🔸 without Tuya Ethernet/WiFi only
|
📁 F8/ (11 examples) |
|
F16
16‑ch relay · 16 inputs
PCF8575 |
📦 kcs_{KCS_VERSION}.bin | 📄 F16_pin_definition.md |
🔹 with Tuya Tuya module
🔸 without Tuya Ethernet/WiFi only
|
📁 F16/ (11 examples) |
|
F24
24‑ch relay · 24 inputs
3×PCF8575 |
📦 kcs_{KCS_VERSION}.bin | 📄 F24_pin_definition.md |
🔹 with Tuya Tuya module
🔸 without Tuya Ethernet/WiFi only
|
📁 F24/ (12 examples) |
|
F32
32‑ch relay · 32 inputs
3×PCF8575 |
📦 kcs_{KCS_VERSION}.bin | 📄 F32_pin_definition.md |
🔹 with Tuya Tuya module
🔸 without Tuya Ethernet/WiFi only
|
📁 F32/ (11 examples) |
| Model | KCS Firmware | Pin Definitions | ESPHome (YAML) | Arduino Demos |
|---|---|---|---|---|
|
T16M
16‑ch relay + 16 inputs
single I2C bus |
📦 kcs_{KCS_VERSION}.bin | 📄 T16M_pin_definition.md | 📁 T16M/ (6 examples) | |
|
T32M
32‑ch relay + 32 inputs
dual I2C bus |
📦 kcs_{KCS_VERSION}.bin | 📄 T32M_pin_definition.md | 📁 T32M/ (7 examples) | |
|
T64M
64‑ch relay + 64 inputs
dual I2C buses |
📦 kcs_{KCS_VERSION}.bin | 📄 T64M_pin_definition.md | 📁 T64M/ (8 examples) | |
|
T128M
128‑ch relay + 128 inputs
dual I2C buses |
📦 kcs_{KCS_VERSION}.bin | 📄 T128M_pin_definition.md | 📁 T128M/ (8 examples) | |
|
TA
Thermostat Adapter
|
📦 kcs_{KCS_VERSION}.bin | 📄 TA_pin_definition.md | 📁 TA/ (11 examples) |
🔸 v2 high‑precision ESPHome configs (0.001 kWh) require ARM CPU firmware ≥ V20_260305SP.
| Model | KCS Firmware | Pin Definitions | ESPHome (YAML) | Arduino Demos |
|---|---|---|---|---|
|
N10
10‑ch energy meter
|
📦 kcs_{KCS_VERSION}.bin | 📄 N10_pin_definition.md |
🔹 N10_esphome.yaml v1 (1 kWh)
🔸 N10_esphome_v2.yaml v2 (0.001 kWh)
v2 require ARM CPU firmware ≥ V20_260305SP. |
📁 N10/ (5 examples) |
|
N20
20‑ch energy meter
|
📦 kcs_{KCS_VERSION}.bin | 📄 N20_pin_definition.md |
🔹 N20_esphome.yaml v1 (1 kWh)
🔸 N20_esphome_v2.yaml v2 (0.001 kWh)
v2 require ARM CPU firmware ≥ V20_260305SP. |
📁 N20/ (5 examples) |
|
N30
30‑ch energy meter
|
📦 kcs_{KCS_VERSION}.bin | 📄 N30_pin_definition.md |
🔹 N30_esphome.yaml v1 (1 kWh)
🔸 N30_esphome_v2.yaml v2 (0.001 kWh)
v2 require ARM CPU firmware ≥ V20_260305SP. |
📁 N30/ (5 examples) |
|
N60
60‑ch energy meter
|
📦 kcs_{KCS_VERSION}.bin | 📄 N60_pin_definition.md |
🔹 N60_esphome.yaml v1 (1 kWh)
🔸 N60_esphome_v2.yaml v2 (0.001 kWh)
v2 require ARM CPU firmware ≥ V20_260305SP. |
📁 N60/ (5 examples) |
| Model | KCS Firmware | Pin Definitions | ESPHome (YAML) | Arduino Demos |
|---|---|---|---|---|
|
DM4
4‑ch digital input module
|
📦 kcs_{KCS_VERSION}.bin | 📄 DM4_pin_definition.md |
🔸 without Tuya Ethernet/WiFi only
|
📁 DM4/ (11 examples) |
|
DM8
8‑ch digital input module
|
📦 kcs_{KCS_VERSION}.bin | 📄 DM8_pin_definition.md |
🔸 without Tuya Ethernet/WiFi only
|
📁 DM8/ (11 examples) |
|
DM16
16‑ch digital input module
|
📦 kcs_{KCS_VERSION}.bin | 📄 DM16_pin_definition.md |
🔹 with Tuya Tuya module
🔸 without Tuya Ethernet/WiFi only
|
📁 DM16/ (11 examples) |
|
DM32
32‑ch digital input module
|
📦 kcs_{KCS_VERSION}.bin | 📄 DM32_pin_definition.md |
🔸 without Tuya Ethernet/WiFi only
|
📁 DM32/ (11 examples) |
| Model | KCS Firmware | Pin Definitions | ESPHome (YAML) | Arduino Demos |
|---|---|---|---|---|
|
G1
Gateway controller
|
📦 kcs_{KCS_VERSION}.bin | 📄 G1_pin_definition.md | Not supported | 📁 G1/ (11 examples) |
|
AIO Hybrid
All‑in‑one hybrid controller
RF433 · Zigbee · IR · DAC |
📦 kcs_{KCS_VERSION}.bin | 📄 AIO_Hybrid_pin_definition.md |
🔹 with Tuya Tuya module
🔸 without Tuya Ethernet/WiFi only
|
📁 AIO Hybrid/ (13 examples) |







