Reinforcement learning ( Machine Learning ) in VEX

After implementing PID, Motion Profiling, and Odometery in Vex Robotics, I wanted to take this to the next level and try to implement Reinforcement Learning via Machine Learning as a side fun project to better understand and grasp the ideas of AI through VEX Robotics. I am looking out to see if others would like to collaborate with me on this topic. If you are interested in joining, contact me through discord. :slight_smile:

Username: Robotic Pizza#9607.


LMAO. The amount of iterations this is going to take to train seems unreasonable. Sounds like fun though.

1 Like

There was a somewhat recent discussion on VTOW, and the consensus is (as it always has been) that there is no use for machine learning in vex, given the limited processing of the brain and not much sensor information to process.


Here are the relevant quotes:

From Thomas | Hail

On the note about using “AI” in autonomous, I don’t think the v5 Brain can handle any remotely intensive ML application. You should however be using sensors in autonomous to make sure your routine is accurate and precise. decision making autonomous programs are extremely complicated and due to the isolated nature of both the VRC and VEXU auton periods I don’t believe having any decision making would be worthwhile due to the time it would take to code for not the greatest of gains. If you do want to check out robots doing decision making in a vex setting the VAIC competition is starting up this season which will be fully autonomous bots, most with complex onboard decision making

From me:

technically the v5 brain has enough hardware to make it possible to run a ml model on tensorflow lite
but yeah,

  • no decision making (or obstacle avoidance) needed in VRC/VEXU
  • I have no idea what you would use ML for, the sensors aren’t great and you don’t have a ton of data in the first place
  • the v5 can’t train a model, so you will have to find a way to simulate/get data from the v5 and train on a pc

Only way I could see this being done effectively is through the use of some simulator (namely gazebo), to simulate games but, as stated above, the amount of iterations to achieve even a small amount of success pretty much rules this out.
If you are truly interested in machine learning, start a VEX AI team. I personally cannot wait for the upcoming season and like the idea of competing against collegiate students.
I also heard rumors that vex was considering legalizing raspberry pi’s for vrc, which would definitely make ml viable in vrc (most likely not anytime soon though).

1 Like

V5 does not have the power or the reason to implement machine learning.

but, if you’re doing that, might I suggest a blockchain as well?


As I understand it, blockchains are used, mostly in cryptocurrency, to increase security. Not as a way to store data that is not really all that private.

yes I understand, I was just making a joke about how everything these days is blockchain machine learning because those are the buzzwords that sell kickstarter campaigns