Jump to content

Recommended Posts

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...
Posted
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

Posted
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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...