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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,367
» Latest member: johnkalvinsmith
» Forum threads: 2,574
» Forum posts: 13,305

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 34 Guest(s)
Bing, Bytespider, Crawl, Google, PetalBot, Yandex, bot

Latest Threads
change wake up name
Forum: KinCony AS
Last Post: gal
3 hours ago
» Replies: 12
» Views: 72
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: xarouli5
4 hours ago
» Replies: 17
» Views: 180
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
6 hours ago
» Replies: 32
» Views: 390
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
11 hours ago
» Replies: 10
» Views: 60
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
11 hours ago
» Replies: 7
» Views: 45
"KCS" v2.2.8 firmware BIN...
Forum: "KCS" firmware system
Last Post: admin
11 hours ago
» Replies: 2
» Views: 163
Dimensions/drawings of bo...
Forum: Schematic and diagram
Last Post: admin
11 hours ago
» Replies: 1
» Views: 20
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: admin
12-16-2024, 10:55 PM
» Replies: 12
» Views: 446
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
12-16-2024, 10:53 PM
» Replies: 5
» Views: 34
M16 SHT31 sensor disconne...
Forum: KC868-M16 / M1 / MB / M30
Last Post: bsarra
12-16-2024, 08:36 PM
» Replies: 4
» Views: 38

  Like the A6 but more 0-10V outputs
Posted by: tarajas - 10-21-2024, 04:45 PM - Forum: Extender module - Replies (6)

Hi,

Basically none of the dev boards offerred by Kincony have more 0-10V outputs than 2, while also having SSR digital outputs, instead of mechanical relays right?

So the only way is to buy at least minimum an A6 board (it has the I2C port needed for the extenders), then use an extender right? Which extender should I go for?

For the the SSR outputs are the main focus and multiple 0-10V outputs as well.

Print this item

  How to control RGBW 5pin led strip with A16 controller
Posted by: Karnek - 10-21-2024, 08:12 AM - Forum: KC868-A16 - Replies (9)

Hi!

Can someone guide me how can I controll 5pin RGBW SMD 5050 led strip ( not addressable LEDs, total of ~25meters long, 5pcs x 5meters, 12v )

using A16 board & Home assistant ideally?




Attached Files Thumbnail(s)
   
Print this item

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

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 (14)

   

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: 208)

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 and diagram - 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 (1)

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 (2)

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