The magic 299 or can we go lower? #167
Replies: 6 comments 6 replies
-
You need to account for the "coasting" or deceleration when you let go of the button. But otherwise, in theory you could probably go lower. Two factors contributed to this,
If you decide to go for it, please report back :) |
Beta Was this translation helpful? Give feedback.
-
Did i get it right and [env:attiny841_serial] would be the right "action" to choose for megadesk? Anything special to keep an eye on? Has anyone used VS Code on Windows with PlatformIO to build and upload the hex to the microcontroller? It seems PlatformIO uses avrdude. Would be a very integrated and straight forward push-one-button action if it really works ootb. |
Beta Was this translation helpful? Give feedback.
-
@gcormier After going a bit deeper into the code, I guess the recal idea won't work as if I correctly understand, input processing is done single threaded in sequential order within |
Beta Was this translation helpful? Give feedback.
-
One more thing i wasn't able to figure out: Why is it that SCK on the megadesk board is used as TX channel in the serial communication? I'm just wondering as i would expect it's a different signal than a clock and the same port, if i get it right, is actually used as clock when connected to a an eeprom writer to do the firmware update. Or did i get this wrong? |
Beta Was this translation helpful? Give feedback.
-
While trying to fully understand the code i came across this section: megadesk/code/src/megadesk.cpp Line 775 in eada425 Shouldn't There is a second check for the limits in a different part of the code, which might be the reason why this never led to a problem. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi Greg,
Looking at the code, i found DANGER_MIN_HEIGHT (162 + HYSTERESIS)
where HYSTERESIS == 137 (minimum raw step width)
megadesk/code/src/megadesk.cpp
Line 143 in eada425
with your notes:
// Changing these might be a really bad idea. They are sourced from
// decoding the OEM controller limits.
That leads to 299 (162 + 137 = 299) which is the minimum position the table can be moved to with megadesk.
However, when calibrating my desk, it reaches raw 96. Now, for my "low rider sitting position" i'd like to get those extra approx 2cm lower, if possible.
@gcormier from your experience, do you think it will be a problem to override the DANGER_MIN_HEIGHT? I'm just asking myself what could go wrong? My thoughts are:
So if i would set my minimum height to something above 96, say 110, it still shoud have a small margin to not trigger that protection. And in case something should go wrong, it would only be once since i can change the setup again if i see it's going to be a problem.
What do you think @gcormier, is there something I'missing?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions