Simple overview of use/purpose.
A radio controlled Airplane code for python. Controlled by an PS4 controller and transmitted via NRF24. With a GUI, flexible settings, data recording and data visualization see: src/Libs/visualization if it works 🤷♂️.
- RASPBERRY PI * 2
- NRF24l01 + * 2
- I2C MPU9250
- Display for Raspi
- Ps4 controller
- Just download
- install requirements.txt
- setup Bluethooth
- connect display to master Raspi
PIN | GPIO | MPU 925 | NRF24 | Servo check if 5V | ESC | |
---|---|---|---|---|---|---|
1 | 3V | |||||
3 | 2/I2C | SDA | ||||
2 | 5V | if 5V | 5V | |||
5 | I2C | SCL | ||||
6 | GND | GND | GND | GND | GND | |
Choose a free pin | Data | Data | ||||
connect like image |
- How to run the program
- install requirements
pip install -r requirements.txt
or
pip3 install -r requirements.txt
or
python3 -m pip install -r requirements.txt
- run on the controller in the directory of this file
python main.py
- run via ssh or somtehing for the airplain
sudo python main_airplaine.py
- make shure to anable all the interfaces who are needed.
Contributors names and contact info
ex. Noah-Retro
- 1.0
- Release
Inspiration, code snippets, etc.
- DomPizzie README.md File
- bjarne-hansen nrf24 module
- niru-5 mdu9250 module
- claymcleod code snippet ps4-controller in pygame
- MenxLi Slider Class