Coding a Motor to Run

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

How do I code a motor powered by the PSoC to only run for a certain amount of time?  Can I control the amount of voltage that the motor receives?

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The PSoC will not be able to provide the power for a motor, you will need a driver. This you can obtain from your local electronic supplier, preferrably as a breakout-board.

Changing the speed is usually done using PWM (Pulse Width Modulation, see google). This is a component that is available in the PSoC component catalog when you use the Creator as your IDE.

Bob

View solution in original post

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The PSoC will not be able to provide the power for a motor, you will need a driver. This you can obtain from your local electronic supplier, preferrably as a breakout-board.

Changing the speed is usually done using PWM (Pulse Width Modulation, see google). This is a component that is available in the PSoC component catalog when you use the Creator as your IDE.

Bob

0 Likes
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

erin,

you will need something like this driver, which can be controlled by PWM signal from PSoC. By varying PWM duty cycle the motor speed can be adjusted. There are other inputs on the board to control direction and enable.

30A mini Motor Shield VNH2SP30 engine driver step Mold Module For Arduino H B9E5 191466613931 | eBay

/odissey1

VNH2SP30.jpg

0 Likes