Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code not working #6

Open
GrahamDouglas62 opened this issue Jan 20, 2018 · 0 comments
Open

Code not working #6

GrahamDouglas62 opened this issue Jan 20, 2018 · 0 comments

Comments

@GrahamDouglas62
Copy link

We have accurately followed the code described in your document: "Maker-SphereMotorShieldv1.pdf". we have only one motor connected to MOTOR1 connectors.
We are using the following code to get the motor the run with no luck.

From PiMotor import Motor
import time
m1 = Motor("MOTOR",1)
m1.forward(50)
time.sleep(2)
m1.stop()

We have successfully copied PiMotor.py to the local folder on the Raspberry Pi.
We are getting no errors and are seeing "Forward" and "Stop" as a result when we run the code. However the motor does not spin as expected. Are we missing a simple step that your documentation skips? If we connect the motor directly to the battery pack it spins fine. When connected via the motorshield hat, nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant