justindra / trc_car_xbox

An Xbox to Arduino Interface for the the TRC Self Driving Car Challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xbox Arduino Controller

This is the code to control an Arduino over serial, in particular controlling the car code here.

The code can be easily modified to talk to any other device over serial. Just simply adjust the data structure set out in [src/car.js].

Usage

To run the controller and start sending over serial, just run

npm start

If just trying to see if the controller is working first, run

npm run test-controller

Development

There is a sample arduino code in [blink_serial_ino]. This should adjust the brightness of an LED based on what is sent over serial. This should allow debugging of this codebase without having to interface with the car.

About

An Xbox to Arduino Interface for the the TRC Self Driving Car Challenge


Languages

Language:JavaScript 84.5%Language:C++ 15.5%