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
625 stars 61 forks source link

Improvement: Still be able to use the control panels #7

Closed staxDB closed 3 years ago

staxDB commented 3 years ago

It would be awesome if you could still use the control panel. The ESP8266 would have to read the incoming signals from the control panel and pass them on to the control unit. The same applies the other way round: Everything that is read from the control unit should also be written back to the control panel. Would such a setup be possible?

RJ45 PIN Original cable color Ethernet cable color Description ESP8266 GPIO > Control Unit ESP8266 GPIO > Control Panel Control Panel
1 brown white-orange RES RES
2 white orange SWIM SWIM
3 purple white-green N/C N/C
4 red blue Enable / Awake D2 ? Enable / Awake
5 green white-blue RX (of remote) D6 D1 TX (of remote)
6 black green TX (of remote) D5 D0 RX (of remote)
7 blue white-brown GND GND
8 yellow brown VDD (5V) VDD (5V)

The ESP8266 itself could be supplied with power via e.g. USB, so that the control panel could use the power supply from the control unit.

iMicknl commented 3 years ago

Have you tried a simple RJ45 splitter? I wonder if that would work as well..

Otherwise; it would be interesting to investigate if you can pass through all communication indeed.

staxDB commented 3 years ago

I will give it a try

lordfiSh commented 3 years ago

Have you tried a simple RJ45 splitter? I wonder if that would work as well..

Otherwise; it would be interesting to investigate if you can pass through all communication indeed.

Splitting don't work 100%. The ESP can only read the value of the height of the table. I disconnected GND and 5V and added a power via USB. Everything with the Controller works

NazarLysyi commented 3 years ago

Are you able to connect the control panel to the ESP and listen command?

P.S. I want connect HS11B-1 to ESP-32 Lolin32 and use it in my project (without table controler) to read command from control panel

dasfuu commented 3 years ago

Isn't that already possible? My desk seems to have two controller ports. Or is that only on specific models?

iMicknl commented 3 years ago

@dasfuu my desk also has two controller ports, but unfortunately there are some models with just one controller port. That's the same reason why I haven't spend any time on researching this.

Diddlik commented 3 years ago

@staxDB Do you have some progress on this?

lordfiSh commented 3 years ago

Isn't that already possible? My desk seems to have two controller ports. Or is that only on specific models?

@NazarLysyi My Flexispot E5 has only one Port, Controller Model CB38M2A-1

image

pepsinio commented 3 years ago

Anyone has success with this? Alternatively i guess an external keypad connected to other GPIO's can do the trick too (minus the display)

iMicknl commented 3 years ago

I haven't heard it yet, however feel free to join us on Discord to discuss further. I don't think that we have users there yet who only have a single input, however perhaps they have an idea :-).

pepsinio commented 3 years ago

@iMicknl you can close this issue with my pull request as well