Giter VIP home page Giter VIP logo

vexserial's Introduction

#VexSerial Library ๐Ÿ“ก ###Solid packet based communication between a VEX Cortex and a Raspberry Pi through UART (Serial).

####Brief This library was designed as a holiday project in order to establish the first steps to a robust communication protocol in order to easily make changes to the cortex from the pi (and anything that it is connected to). The protocol is based on the p3cortex adaption by jpearman link.. This is the basis for several projects that are upcoming using the cortex for myself as well as in debugging and testing of my teams competition robot.

####Components This library is made up of a RobotC component and a python program written that utilises pyserial on the Raspberry Pi's UART ports. Instructions for using the UART port on the Pi can be found with a quick google search: example instructions.. The 2 UART ports on the cortex are utalised singularly for using a VEX LCD. However since the cortex only supports one LCD at a time (without writing your own secondary controller), we are usually left with a spare UART port that we can have a play with.

Note: This is not legal in Competition (unless you're a lucky VexU-er).

What your gonna need:

  • Raspberry Pi (w/Power Source)
  • Vex Cortex (w/battery)
  • Jumper wires (for connecting the two electronically)
  • RobotC (or any language if you feel like porting it)
  • A micro SD card loaded with the latest version of Raspbian

####Connections The two are connected VIA the UART port(s). On the raspberry PI that is GPIO 8 and 10 (Link) and on the cortex we use UART1 (we can use either port but UART1 is unused by default) (Link). They are connected as seen below, with the Ground connected. The Rx and Tx are crossed over as the data is being transmitted from one end and received at the other.

Gnd -> Gnd
Rx  -> Tx
Tx  -> Rx

####Commands For full documentation and usage information, please see the included wiki.

###License This work is under Creative Commons Attribution Non-Commercial. Please contact me if you wish to use this work under another premise.

vexserial's People

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.