If you connect the V5 brain to the Pi with a USB cable, you can open a serial connection between them. On the V5 brain you’ll be able to read from and write to that connection using the standard input and standard output.
I’m trying to choose a VEX system to buy.
Which, if any, VEX product line’s ‘robot brain’ modules can run a user program that sends requests for information to a listening PC and then waits and process responses from the PC?
If you have any examples or other references that demonstrate or describe how I can accomplish this, that would be great.
Just in case my question is not clear, I’ll provide an example of the desired scenario.
I write a robot brain user program that uses some sort of VEX…
VEXcode V5 preview 1 was released earlier this week with Python support. The way Python is implemented is a little (well, a lot really) different from C++.
A program written in C has to be converted from the text source into a machine executable, this is done by compiling the source code and then linking with libraries that allow the program to operate on the V5.
A VEXcode Python program is sent to the V5 brain as text, a special program that is installed on the V5 brain then uses that file d…
On a few other threads people mentioned using the USB port to communicate with a Raspberry Pi. I think this could be really useful for data collection, getting live values, etc. However, I couldn’t find an example program for how to do this in VEXcode. If anyone has successfully done this in VEXcode, I’d appreciate if you shared!