esp32 BLE + Motor Control Project

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
Post Reply
walecka
Posts: 17
Joined: Wed Apr 08, 2020 9:50 pm

esp32 BLE + Motor Control Project

Post by walecka » Thu Aug 06, 2020 7:09 pm

Hello all,

I have just completed my first project with Micropython (and my first experience writing extensive python code as well). The project itself doesn't do anything too special or useful - it allows the user to adjust the speed, status, and direction of a DC motor running a PI control loop via a BLE connection. I also wrote a synchronous task scheduler to run everything on top of that should be pretty easy for other users to steal :)

I thought I'd share it on here in case anyone has any (welcome!) feedback on how I could improve my implementation. Like I said, when it comes to Python, I am essentially a beginner.

Here is a quick demo of what the project does. One cool feature is that it allows the user to enqueue a long sequence of operations for the motor to execute, then set it off on that sequence (as demonstrated in the video).

https://www.youtube.com/watch?v=jWYvNjDsq4A

If you want to see more, or want to set it up on your own, take a look at the git repo / README

https://github.com/waleckaw/Motor-Control-with-BLE

Many thanks to those of you in the community who replied to my forum posts, and to the creators of micropython, who have given us this awesome and very useful tool

Post Reply