Testing Robot Chassis - Raspberry Pi Forums


my robot chassis won't respond signals raspberry pi's gpio pins.
trying build rover following robobutler tutorial on raspberry pi website: https://www.raspberrypi.org/learning/robo-butler/
have connected motor controller board raspberry pi, , connected chassis , battery pack instructed in tutorial. trying use python code make motors rotate briefly:

code: select all

import rpi.gpio io import time  io.setmode(io.bcm) pins = [17, 18, 22, 23] pin in pins:   io.setup(pin, io.out)  #test motors spinning each 1 way other 0.5 sec delay pin in pins:   print ('testing pin ' + str(pin))   io.out(pin, 1)   time.sleep(0.5)   io.out(pin, 0)
setup seems happen fine, , "testing pin 17" etc. appears in console. however, there no movement in chassis. using brand new batteries , i've checked wiring over, don't know what's stopping chassis responding pi. if knows might causing signal not through chassis' motors, please respond.

here hardware using:
raspberry pi 2 model b
dagu rover 5 tracked chassis encoders: http://proto-pic.co.uk/dagu-rover-5-tra ... -encoders/
ryantek motor controller board: http://thepihut.com/products/rtk-motor- ... -board-kit
male male breadboard jumper wire cable: http://www.amazon.co.uk/40pcs-2-54mm-br ... 00drai8cc/

i thinking connection problem, noticed test code on website says:

code: select all

#test motors spinning each 1 way other 0.5 sec delay pin in pins:   print ('testing pin ' + str(pin))   io.output(pin, 1)   time.sleep(0.5)   io.output(pin, 0)
yours says:

code: select all

#test motors spinning each 1 way other 0.5 sec delay pin in pins:   print ('testing pin ' + str(pin))   io.out(pin, 1)   time.sleep(0.5)   io.out(pin, 0)


raspberrypi



Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support