Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,187
» Latest member: Heatherr
» Forum threads: 4,091
» Forum posts: 20,514

Full Statistics

Online Users
There are currently 44 online users.
» 0 Member(s) | 30 Guest(s)
Amazonbot, Baidu, PetalBot, Semrush, Yandex, bot

Latest Threads
Multiple phase L1,L2,L3
Forum: N20
Last Post: admin
4 hours ago
» Replies: 3
» Views: 297
KC868-a6 2 analog output...
Forum: KC868-A6
Last Post: admin
4 hours ago
» Replies: 5
» Views: 33
Kincony A4s
Forum: KC868-A4S
Last Post: admin
4 hours ago
» Replies: 1
» Views: 3
"KCS" v3.25.0 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
4 hours ago
» Replies: 9
» Views: 751
The watch shows the wrong...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
4 hours ago
» Replies: 1
» Views: 5
KC868-A16v3 integration w...
Forum: KC868-A series and Uair Smart Controller
Last Post: rosnoteh
7 hours ago
» Replies: 2
» Views: 145
[Arduino IDE demo source ...
Forum: KC868-A8S
Last Post: admin
Yesterday, 06:16 AM
» Replies: 0
» Views: 15
Tiny Alarm board after fl...
Forum: TA
Last Post: admin
06-14-2026, 11:19 AM
» Replies: 7
» Views: 29
Wiegand
Forum: KC868-A16
Last Post: admin
06-14-2026, 01:13 AM
» Replies: 3
» Views: 55
Programmation kc868-A8 & ...
Forum: News
Last Post: admin
06-13-2026, 12:16 AM
» Replies: 1
» Views: 23

  Max PWM frequency
Posted by: kepten - 10-19-2024, 07:49 PM - Forum: B16M - Replies (16)

Hi, does the B16M board support dimming LEDs with 20kHz PWM (up to 10A/channel load)? If not, what is the maximum PWM frequency that can be used without overheating/burning the MOSFET/driver/microcontroller/etc?
Regards,
Robert

Print this item

  AS ESPHome yaml for home assistant
Posted by: admin - 10-19-2024, 12:09 PM - Forum: KinCony AS - Replies (26)

   

Code:
esphome:
  name: as
  friendly_name: AS
  platformio_options:
    board_build.flash_mode: dio
  on_boot:
    - light.turn_on:
        id: led_ww
        blue: 100%
        brightness: 60%
        effect: fast pulse
esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf
    sdkconfig_options:
      CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: "y"
      CONFIG_ESP32S3_DATA_CACHE_64KB: "y"
      CONFIG_ESP32S3_DATA_CACHE_LINE_64B: "y"
      CONFIG_AUDIO_BOARD_CUSTOM: "y"
  
psram:
  mode: octal  # quad for N8R2 and octal for N16R8
  speed: 80MHz
# Enable logging
logger:
  hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:
  encryption:
    key: "TFpb+pBAvQIS1MVwaA7EoJ2DkpWE+79UvVro7yMyGdU="
  on_client_connected:
        then:
          - delay: 50ms
          - light.turn_off: led_ww
          - micro_wake_word.start:
  on_client_disconnected:
        then:
          - voice_assistant.stop:
ota:
  - platform: esphome
    password: "1245211a05eef56614a2ef5a3f3e971c"
wifi:
  ssid: "KinCony"
  password: "a12345678"
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp32-S3-Wake-Word"
    password: "LJfUrdJk3svP"
captive_portal:
button:
  - platform: restart
    name: "Restart"
    id: but_rest
switch:
  - platform: template
    id: mute
    name: mute
    optimistic: true
    on_turn_on:
      - micro_wake_word.stop:
      - voice_assistant.stop:
      - light.turn_on:
          id: led_ww          
          red: 100%
          green: 0%
          blue: 0%
          brightness: 60%
          effect: fast pulse
      - delay: 2s
      - light.turn_off:
          id: led_ww
      - light.turn_on:
          id: led_ww          
          red: 100%
          green: 0%
          blue: 0%
          brightness: 30%
    on_turn_off:
      - micro_wake_word.start:
      - light.turn_on:
          id: led_ww          
          red: 0%
          green: 100%
          blue: 0%
          brightness: 60%
          effect: fast pulse
      - delay: 2s
      - light.turn_off:
          id: led_ww
  
light:
  - platform: esp32_rmt_led_strip
    id: led_ww
    rgb_order: GRB
    pin: GPIO16
    num_leds: 1
    rmt_channel: 0
    chipset: ws2812
    name: "on board light"
    effects:
      - pulse:
      - pulse:
          name: "Fast Pulse"
          transition_length: 0.5s
          update_interval: 0.5s
          min_brightness: 0%
          max_brightness: 100%
         
         
# Audio and Voice Assistant Config         
i2s_audio:
  - id: i2s_in
    i2s_lrclk_pin: GPIO3  #WS
    i2s_bclk_pin: GPIO2 #SCK
  - id: i2s_speaker
    i2s_lrclk_pin: GPIO6  #LRC
    i2s_bclk_pin: GPIO7 #BLCK
microphone:
  - platform: i2s_audio
    id: va_mic
    adc_type: external
    i2s_din_pin: GPIO4 #SD pin on the INMP441
    channel: left
    pdm: false
    i2s_audio_id: i2s_in
    bits_per_sample: 32 bit
   
speaker:
    platform: i2s_audio
    id: va_speaker
    i2s_audio_id: i2s_speaker
    dac_type: external
    i2s_dout_pin: GPIO8   #  DIN Pin of the MAX98357A Audio Amplifier
    channel: mono
micro_wake_word:
  on_wake_word_detected:
    # then:
    - voice_assistant.start:
        wake_word: !lambda return wake_word;
    - light.turn_on:
        id: led_ww          
        red: 30%
        green: 30%
        blue: 70%
        brightness: 60%
        effect: fast pulse
  models:
    - model: github://esphome/micro-wake-word-models/models/v2/hey_jarvis.json
   
voice_assistant:
  id: va
  microphone: va_mic
  noise_suppression_level: 2.0
  volume_multiplier: 4.0
  speaker: va_speaker
  on_stt_end:
       then:
         - light.turn_off: led_ww
  on_error:
          - micro_wake_word.start: 
  on_end:
        then:
          - light.turn_off: led_ww
          - wait_until:
              not:
                voice_assistant.is_running:
          - micro_wake_word.start: 
yaml file download:
.txt   AS-HA.txt (Size: 3.94 KB / Downloads: 1464)

Print this item

  AS ESP32-S3 IO pins define
Posted by: admin - 10-19-2024, 12:08 PM - Forum: KinCony AS - No Replies

433M receiver socket (reserved):GPIO18

IR receiver  GPIO1

WS2812B 3pcs bottom RGBW LEDs:GPIO15
WS2812B 1pc vertical bar RGBW LED:GPIO16

Microphone:
INMP441-WS:GPIO3
INMP441-SCK:GPIO2
INMP441-SD:GPIO4

Amplifier:
MAX98357A-LRC:GPIO6
MAX98357A-BLCK:GPIO7
MAX98357A-DIN:GPIO8

MAX98357A-SD MODE:GPIO5

SD Card (reserved on PCB)
SD_MISO:GPIO13
SD_SCK:GPIO12
SD_MOSI:GPIO11
SD_CS:GPIO10

free GPIO for DIY extend on PCB:

GPIO44,GPIO41,GPIO39,GPIO17,GPIO21,GPIO48
GPIO43,GPIO42,GPIO40,GPIO38,GPIO9,GPIO47,GPIO14

Print this item

  KC868-H32B Pro relay positions
Posted by: lulu01 - 10-19-2024, 08:53 AM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - Replies (7)

Hello,

I wanted to replace a few relays that are dead on the KC868-H32B Pro, but I can't find their physical location.

For instance the one with the arrow in my picture is the number 1, but it is marked K23 on the PCB.

Do you have a diagram showing the actual number of each relay on the board?

Thank you



Attached Files Image(s)
   
Print this item

  error on compling - ethenet
Posted by: DaddyLee76 - 10-17-2024, 04:49 PM - Forum: KC868-A2 - Replies (6)

hello,

in my home I have several problems with WiFi so I'd like to connect via ethernet port.
So I adapted the code at this link to my needs.

This is this part of code i'm using

Code:
esphome:
  name: luci-2
  platform: ESP32
  board: esp32dev

# ethernet configuration entry
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0

# Optional manual IP
# manual_ip:
# static_ip: 192.168.0.199
# gateway: 192.168.1.1
# subnet: 255.255.255.0

web_server:
  port: 80

# Enable logging
logger:

captive_portal:

# Basic Config
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22

when I try to compile, i receive the follow error: 
C:\Users\Daddy>esphome compile c:/esphome/luci2_eth1.yaml
INFO ESPHome 2024.10.0
INFO Reading configuration c:/esphome/luci2_eth1.yaml...
INFO Unable to import component type: No module named 'esphome.components.type'
Failed config

type: [source c:/esphome/luci2_eth1.yaml:8]

  Component not found: type.
  LAN8720

Someone knows how I can solve this prolem?

many thanks

Print this item

  server mini cm4 no don't boot
Posted by: Krishi00 - 10-16-2024, 08:39 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - Replies (4)

Hi there,

New server mini, new RASPBERRY-PI  CM4108032  Raspberry Pi 8GB Compute Module 4 with WiFi, 32GB eMMC, new 24v ps, when I power it up it does not even connect to my switch...



Attached Files Thumbnail(s)
           
Print this item

  Anybody use DMX on Kincony A24's RS485 on EspHome in Home Assistant?
Posted by: KRende - 10-15-2024, 11:29 PM - Forum: KinCony A24 - Replies (8)

Good day.  Has anybody set up DMX on Kincony A24's RS485 in EspHome in Home Assistant?  I tried installing the Github add-in at https://github.com/andyboeh/esphome-dmx512, but I'm a beginner and haven't gotten it to work so far.  The Kincony's input and outputs work fine, but I don't know how to proceed.  I've put this in the Kincony's Yaml file, and the logger reports the value being sent to DMX_1, but my fixture's DMX indicator doesn't come on, so I don't even know if I wired it correctly.  Anyway, here are the Yaml settings:

uart:
  id: uart_bus
  tx_pin:
    number: 33
    allow_other_uses: true # For ESPHome >= 2023.12.0
  baud_rate: 250000
  stop_bits: 2

dmx512:
  id: dmx
  uart_id: uart_bus
  tx_pin:
    number: 33
    allow_other_uses: true # For ESPHome >= 2023.12.0
  uart_num: 1
  periodic_update: true
  update_interval: 500

output:
  - platform: dmx512
    channel: 1
    universe: dmx
    id: dmx_1

light:
  - platform: monochromatic
    name: "Test Lights"
    output: dmx_7
    id: light_test
    default_transition_length: 2s

Print this item

  how to control 16 relay using Python code
Posted by: admin - 10-15-2024, 12:16 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - No Replies

Here’s a Python code that runs on Ubuntu and controls 16 relays connected to MCP23017 via I2C. This code uses the smbus2 library, so make sure to install it first (pip install smbus2).

Code:
import smbus2
import time

# MCP23017 Register definitions
IODIRA = 0x00  # Direction register for Port A
IODIRB = 0x01  # Direction register for Port B
OLATA = 0x14   # Output latch register for Port A
OLATB = 0x15   # Output latch register for Port B

# I2C Device Address
MCP23017_ADDRESS = 0x22

# Initialize I2C bus
bus = smbus2.SMBus(1)  # Raspberry Pi CM4 typically uses I2C bus 1

def setup_mcp23017():
    # Set Port A and Port B to output mode
    bus.write_byte_data(MCP23017_ADDRESS, IODIRA, 0x00)  # Set Port A to output
    bus.write_byte_data(MCP23017_ADDRESS, IODIRB, 0x00)  # Set Port B to output

    # Turn off all relays initially
    bus.write_byte_data(MCP23017_ADDRESS, OLATA, 0x00)  # Turn off all relays on Port A
    bus.write_byte_data(MCP23017_ADDRESS, OLATB, 0x00)  # Turn off all relays on Port B

def set_relay(relay_num, state):
    """
    Controls a specific relay
    relay_num: 1-16, corresponding to the 16 relays
    state: 1 to turn on, 0 to turn off
    """
    if relay_num < 1 or relay_num > 16:
        raise ValueError("Relay number must be between 1 and 16")

    if relay_num <= 8:
        # Control relays 1-8 on Port A
        current_state = bus.read_byte_data(MCP23017_ADDRESS, OLATA)
        if state == 1:
            current_state |= (1 << (relay_num - 1))  # Turn on the relay
        else:
            current_state &= ~(1 << (relay_num - 1))  # Turn off the relay
        bus.write_byte_data(MCP23017_ADDRESS, OLATA, current_state)
    else:
        # Control relays 9-16 on Port B
        relay_num -= 8
        current_state = bus.read_byte_data(MCP23017_ADDRESS, OLATB)
        if state == 1:
            current_state |= (1 << (relay_num - 1))  # Turn on the relay
        else:
            current_state &= ~(1 << (relay_num - 1))  # Turn off the relay
        bus.write_byte_data(MCP23017_ADDRESS, OLATB, current_state)

def test_relays():
    # Sequentially turn on and off each relay with a 1-second delay
    for i in range(1, 17):
        print(f"Turning on relay {i}")
        set_relay(i, 1)
        time.sleep(1)
        print(f"Turning off relay {i}")
        set_relay(i, 0)
        time.sleep(1)

if __name__ == "__main__":
    setup_mcp23017()
    test_relays()  # Test relays
Before running the script, install the smbus2 library:
pip install smbus2

Print this item

  Server 16 Raspberry Specs
Posted by: LandOfMosfet - 10-14-2024, 08:18 PM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - Replies (3)

I have trouble finding the specifications for this unit.

Just basic stuff like:

What is the DC voltage and current requirements?
Voltage rating for digital input

I have the unit in front of me but before I get started I would like to have all the

Thanks!

Print this item

  "KCS" v2.2.5 firmware BIN file download
Posted by: admin - 10-13-2024, 11:12 AM - Forum: "KCS" v2 firmware system - Replies (6)

Here is "KCS" firmware for KinCony KC868-A series (ESP32) board.
How to download and use, online guide: https://www.kincony.com/esp32-kcsv2-firmware.html

v2.2.5 improment:
1. fixed bug: "INPUT" webpage have error items listed in "INTERLOCK GROUP" and OUTPUT count error.



Attached Files
.zip   KCS_KC868_A32M_V2.2.5.zip (Size: 794.81 KB / Downloads: 586)
.zip   KCS_KC868_A64_V2.2.5.zip (Size: 776.69 KB / Downloads: 555)
.zip   KCS_KC868_A128_V2.2.5.zip (Size: 776.58 KB / Downloads: 569)
.zip   KCS_KC868_AG_V2.2.5.zip (Size: 755.25 KB / Downloads: 542)
.zip   KCS_KC868_AI_V2.2.5.zip (Size: 779.44 KB / Downloads: 544)
.zip   KCS_KC868_AIO_V2.2.5.zip (Size: 796.55 KB / Downloads: 551)
.zip   KCS_KC868_AK_V2.2.5.zip (Size: 757.94 KB / Downloads: 561)
.zip   KCS_KC868_AM_V2.2.5.zip (Size: 772.41 KB / Downloads: 579)
.zip   KCS_KC868_AP_V2.2.5.zip (Size: 774.76 KB / Downloads: 556)
.zip   KCS_KC868_ASR_V2.2.5.zip (Size: 751.99 KB / Downloads: 520)
.zip   KCS_KC868_E16S_V2.2.5.zip (Size: 781.16 KB / Downloads: 558)
.zip   KCS_KC868_UAIR_V2.2.5.zip (Size: 758.66 KB / Downloads: 548)
.zip   KCS_KC868_A2_V2.2.5.zip (Size: 785.06 KB / Downloads: 579)
.zip   KCS_KC868_A4_V2.2.5.zip (Size: 772.34 KB / Downloads: 637)
.zip   KCS_KC868_A4S_V2.2.5.zip (Size: 795.99 KB / Downloads: 562)
.zip   KCS_KC868_A6_V2.2.5.zip (Size: 771.04 KB / Downloads: 601)
.zip   KCS_KC868_A8_V2.2.5.zip (Size: 779.1 KB / Downloads: 577)
.zip   KCS_KC868_A8M_V2.2.5.zip (Size: 795.66 KB / Downloads: 562)
.zip   KCS_KC868_A8S_V2.2.5.zip (Size: 797.1 KB / Downloads: 556)
.zip   KCS_KC868_A16_V2.2.5.zip (Size: 786.38 KB / Downloads: 667)
.zip   KCS_KC868_A16S_V2.2.5.zip (Size: 797.22 KB / Downloads: 572)
.zip   KCS_KC868_A32_V2.2.5.zip (Size: 776.62 KB / Downloads: 547)
Print this item