# Tag Info

## Hot answers tagged programming

8

Official Docs There is supposed to be Word Block Descriptions for the block language under Help & Support in the Settings, but that seems to be missing at the moment (in v10.0.2). Hopefully it will be fixed in the next update. For Python, there is a Knowledge Base on the side of the screen. Click the book icon to show or hide it. Unofficial Docs Prime ...

5

You can get community support for Pybricks at https://github.com/pybricks/support. ir.buttons(1) returns a list of pressed buttons, so in this particular program if ir.buttons(1) == Button.BEACON: needs to be changed to if Button.BEACON in ir.buttons(1): This will test if item is in list.

5

Under operators, there is a block "Pick Random" where you can specify to pick an integral number between x to y... x and y you can type... So for a random direction, set it between 0 and 359 degrees ...

5

The new Scratch-based software from LEGO Education is called EV3 Classroom. The link on the LEGO Education EV3 downloads page for Chromebooks takes you to the EV3 Classroom app at the Google Play Store. So it seems that you will need a Chromebook capable of running Android apps in order to use it. As of this writing, the equivalent retail version of the ...

5

Can you just install Scratch? MIT supports EV3 directly

4

You are using the function run_target... which tells the motor to run to a specific angle. So it turns to an absolute position... This might be correct for the pen_up and pen_down cases, but I think that for the movement, you want relative movement, i.e. relative from your current position, hence I think the instruction you need is run_angle instead of ...

4

This formula will need the lateral distance between wheels, i.e. the distance between left and right wheel, not the back and front wheel. motor_pair.move(8.1 * math.pi / 2, 'cm', steering=100) The steering=100 parameter means that the wheels will move in opposite directions. For the 8.1 value, one wheel will move +12.7cm and the other wheel will move -12....

3

If you prefer C#, there a new lib on the block: SharpBrick.PoweredUp. While the Boost hub and motors are missing, the protocol is implemented. Your use case should be two minor contributions away. Full Disclaimer: I maintain the library. I do not have Boost Hardware but the protocol officially supports Boost Hub. Just some enums and types are missing.

3

I'm assuming you are using the Control+ app with the 42100 liebherr r 9800 set. The Control+ app is indeed limited to the fixed models. However the Powered Up app can also connect to the Control+ hub and supports it reasonably well. The Powered Up app has a "Create" mode where you can use programming blocks, it's similar to the Scratch educative ...

3

Based on the answer to this question and some experiments with other hubs and other motors today (Boost hub + Boost motor + small PoweredUp hub), it seems that the WeDo motors really lack any ability beyond "Run with power X". Given that the WeDo motor is the same model that is built into the Bat Mobile, I would expect that the PoweredUp app would ...

2

I don't remember any context menu that pops up on right-click, but CTRL+C to copy highlighted blocks and CTRL+V to paste them works.

2

After testing and researching for a while, I found out that the first lines of code that controls the moving of the ultrasonic sensor is the cause of the error. Previously, the code will make the motor move 2 degrees, then get the measurement of the ultrasonic sensor and put it inside the numerical array. It then loops 130 times so there is 130 measurements ...

2

Welcome to Bricks.SE. Yes, you can use the Power Functions equipment to teach robotics. I would recommend you stick with the original PF instead of PoweredUp, as the latter has more complicated electronics and control schemes, however, others have already built custom control software for PUp so tinkering with software is definitely possible. Regarding Power ...

2

There's not an easy way to do it, but a workaround I've found is to go to the project management tab (which is the wrench icon next to the programs at the top of a project) and export each program using the export button at the bottom. Then, delete all the programs from the project and reimport them in reverse order from you want them to appear on the robot. ...

2

Python has this built in. Or is there some reason you can't use it?

1

I am overwhelmed by the support everyone has provided. I really did not know if I would even get a response and to get so many suggestions was wonderful. I sincerely thank everyone for taking the time to help me. To answer some of the questions in the thread, I was using the "Large Motor" and not the "PF" Large motor. Also, since I am ...

1

According to the official documentation you could use hold() which Stops the motor and actively holds it at its current angle. Note: My assumption here is that you are referring to this as "large motor". If you are using a PF Large Motor: then this advice is useless, as those can't be controlled with such precision due to the lack of an ...

1

I had to add an unlimited block

1

On macOS, it is officialy supported, with the « New LEGO® MINDSTORMS® Home pre-release software for macOS ». I guess that will soon be the case on windows 🥳

1

I have been looking around a bit for the same files. I plan to contact Lego/IAR myself to try to find the official source code and development software, and will update this answer when I do. However, I did find some stuff that might help out. I was able to find a BitBucket repository that appears to have the source code to firmware 1.29. It can be found ...

1

What you are asking for doesn't exist at this time. The links you provide to github are not official LEGO products, but the work of an open source project as described on their home page that has chosen to correspond to the versions released by LEGO itself: This is NXT Improved Firmware, an open source community driven work based on the original LEGO ...

1

I have figured it out. At first, I mistook the eraser icon on the display code block for a function that makes the screen completely empty. As it turns out, I am wrong. As Brandon_J pointed out, the clear-screen function is crucial to the solution. When enabled, it removes any other images that have been on the EV3 screen before it. If I want to show two or ...

1

At the start of the program, add a block that displays a custom image that is exactly the same as the shutdown screen (To make one, go to the tools tab at the top left, and in the drop-down, press "Image Editor") also, you can make a completely blank image for the second display block.

1

The best resource I have found for compiling NXT firmware is http://nxt-firmware.ni.fr.eu.org/.

1

I am assuming that you want motor a to copy motor d and motor to is controlled manually(with your hands). You can use the motor sensor to sense the degree of movements of motor d, then use link it to how much motor a turns. However, as motor d will still retain the degree it has been turn, motor a will continue moving even after motor d has stopped(unless ...

1

Unfortunately there is no good solution for controlling NXT’s from an iPad. There are plenty of Android apps to control them manually, but you’re best bet on iOS is to write something on your own. LEGO does provide a Bluetooth Developer Kit with the info so it is possible.

Only top voted, non community-wiki answers of a minimum length are eligible