Antons Mindstorms
Is the NEW 28 tooth LEGO Technic gear useful?
updated
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 PS4 gamepad to Robot Inventor direct Connection
00:00:28 Introduction of the hardware setup: LMS-ESP32
00:02:20 Pairing the PS4 gamepad with the MINDSTORMS Robot Inventor model
00:02:49 Lagless connection of the gamepad to the 51515 Robot
00:04:33 Demo of PS4 direct connection to Mecanum Wheel Robot Inventor Car
--- Links ---
Blog post with the step-by-step tutorial
π antonsmindstorms.com/2022/03/22/python-ps4-gamepad-connection-robot-inventor-and-spike-prime-hub
Get the LMS-ESP32 board here:
π antonsmindstorms.com/product/wifi-python-esp32-board-for-mindstorms
Code repository and example projects:
π github.com/antonvh/mpy-robot-tools
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00 End result: Neopixel LEDs on Technic model
00:20 How the ws2812 RGB LEDs work
07:28 Overview of all possibilities
--- Links ---
Code repository and example projects:
π github.com/antonvh/LMS-uart-esp
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
Mecanum wheels are a lot like omni-wheels. The omniwheels are also known as rotocasters or holonomic wheels. An Omniwheel has no lateral grip and would go everywhere. But Mecanum wheels are different. Unlike rotocasters, the Mecanum wheels have diagonally oriented rolls. If you push a wheel like that sideways, it starts to rotate! Some people call this type of wheel the Swedish wheel or Ilon wheel after its inventor, Bengt Erland Ilon. Ilon came up with the concept while working with the Swedish company Mecanum AB.
I used these wheels:
2x right side: dfrobot.com/product-2271.html?tracking=KuVJyhg7ViWvTzwnTpVkQztSs49q2bHS4iXsF0r8KiKJVoz20ppvOx4FHfVbONxc
2x left side: dfrobot.com/product-2270.html?tracking=KuVJyhg7ViWvTzwnTpVkQztSs49q2bHS4iXsF0r8KiKJVoz20ppvOx4FHfVbONxc
Code STL 3D Print file and detailed description:
π antonsmindstorms.com/2022/01/07/building-a-lego-robot-inventor-51515-mecanum-wheel-omnidirectional-car
πΆ Music: Robogroove by Wander Vanhoucke
--- Chapters ---
00:00:00 Mecanum wheel robot Inventor Omnidirectional Car
00:00:20 Introduction and overview of 51515 model
00:00:57 What Mecanum wheels can do
00:01:42 Remote control options: SPIKE, Android app, or another hub
00:02:30 Mounting the Mecanum wheels with 3D printed hub
00:04:10 Orienting the MECANUM wheels: left and right!
00:04:58 Omniwheels vs Mecanum wheels
00:07:21 Pure LEGO Mecanum wheels
00:09:42 Programming with word blocks or Scratch
00:11:05 Programming the Mecanum wheels with Python
00:26:03 Python programmed Mecanum-wheel car with Robot Inventor Driving
--- Links ---
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
Building Instructions:
π antonsmindstorms.com/product/robot-snake-with-multiple-51515-inventor-sets
App:
π play.google.com/store/apps/details?id=com.antonsmindstorms.mindstormsrc&hl=nl&gl=US
Code:
π github.com/antonvh/mpy-robot-tools/tree/master/Example%20projects
--- Chapters ---
00:00:00 A remote-controlled python snake with python code
00:00:25 Overview of the LEGO MINDSTORMS Robot Inventor Python Snake
00:01:47 Removing segments and hubs from the snake
00:03:18 How the snake moves by delaying segments
00:04:46 Single-segment remote-controlled python snake with Robot Inventor
00:06:44 Combining 3 Robot Inventor hubs into a single Python snake
00:07:46 Autonomous LEGO Three-segment snake with obstacle avoidance
00:08:35 Android app controlled three-segment robot snake with Python
00:09:41 Word blocks vs. python performance
00:10:41 Where to find code and building instructions for the LEGO snake
--- Links ---
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
Building Instructions
π antonsmindstorms.com/product/robot-snake-with-multiple-51515-inventor-sets
--- Chapters ---
00:00:00 Robot Inventor Snake obstacle avoidance
00:04:01 Overview of all features of the 51515 robot snake
00:05:42 How to add more modules to the Robot Snake
00:06:59 Configuring the Robot Snake for Remote control
00:09:40 Programming the Robot Snake
00:13:54 Robot Snake Math
00:21:29 Design history of the Robot Snake
--- Links ---
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
--- Chapters ---
00:00:00 OpenMV and Husky lens ribbon following performance
00:00:18 Introduction to the OpenMV vs Huskylens buying guide
00:00:54 Overview of Huskylens features and specs
00:03:38 Connection and communication with LEGO
00:05:00 Line tracking with the Huskylens
00:07:49 Mounting the Huskylens on a LEGO beam
00:09:07 Inside the Huskylens
00:09:42 Overview of the OpenMV unit with LCD Shield
00:11:34 OpenMV line tracking performance
00:12:16 Connecting the openMV Camer to LEGO
00:15:26 OpenMV User Interface and Programming
00:18:36 Huskylens User Interface and Learning
00:23:37 Conclusion
--- Links ---
OpenMV camera price here:
π dfrobot.com/product-2263.html?tracking=KuVJyhg7ViWvTzwnTpVkQztSs49q2bHS4iXsF0r8KiKJVoz20ppvOx4FHfVbONxc
Huskylens price here:
π dfrobot.com/product-1922.html?tracking=KuVJyhg7ViWvTzwnTpVkQztSs49q2bHS4iXsF0r8KiKJVoz20ppvOx4FHfVbONxc
Breakout board for Huskylens and OpenMV:
π antonsmindstorms.com/product/uart-breakout-board-for-spike-and-ev3-openmv-compatible
OpenMV communication library:
π github.com/antonvh/UartRemote
Huskylens communication library:
π github.com/antonvh/LEGO-HuskyLenslib
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
github.com/antonvh/rc_ev3_to_hotrod
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 End result
00:00:08 How it works: REPL over BT
00:01:27 Start the remote control program on EV3
00:02:33 Driving with low latency remote control from EV3
00:04:42 Conclusion: keep using your EV3 brick!
--- Links ---
Code repository and example projects:
π github.com/antonvh
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 Differential vs fixed axle turning performance
00:00:15 Introduction to differential gearing
00:01:30 Turning performance compared: differential vs. fixed axle
00:02:13 Why a fixed axle makes it hard to turn
00:02:45 Making turns with a differential
00:03:42 Disadvantage of differential gears
00:05:21 Building instructions
--- Links ---
Building instructions:
π antonsmindstorms.com/product/remote-controlled-hot-rod-with-51515
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 End result: remote controlling an EV3 rotocaster with cannon
00:00:13 Overview of this video
00:01:06 Overview of how the Python code runs
00:01:22 How to start the programs on EV3 and Robot Inventor
00:01:35 Omnibot cannon remote control in action
00:03:56 Overview of how the Python code runs
00:04:12 How to start the programs on EV3 and Robot Inventor
--- Links ---
Tutorial, building instructions and code:
π antonsmindstorms.com/2020/06/17/how-to-remote-control-an-ev3-brick-with-spike-prime-over-bluetooth
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 End result: remote control a new hub from EV3
00:00:09 Introduction and overview: keep using EV3!
00:00:40 Starting the program
00:01:30 Remote control with tank controls
00:02:04 How the Python program works
00:03:11 Download code and building instructions
00:03:37 What's in the next video
--- Links ---
Blog with in-depth info:
π antonsmindstorms.com/2021/09/02/reuse-your-old-ev3-brick-to-remote-control-your-new-spike-prime-or-robot-inventor-hub
Code repository and example projects:
π github.com/antonvh/SPIKE-RI-Rfcomm
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Links ---
Step-by-step tutorial and links to all building instructions here:
π antonsmindstorms.com/2021/06/19/how-to-remote-control-lego-spike-prime-and-robot-inventor-with-python
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Links ---
Get the board here as a single item:
π antonsmindstorms.com/product/distance-sensor-breakout-board-for-spike-prime-and-robot-inventor
Get the board here as a bundle:
π antonsmindstorms.com/product/wifi-i2c-with-distance-sensor-breakout-bundle
Code repository and example projects:
π github.com/antonvh/LMS-uart-esp
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
--- Links ---
Get the board here with EV3 bundle
π antonsmindstorms.com/product/spike-ri-wifi-i2c-board
Get the board here with SPIKE Prime/Robot Inventor Distance sensor bundle
π antonsmindstorms.com/product/wifi-i2c-with-distance-sensor-breakout-bundle
Code repository and example projects:
π github.com/antonvh/LMS-uart-esp
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
--- Links ---
Get the board here:
π antonsmindstorms.com/product/uart-breakout-board-for-spike-and-ev3-openmv-compatible
Code repository and example projects:
π github.com/antonvh/LMS-uart-esp
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
The sensor contains a 940nm Vertical-cavity surface-emitting laser (VCEL). It uses Single Photon Avalanche Diodes (SPADs) to catch reflected light and calculates the distance using light speed! Sounds like Star Trek? It's real!
ERROR CORRECTION: In the movie, I tell you that tweaking the sensor settings can make it report longer distances than just 1200mm. This is only partly true. The specific model I'm using doesn't range much further than that. However, the LPF2 protocol allows for sensors with a longer range than 200cm. That part is true.
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 Laser range finder vs ultrasonic range finder
00:01:45 Building instructions and parts
00:06:30 Word blocks (Scratch) program
00:09:46 Ultrasonic versus Laser Time of Flight sensor
00:13:25 Esp8266 code for emulating LPF2
00:17:01 Wrap up: what will you build?
--- Links ---
Code repository and example projects:
π github.com/antonvh/LMS-uart-esp
Distance sensor:
π https://s.click.aliexpress.com/e/_A8eyZ9
Breakout board:
π antonsmindstorms.com/product/wifi-i2c-with-distance-sensor-breakout-bundle
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 Rubiks Cube Solver
00:00:23 Required LEGO to build this robot
00:02:02 A full scan and solve with timer
00:02:41 51515 Rubik's Cube Solver Robor Building Instructions
00:03:22 Human vs. Robot competition
00:05:37 Enjoying more solves by the Robot Inventor Cube Solver
--- Credits ---
Music by Gumbel: Fortsetzung Folgt
--- Links ---
Code and building instructions:
π http://mindcuber.com/mindcuberri/mindcuberri.html
Mindcuber Youtube channel:
youtube.com/channel/UCEN9X6s2BVHEFnMX-W_kDng
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 Distance Sensor Breakout Announce
00:00:50 How to make the connection with the Ultrasonic Sensor
00:01:31 Demo with Neopixel ws2812 LEDs
00:02:40 Spacing of the pin headers
--- Links ---
Get one yourself π here:
π antonsmindstorms.com/product/distance-sensor-breakout-board-for-spike-prime-and-robot-inventor
Code repository and example projects:
π github.com/antonvh/LMS-uart-esp
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 Overview
00:00:51 Running light
00:01:10 Running light with brightness control
00:01:28 Series with sine wave brightness
00:01:53 Compact varying brightness range with hue control
00:02:18 Automatic hue cycle
00:02:42 Rainbow with brightness
00:03:08 Rotating rainbow
00:03:33 Pulsating rainbow with hue angle control
00:04:31 How the code works
00:16:08 Conclusion
--- Links ---
Code repository and example projects:
π github.com/antonvh/LMS-uart-esp
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
Please like and ask any questions you have in the comments!
---- Chapters ---
00:00:00 Introduction
00:01:20 How did it all start?
00:04:33 How did robotics connect to your regular lessons?
00:08:31 What robots inspired you most, outside LEGO?
00:13:33 What drives you most?
00:19:14 What are the Lego Robots that impressed you most?
00:22:09 What does life as a robotics teacher look like during the pandemic?
00:24:44 How can Robotics Teachers best deal with the Pandemic?
00:26:19 Closing remarks
Mr. Hino's Channel:
youtube.com/channel/UCvuw_UluXNRPKhqK5GU8SrQ
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Links ---
Full code and more example projects:
π github.com/antonvh/LMS-uart-esp
Get a breakout board like this here:
π antonsmindstorms.com/product/spike-ri-wifi-i2c-board
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
π¬ Please like and ask any questions you have in the comments!
--- Chapters ---
00:00:00 End result: 51515 220V Relay switch
00:00:15 Materials and setup for driving a relay
00:04:12 Testing the relay switch
00:05:58 Hook everything up to 230V
00:07:28 Python Code
00:10:23 Summary - About the wifi board
--- Links ---
Code repository and example projects:
π github.com/antonvh/LMS-uart-esp
Get the T-Shirt π here:
π https://shop.spreadshirt.nl/antons-mindstorms/
Support π my work:
π patreon.com/antonsmindstorms
For complete building instructions π and in-depth articles go to:
π antonsmindstorms.com
Get the building instructions here:
antonsmindstorms.com/product/hopping-bunny-with-spike-prime
Please like and ask any questions you have in the comments!
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
Get building instructions here:
antonsmindstorms.com/product/ladybug-spike-prime-1-kit
Download the final program here:
antonsmindstorms.com/2021/02/20/keyframe-motor-animation-with-python-for-mindstorms-and-spike-robots
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
Here's a link to the breakout board I'm using:
antonsmindstorms.com/product/uart-breakout-board-for-spike-and-ev3-openmv-compatible
Please like and ask any questions you have in the comments!
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
Please like and ask any questions you have in the comments!
Get the model here:
antonsmindstorms.com/product/ladybug-spike-prime-1-kit
Download the final program file here:
antonsmindstorms.com/2021/02/20/keyframe-motor-animation-with-python-for-mindstorms-and-spike-robots/#ladybug-youtube
Please like and ask any questions you have in the comments!
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
-- Chapters --
00:00 - End result
00:10 - Introduction
00:49 - Images with text
04:57 - Timer with a list of images
08:41 - Live distance sensor readings
Get the breakout board here:
antonsmindstorms.com/product/uart-breakout-board-for-spike-and-ev3-openmv-compatible
Please like and ask any questions you have in the comments!
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
Please like and ask any questions you have in the comments!
-- Link to program file created while recording this video --
antonsmindstorms.com/2021/02/20/keyframe-motor-animation-with-python-for-mindstorms-and-spike-robots/#gelo-python-lms-download
-- Show your love --
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
-- Chapters --
00:00 - End result
00:25 - Set up
08:17 - Motor animation offsets
12:21 - Fast/slow movement like a real dog
18:01 - Hanplant GELO Animation.
27:32 - Handplant result
Please like and ask any questions you have in the comments!
Link to article: antonsmindstorms.com/2021/02/20/keyframe-motor-animation-with-python-for-mindstorms-and-spike-robots
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
--- chapters ---
00:00 - Final result
00:12 - Overview
01:57 - Setup
03:40 - Defining the keyframes
21:35 - Looping the animation
22:50 - Conclusion
-- more description --
Animating LEGO MINDSTORMS robots with Keyframes using Python
Have you ever wished you could animate your robot like a stop-motion puppet? Did you want to animate a real robot like a 3D model? I did. And I built a keyframe system in Python to help me do it. That system was the key to make GELO do consistent hand-plants. Keyframes were also essential for my Tars project. The SPIKE Prime Ladybug uses keyframes too in its Python program.
In my previous article, I showed how to run multiple motors in sync by defining their time functions. Time functions are a good start, but they have limited flexibility. Sometimes you need more control over timing.
Take the walking animation for Tars. First, Tars has to drop his shoulders and swing back slightly. In the next 200ms, Tars has to swing his body forward while lifting the shoulders. And so on. To time and define every motor position, I used keyframes. Get the complete program and building instructions for Tars in the digital downloads section.
Keyframes like Pixar for your Robot Inventor creations
Animators who make movies use keyframes for this. Keyframes are certain positions where the movie characters have to be at a specific point in time. Those keyframes can be seconds apart, and computers calculate all the frames in-between for a smooth movement. Movies can have up to 60 frames per second, so it's a good thing we have computers. Walt Disney had to draw every frame manually. Pixar uses keyframes and computers to render their fantastic movies.
A keyframe for a MINDSTORMS Motor in Python
I don't want to have to define every motor position 20 times per second for my robots. I want to define just a few moments in time and their corresponding motor positions. Then I want my programming code to do all the calculations in-between. This combination of timing and position is what I call a keyframe.
Interpolation of Keyframes in Python
Next comes the challenge of calculating everything in between the keyframes. The calculation of a frame between two other frames is called interpolation. You don't have to worry about the precise calculation because my code does that for you. What is more interesting now is how to use that
The principle is the same as with the time functions for synchronizing a mechanism. You create a function that returns a motor angle if you feed it a moment in time. Only this time, the parameters for creating that function are keyframes. In Python, it looks like this:
Edge handling of the interpolated keyframes
What if you define keyframes and time runs beyond your last keyframe moment? Or it runs before the first keyframe? In that case, we have an edge situation. I have built three ways of handling the edges in my interpolation code: constant edges, wrapping, and wrapping with accumulation.
The simplest of these three is constant edges. This means the function returns the angle of the keyframe at the closest edge. Here's a graph of the result. I never actually used it, but it might be handy one day.
The second type of edge handling is wrapping. This means the function copies and infinitely repeats the set of keyframes, both forward and backward in time. It is what I use for Tars.
The third type of edge handling is wrapping with accumulation. This is the same as plain wrapping, except that I add a constant value after each wrapping.
Keyframe transformation convenience for walking robots
Apart from handling edges, I also wanted to conveniently manipulate the keyframes. When to motors are mounted in a mirrored fashion, the interpolation function allows you to invert the keyframe values. The interpolation system can also create a time offset. This is handy for Gelo's front and hind legs: they have a time difference of half the loop time. With one set of keyframes, inversions, and offsets, you can now configure GELO's complete walking movement.
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
Chapters in this video
00:00 - Overview of the result
00:13 - Introduction of the basic ideas
01:17 - A simple Robot Inventor switch with few Word Blocks
07:08 - Adjustable spring strength in Motor Force Sensor
12:03 - Very soft spring motor Touch Sensor
15:18 - Flipping on/off switch with Robot Inventor Motor
22:00 - Conclusion: motors are more versatile than Force Sensors
In this video, I show how to use a Motor as Force sensor if you have a LEGO MINDSTORMS Robot Inventor 51515 set. That set doesn't contain a touch sensor. I think you don't need one. For the special occasions, where you really need one, follow this guide. The tutorial also works with LEGO SPIKE Prime.
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
This Robot Dog looks like Boston Dynamics Big Dog. Programming the legs on the Boston Dynamics Dog is hard. Real robot dogs, like Boston Dynamics Spot, use inverse kinematics. Here I use a simpler approach where I control the relative positions of the motors.
----- Video contents -----
00:00 Final result
00:13 Introduction
01:18 Word Block Gelo Program
03:50 Boilerplate Python Program
10:37 Synchronizing two motors with Python
17:12 Synchronizing four motors
20:10 Using the external crank for control
24:08 Making Gelo Turn
31:18 Using the distance sensor to start turning
37:53 Summary: code overview
---- Links mentioned ----
Full Gelo code here:
antonsmindstorms.com/2021/01/27/python-motor-synchronization-coordinating-multiple-spike-or-mindstorms-motors
---- Description ----
In this video, I'm sharing some MINDSTORMS Python code to help you coordinate motor movements. Synchronized motors are essential when you make robots dance or walk. Legs and arms need to move in unison for the robot to advance. I have abstracted the process to control motor positions based on a single input parameter. This method makes it real simple for you to make all kinds of robots walk and move.
You can see in the video how I linked all motor movements to a single number. If I change that number with the external motor, you see the animation unfold. I use this method in the SPIKE Prime Ladybug, 51515 Tars, the Swing Monkey, and LEGO MINDSTORMS Gelo.
One point in time, one position for SPIKE Motors
The basic idea of the system is that every single point in time corresponds with a motor position. Based on that idea, I searched for mathematical functions that calculate this relation. I wanted functions that would take time as an input and give me a motor position in degrees as an output. Then I could scale this up to as many motors as the LEGO MINDSTORMS hub can support. If every motor has a time-function, I can steer each motor to its desired position at any point in time.
The Mechanism() class to control all LEGO MINDSTORMS/SPIKE motors
To control all motors with functions, I wrote a Python Mechanism class. It takes two lists as its input: a list of motors and a list of functions. Once you have set up the Mechanism, all you have to do is feed it the time. The class will then set all motor powers according to their distance from the desired position at that point in time. Make sure to either keep updating motor powers in a loop or stop them completely. If you stop updating them, they will keep running at the last calculated motor power.
How to think of LEGO motor functions
As motors rotate clockwise, their position keeps 'increasing.' After one revolution, a motor position is 360; after two revolutions, it is 720. Outwardly, it might look like it is in the same position again, but the motor has continued counting on the inside. The difference between the inside counter and outside position makes motor functions a bit hard in the beginning. To illustrate this, I have made some graphs with typical motor functions.
The linear motor function in LEGO Python
The legs of Gelo and the outer legs of the Ladybug have a linear function. Linear means the motors run at a constant rate. Every unit of time, they rotate a unit of rotation. In my Gelo python program, the motors rotate 360 degrees per second. That is 360ΒΊ/milisecond or 0.36ΒΊ/ms.
In this graph, I have plotted all Gelo motor functions. The slope of the line is a measure of the speed of the motor. Steeper is faster. If the line goes up, the motor runs forward. If the line goes down, it runs backward. The intersection with the Y-axis shows how far the motors are apart.
In this graph, you can see that motors A and C run backward. You can also see that motors A and B are 180 degrees apart. The same goes for motors C and D.
The Mechanism class 'pulls' motors to the right position at every point in time. If they are ahead, they will slow down or even reverse. If they are behind, they will increase the motor power.
The wave function for dancing LEGO robots
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
How to run two motors at the same time (motor synchronization)
In this video, I'll explain how you can run motors to different positions simultaneously. Running these motors at the same time is difficult with LEGO MINDSTORMS or SPIKE Prime because the move-to-position block finishes the complete movement before going to the next block. To show you how this works, I'll use this Ladybug model. The Ladybug model needs to move one set of legs backward while moving another set forward. Furthermore, this model needs to tilt to the correct side every time it moves its propulsion legs.
You can follow this video with three motors connected to your LEGO hub. For the full experience, you can download the building instructions for this SPIKE Prime Ladybug on my website. This tutorial works for both LEGO MINDSTORMS and SPIKE Prime. I'm going to use the SPIKE app.
Why do we need synchronization?
Why is this tutorial important? Let me show you. If we do not run motors at the same time, we can still make the ladybug walk. We can program the robot to run each motor in turn. What you then get is this movement. It works, but it looks clunky. It's robotic in a bad way. Wouldn't it be much smoother if the legs moved at the same time?
Option 1
The first option for running motors at the same time is selecting multiple motors in the blue block. Let's see how that works. The problem here is that you can choose only one target per set of motors. Multiple motors will not work for our ladybug because one set of legs has to run forward while the other runs backward. I could cheat by moving this pin here. But then I will not be able to turn on the spot anymore.
Option 2
Our next option is to broadcast a message. If we broadcast, we can start several stacks at the same time. Every motor in every stack will start together at the moment of the broadcast. Let's have a look at that.
Option 3
Our third option is to use the pink movement block. LEGO provided this block to drive straight with a robot. To drive straight, the robot wheels need to move at precisely the same speed. They should also stop together and start together. We can use that behavior for other purposes than driving. Let me show you how that works with the ladybug.
Finally, we want to tilt left and right, based on the position of the movement legs. Here's how that works.
If you have learned a thing or two about programming in this video, it is a great idea to hit the subscribe button. I'm making new MINDSTORMS and SPIKE tutorials all the time. If you want me to explain a specific subject, please leave a comment!
After this video, it's fun to build a program that moves the ladybug backward or makes it turn. If you download my building instructions, you will get a full program with the complete solution.
If you liked this video, you could support me on Patreon. Patreon supporters who pay $10 or more also get every new building instruction I make. Thanks for watching!
Support my work on: patreon.com/antonsmindstorms
Please like and ask any questions you have in the comments!
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
00:00 Introduction
00:46 Robot Inventor concept vs. SPIKE Prime concept
03:36 Different Firmwares
04:58 51515 vs 45678 electronic parts
06:04 Robot Inventor motors vs. SPIKE Prime motors
06:42 SPIKE Prime sensors vs. Robot Inventor sensors
08:32 A look at the available bricks in Robot Inventor vs. SPIKE bricks
09:54 Wheels
10:24 Baseplates and frames
11:28 Decorating and combining with other sets
13:15 Caster wheels in Robot Inventor vs. the caster wheel in SPIKE Prime
15:09 Conclusion: buying guide
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
LEGO has four robotics sets on the market: Boost, SPIKE Prime, EV3, and Robot Inventor. I compared EV3 to Robot Inventor in a previous video. Here, we'll look at SPIKE Prime vs. 51515 Robot Inventor. The comparison is interesting because both sets have very similar hardware, and you can get them for about the same price. I've seen both boxes retail at a price between EUR 340 and EUR 380.
LEGO targeted SPIKE Prime at educators. You can't even get it in official LEGO shops and most retail stores. The only official way to get it is through a LEGO Education supplier, although some online stores sell it to everyone. The idea behind SPIKE Prime is to give teachers a tool for exploring robotics with their class. It is colorful, easy to use, and full of 1-hour activities. The models are small and straightforward. SPIKE Prime aims to teach about concepts like programming, entrepreneurship, robotics, and the environment. In my opinion, SPIKE appeals to ages 8-12. There are exceptions: some adults do crazy stuff like making a trapeze artist swing 360's.
LEGO MINDSTORMS 51515 Robot Inventor is a so-called 'retail' set. With that set, LEGO aims for kids who want to have fun and be creative. There is little to no educational content in the app. It's mostly fun activities. The models are much larger, so the building fun lasts longer.
It's interesting how the MINDSTORMS brand has left the classroom. Seymour Papert - who originally coined the term - was creating material for school kids. He found out that kids will learn and explore if you create inspiring worlds around math, language, or programming. Exploring these worlds gave kids Mindstorms. Adults enjoy their Mindstorms too. Some take up meditation, while others just buy a box of LEGO MINDSTORMS. I'd say Robot Inventor appeals to kids in the age range of 10 to 100 years old.
The LEGO SPIKE box vs. the LEGO 51515 box
As an educator's tool, SPIKE Prime has a solid plastic educator's sorting box. LEGO designed SPIKE Prime to be assembled and taken apart daily. The boxes stack neatly for storage at school. The lid snaps on to prevent the loss of bricks.
To give you more plastic to build with, LEGO Robot Inventor comes in a cheaper cardboard box. It still is a better box than the average LEGO box because it has a lid and you can reclose it. Most other LEGO boxes tear open from the side and end up in the paper bin. It does not feature sorting trays, however, or a large format print of the part list. This style of box is practical at home, but it is a nightmare in the classroom.
LEGO 51515 electronics vs. SPIKE Prime electronics
The electronics inside both sets have a lot of commonalities. They both have the new 6-port hub, albeit in a different color. Both have the new medium motor, light sensor, and ultrasonic sensor. This is where the similarities end.
SPIKE Prime features two particular electronic parts over MINDSTORMS Robot Inventor
SPIKE Prime features a Force Sensor and the Large Motor. The force sensor is an upgrade from the EV3 touch sensor because - as the name suggests - it can sense the gradual force applied. The EV3 touch sensor could only sense pressed or not pressed. Force sensing is excellent in classrooms where you learn about springs, newtons, mass, and weight. When building cool robots, there is less use for such a sensor.
The Large Motor has a larger torque than the medium motor, but also a more inconvenient form factor. Even though it has more pin holes, I find it more complex to build with. So for I never had a lack of torque on the medium motors. Maybe they are useful in large robot arms?
LEGO MINDSTORMS Robot Inventor has better robot electronics
What Robot Inventor lacks in variety, it makes up for in quantity. There are no less than four medium motors in the set. They come in a practical shade of grey that is easy to combine with other colors. When I build robots, I will always choose an extra degree of movement over a force sensor. It is the more practical set in the daily life of a Technic robot builder.
Please like and ask any questions you have in the comments!
00:00 Introduction
01:22 The 51515 box on the outside
03:33 Opening the box
04:50 The New MINDSTORMS hub
06:52 Robot Inventor hub vs EV3
09:00 The new MINDSTORMS Motors
11:51 Ultrasonic sensor
12:38 Light sensor
14:31 Small axles and pins
16:10 5x7 frames
17:01 Large turntable
17:42 Small white Rubber bands
17:56 New differential gear
19:16 Cookie
20:03 Little green ball with axle hole
20:38 Cable clips
21:42 Big red DUPLO ball
22:57 Big white landrover Mud Guards
23:54 Two small turntables
24:17 New black beads for caster wheels
25:27 Ninjago Missile launchers
26:13 Black and blue pins
27:19 Stickers and quick start guide
28:18 White plates 5x11
28:45 All new frames: 5x7, 7x11 and 11x15
29:25 Wheels
32:13 First build without instructions to test speed
37:18 Program the Robot Inventor hub for use with a PS4 gamepad
44:08 Driving a remote-controlled car with a sixaxis controller
45:16 Remote control with a Bluetooth phone
47:03 Conclusion
Support my work on: patreon.com/antonsmindstorms
Full part list: antonsmindstorms.com/2020/10/10/lego-mindstorms-robot-inventor-set-51515-part-list
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
Robot Inventor set 51515 vs. EV3: review and first build
In this video, we look at all the hot new stuff in the MINDSTORMS 51515 Robot Inventor set. It has many improvements over EV3. Find out here what the differences are between EV3 and the new 51515 Robot Inventor set.
I guess people will be calling this LEGO set 'teal MINDSTORMS' or 'MINDSTORMS 5' or 'MINDSTORMS 515', which is short for the set code. Part of my review is to try and build a little car without any instructions. This experiment will give us a feel for the increased speed of building with the new set. Let's have a look!
Like all LEGO boxes, the set number, set name, and suggested age is here in the top left. It is a 10+ set. EV3 had no age marking on the box. My experience is that the age group is the same. I have organized fun First Lego League build sessions using EV3 with 10-year-old kids. The graphics are very different from LEGO technic and the previous MINDSTORMS. The black and bright colors give the set a bit of an 80's retro-cool look. Sizewise, the box is the same as your good old EV3 box. The packaging shows that it's compatible with Mac, PC, Android, and iOS. LEGO really went out of their way to develop and support all these platforms.
As you've seen in all of the previews, the new MINDSTORMS hub is basically a green SPIKE Prime hub. This means we get a built-in gyro and accelerometer. With the internal six-axis inertial motion unit, you can sense the orientation of the hub. It can also detect taps. You can also read out its rotational speed over 3 axes.
Especially for walking robots, this will be great. I remember struggling a lot to get my blue dragon walking because everything was so heavy. Unlike the EV3 hub, this hub has a built-in battery! Yay! No more tedious charging of AA cells. It also has pinholes on ALL sides. Not just bottom, left, and right.
Compared to EV3, these motors are way smaller, lighter, and more comfortable to build with. I guess they will have less torque, but this won't be a problem since your robots will be much lighter. And you get no less than FOUR of them. This is really awesome. I remember that with EV3, one of the first things I bought was another motor.
You will recognize the sensors from the SPIKE Prime set. There is no force sensor, but we do get an ultrasonic and a color sensor. I don't expect I'll ever miss the force sensor. Like SPIKE, these new motors have an internal absolute positioning system. With EV3, I used the force sensor mostly for calibrating motor positions. If you want to make your robot interactive with buttons, remember that you can use a motor as a button. You can also tap the hub because there's an accelerometer inside.
I remember running out of 5 x 7 frames often when building with EV3. This was so frustrating that I bought the bucket wheel excavator. The reason? There was a HUGE amount of frames in that set. It seems that LEGO has listened to people like me. They have included way more 5 x7 frames. Not only that, that set also has the new 7 x 11 frames and the 11 x 15 frames. I like frames because you can build so quickly with them. They are pretty rigid and take parts from almost all sides.
This set has Ninjago missile launchers. I guess proper robots should have guns? This part can do nothing but shoot. Maybe the missiles could function as a pair of legs for a walking robot.
This box includes no less than six wheels! Mars rovers are now within your reach.
With this SPIKE Prime model, you can make your Mario jump from side to side over worlds of your own creation. It is simple to program and a lot of fun to modify and play. The possibilities are endless. I build a bowser you can kick and sliding ramp. You can expand the worlds with all of your Mario kits. Play and build it in your classroom for a fun challenge.
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
Here are the video chapters:
00:00 Introduction of the SPIKE Prime base kit and expansion pack
00:22 Unboxing of the 45678 SPIKE Prime base kit
01:33 New part: 11 x 15 frames
02:15 New hub and light sensor, ultrasonic sensor, force sensor
03:44 Running a motor without programming using the force sensor
04:45 Large motor
05:40 All parts overview and laid out before the camera
09:05 All beams in the base kit
10:00 New wheels 56mm
11:05 New part: 7 x 11 frames
11:40 All pins, only 10 of each type!
13:50 All bent curved angled beams
14:30 All axles
15:26 New part: cable clips
16:26 New part: 3x3 cookie
17:24 New part: plastic caster wheel. No more steel balls!
17:46 New part: 2x4 Kjeld brick
18:30 Bag 13: Spare parts
19:13 Unboxing the Expansion Pack 45680
31:12 Build a wall follower robot without programming, right out of the box
35:35 Try the wall follower on a wall and a box
36:41 Sorting and organizing the Base Kit and Expansion Pack with an extra sorting box
I'm opening two brand new boxes: the 45678 SPIKE Prime kit and it's an expansion pack, set number 45680. You will see every part inside and get a feel of the possibilities of the set. I'm building a little model, right out of the box, without any programming. This set is like a simpler and more accessible robotics set than the MINDSTORMS EV3. I found myself skeptical at the beginning because the motors and hub are less powerful than EV3, but the easy of building greatly compensates for that. The rechargeable battery is great news too.
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
The original code I developed for the Swing Monkey in VS Code works here too. I also made a version of the code with the official API LEGO Python motor commands.
When this Monkey does 360 turns, you need a real fast control loop to keep it going. The performance of the SPIKE Prime hardware is adequate for this if you run it with Python.
Please like and ask any questions you have in the comments!
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com
On my website you can download the full code and building instructions to make a swing robot for yourself. This robot is a lot fun to tune, tweak and improve. Can you make it swing ever higher?
Get the T-Shirt on: https://shop.spreadshirt.nl/antons-mindstorms/
Support my work on: patreon.com/antonsmindstorms
For complete building instructions and in-depth articles go to:
antonsmindstorms.com


