Welcome to the Detroit Autonomous Vehicle Group GitHub page where we are democratizing technology from Detroit, Michigan.
This site is dedicated to maintaining software/software related materials pertaining to projects worked on by the group. We are a group of technology enthusiasts who work on self-driving RC cars in order to apply concepts acquired from the Udacity Nano-Degree Program. In person meetings take place every Saturday in Ferndale, MI. For more information about the group please see links below.
- Facebook Group Page - https://www.facebook.com/groups/416710545345864/
- Instagram - https://www.instagram.com/detroitautonomousvehiclegroup/
- Medium - https://medium.com/@DetroitAutonomousVehicleGroup
- Meetup - https://www.meetup.com/Detroit-Autonomous-Vehicle-Meetup
- Meeting Minutes - https://drive.google.com/drive/u/1/folders/0ByL8VeGwxrVoVk5BdDlVeWliRTQ
- Parts Info - https://drive.google.com/drive/u/1/folders/0ByL8VeGwxrVoRmlKVHpMVUhsX28
- Parts List Gen1Car - https://docs.google.com/spreadsheets/d/16NL_QVh4fbgr2phaQlHn6b5kDd-EuCylbFosMPntZtc/edit#gid=291899112
- Resources - https://drive.google.com/drive/u/1/folders/0ByL8VeGwxrVoa3dkTlVENmpaUUk
- Schematics Gen1Car - https://drive.google.com/drive/u/1/folders/0ByL8VeGwxrVoSjZkbk5TUTBWUFE
- SDCar Project Folder - https://drive.google.com/drive/u/1/folders/0ByL8VeGwxrVoN1I3Mkg3cmRibmc
- Share Folder - https://drive.google.com/drive/u/2/folders/0BwMKNnuQFE1MS0hOQnJUM2NZWHc
- Slack - https://join.slack.com/t/davg/shared_invite/enQtMTk5NDQzNjE3NDYwLWE5MmY4MWU0NDM4OGUwMGNlOWMwMmRiNDc5NTRiNjEwYmEwYzIzZjUwMGE2NzE0Y2ZmZjQxNTZjMDBiNjc2MjM
- Twitter - https://twitter.com/DAVGtech
- YouTube - https://www.youtube.com/channel/UCF7-v2GGm9OvSbShzEHIauA/videos
-------------------------------------------------------------OPTIONAL-----------------------------------------------------------------
After you clone/unzip the repo, type the following commands (without the single quotes) in your terminal/command prompt to import and verify the conda environment. Make sure you install miniconda first on your PC. To do that please follow the steps in the link https://conda.io/docs/install/quick.html
- Verify the conda install - 'conda --version'
- Import environment.yml (replace environment with the environment name if it is different) - 'conda env create -f environment.yml'
- To list all the environments available on your PC - 'conda info --envs' or 'conda env list'
- Activate the DAVG environment:
- linux/MAC OS X - 'source activate DAVG'
- Windows - 'activate DAVG'
More information in the link https://conda.io/docs/using/envs.html
- Connect the Arduino via USB.
- On your PC (Windows), go to Device Manager, choose Ports (COM & LPT), then verify that the USB Serial Device (COM4) is present. If not, go to the Arduino web site and download and install the driver: (https://www.arduino.cc/)
- Connect the Raspberry PI to a display over HDMI and a Bluetooth mouse and keyboard.
- Go to the network settings
- Edit the computer name to 'DAVG-pi' (or whatever name you prefer, but DAVG-pi will be used in this document).
- Reboot the Raspberry Pi to apply the settings.
- Go to the WiFi settings and connect to the appropriate WiFi network.
- After the Raspberry Pi is connected to the wifi, it can be logged in over SSH.
- Use your favorite SSH client (OpenSSH ssh client, PuTTY, etc.) to connect to 'DAVG-pi' or 'DAVG-pi.local' as necessary.
- Log in (default credentials):
Username: pi
Password: raspberry
For example:
ssh [email protected]
- On your PC, navigate to the "server-controller/test" folder of the DAVG repo. Run the rc_control_test.py test script:
python rc_control_test.py
If only one com port is available, it will be automatically seleted. If there are more than one available, you will be prompted to select the appropriate one.
- A pygame window should appear. In order to steer with the keyboard, the pygame window must be in the forefront. Only the arrow keys work. You should hear relays clicking when working properly.
You must give permissions to the serial ports first. See instructions below:
Step 1: Determine com port (ls /dev/tty* with USB plugged in; then unplug the USB and re-run the code. This will show you which port is turning on and off and that is the port you need to connect to. Most likely it will be /dev/ttyACM0)
Step 2: Run the following command - "sudo chmod 666 /dev/ttyACM0" (ttyACM0 should be the com port or replace this with whatever your machine responds with)
In order to send the keyboard inputs to pygame, pygame_sdl2 must be used. Otherwise the keyboard input will be sent to the terminal window.
-
Clone the project onto your computer
-
Install the dependencies:
brew install sdl2 sdl2_gfx sdl2_image sdl2_mixer sdl2_ttf
-
Build and install the pygame_sdl2 module from within the project directory:
python setup.py install
- On the PC you want to view the vide on, run the
stream_server_test.py
script in "server-controller/tests" to start listening. - On the Raspberry Pi in the project directory, edit the stream_client.py file to use the IP address of the computer listening for the video connection.
- Run the stream_client.py script to start sending the video.
- !!!NOTE!!! Make sure your firewall is turned off. Otherwise will not be able to stream video. (Can make an exception in the firewall)
- Installation (Supported on RPi3 and Ubuntu 16.04): https://developer.movidius.com/start
- YOLO NCS: https://github.com/gudovskiy/yoloNCS.git. Tiny YOLO object detection can be run on an image or webcam device.