Skip to content

ufnalski/lego_ev3_large_motor_l432kc

Repository files navigation

LEGO EV3 large motor speed control loop [STM32L432KC]

The part number is 45502. It's kind of a sentimental journey. I still use EV3 from time to time to engage with younger audience. My favorite robot is MindCub3r. It is then high time we reverse engineered the EV3 large motor. And frankly speaking there is nothing to be reverse engineered there because its creators provided us with the official documentation. Thank you, LEGO engineers!

LEGO EV3 large motor speed control loop in action LEGO EV3 large motor speed control loop (serial plotter)

Tip

Note the two 3.3k resistors - they are there to protect the two Schmitt triggers by forming high-impedance (hi-Z) outputs. Not all logic level shifters can handle that. Choose your wisely or use STM32 FT GPIOs.

LEGO EV3 large motor hardware schematics STM32L432KC FT encoder pins

Missing files?

Don't worry 🙂 Just log in to MyST and hit Alt-K to generate /Drivers/CMCIS/ and /Drivers/STM32L4xx_HAL_Driver/ based on the .ioc file. After a couple of seconds your project will be ready for building.

Readings

What next?

Add a proportional (P) position control loop.

Call to action

Create your own home laboratory/workshop/garage! Get inspired by ControllersTech, DroneBot Workshop, Andreas Spiess, GreatScott!, bitluni's lab, ElectroBOOM, Phil's Lab, atomic14, That Project, Paul McWhorter, Max Imagination, Nikodem Bartnik, Stuff Made Here, Mario's Ideas, Aaed Musa, Haase Industries, and many other professional hobbyists sharing their awesome projects and tutorials! Shout-out/kudos to all of them! Promote README-driven learning 😎

Warning

LEGO EV3 large motors - do try them with DIY control hardware ❕

220+ challenges to start from: Control Engineering for Hobbyists at the Warsaw University of Technology.

Stay tuned!

Releases

No releases published

Packages

 
 
 

Contributors