Uploaded April 2021 | Updated September 2026, 2 days ago
Check out this video for some high-voltage experiments with Robot Inventor. You'll learn how to throw an electromagnetic relay switch with just a few lines of code. I did this on an EV3 before, and here's the 51515 Robot Inventor version. This code also works on SPIKE Prime.
💬 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
Check out this video for some high-voltage experiments with Robot Inventor. You'll learn how to throw an electromagnetic relay switch with just a few lines of code. I did this on an EV3 before, and here's the 51515 Robot Inventor version. This code also works on SPIKE Prime.
💬 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










