Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.
/ Tiltometer Public archive

A program that uses positional data from an IMU to display Pitch and Roll

License

Notifications You must be signed in to change notification settings

djcopley/Tiltometer

Repository files navigation

LOGO

Table of Contents

Introduction
Requirements
Installation
Resources
Contributing
Licensing

Foreword: I wrote this program in High School. Enough said. Use at your own risk. Goodluck and enjoy.

Introduction

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!

Requirements

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

Installation

  1. Clone repository: git clone https://github.com/djcopley/Tiltometer.git
  2. Enable i2c - in terminal type sudo raspi-config then navigate to Interfacing Options > I2C > Yes
  3. Install dependencies: sudo apt install i2c-tools libi2c-dev python-smbus python3.4 pip3 install PyGObject
  4. 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.

Raspi-Pinout

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.

Resources

LSM9DS0 Data Sheet

Finding Pitch and Roll

Gtk Python Documentation

Contributing

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! 😁

Licensing

This project falls under the purview of the MIT License.

About

A program that uses positional data from an IMU to display Pitch and Roll

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published