https://github.com/ttu/lego-boost-ai
Lego Boost AI and manual control
https://github.com/ttu/lego-boost-ai
boost lego lego-boost movehub nodejs
Last synced: 6 months ago
JSON representation
Lego Boost AI and manual control
- Host: GitHub
- URL: https://github.com/ttu/lego-boost-ai
- Owner: ttu
- License: mit
- Created: 2018-03-03T23:27:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-02T07:43:46.000Z (about 7 years ago)
- Last Synced: 2025-04-24T01:12:13.087Z (6 months ago)
- Topics: boost, lego, lego-boost, movehub, nodejs
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lego Boost AI and manual control
Simple AI for Lego Boost.
* AI mode
* Manual control mode## Execute
```sh
$ npm start
```### Manual mode controls
```
t toggle between AI / Manual mode
arrow keys speed and direction (motor A & B)
q, w roll (motor C)
a, s pitch (motor D)
z full stop
```## Setup
### Linux / macOS
Check Noble [prerequisites](https://github.com/noble/noble#prerequisites).
### Windows
Install [Windows build tools](https://www.npmjs.com/package/windows-build-tools) from npm.
```sh
$ npm install --global windows-build-tools
$ npm config set msvs_version 2015 --global
```##### Setup Noble
If your adapter is not in the list of supported [adapters](https://github.com/noble/node-bluetooth-hci-socket#compatible-bluetooth-40-usb-adapters), set correct [VID and PID](https://github.com/noble/node-bluetooth-hci-socket#force-adapter-usb-vid-and-pid) as environment variables. These can be seen from Zadig.
```sh
$ set BLUETOOTH_HCI_SOCKET_USB_VID=0x1286
$ set BLUETOOTH_HCI_SOCKET_USB_PID=0x204C
```## Links
* https://github.com/hobbyquaker/node-movehub
* https://github.com/JorgePe/pyb00st/blob/master/examples/demo_motor.py
* https://github.com/kencanak/lego-boost-experiment/blob/master/index.js