File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,8 +29,11 @@ cd BalancingRobotZ
2929west update
3030```
3131
32- Command to build the Zephyr application (in BalancingRobotZ directory):
32+ Command to build the Zephyr application (in br_app directory):
3333```
34+ source zephyr/zephyr-env.sh
35+ nrfutil toolchain-manager launch --ncs-version v3.0.2 --shell
36+ cd BalancingRobotZ
3437./build.sh
3538```
3639
@@ -58,68 +61,34 @@ I used this 5V miniboost board to power the 6V motors from a 3.7V LiPo battery.
5861
5962### Software Installation for Python Control Program on Raspberry Pi5 (Bullseye)
6063
61- Update OS
6264```
65+ # Update OS
6366sudo apt update
6467sudo apt upgrade
65- ```
66-
67- Install bluez
68- ```
68+ # Install bluez
6969sudo apt-get install bluez
70- ```
71-
72- Install pip for python3.10
73- ```
70+ # Install pip for python3.10
7471sudo apt-get install python3-pip
75- ```
76-
77- Install glib
78- ```
72+ # Install glib
7973sudo apt-get install libglib2.0-dev
80- ```
81-
82- Install bluepy
83- ```
74+ # Install bluepy
8475pip install bluepy
85- ```
86-
87- Install tkinter
88- ```
76+ # Install tkinter
8977sudo apt-get install python3-tk
90- ```
91-
92- Install matplotlib
93- ```
78+ # Install matplotlib
9479pip install matplotlib
95- ```
96-
97- Install PyOpenGL
98- ```
80+ # Install PyOpenGL
9981sudo apt install python3-opengl
10082pip3 install PyOpenGL
101- ```
102-
103- Install pyopengltk
104- ```
83+ # Install pyopengltk
10584pip install pyopengltk
106- ```
107-
108- Workaround for PyOpenGL error:
109-
110- ```
111- AttributeError: 'EGLPlatform' object has no attribute 'GLX'. Did you mean: 'GL'?\
112-
85+ # Workaround for PyOpenGL error:
86+ # AttributeError: 'EGLPlatform' object has no attribute 'GLX'. Did you mean: 'GL'?
11387unset WAYLAND_DISPLAY
114-
115- or
116-
88+ # or
11789pip3 install --force-reinstall "PyOpenGL==3.1.5"
118- ```
119-
120- To get around problem:
121- ```
122- https://github.com/IanHarvey/bluepy/issues/218
90+ # To get around problem:
91+ # https://github.com/IanHarvey/bluepy/issues/218
12392sudo setcap 'cap_net_raw,cap_net_admin+eip' bluepy-helper
12493```
12594
You can’t perform that action at this time.
0 commit comments