obus/README.md

51 lines
3.3 KiB
Markdown
Raw Normal View History

2020-08-04 20:58:53 +02:00
# Ontmijnen van een Bom vereist Uitstekende Samenwerking
2020-08-30 20:05:59 +02:00
You see an armed time bomb but don't know how to disarm it. Your friends found a manual to defuse the bomb and you have them on call. This is the premise of the game OBUS, a hardware project by [Zeus WPI](https://zeus.ugent.be). Inspired by the amazing software game [Keep Talking and Nobody Explodes](https://www.keeptalkinggame.com/).
2020-08-04 20:58:53 +02:00
## Get started writing a module
2020-08-24 15:16:09 +02:00
These are the instructions for building your own OBUS module with an Arduino Nano v3 and the custom PCB. If
you're using other hardware, you might need to do some things differently.
0. Read the "[Getting started guide](docs/GETTING_STARTED.md)" to get a general idea of how OBUS works.
2020-08-24 15:16:09 +02:00
1. [Install](https://www.arduino.cc/en/Guide/#install-the-arduino-desktop-ide) the Arduino IDE.
2. Clone this repository with Git in a permanent location on your drive.
3. Symlink the library: `ln -s /ABSOLUTE/PATH/TO/REPO/lib /PATH/TO/Arduino/libraries/obus`
2020-08-26 23:33:01 +02:00
(on most Linux distro's, this the Arduino folder is in `$HOME/Arduino`)
4. Follow [these steps](https://github.com/autowp/arduino-mcp2515/#software-usage) to install the CAN library
5. Execute `./src/new_module.sh` to create a new module. When asked for a type, you'll probably want to choose 'puzzle'.
6. Edit the newly generated .ino file, either in the Arduino IDE or in your own editor.
7. In the Arduino IDE, select the correct board (Arduino Nano) and processor (ATmega328P (Old Bootloader)). After that,
flash your code to the Arduino and test it out.
2022-02-09 11:33:36 +01:00
8. On some Linux distributions, you'll need to prevent BRLTTY from taking over the serial adapter because BRLTTY thinks it's a Braille keyboard. You can do this by uninstalling it (`pacman -R brltty`) or by [disabling it and then rebooting](https://unix.stackexchange.com/questions/670636/unable-to-use-usb-dongle-based-on-usb-serial-converter-chip).
2022-02-10 16:57:30 +01:00
9. If you get permission errors, try adding yourself to the dialout or uucp (Arch Linux) group
2022-02-15 19:23:35 +01:00
![A screenshot of the OBUS controller web page, showing a countdown timer, a list of connected modules and the strikes](docs/images/controller/controller_screenshot.png)
2020-08-24 15:16:09 +02:00
## Background
### Game
2020-08-04 20:58:53 +02:00
The game is played by at least two players. The goal is to defuse a bomb,
this is accomplished by defusing every module on that bomb before the bomb
timer runs out.
There are two roles:
2020-08-24 15:16:09 +02:00
- Expert: this person can read the manual about how to defuse the bomb, but cannot see nor interact with the bomb
2020-08-04 20:58:53 +02:00
- Defuser: this person can see and interact with the bomb, but cannot read the manual
2020-08-24 15:16:09 +02:00
These two roles can communicate with each other. To successfully defuse the bomb, they must
2020-08-04 20:58:53 +02:00
communicate efficiently and clearly. If a mistake is made, the team gets a strike.
If they get too many strikes or the timer runs out, the bomb explodes.
2020-08-04 20:58:53 +02:00
### Implementation goals
2020-08-04 20:58:53 +02:00
- It should be easy to add new modules, both hardware- and software-wise
- It should be easy to build your own module and get it working with the rest of the game
- Every run of the game should be different
- It should be possible for multiple people at the same time to develop a new module
2020-08-04 20:58:53 +02:00
The idea is to have one bomb controller that keeps track of the timer, the amount of strikes and of whether
2020-08-24 15:16:09 +02:00
the bomb has been successfully disarmed, and to have multiple modules that have one or more challenges on them
2020-08-04 20:58:53 +02:00
that need to be solved.