Python programmed Robot Snake with LEGO MINDSTORMS Robot Inventor

preview_player
Показать описание
This robot snake advances like a real snake, by twisting and curling. The wheels are not powered but only serve to slide the snake along. Because of this movement, the snake is great at avoiding obstacles. In this video, I show you how to program the snake with Python. Compared to Word Blocks, this gives a much smoother animation and performance. Also, using python, you can connect the Robot Snake to the MINDSTORMS RC BLE app. The snake head connects to the app and the two following segments using Bluetooth.

💬 Please like and ask any questions you have in the comments!

Building Instructions:

App:

Code:

--- 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:

Support 🙏 my work:

For complete building instructions 📄 and in-depth articles go to:
Рекомендации по теме
Комментарии
Автор

This is cool! I guess reason for not using all 6 ports is length of cable.

thorbjrnhellehaven
Автор

The beep sounds are coming from the motors of the LEGO Robot Python snake. That means that the motors are activated. 3:03

Mocsfromscratch
Автор

Hello i love your videos so much but when i see your videos i also want to play mindstorms but i am in india and its very expensive in india so my parents will not buy it but when i see your videos i feel i also have mindstorms thanks for making us feel like we also have

mahikagoyal
Автор

Hi Anton, what is the type of power source you use for your snake

ahmedyones
Автор

Brilliant! Would it be more efficient if the wheels could only turn one direction?

berniethejet
Автор

Is there a possibility to controll Hub using Dualshock 4 with MicroPython, without blocks?

Edward-mdej
Автор

Hi, Anton, can you please discuss a bit (or make a video) how you detect that multiple hubs are connected and then synchronize movement between them? Thank you.

roddlez
Автор

Hi Anton, how do you use the MINDSTORMS RC BLE app with Spike Prime? Thank you!

marcosalfonzoify
Автор

Hi, Anton. I don't get any code hinting in the mindstorms app when using Python. Do you have any suggestions why not?
Lego support doesn't seem to know.

petercarlsson
Автор

Дружище, а добавь субтитры по русски. Будет Кул 🙂

вольДемар-ке
welcome to shbcf.ru