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
53 stars 47 forks source link

MotorShield Node Library #14

Open ronaldroe opened 5 years ago

ronaldroe commented 5 years ago

I wasn't sure where to put this, other than to open an issue. I own and intend to use the MotorShield for one of my side projects I'm working on with my son. We are using Node for our project, and so I ported your library to Node. I thought you all might want to add a link to the repository in case your users would like to use it.

To date, I've implemented everything except the Sensor class, which I am working on now. The Motor, LinkedMotors and Arrow classes are fully tested, and appear to work without issue. I haven't yet been able to fully test the Stepper class, as I currently do not have any stepper motors on hand. However, the test script does run without any errors.

I have been very careful to ensure that my library behaves in the same manner as the Python version. Thus, each JavaScript function call receives arguments and operates according to how it would in your Python library. You can find more information in the library's README.md at the links below.

Below are the links to the GitHub repo and npm package, should you wish to include links to them.

GitHub: https://github.com/ronaldroe/node-motor-shield npm: https://www.npmjs.com/package/node-motor-shield