Member-only story

How to control an electric motor from a phone (iOS or Android) with a Raspberry PI H-Bridge and Pulse Width Modulation.

Eugene Tkachenko
9 min readMay 9, 2024

Story

This is a complete guide to controlling an electric motor from a phone (iOS or Android) with a Raspberry PI H-Bridge and Pulse Width Modulation.

The video version of this article is here:

Let’s go through electric motor basics and H-Bridge.

When the current is applied to a motor, it starts to rotate.

If we reverse the direction of the current, the motor will rotate in the opposite direction. It’s very straightforward.

To switch the direction of the current, we use an H-bridge.

--

--

No responses yet