sbcshop / MotorShield

Designed to help you get your Raspberry Pi based Robot. This board can control DC motor as well as the stepper motor. You can connect your IR and Ultrasonic sensors to tell your robot about its environment. You can easily make your Line Following, Object following, Wall following, Maze-Solver Robots.
https://shop.sb-components.co.uk/products/motorshield-for-raspberry-pi
52 stars 47 forks source link

Wheres it coming from #9

Closed benny311 closed 6 years ago

benny311 commented 6 years ago

I am using a Raspberry Pi 3 Model B Vl. 2 and am using Python 3.5.3 Even when I insert the file directly from the code provided it keeps running into the same error


==================== RESTART: /home/pi/eduardo benitto.py ==================== Traceback (most recent call last): File "/home/pi/eduardo benitto.py", line 3, in import PiMotor ImportError: No module named 'PiMotor'


How do I Download the library so the code can be imported. also in the beginning where is the Import supposed to come FROM, in other words there is no FROM statement at the beguiling of the first two lines of code, if that is intentional what could be the problem. Thank you for your time.

sbcshop commented 6 years ago

Hi Benny,

This is due to PiMotor.py is not found. Please check the below link for PiMotor.py and place this library inside your folder. https://github.com/sbcshop/motor-shield/blob/master/PiMotor.py

Or you can clone or download motor-shield repository for testing.