Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3476

Beginners • How can I drive a vibrating motor by GPIO?

$
0
0
What I want to implement is driving a vibrating motor for second when the user presses the screen of the PI, just like the Taptic Engine of iPhone.

I have prepared a vibrating motor and its motor controller boards. After it connects to 5V or 3V3 power to the board and ground, it works successfully.

Then I connect the motor controller boards power side to GPIO 18 and ground side.

After I opened the GPIO, the motor didn't work any.

What's wrong with it?

My friend tells me that I shouldn't use GPIO for power support but GPIO drives a relay to control it to work. Of course, his method is definitely feasible.

However, the relay will have a delay of a few tenths of a second when it starts, and it will make a sound when it starts. Moreover, at such a high working frequency, the life of the relay is also a concern.

I'm a GPIO newbie, how can I achieve what I want?

PS: The seller of motor controller boards told me that the input voltage is 3.7V and the input current is unlimited.

Statistics: Posted by mywatermelon — Fri Aug 09, 2024 3:51 pm — Replies 3 — Views 37



Viewing all articles
Browse latest Browse all 3476

Trending Articles