Coder Social home page Coder Social logo

LINAK Support about upsy-desky HOT 17 OPEN

tjhorner avatar tjhorner commented on August 11, 2024 4
LINAK Support

from upsy-desky.

Comments (17)

BradleyFord avatar BradleyFord commented on August 11, 2024 2

The projects I had looked at are:
https://github.com/anetczuk/LinakDeskApp
https://github.com/rhyst/idasen-controller
https://github.com/j5lien/esphome-idasen-desk-controller

"Idasen" is the Ikea desk, but it uses the Linak without any modification. Even the Android app is the Linak app (not an Ikea app)

from upsy-desky.

tjhorner avatar tjhorner commented on August 11, 2024 1

Can you link me to the projects for the LINAK desk? It will give me a good idea of whether support is feasible or not. Thanks!

from upsy-desky.

pi2madhatter avatar pi2madhatter commented on August 11, 2024 1

I would throw down the money here and now for LINAK support. I have one that looks identical to the others posted on this git, but with slightly different specs. I've attached an image of my label if it helps at all.

Image

In the meantime, if anyone can venture a guess if the production version of the Upsy Desky could be modified or use a custom converter cable to make it work, I'm listening!

from upsy-desky.

AABatteries avatar AABatteries commented on August 11, 2024

+1 on this request, I was just about to ask about LINAK support :) I will be happy to help with hardware testing if need be.

from upsy-desky.

jshep321 avatar jshep321 commented on August 11, 2024

Hi guys, I was thinking along the same lines at @tjhorner here!

I measured my (~20yo) LINAK desk (from Kinnarps Sweden). It was a 29.13V common that simply needs to be connected to wire A for up or wire B for down. I bought a dirt cheap ESP01 dual relay from aliexpress and connected via ESPHome to HA.

I made a capacitive touch sensor from a different ESP32 (that is part of my office master control) and can control the up/down with that via HA.

My desk has no height sensing so I am currently in the middle of prototyping a ToF distance sensor using HC-SR04 (ultrasonic) and a (3rd!) ESP. I'm using node red to make Preset heights, but the sensor is currently too noisy to work properly. I might switch over to a different position sensing method when I reopen this project. I'm pretty surprised that everything is seamless except the ultrasound. Delays are imperceptible in this setup.

Do your LINAK desks have position sensors? My RJ11 is 3 wires only -- V+ (29v) and Up/Down sense.

Happy to share my yaml for the desk motor control if you want.

IMG_6411

IMG_6410

signal-2022-08-30-150115

IMG_6412

from upsy-desky.

h42y avatar h42y commented on August 11, 2024

There is high possibility that system is using hall quadrature encoders to keep the speed and position of the actuators in check. Just sniff them to get position.

from upsy-desky.

tjhorner avatar tjhorner commented on August 11, 2024

So it looks like all the existing projects use Bluetooth to communicate with the control box. I'd say that is the easiest path forward. Since the Upsy Desky has an ESP32 and thus Bluetooth, I recommend using this ESPHome component for now while I look into what it uses for the physical connection.

from upsy-desky.

AlexPotterOnGit avatar AlexPotterOnGit commented on August 11, 2024

+1 for LINAK. As others ready to do tests required. I don't think my controller has Bluetooth so I am after wired connection.
20220922_204120
20220922_204041
20220922_204052
20220922_204109

from upsy-desky.

Tam-Lin avatar Tam-Lin commented on August 11, 2024

I have an uppy desky now and a linak controller. For this controller, there are 4 wires, and some communication between the desk and controller that happens to communicate the current height.

from upsy-desky.

Tam-Lin avatar Tam-Lin commented on August 11, 2024

I've done a bit of investigation. There are 4 wires; from left to right:
1 2 3 x x x x 8

It looks like the wire color could be different, based on the picture above. In my case, it's
R B Y x x x x Bl

Measurements, which didn't trigger the desk to do anything:

1 - 2: -6.6 V
1 - 3: - 4.4 V
1 - 8: - 7.34 V

2 - 3: 0 V
2 - 8: 0 V

3 - 8: 0 V

If I do attach the upsy desky to the desk, it descends to the bottom.

I have a Linak DPG1C controller; I'm not sure about the motor control box.

from upsy-desky.

Ordspilleren avatar Ordspilleren commented on August 11, 2024

Hi all!
I have been working on exactly this, and I am happy to report that I have a working solution which you can find in this repo. I didn't do this all by myself, so I have given credit where its due.

Integrating it directly within Upsy Desky is unlikely in its current form, simply because I believe esp-idf is a requirement to get the control we need over UART.

It's by no means done yet, but it works reliably for me.

from upsy-desky.

tjhorner avatar tjhorner commented on August 11, 2024

Integrating it directly within Upsy Desky is unlikely in its current form, simply because I believe esp-idf is a requirement to get the control we need over UART.

@Ordspilleren You can actually compile your firmware directly for the Upsy Desky if you want; it's just an ESP32 module.

Why do you think ESP-IDF is required? ESPHome does support ESP-IDF but currently it's using the Arduino framework, which is default.

from upsy-desky.

Ordspilleren avatar Ordspilleren commented on August 11, 2024

@Ordspilleren You can actually compile your firmware directly for the Upsy Desky if you want; it's just an ESP32 module.

Good point, that's certainly an option if someone wants to go that route. They would still need the custom circuit described in my repo however, unless Upsy Desky can support doing single wire RX and TX and bring the 12V down to 3.3V. I haven't looked at the options in-depth to be honest.

Why do you think ESP-IDF is required? ESPHome does support ESP-IDF but currently it's using the Arduino framework, which is default.

My solution relies on detecting a UART break signal and then clearing the UART FIFO buffer to get the first data byte in the data frame from the table. I also set a couple of ESP-IDF specific options to get the break detection working reliably. Not sure if that is possible with Arduino directly.

With that said, you can call IDF functions from within Arduino, so I guess it should be possible if someone was willing to put in the time.

from upsy-desky.

davidski avatar davidski commented on August 11, 2024

It looks like HA is getting 1st party integration with IKEA IDASEN in the 2023.10, which should (not yet tested) include Linak devices. I'm excited to see this land! https://rc.home-assistant.io/integrations/idasen_desk

from upsy-desky.

Ordspilleren avatar Ordspilleren commented on August 11, 2024

It looks like HA is getting 1st party integration with IKEA IDASEN in the 2023.10, which should (not yet tested) include Linak devices. I'm excited to see this land! https://rc.home-assistant.io/integrations/idasen_desk

Please note that this integration works via the Bluetooth functionality present in some Linak controllers. This has been possible for several years via esphome-idasen-desk-controller and LinakDeskEsp32Controller.

from upsy-desky.

giantorth avatar giantorth commented on August 11, 2024

Has anybody gotten Linak support working with an upsy yet? I suppose I should have checked the issues before I bought one of these ;)

from upsy-desky.

giantorth avatar giantorth commented on August 11, 2024

I'm not sure this is helpful, but the Linak desks did have a USB adapter for PC control, the USB2LIN06 cable.
You can see pictures of it here: https://github.com/UrbanskiDawid/usb2lin06-HID-in-linux-for-LINAK-Desk-Control-Cable/tree/master/PHOTOS/usb2lin06-HID

I'm curious if it would be possible to use this cable as some sort of bridge for the hardware compatibility issues with the upsy and a linak controller, perhaps with a bit of soldering if necessary.

from upsy-desky.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.