https://github.com/freaktechnik/gamepad-nodebot
A simple nodebot controlled by a gamepad.
https://github.com/freaktechnik/gamepad-nodebot
Last synced: over 1 year ago
JSON representation
A simple nodebot controlled by a gamepad.
- Host: GitHub
- URL: https://github.com/freaktechnik/gamepad-nodebot
- Owner: freaktechnik
- License: mit
- Created: 2015-10-21T17:53:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-22T00:00:01.000Z (over 9 years ago)
- Last Synced: 2025-02-14T20:46:53.890Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gamepad-nodebot
A simple nodebot controlled by a gamepad.
## Controls
The movement of the bot is mapped to the right stick of a Sony DualShock 3
controller. To quit, press the circle button.
## Usage
### Arduino pins
The script assumes that your pins are used in the following manner:
- Left Motor
- pwm: pin 5
- direction: pin 4
- Right Motor
- pwm: pin 3
- direction: pin 2
By default the PWM is inverted.
### Before running the script
Make sure to plug in your controller and arduino to your computer. It's possible
that you'll have to adjust the controller bindings, since the used ones are for
a Sony DualShock 3.
### Running the script
```bash
node index.js
```
If you get an access denied error, you might have to run it with `sudo`.