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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,748
» Latest member: udyamregistration2
» Forum threads: 4,214
» Forum posts: 20,883

Full Statistics

Online Users
There are currently 31 online users.
» 0 Member(s) | 17 Guest(s)
Amazonbot, Baidu, Bing, Bytespider, Crawl, PetalBot, bot

Latest Threads
[arduino code examples fo...
Forum: CO16
Last Post: admin
Today, 12:16 AM
» Replies: 0
» Views: 7
[arduino code examples fo...
Forum: CO16
Last Post: admin
Today, 12:11 AM
» Replies: 0
» Views: 7
[arduino code examples fo...
Forum: CO16
Last Post: admin
Today, 12:09 AM
» Replies: 0
» Views: 7
[arduino code examples fo...
Forum: CO16
Last Post: admin
Today, 12:08 AM
» Replies: 0
» Views: 7
[arduino code examples fo...
Forum: CO16
Last Post: admin
Today, 12:06 AM
» Replies: 0
» Views: 7
[arduino code examples fo...
Forum: CO16
Last Post: admin
Today, 12:04 AM
» Replies: 0
» Views: 7
[arduino code examples fo...
Forum: CO16
Last Post: admin
Today, 12:02 AM
» Replies: 0
» Views: 7
[arduino code examples fo...
Forum: CO16
Last Post: admin
Today, 12:00 AM
» Replies: 0
» Views: 8
[arduino code examples fo...
Forum: CO16
Last Post: admin
Yesterday, 11:58 PM
» Replies: 0
» Views: 7
[arduino code examples fo...
Forum: CO16
Last Post: admin
Yesterday, 11:56 PM
» Replies: 0
» Views: 7

Question RS485 not receiving anything
Posted by: victorclaessen - 03-28-2023, 03:53 PM - Forum: KC868-A16 - Replies (26)

Hi,

I have the A16 wired up to a RS485 expansion board (16 inputs, 16 outputs) that is controlled by modbus RTU.

I have the ESP32 programmed with ESPHome. I can send commands to the expansion board, and I have control over the outputs (I see the onboard output-LEDs toggling), and I can see from the onboard communication LED on the expansion board that the expansion board sends a modbus response, but the ESP32 on the A16 does not receive anything on pin 16 (485RX).

I have verbose logs activated on the UART defined in ESPHome. I can see the raw bytes leaving on pin 13 (485TX), but no bytes are arriving on pin 16.
Obviously, I also cannot read the inputs of the expansion board (as that would require receiving the modbus response).

Are you sure that the RX pin number is correct? Could it be that I have a broken pcb trace?

Best regards,

Victor

P.S. Below is the relevant part of the esphome configuration

Code:
logger:
  level: VERY_VERBOSE

uart:
  id: mod_bus
  tx_pin: 13
  rx_pin: 16
  baud_rate: 9600 #115200
  stop_bits: 1
  debug:
    direction: BOTH
    dummy_receiver: false
    after:
      timeout: 1s
    sequence:
      - lambda: UARTDebug::log_hex(direction, bytes,' ');

modbus:
  id: modbus1
  send_wait_time: 250ms
  disable_crc: true

modbus_controller:
  - id: eletechsup
    ## the Modbus device addr
    address: 0x1
    modbus_id: modbus1
    setup_priority: -10

sensor:
   - platform: modbus_controller
     modbus_controller_id: eletechsup
     name: "read channel 1 state"
     id: eletech_channel1_state
     custom_command: [ 0x01, 0x03, 0x00, 0x01, 0x00, 0x01 ]
     value_type: U_WORD

switch:
  - platform: modbus_controller
    modbus_controller_id: eletechsup
    id: eletech_toggle_1
    name: "Eletech toggle 1"
    icon: "mdi:toggle-switch"
    address: 0x1
    register_type: holding
    skip_updates: 0
    lambda: |-
      return true;
    write_lambda: |-
      ESP_LOGD("main","Modbus Switch incoming state = %f",x);
      // return false ; // use this to just change the value
      payload.push_back(0x1);  // device address
      payload.push_back(0x6);  // write register
      payload.push_back(0x0);  // high byte address of the register
      payload.push_back(0x1);  // low byte address of the register
      payload.push_back(0x3);  // command (3=toggle)
      payload.push_back(0x0);  // delay (0)
      return true;

Print this item

  How to Design a Cabinet - Smart Home System Planning
Posted by: engmohades - 03-28-2023, 11:01 AM - Forum: DIY Project - Replies (5)

How to Design a Cabinet - Smart Home System Planning ? 
Using software drawing 

Print this item

  publish and subscribe with esp32 chip id
Posted by: shivdoke39 - 03-28-2023, 09:08 AM - Forum: KC868-A8 - Replies (3)

how to get chip id as mentioned in your publish topic ..i am getting only 8bits..and your UUID chip id is 12 bit...

Print this item

  Factory reset
Posted by: Olsen@HuaHin - 03-28-2023, 02:19 AM - Forum: KC868-A16 - Replies (7)

Hi.
I can no longer find and access my KC868-A16 board by WIFI or LAN. Huh
How to do a factory reset?

Print this item

Question KC868-A8-V1.5
Posted by: halaszlacii - 03-26-2023, 02:16 PM - Forum: KC868-A series and Uair Smart Controller - Replies (12)

Hello.I have a panel mentioned in the title.I would like to use it in Homeassistant with tasmota firmware.However, the template code I found for it does not work.Could you help me with a suitable code?I would like to use the inputs and outputs and I would also like to use a temperature sensor (DS18B20).Thank you very much



Attached Files Thumbnail(s)
   
Print this item

  KC868-AIO ESP32 All in One board released
Posted by: admin - 03-26-2023, 02:14 PM - Forum: News - No Replies

We have designed KC868-AIO (ESP32 ALL IN ONE) board for home automation DIYer. it can easy integrate to home assistant by ESPHome. the hardware have 32CH mosfet output + 58CH digital input + 16CH analog output + 19CH analog input, support RS485 + Ethernet + WiFi + Bluetooth + 4G SIM7600 module + DS3231 RTC module.
[Image: KC868-AIO-1_01.jpg]
[Image: KC868-AIO-1_02.jpg]
[Image: KC868-AIO-1_03.jpg]
[Image: KC868-AIO-1_04.jpg]
[Image: KC868-AIO-1_05.jpg]
[Image: KC868-AIO-1_06.jpg]

Print this item

  ESPHOME KC868-E16S
Posted by: rodrigomallmann - 03-26-2023, 01:19 PM - Forum: KC868-E16S/E16P - Replies (11)

Olá, tudo bem, estou tentando implementar o esphome via home assistant no KC868-E16S, porem quando inicia a compilação esta dando um erro conforme imagem em anexo, e no final do processo de instalacao quando tento acionar o relay pelo switch touch o relay nao fica armado. Poderia me orientar onde eu estou errando no processo. Um detalhe importante, se instalo a versao web, o equipamento funciona normalmente.



Attached Files Thumbnail(s)
       
Print this item

  How can I control somfy rolling shutter over home assistant frequency 433.42 MHz
Posted by: engmohades - 03-25-2023, 11:14 PM - Forum: DIY Project - Replies (1)

Please, How can I control somfy rolling shutter over home assistant
frequency 433.42 MHz



Attached Files Thumbnail(s)
   
Print this item

  Relay
Posted by: lori72 - 03-24-2023, 07:31 PM - Forum: KC868-A4S - Replies (7)

Hi, I can't understand which doors are to be configured to command the relays from ESP32. 
can you help me. From the example file I can't understand, thanks

Print this item

  KC868-AIO configure yaml for ESPhome
Posted by: admin - 03-24-2023, 12:11 AM - Forum: KC868-AIO - Replies (25)

   

.txt   KC868-AIO-ESPHome.txt (Size: 20.73 KB / Downloads: 2124)

Print this item