Controlling DC motors using Pi - Raspberry Pi Forums


hi all,
working on robotic project , encountering difficulties in controlling 2 dc motors. anyway, using raspberry pi 3 , dual channel 10a dc motor driver drive 2 dc motors (dual shaft self-locking dc worm gear motor). using driver drive bigger motor capacity , make them work servo motor. managed send signal , run motors can't stop them running. please help, thankful.

code: select all

 import  rpi.gpio gpio  import time   gpio.setmode(gpio.board)  gpio.setup(12,gpio.out)  pwm=gpio.pwm(12,100)  pwm.start(20)  time.sleep(1)  pwm.stop()
in fact, have little knowledge on controlling motors.. if can guide me or show me reference grateful .

hi.

able need know motor control board using , , how have connected pi.

boards required more 1 connection, there speed , direction , stop-star, depending on board depends how achieved.


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'