Code Monkey home page Code Monkey logo

cycloid__description-self-racing-car-platform_line_following_'s Introduction

Self-racing robot using traffic cones to localize. Very much a work in progress.

Car is a Traxxas Rustler (not VXL), stock ESC, brushed Titan 12T motor, aftermarket 2S lipo battery.

Racing on a basketball court

This uses a pre-planned track, and doesn't have any tools for planning the track yet other than a bunch of ipython notebooks.

Hardware

  • Traxxas Rustler R2R
  • Raspberry Pi 3
  • Teensy 3.2
  • MPU-9250 9-DoF IMU (about $3 on eBay)
  • LM2596S DC-DC buck converter (about $1 on eBay)
  • ILI9340 SPI 240x320 LCD display, via the fbtft device driver (about $7)
  • Arducam OV5647 Raspberry Pi 3 camera with LS-40180 fisheye lens ($30)
  • Custom PCB connecting everything together -- see hw/pcb/
  • Wii U Pro controller (connected via bluetooth)

Besides the RC car, there are three 3D-printed parts to mount the camera to the front bumper support, a "base plate" which carries all the PCBs and a "servo plate" which holds the base plate to the servo bracket; see hw/scad/

Code

Can be compiled on a host PC with a cross compiler (e.g. on macOS you can install this: https://www.jaredwolff.com/toolchains/) or on the Raspberry Pi itself.

If you want to build the code, clone with git clone --recursive https://github.com/a1k0n/cycloid in order to get the Raspberry Pi userland submodule (otherwise just run git submodule init and git submodule update).

Here's how I build it:

Once you have a raspberry pi cross compiler (see two paragraphs above), edit crosscompile.cmake to point to the correct compiler name / path, and do this:

$ mkdir build
$ cd build
$ cmake -DCMAKE_TOOLCHAIN_FILE=../crosscompile.cmake ../src -DCMAKE_BUILD_TYPE=RelWithDebInfo
$ make -j4

The main executable will be in build/drive/drive; scp that to your raspberry pi on the car, pair a bluetooth joystick, and run it.

cycloid__description-self-racing-car-platform_line_following_'s People

Contributors

a1k0n avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.