A software for controlling the spyder car with an xbox controller.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Trivernis 8f792013c2
Merge pull request #12 from Trivernis/renovate/configure
Configure Renovate
5 years ago
.idea Merge remote-tracking branch 'origin/develop' into develop 5 years ago
Manuals etc Project cleanup 5 years ago
lib Even more Quality Improvements 5 years ago
sounds Back to the wav file 6 years ago
testscripts More Cleanup 5 years ago
.gitignore Project cleanup 5 years ago
LICENSE Create LICENSE 5 years ago
README.md Updated README 5 years ago
install.sh Improved install script 5 years ago
main.py More Cleanup 5 years ago
renovate.json Add renovate.json 5 years ago
requirements.txt Added Requirement file 5 years ago
stream.sh Project cleanup 5 years ago
top_view.png [ImgBot] Optimize images 5 years ago
update.sh fixed update file 6 years ago

README.md

Spydian CodeFactor

Summary

This python project is the controlling software for the Spyder remote controlled car. The car can be controlled with a (XBOX) Joystick and consists of a raspberry pi as core unit, several sensors (Gyroscope, Ultrasonic, Camera) and a relay for switching lights and motors on and off. The controlling part is achived by using pygame to get direct access to the controller events. The software itself is splitted into several libraries for handling specific tasks.

Requirements

You need to build a basic Spyder setup yourself. This consists of a raspberry pi as controlling unit, a gyroscope, a camera, two relays, an ultrasonic sensor and a temperature sensor. Notice that you could manipulate the main program (main.py) to remove or add sensors. The standard pins are:

Sensor Pins
Ultrasonic 11, 7
Motor-Relay 16
Light-Relay 15
Temperature 11, 14

The light and the motor are switched on and off with the relay, because the raspberry pi doesn't have enough energy to power all motors and lights. So use a seperate energy source to power them. If you are building your own setup it is recommended to only use the libraries and build the main program yourself.

Install

To install the requirements execute the install.sh script. This script does not install Python but uses pip. So first you need to install Python 2 and Python 3 because this software uses both versions. You also need to connect all sensors and relays to the specific pins.

Usage

To execute the software the main.py script needs to be run. Open a console and type sudo python3 main.py. Notice that the superuser rights are required because the script needs access to the GPIO-Pins of the raspberry pi.