Jump to content
THIS IS THE TEST SITE OF EUROBRICKS!
THIS IS THE TEST SITE OF EUROBRICKS!

Featured Replies

Posted

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.

  • 2 weeks later...
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:

043.png

Send me a DM if you get stuck.

Cheers, Gerrit

  • Author
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:

043.png

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

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.
Sponsored Links