Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/technologiestiftung/idea-machine-dice
Arduino dice for the idea machine
https://github.com/technologiestiftung/idea-machine-dice
Last synced: about 2 months ago
JSON representation
Arduino dice for the idea machine
- Host: GitHub
- URL: https://github.com/technologiestiftung/idea-machine-dice
- Owner: technologiestiftung
- License: mit
- Created: 2023-06-16T17:07:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-24T15:11:44.000Z (7 months ago)
- Last Synced: 2024-06-24T17:04:37.457Z (7 months ago)
- Language: C++
- Size: 15.6 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
## Dice code for the idea machine
This C project can be used with platform.io & VSCode. Alternatively, you can install the dependencies manually and only copy the `main.cpp` file into the arduino IDE (rename to `main.ino`)
### What it does
We used Heltec ESP32 Lora boards and ESP32 NodeMCU Development boards.
When successfully connected, the board will measure acceleration via the MPU6050 board and send a value to the server.
The value would be the side of the cube facing up (1,2,3,4,5 or 6), e.g. `3`, `2`.Rename the `condig-example.h` file to `config.h` and adjust the values to your setup:
````
const char name[] = "esp32";
````### Bluetooth Setup:
1. You need to pair the board with the raspberry pi.
2. Check if `bluetoothctl` is installed on the pi. If not, install it.
3. Install `picocom` on the pi:
```shell
sudo apt-get install picocom
```
4. bind the esp32 to a serial port on the raspberry pi (needs to be done every time the pi is restarted):
```shell
sudo rfcomm bind rfcomm0
```
5. You can then run the following command on the raspberry pi to receive the data from the board:
```shell
picocom /dev/rfcomm0 -b 115200
```