Skip to content

Solid packet based communication between a VEX Cortex and a Raspberry Pi through UART (Serial).

Notifications You must be signed in to change notification settings

Innoviox/VEXSerial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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.

About

Solid packet based communication between a VEX Cortex and a Raspberry Pi through UART (Serial).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 70.3%
  • Python 29.7%