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

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

$
0
0
Try three connections:
pi 3V3 to controller board Vcc
pi GND to controller board GND
pi GPIO18 to controller board EN (enable)

Then without writng any .NET code or python code, start a Terminal on the pi and type this:

Code:

raspi-gpio set 18 op dh
what happens?
Then

Code:

raspi-gpio set 18 op dl
what happens?
You probably want the PWM pin connected to a GPIO pin too. If it's set high (or low) it would be the equivalent of 100% duty cycle.

Statistics: Posted by ame — Sat Aug 10, 2024 8:12 pm



Viewing all articles
Browse latest Browse all 5010

Trending Articles