Introduction
Requirements
Installation
Resources
Contributing
Licensing
Foreword: I wrote this program in High School. Enough said. Use at your own risk. Goodluck and enjoy.
I came to develop this program mostly out of summer boredom. I drive a Jeep and thought it would be cool to install
a touch screen coupled with a raspberry pi inside. I plan on affixing a rear view camera to my tailgate, and using some
open source libraries like OpenCV to achieve some obstacle recognition in the future. Feel free to submit a pull request and make changes or improvements
as you see fit. I will review and merge valuable changes. Please see the section on contributing for more details and guidelines.
Anyways, thanks for visiting and enjoy!
This is the list of parts I used and how to configure them:
- Raspberry Pi Model 3
- LSM9DS0 IMU
- 7" Raspberry Pi Touch Screen
- A soldering iron
- 5V power supply for the Raspberry Pi
- Clone repository:
git clone https://github.com/djcopley/Tiltometer.git
- Enable i2c - in terminal type
sudo raspi-config
then navigate to Interfacing Options > I2C > Yes - Install dependencies:
sudo apt install i2c-tools libi2c-dev python-smbus python3.4
pip3 install PyGObject
- Make start_tiltometer executable
chmod +x start_tiltometer.sh
You will most likely need to solder the headers to your LSM9DS0 IMU module so start by doing that. Next we can start wiring the IMU to our Raspberry Pi.
For our purposes we need to find the I2C headers. It's the same for both models of the Raspberry Pi so if you have a different model, no need to worry. Pin 3 and 5 are our I2C headers(GPIO 2 and 3). Connect power to 3.3v, SDA to GPIO 2, SCL to GPIO 3 and GND to... well ground of course.
After all this, you're ready to go! Just go to your Tiltometer directory and type ./start_tiltometer.sh
.
LSM9DS0 Data Sheet
Finding Pitch and Roll
Gtk Python Documentation
I would like to keep this as simple as possible so all I will say here is be courteous and use common sense and there won't be any issues. In case there is any discrepancy or you would like more information, please check out the full set of guidelines here. Any contribution is much appreciated!
Thank you! 😁
This project falls under the purview of the MIT License.