iMicknl / LoctekMotion_IoT

Learn how to connect your Flexispot (LoctekMotion) desk to the internet. This repository contains a collection of scripts to get your started, combined with research and instructions.
MIT License
626 stars 61 forks source link

Raspberry Pi Pin20 confusion #54

Open 1100101 opened 1 year ago

1100101 commented 1 year ago

Hi,

I'm trying to connect my Flexispot desk using a Raspberry Pi Zero W. I'm confused about which GPIO port to use for PIN20:

The README says PIN20 shall be connected to GPIO18, which is physical pin 12.

The Python script, however, sets PIN_20 to 12, and also sets GPIO mode to BCM: https://github.com/iMicknl/LoctekMotion_IoT/blob/f4d57e02546af97f19ae47d47f873480fe083f6b/packages/raspberry-pi/flexispot.py#L6 https://github.com/iMicknl/LoctekMotion_IoT/blob/f4d57e02546af97f19ae47d47f873480fe083f6b/packages/raspberry-pi/flexispot.py#L26

GPIO 12 would be Pin32 on the Raspberry.

Which is the correct one?

Note: I am able to control the desk using the script, but only if I activate the touch panel (HS13A-1) manually beforehand. Once the touch panel goes to sleep, no commands are being issued, which tells me something is not working correctly with PIN20? My control box is a CB38M2J(IB)-1.