Skip to content

Commit 9fe4a28

Browse files
authored
Add Run PPUC page (#5)
* Starting how_to_run * Add Run PPUC
1 parent 081fc36 commit 9fe4a28

File tree

3 files changed

+88
-1
lines changed

3 files changed

+88
-1
lines changed

docs/ppuc/build_from_source.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ sudo apt-get upgrade
2020
sudo apt-get autoremove
2121
```
2222

23+
### sudo
24+
25+
The "super user do" command allows you to execute commands with administrative privileges. Normal users do not have these in order to keep the system safe. But 'sudo' may not work if you are not in the sudo group. In that case use the following to add yourself:
26+
27+
```
28+
usermod -aG sudo $USER
29+
```
30+
2331
### Compiler
2432

2533
Install the compiler :
@@ -29,7 +37,7 @@ sudo apt-get install build-essential
2937

3038
Install the tools used by build.sh:
3139
```shell
32-
sudo apt install cmake curl autoconf libtool pkg-config zlib1g zlib1g-dev
40+
sudo apt install git cmake curl autoconf automake libtool pkg-config zlib1g zlib1g-dev
3341
```
3442

3543
### Header files

docs/ppuc/how_to_run.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Run PPUC
2+
3+
Open a Terminal and enter the following command for a list of options:
4+
```shell
5+
ppuc-pinmame -h
6+
```
7+
8+
- To get started you can do a dry run as described [here](build_from_source.md#test).
9+
- Clearly you need the appropiate pinmame rom for your pinball machine.
10+
- Also a .yml file is required which defines the IO for your hardware as explaned [here](config_tool.md).
11+
12+
## USB connections
13+
14+
PPUC uses USB to access your hardware:
15+
16+
1. USB - RS485: This is required to communicate with the PPUC IO boards.
17+
Note that the comandline for the dry run uses the -n option to disable this.
18+
2. Optionally connect a ZeDMD display. This is also possible without the IO boards.
19+
20+
## Linux
21+
22+
You can use any Linux distribution you like. We tested with both Debian and Ubuntu.
23+
For Raspberry Pi use: Raspberry Pi OS Lite (no need for a desktop or other software).
24+
25+
### USB access
26+
27+
USB access is only possible when your username is in the 'dialout' group.
28+
29+
To see in which groups you are:
30+
```shell
31+
groups
32+
```
33+
34+
To get USB access:
35+
```shell
36+
sudo usermod -a -G tty $USER
37+
sudo usermod -a -G dialout $USER
38+
```
39+
When using Raspberry Pi OS you also need to be in the plugdev group:
40+
```
41+
sudo usermod -a -G plugdev $USER
42+
```
43+
44+
### USB ports
45+
46+
To check if your USB device is recognized by Linux, use:
47+
```shell
48+
lsusb
49+
```
50+
The following command lists the USB to serial interfaces (USB-RS485 for PPUC IO).
51+
```shell
52+
ls -l /dev/ttyUSB*
53+
```
54+
55+
### Run
56+
57+
Run from the ppcu directory:
58+
```
59+
ppuc/ppuc-pinmame -c <your>.yml
60+
```
61+
This should run PPUC with RS484 communication to control the IO boards. It will also use a ZeDMD when available. Exit with CTRL-C.
62+
63+
### VirtualBox
64+
65+
Oracle [VirtualBox](https://www.virtualbox.org/) is a very nice tool to experiment with the software. Especially when you are not familiar with the Linux OS:
66+
67+
- Run any Linux distro in a separate virtual machine (a fresh start is easy). Easy to remove / delete when done.
68+
- Use snapshots to save a specific machine state. That allows you to go back to a known good situation.
69+
- Have a secure environment which is isolated from your OS, disks and network. You control what is shared / connected.
70+
71+
After creating a virtual computer it is best to install the VirtualBox Guest Additions:
72+
73+
- Allows you to copy-paste from your computer (host) to the virtual machine.
74+
- Provides functionallity to share folders.
75+
76+
When you want to use ppuc on the the virtual Linux machine with hardware (IO boards / ZeDMD) install the VirtualBox Extension Pack.
77+
Then you can use the Virtual Machine Status Bar to connect with the appropiate USB port(s).
78+

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ nav:
9595
- ppuc/getting_started.md
9696
- ppuc/config_tool.md
9797
- ppuc/build_from_source.md
98+
- ppuc/how_to_run.md
9899
- "PPUC Hardware":
99100
- ppuc_hardware/index.md
100101
- ppuc_hardware/io_16_8_1.md

0 commit comments

Comments
 (0)