All desks so far have had Jiecang controllers. Have you done any digging to check whether this is a Jiecang controller? I think it’s pretty unlikely.
Acutally no, my main concern until now was the construction of the frame regarding stability. The MAIDeSITe desk seemed to be the most stiff compared to others.
Maybe this works: Turn your LoctekMotion/FlexiSpot standing desk into a smart desk! - #36 by m1scha
I’ll check the hardware once the desk arives and report about it.
That’s probably the best idea. Don’t be too afraid to unscrew the controller box and take a peak at the board inside (although taking apart that may void your warranty). Even just Google imaging the control box and control panel you can often find out who the OEM is, which is the secret to finding the right project which will work or can be adapted.
Okay, thanks! Here are some close-up pictures. Can you possibly determine from the outward appearance if it is supported?
I think you will be in luck!
I would buy parts.
It’s possible the newer Jiecang controllers may have a different or slightly different protocol, but this is looking pretty promising as a start!
The hardware looks quite similar!
Great, thank you so much for taking the the time!
I have just received the desk and checked everything. Although it is manufactured by Jiecang, the controller seems to be different. Here are some additional pictures of the MaideSite desk.
There is one 6 wire RJ-12 connector that’s directly connected to the control box. Maybe I can hock up the esp there?
Could you send more photos please? Perhaps similar to those in this post. Or a vid.
Just want to get a clearer picture of the system diagram.
Also see if you can spot your controller here.
I couldn’t find the controller in the list you shared. It appears that the motor drivers are integrated with the display.
Here are some pictures and the wiring diagram. Each leg and power are directly connected to the touch display box.
Thanks. A few initial thoughts.
I think you’ve got some work and Investigations to do if you want this to work.
I don’t think you’ll be able to control it via the rj12 port. That is probably for a Bluetooth dongle and the protocol for that has had less development. But it’s probably still worth a tinker. Could have changed.
You may be better off trying to intercept signals at the jst connector between the handset face and the control box body. Similar to what I did here.
As a first step, I would investigate these pins here. Do any control up/down (like I documented in this thread?). Are any Rx/tx (can you see messages via uart debug or a logic analyser)?
Also check carefully for any labelling relating to these wires (Rx,tx p,g or similar).
Looks great. Any chance of sharing that enclosure?
If not going for a pass-through you could almost get this to usb stick type sizes I reckon. Not sure on best exact build materials/components.
Just found this amazing item on AliExpress. Check it out! AU $1.62 27%OFF | White RJ45 Tool-less Connector No Crimp Connectors Cat6 Connector Cat5e Connectors Cat5 Connectors
https://a.aliexpress.com/_mtudN7I
@jn3va3 Did you ever try this out with the Timotion, just bought a set of legs that use it and realized after I got them that they were not Jiecang, but Timotion.
@lizaoreo is the control box a TC11?
I really think there is slim to no chance of this project being compatible with Timotion looking at a controller teardown.
https://www.btod.com/blog/problems-autonomous-smartdesk-2he/#timotion
TC15, rather annoyed now. I was sure I was getting a Jiecang. I may just use this as a learning opportunity (as I don’t really want to return at this point) and determine if I’ll even use the stand up functionality. If so, then next time I’ll spend more for a better set of legs where I know what I’m getting. Brand of the legs is AIMEZO on Walmart/Amazon. So I’d avoid if you’re looking to use them with this project, assuming I can’t get this to work somehow. Worst part is I got the ones with just an up/down button because I assumed I could make this work, so I don’t even have memory.
Bugger. If you have the time and motivation to try to build your own solution I can help with a few pointers.
First step is probably opening both the handset and controller and figuring out what the control wires are for.
If so, start your own thread along these lines and tag me.
Cheers.
@jaddel Not sure if you found a solution for the maidesite desk? This link posted by Mahko_mahko has loads of info which initial testing appears to work fine using the RJ12 connector on the back of the handset
its a github link,, can only put 2 links as a new user but the rest of the line is phord/Jarvis
test Yaml for HA/ESPHome
uart:
- id: desk_uart
tx_pin: 17
rx_pin: 18
baud_rate: 9600
debug:
direction: BOTH
dummy_receiver: true
after:
bytes: 9
sequence:
- lambda: UARTDebug::log_int(direction, bytes, ',');
button:
- platform: template
name: Desk UP
id: my_deskup
on_press:
then:
- logger.log: Button Pressed
- uart.write: [0xf1, 0xf1, 0x01,0x00,0x01,0x7e]
cable wise I just used one of these https://www.amazon.co.uk/dp/B07YC7DWN5?ref=ppx_yo2ov_dt_b_product_details&th=1 and cut it in half, blue & white cut as not needed, Yellow to GND, Red → ESP32 5v IN, Black → ESP32 Serial out, Green via a resistor arrangement to ESP32 Serial in, used the example from groundfungus Arduino Uno serial communication with ESP32 using voltage divider - Project Guidance - Arduino Forum
now to go play and see what else it can do.
PS. Sorry all as semi unrelated to the rest of the thread, been watching this thread and was going to use the suggested patching between Handset & Controller but then my desk arrived and I got the same controller as Jaddel so can’t hack without voiding the warranty
For anyone interested, my test code so far is here GitHub - shades66/Maidesite-standing-desk: My experimentations with connecting a Maidesite PRO 2 standing desk controller to HomeAssist
all using the RJ11 connector on the Maidesite standing desk. all the commands it uses seem to be pretty generic so expect this will work on other brands too.
So far working is
- Button to trigger any of the 4 presets
- Button to move UP/DOWN
- Slider to move direct to a height
- Get current settings for height & presets
Todo
- Tidy up code (remove test stuff)
- Make it retrieve the current height automatically (you need to press the test button at the start)
- Add buttons to create presets based on current height
- Look into automations to automatically lower after alarms/no-one at desk
Nice and congrats!
From here could you start a seperate thread for your desk please as this is off topic.
Cheers.