Open timdaman opened 2 weeks ago
Did you figure this out? Im in the exact same situation as you.... I have tried everything. The instructions say to tie the IR pin to VCC, well, it doesn't boot and is apparently short to ground. It works with a 4.7K pull up resistor but still not working.
TLDR, SPI worked for me. I used Google translate on the datasheet and got all the details for that.
I have disassembled my experimental setup in preparation for installation but if memory is correct my wiring was very simple
MSO
, MOSI
, SCLK
, and CS
) in the usual manner for SPI (CS is defined on the wk2168_spi:
component.MD0
and MD1
to GND. The MD
pins are connected to pull-ups so you have to ground them to get the needed "00" mentioned in the data sheet.Nothing else was needed. With those connections the board should be detected and work. You might want to bump up data_rate:
according to the ESP usage doc, I don't have any comprehensive tests of that yet as I want to test the limit when installed rather in my test setup.
You didnt do anything with the IR pin? edit, no , there isn't any need to
It seems when the wk2168 is registered in logs, it opens spi_uart_0 thru 3 but the board has screen printed 1-4. Does spi_uart_0 equal Uart1 on the board? Any changes in yaml because of this?I have channels 0 - 3, is this correct or should it be 1-4?
All good over here, It wasnt working because the wk2168 repo has a default crystal clock and it didnt match mine. After changing the clock my SPI_uarts are available and working.
The problem
I purchased a WeiKai WK2168 breakout from AlieExpress and it has not been working as expected.
I am able to use UARTs supplied by my device using a SPI connection however when I switch to using I2C to connect it to my esp32 I see no traffic over any UART. I have switched between SPI and I2C without touching any UART wires so I can confine the issue to using a I2C connection.
When connected via I2C I can see the device detected in the I2C bus scan.
I have contacted DrCoolZic over email but I am posting here as well to make it findable. It have lost many hours to this and hopefully I will save others from struggling with any similar issue.
Which version of ESPHome has the issue?
2024.9.2
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2024.9.3
What platform are you using?
ESP32
Board
Basic esp32 dev board
Component causing the issue
WeiKai
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response