https://github.com/andersfugmann/mindstorm-ev3
Ocaml library for controlling Lego Mindstorm EV3
https://github.com/andersfugmann/mindstorm-ev3
Last synced: 8 months ago
JSON representation
Ocaml library for controlling Lego Mindstorm EV3
- Host: GitHub
- URL: https://github.com/andersfugmann/mindstorm-ev3
- Owner: andersfugmann
- License: bsd-3-clause
- Created: 2016-07-20T08:05:16.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-02T15:28:28.000Z (over 8 years ago)
- Last Synced: 2024-10-19T01:13:15.638Z (over 1 year ago)
- Language: OCaml
- Size: 50.8 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mindstorm-ev3
Ocaml library for controlling Lego Mindstorm EV3 over bluetooth (linux).
Pair with the brick (linux)
===========================
To connect to the mindstorm, first pair with the brick:
```
$ bluetoothctl
[bluetooth]# list
Controller 5C:59:48:C8:4E:87 zaphod [default]
[bluetooth]# scan on
[bluetooth]# devices
Device 00:16:53:46:E7:F0 EV3
[bluetooth]# pair 00:16:53:46:E7:F0
# Follow the instructions on the EV3 brick
# (press center key a couple of times)
# and enter the passcode when prompted here
[bluetooth]# paired-devices
Device 00:16:53:46:E7:F0 EV3
```
if bluetooh does not work try either of the two:
```
$ sudo modprobe btusb
$ sudo hciconfig hci0 up
```
Note that systemd and/or connman might take control of the bluettooth
controller. Refer to these programs to make them release the
bluetooth controller.
Connecting
==========
The address (e.g. 00:16:53:46:E7:F0) of the brick is needed in order to connect to the brick:
You need to specify the ID of the ev3 mindstorm brick.
Sample Programs
===============
Remote: Acts as a remote. After connecting
lets the user control motors by using. Use wxad keys to move. Space to start rotor and b for beep.