Awunguyeoob Posted April 20, 2022 Posted April 20, 2022 Hello, I want to make a lego useless box with lego powered up motors, i want to use 1 motor as a sensor (to notice the lever is pulled) and the other motor to put the lever back. But now i need a lego powered up program for it. The program needs to be that if the 1st motor is turned a specific amount of degrees the other motor will be triggered and go turn a amount of degrees and back. Can someone send me a program for this? Because i tried but it didnt work out. Quote
GerritvdG Posted April 29, 2022 Posted April 29, 2022 On 4/20/2022 at 8:49 AM, Awunguyeoob said: Can someone send me a program for this? Because i tried but it didnt work out. Always fun! Start with exploring this guide: https://racingbrick.com/powered-up-code-block-guide/ You need to have a good understanding of the basic code blocks, in the guide are nice green '+' buttons which shows all the details for each block. Start with reading the position of the motor in a loop with this block: Send me a DM if you get stuck. Cheers, Gerrit Quote
Awunguyeoob Posted May 2, 2022 Author Posted May 2, 2022 On 4/29/2022 at 5:54 PM, GerritvdG said: Always fun! Start with exploring this guide: https://racingbrick.com/powered-up-code-block-guide/ You need to have a good understanding of the basic code blocks, in the guide are nice green '+' buttons which shows all the details for each block. Start with reading the position of the motor in a loop with this block: Send me a DM if you get stuck. Cheers, Gerrit Hi Gerrit, Im glad you reacted to my question because i tried it again with your help and now it works how i want it to do. Now i can build my lego useless box! Thank you! Cheers, Awunguyeoob Quote
vladoniki Posted November 6, 2022 Posted November 6, 2022 (edited) I used 1x sensor + 1x motor. https://www.youtube.com/watch?v=wdf_GTM2jLQ&ab_channel=BrickMania-BG Edited November 6, 2022 by vladoniki Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.