![]() However for Boost the external tilt sensor value will only be available in the 'sensor' variable (as the 'tilt' variable is reserved for the Boost internal tilt sensor instead). The WeDo external tilt sensor will also work if connected to the Boost move or PoweredUp hub. The Boost template also gives additional ‘tiltX’ and ‘tiltY’ variables for more detailed position information of the internal tilt sensor. However they both give a value 0-5 in the ‘tilt’ variable depending on which way the sensor is leaning. The WeDo tilt sensor is external, the Boost tilt sensor is inside the move hub. There is no sounder inside the Boost move or PoweredUp hub. The WeDo smart hub has an internal piezo sounder that can play notes. The LED light on the hub may be changed to one of 10 colours (or switched off entirely). Connect an axle and gear and then turn the gear to change the position value. The steps rotated are counted even if the axle is manually turned by hand, which means the interactive motor can also be used as a position sensor. The actual position the motor stops at may be a couple of steps different to the target value, but is normally very close. For instance to move the Vernie model head back and forth you could move from position 50 to position -50. This is useful to move the motor to a known position, mimicking servo behaviour. For ease of use the 'move forward/backward' and 'turn left/right' blocks control both internal motors (A and B) at the same time. The number of steps to move will vary from model to model. This is useful for moving a robot a certain distance, for instance the Vernie model uses 417 steps at speed 50 to move forward ‘1 grid space’. For a period of time at various different speeds.The interactive motors can therefore be used in 4 different ways: sensorA) feeds back the step position of that particular motor. These interactive motors have a position sensor that counts the number of steps moved, so are far more accurate and versatile than the WeDo M motor. The Boost set has 3 interactive motors, 2 internal (A and B) and 1 external (port C or D). The WeDo/PoweredUp medium or train motors can be switched on for a period of time at various different speeds. Smart hub, medium motor, tilt sensor, motion sensor PoweredUp hub, train motor, remote (train sets) PoweredUp hub, 2 x medium motor (batmobile) ![]() Move hub, interactive motor, colour/distance sensor You can tell if Scratch and S2Bot are connected via the green 'connected' LED in both applications. Scratch should now automatically 'connect' to S2Bot and the new blocks will be available in the 'More Blocks' section.sb2 template file you saved earlier on your desktop. From the File menu select 'Upload from your computer'.In Chrome browser go to and click Create (or start the offline version of Scratch).Click on the menu button (top right) and select 'New Scratch template'.Click 'Close' to close the connection dialog.When connected (takes 5 seconds or so) you will see tilt/motor data etc on screen.Click on the hub name to connect it (no pairing is required).Remember the hub can only connect to one device at a time (so cannot connect to the BLED112 dongle if already connected to an iPad or tablet). If you do not see the hub press the green button so that the LED starts flashing (and you can also try restarting the S2Bot app). You should see your LEGO hub appear in the list of bluetooth devices.Select 'LEGO WeDo 2.0' or 'LEGO Boost' or 'LEGO PoweredUp' from the drop down list of devices.Select 'LEGO WeDo 2.0' or 'LEGO Boost' or 'LEGO PoweredUp' from the drop down list of devices.Insert the BLED112 bluetooth dongle and let the driver install (more details here).BLED112 bluetooth dongle (not required for Chromebooks).A LEGO Boost (17101) or LEGO WeDo 2.0 (45300) set or LEGO PoweredUp set (train, batmobile).create sounds on the piezo sounder (WeDo only).change colours of the RGB LED light on the hub.control LEGO motors with varying speeds.detect tilt, distance, colour, position using LEGO sensors.wireless bluetooth connection to the LEGO hub.The LEGO 'Powered Up' hub (as supplied with trains or batmobile kit) may be also be used. A BLED112 dongle is required to provide the bluetooth connection on the computer. The S2Bot app allows you to control LEGO Boost or LEGO WeDo 2.0 from within your Scratch (or Snap!) project running on a desktop computer (Windows, Mac, Linux, Chromebook). Using LEGO Boost / WeDo 2.0 / PoweredUp with Scratch and S2Bot
0 Comments
Leave a Reply. |