How to connect a Hobby ESC (speed control) to raspberry Pi – drive a 12v DC motor bi-directionally

This is a cheap off-the-shelf Electronic Speed Control rated at 320A (is it legitimate?) commonly used for RC cars. In this video I made Python code that allows our raspberry pi (or beaglebone) to drive the motors and we use a gamepad for user inputs. Example ESC around $15 at Amazon: Example ESC around $18 at Walmart: SCUTTLE Robot Project documentation: