Michael0yodi / worx_esphome

GNU General Public License v3.0
5 stars 1 forks source link

Clarification of signals #4

Open skorpi0n opened 9 months ago

skorpi0n commented 9 months ago

Hi I'm struggling understanding some implementations. If I look at the keyboard matrix chart, column Home get contact with row 2 and 9, correct? https://github.com/Michael0yodi/worx_esphome/blob/main/worx_79x_keypad.png If I then look at the schematic, D7 ties pin 1 and pin 2 together with the octocoupler. https://image.easyeda.com/histories/50fe92ef174b4ab2a6bb90701e24f839.png Also, when looking at the esphome config, D7 is named "Stop" https://github.com/Michael0yodi/worx_esphome/blob/main/esphome_config.yaml

Also in the schematic, HALL lid and Stop are seen to be part of the white ribbon cable with 1-10 wires, but aren't the Stop button and separate from the keyboard? At least at my wg791e, but also seen in your image here https://github.com/Michael0yodi/worx_esphome/blob/main/worx-stop.png

What am I missing here?

skorpi0n commented 9 months ago

Ok, I think I understand now. The "Input Pin Header" in the schematic is not a reference to the "keyboard matrix cable". I noticed that my matrix table is shifted 1 row from yours, meaning that row 1 in yours is row 10 in mine and the rest is just moved up 1 row. Also, the other question I had with Hall Lid and Stop make sense now since they don't reference to the "keyboard matrix cable" The only thing that looks wrong is the D7 & D8 for Home & Stop, which looks to be swapped. Same thing with D5 & D6 for KB_0 & Start

Michael0yodi commented 9 months ago

Hi,

You are correct, connect R(ow) and (C)olumn for a keypress. Indeed Looks like I made a typo om D7/D8 when I created the schematics.

The pin output in schematic is not for the ribbon as you mention, I see it looks confusing now when you point it out, I used a separate 10pin connector, and that's why I added the numbers, so its not related to the ribbon cable numbering