How did you go?
They informed me the dongle would be delayed
Busy playing with Smart Meters at the moment, will let you know if/when their dongle arrives.
I have received a 2nd standing desk (from work) however, which I believe uses a different brand controller. I might take a look to see if the controls are compatible with each other, as that could be useful to know too.
Hey! I got this working for myself!
Unfortunately I forgot to take a picture of the inside before I screwed it to the desk - but it looks the same as yours in there. I made holes in a Jiffy Box instead of 3D printing the enclosure, and it fits nicely.
I tested it with your config and it works great!
Thanks again for your (and ssieb’s) dedication and for sharing how you did it!
That’s great!
I’ll share version 2 in a little bit.
I intercept and pass-through at the jst connector and am designing a second control panel to sit alongside the factory one!
More details later…
Hey, @Mahko_Mahko i rebuilt your setup with ESPHome and the Ethernet connector. Works fine with my desk. It is from a german company called “Assmann”. My handset has the feature, that it can lower the speed when the desk is moving a few centimeters from the programmed stopping point. With my logic analyzer i couln’t find out how it lowers the speed, do you have any idea? My controller is
JCB36N2CA-230
.
The Handset is custom branded from Assmann but on the backside its called JCHT35K28C-4-01V4
.
That’s great!
The Desky ones do the same slowing on target height approach, which is not currently implemented in the component (stops more abruptly)
Ssieb suggested the desk might do it with PWM (see the Discord thread).
I haven’t had a chance to look into it yet.
Right I’m not very good with Discord.
I think you want to first join the ESPHome Discord Server (If you haven’t already).
Then maybe try this link to the thread:
If you can’t find/access the thread via that link, just search for “Desky” under the ‘general-support’ channel.
I’ll see if I can upload the case to Thingiverse now. Never done that…
I’ve uploaded the enclosure to Thingiverse and linked to it in the main solution post.
I can’t see the preview of it yet. Maybe the cloud is still processing the preview? Let me know if you have issues with access or using it. First time I’ve published a Thing.
This thread is a fascinating one, as I believe I have the same controller and dongle, but mine came from a company in Australia called Zen Space Desks that rebranded the units (which added to the challenge).
Anyway, I happened to have a Raspberry Pi Zero 2 W under my desk for the UPS and found a super-helpful guy on GitHub who had the same frustrations as me.
I’ve hooked mine up to my Teams presense, and have the full write-up here: Automatically raise your desk when joining a Microsoft Teams call or meeting – Loryan Strant, Microsoft 365 MVP
However, now that I see this approach using ESP32, I’m tempted to switch.
Nice one!
So your approach sends commands to the Bluetooth dongle?
I was pretty keen to do what I think the author was originally planning which is to replace the Bluetooth dongle with an ESPHome one but there was no way to determine/sniff the messages between the actual dongle and controller pins without having a dongle.
You might have seen what I learnt here.
IIRC from my initial desk research Zen Space use Jiecang hardware as you’ve suggested…
Yeah that’s exactly what ine does.
I actually reached out to the manufacturer and spend quite a bit of time trying to figure out options, until I stumbled across the GitHub repo (linked in my blog post) where the guy has already done the hard yards to sniff out the commands.
He’s just added some functionality to read the height of the desk too.
This is great stuff! I’m the guy DeLorean mentioned who reverse engineered parts of the bluetooth functionality on https://github.com/C-Lock/desk_control.
It’s worth mentioning here, that in the US at least, this desk was the Uplift Sit-to-stand desk sold by Staples. Hopefully that info will help other clever folks find this thread.
My initial thought was to use a raspberry pi as a ‘listener’ for the commands between the bluetooth dongle and the desk controller via the GPIO pins and some fancy (hacky) ethernet wiring. I only did it with bluetooth because a friend pointed out (rightfully so), that it was a great excuse to learn something about bluetooth.
On a side note, I guess that means I should probably finish cleaning up the code and remove some bugs…
Hey yeah I was similary curious about learning bluetooth. Nice one.
I suspect that any desks that use Jiecang contollers should be compatible with the ESPHome wifi dongle approach primarily used in this thread. Might build up a list and maybe add it to the OP. Here’s a rough start. If people build a wifi dongle and confirm it works I’ll indicate so.
“Confirmed working” means someone built and tested the ESPHome wifi Dongle.
Jiecang OEM based desks:
- Desky | Confirmed working
- Assmann | Confirmed working
- Jarvis | This article indicates they use Jiecang
- Uplift | This article indicates they use Jiecang (and others have confirmed too).
- Omnidesk | Suggested here
- Zen Space | Suggested here (and in this thread)
The Uplift came with the jcp35n-blt, which is by Jiecang.
Hey if there was any way you could capture the up and down UART commands on the Bluetooth port if you have time, I think that could potentially be quite useful.
I’m not sure, but I think that might be a matter of hooking up the MT and MR to ESPHome rx/tx and watching for the messages using the debug.
https://fccid.io/2ANKDJCP35NBLT/Internal-Photos/Internal-Photos-3727739
I’m guessing the protocol that is sent from the app to the dongle is different than between the dongle and the controller? I don’t know much about these things.
This would enable people to build a WiFi dongle that goes into the Bluetooth port, rather than a pass-through dongle on the RJ45 port.
Debug settings are up here (for rx)
And you still cannot fathom how appreciative I am of it.
I am standing sooooooooooo much more during the day, which is much better for my knees by the end of it, as well as improving my concentration - as I tend to step away from the desk so am not tempted to use the keyboard & mouse during calls.
I was originally going to implement an up/down schedule (maybe 1hr sitting then 20min standing). But I’ve decided to trial “push-up mode”. After 1hr of sitting the desk will raise and you stand until you want to sit.
For me I “forget to stand until it’s probably a little late”.
I should have some details of my almost finished control panel V2 in the next week.
Awesome. I originally wanted it to be based on an hour of sitting as well, but then didn’t want it to be in the middle of typing or focusing.
For me, I find standing is most effective when I want to be creative (ie. writing/thinking) as I can easily pace around, as well as in meetings as it helps me pay attention (I have ADHD, so distraction is a problem).
That’s the great thing about being able to customise! Set it up for what works for you!
Option #2: Custom Control Panel
(Will refine this post and add detail)
Summary:
- By passing-through at the “JST Control Panel Connector” (PH 2.0mm 8Pin) rather than the RJ45, it’s a bit easier to locate the ESP “within reach”.
- Then you can add all kinds of sensor and interface options (I added screens, LEDs, a buzzer, a PIR, a ToF, and an Endstop for my keyboard drawer). I originally had a lux sensor but broke it and decided to just swap it out with the PIR.
Key features:
- Presence & Sitting detection (multi-pronged) using PIR, ToF, desk height, keyboard drawer position, BLE smart band detection.
- One-press button toggles sit/stand.
- Implemented a “push-up” mode. Desk moves to standing after x minutes of sitting.
- Display time until you need to stand and time in current position
- Other button: Long press to toggle activating push-up mode. Short press extends time until standing if time nearly up.
Cracks me up that even though the control panel it is “much smarter”, it looks pretty vintage;)
Parts list:
- An ESP32 (you’ll need lots of pins): I decided to use a LILYGO® TTGO T7 Mini32 V1.5 for this, but I’m sure other decent ESP32’s which fits in the enclosure would be fine. I wouldn’t go too cheap. You could take a look here.
- 2 x LED’s (recommend two different colours of your choice). I used these ones. They have a built in resistor.
- 2 x push buttons: I got these ones. I think they’re ok. I have occasional reliability issues though. Not sure if it’s related to quality of buttons or something else.
- 1 x RTTL buzzer: I’ve been using these ones.
- 2 x screens: These SSD1306’s have been fine.
- A ToF sensor: These VL53L0X’s have been fine.
- A motion sensor: I bought a few different types of these to try. Can’t recall which one I used. Can find out if needed.
- If you want to throw in a light sensor, I’d go with a BH1750
- Wire, solder, duponts etc…
Here’s a copy of the enclosure (updated 2024-01-25)
https://www.printables.com/model/737413-desky-custom-control-panel-option-2
It’s ok but could benefit from further tweaking. In hindsight I think just using two RJ45 breakouts and passing through like this might be neater. https://www.tindie.com/products/tjhorner/wifi-standing-desk-controller/
Config:
Hmmm… too big to upload.
I’ve just dumped a snapshot here.