Coder Social home page Coder Social logo

nes's Introduction

ACTION

canbus running in 4 beaglebones: canbus

INSTRUCTIONS

dependencies

apt-get install i2c-tools libi2c-dev libprotobuf-dev protobuf-compiler

code

  • clone this repository

    git clone https://github.com/xkonni/NES.git
    
  • initialize gitmodules

    git submodule init
    
  • update gitmodules

    git submodule update
    
  • change to build directory

    cd controller
    
  • build BBBIOlib

    cd src/lib/BBBIOlib
    make
    cd -
    
  • if using can

    export CAN=1
    
  • run cmake

    cmake .
    
  • run make

    make
    

TODO

controller

  • optional: read motorstatus

nes's People

Contributors

mathisschmieder avatar mokshabirk avatar xkonni avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

guest007

nes's Issues

Bus System Choice

Considered

  • CAN
  • SERCOS
  • EtherCat

CAN

  • Easy to implement and debug
  • Messages have priorities
  • Unknown delay until a message is transmitted
  • Low speed
  • Needs transceiver chips
  • The bus is non-trivial to build

Sercos

  • Bus with hard RT properties
  • Inherent cycles for setting/getting data from slaves
  • Very short delay between cycles possible
  • Harder to configure
  • No viable master implementation found
  • There is only a basic API with no HW support

EtherCat

  • Properties like Sercos
  • Master: http://www.etherlab.org/en/ethercat/index.php
  • Works with or without (slower) RT_PREEMPT patch for Linux
    • It should be manageable to get RT_PREEMPT working
  • The master control process can be implemented using a C API

Proposal

  • Implement a quick-and-dirty CAN bus so sensors and actuators can be steered
  • When CAN works on a basic level try to set up basic EtherCat master/slave communication
    • Let the master talk to a proprietary slave
    • When the master works, try to set up a slave on a BeagleBone Black
  • Implement the EtherCat control process

TODO: Decide on a deadline for basic EtherCat operations. It it's not working by then, improve the CAN bus

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.