Posted October 10, 2024Oct 10 Hi, I couldn't find a topic I needed so I started a new one. In the controls of the 42100 (Liebherr R 9800 Excavator) there is a step / function in which you calibrate the motors/program. It looks like the program moves the arm (and other sections) and then stops when there is to much resistance. That way the controles/hub knows when to stop the motors. Even when you try to move the arm farther with the controls. I want to program that calibration or safety measure in my own programming. I have parts in my MOC that are restricted in their movements but the motors don't stop when there is resistance. I looked up some instructions about the Powered-Up Programming Blocks but I can't find a way to program this. Who can help me?
October 10, 2024Oct 10 Welcome. I recommend Pybricks instead of the PU App. Coding in Python is free. After flashing the firmware you can use Pybricks Code from your browser. It's always possible to go back to the LEGO firmware. Code samples, tutorials and coding help you can find on Pybricks.com The function you are looking for is called run_untill_stalledhttps://docs.pybricks.com/en/latest/pupdevices/motor.html?highlight=stall#pybricks.pupdevices.Motor.run_until_stalled Edited October 10, 2024Oct 10 by Berthil
October 17, 2024Oct 17 Author Thanks Berthil. So the 'run_untill_stalled' is not available in the Power up app? I have never coded but I see Pybricks has blocks so it's worth a try I think. How can I go back to the LEGO firmware?
October 17, 2024Oct 17 https://pybricks.com/learn/getting-started/install-pybricks/#restoring-the-original-firmware
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.