Published © CC BY-NC-ND

Coding with Lego EV3 and BluPants

Learn how to code the fun way with a real robot. Master Python with your Lego EV3 on a free web based coding environment.

BeginnerFull instructions provided2 hours2,317
Coding with Lego EV3 and BluPants

Things used in this project

Hardware components

Mindstorms EV3 Programming Brick / Kit
LEGO Mindstorms EV3 Programming Brick / Kit
Micro SD card 4G minimum
You will a micro SD card with minimum storage capacity of 4G. You will also need to be able to flash it. If your computer does not have a micro SD port, the shared link from Amazon includes a USB to micro SD adapter.
Compatible WiFi Dongle: Edimax EW-7811Un 802.11n Wireless Adapter
List of other compatible WiFi dongles available here:
LEGO EV3 Rechargeable DC Battery
This is optional, but strongly recommended because the WiFi connection consumes a lot of battery.
LEGO Power Supply Mindstorms EV3 NXT 45517
If you buy the rechargeable battery, you will also need a power supply for it.
Camera (generic)
This completely optional. If you want the robot to broadcast video, you can use an USB hub to connect the WiFi dongle along with the USB camera. I am using this webcam, but any camera compatible with your Lego Ev3 should work fine:
USB HUB Splitter
This is completely optional. This only required if you connect if you connect another USB device (e.g. camera) other than the WiFi dongle. Any generic non powered USB Hub splitter should work fine.

Software apps and online services

Balena Etcher
Tutorial on how to flash the SD card. Use the following image:
The BluPants image for Lego Ev3 is based on the ev3dev project.


Read more


Lego Mindstorms EV3 - Gripp3r

Step by step documentation on how to assemble the Gripp3r Ev3 robot used in this tutorial.


BluPants: Platform Agnostic IDE for Robots and IoT

BluPants is a Python based module to control robots and IoT automation devices via BluPants Coding Lab. Visit for more details. The Project goal is make robotics and programming available to anyone. Welcome Let's build a community for any child across the globe from the age of 5 to 99. Together we can build the tools to make the journey to STEM accessible to anyone. Compatibility with a variety of existing robotics hardware can make it affordable, at the same time we give unlimited flexibility to expand BluPants as far as the human imagination can go.




16 projects • 6 followers
Robot4(Humans); BluPants goal is to make robotics and programming accessible to everyone.