GithubHelp home page GithubHelp logo

raspican_joystick's Introduction

Raspi CAN Wireless Joystick Controller

In this project, we allow real vehicle CAN messages decoded on a Raspberry Pi to control and communicate with Live For Speed (LFS) running on a Windows machine. The method used in this section is a non-direct method and involves the use of an xbox360 emulator. Communication between the Raspberry Pi and Windows machine is wireless using UDP packets.

The pub/sub from ROS is used for message communication. The raspberry pi is first loaded with Ubuntu 16.04 (LXDE) and ROS Kinetic installed and can be found here. ROS is used to make the development simple.

Pre-requisite

On the window's machine, download and install all the required drivers and emulators:

  1. xBox_360_Controller_Emulator
  2. vJoy_Device_Driver
  3. Python3

Concept

Real vehicle hardware for example electronic power steering, drive-by-wire brake and accelerator ECU will send CAN data into the engine control module. In the simulator's case, we have designed our own electronic power steering, brake and accelerator to send CAN Bus data straight to the CAN Bus which is also connected to the Raspberry Pi 3B+.

The CAN data is then decoded and the appropriate actuator commands are sent wirelessly to the windows machine. A python script running on the windows machine will decode the UDP message and the actuator commands are mapped into the joystick input.

A rich amount of data from LFS can be sent back to the Raspberry Pi ECU using same method, data such as vehicle speed, engine rpm, throttle position etc are sent as feedback back to the vehicle hardware.

High Level Explanation

raspican_joystick's People

Contributors

ixcess avatar

Watchers

 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.