AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Lego wedo 2.0 spinning bee instructions11/15/2023 ![]() This is a fun extra piece of code that brightens your project. Add a loop around the sequence so that it keeps going continuously. And conversely, it will slow when something comes close. What you’ve achieved here is that the speed will increase when an object moves further away from the motion sensor. Drag in the orange motion sensor block, and place it under the motor speed block. Grab the motor speed block, and remove the number input from the bottom. This is where you’ll use the input from the motion sensor. Having added the block to set the motor direction, let’s also set the speed. When you come to test the code, you can change the direction of the motor if you want to. Under the tree, the 12-tooth double bevel gear pairs with the 20-tooth double bevel to create the turning motion. The motor is driving the worm gear, which in turn drives the 24-tooth gear. At this stage, it doesn’t matter which direction you set the motor to. Now that you’ve got a good starting block, add your motor direction block. Making a project that’s interactive is so much fun, and you’ll find that both kids and adults want to have a go. To start, we want to make the tree spin, but slow down when you move your hand towards the motion sensor. When you place it in front of multiple sequences, it will activate all of them. It makes far more sense to click once, and run everything. If you have multiple lines of code, you have to activate each block separately. When you press the green arrow block, it only runs the code sequence that it’s directly attached to. This is a really efficient way of building your code when you want the smarthub to execute more than one instruction. To start both sequences, swap the green arrow block for the keypress block. The first sequence will make the Christmas tree turn, and the second will control the light on the smarthub. In fact, he’s putting the adults in the house to shame! To get this working, you’ll need to create two pieces of code. He is absolutely powering through his coding in the app right now. ![]() Coding the Lego Wedo Christmas Treeįor the Lego Wedo Christmas tree, Liam used the Wedo app. Importing the custom blocks for Lego WeDo lets you combine them with standard Scratch blocks to extend what you can do. Scratch is a block-based coding platform, which has the ability to integrate with a wide range of hardware options including Lego WeDo, Mindstorms and Boost, BBC microbit, and Makey Makey. If you want to start coding more complex actions, consider using Scratch instead. ![]() There is limited complexity that can be achieved within the WeDo app, as it’s designed for simple instructions and getting started. In terms of outputs, the motor can activate, a display can show on your devices screen, or the colour of the light on the smarthub can change. A range of inputs can be used, including from the tilt sensor, motion sensor, noise sensor (from your devices microphone), or from the ‘go’ button. The platform is very simple to use, with blocks aligned side-by-side in the sequence you want your project to execute the instructions. The Lego WeDo 2.0 kit comes with an app for pictorial coding, which lets you get your projects up and running quickly. GET THE FREE INSTRUCTIONS! Using the Ledo WeDo 2.0 app vs Scratch for coding The gears are a little bit complex, but once you’ve got them sorted, the rest goes really smoothly. The app is a very big download, just under 500MB, but once you’ve got it installed, it’s very easy to set up and get started. For us, a big benefit of having the project instructions within the app is that they’re all in one place, and they can’t get lost or damaged. The app contains instructions for heaps of WeDo projects, and an image-based coding platform that communicates with the smarthub via bluetooth. As you would expect, it’s compatible with all the standard Lego and Technic components.Īlongside the kit comes the Lego WeDo 2.0 app. The core kit comes with a smarthub, motor, tilt sensor and motion sensor, plus a range of gears, wheels, axles and bricks to create a wide range of projects. Lego WeDo 2.0 is Lego’s entry-level robotics & coding kit, designed for the education space.
0 Comments
Read More
Leave a Reply. |