The instructions below are for the NXT rather than the EV3 but it should be possible to adapt them to make them work for the EV3.
Lego ev3 gyro boy program download Create your FREE account now Download and open this file in the LEGO MINDSTORMS application. This program consists of two configuration blocks, a balance loop, and a drive control loop, as shown below.
The section below refers to the Lego Digital Designer program (LDD) which is free to download HERE (be sure to get the latest version which is 4.3 or later since earlier version don't include the EV3 parts). Assuming you have 4.3 or later you can get the EV3 parts by choosing the Mindstorms theme and then clicking the 'Filter bricks by boxes' button at bottom left and then choosing the EV3 set that you have.
LDD is a CAD (Computer Aided Design) program that lets you assemble virtual Lego parts in a 3D environment that feels like Blender but which is much simpler. Once the model is built the program can generate a sequence of building instructions - everything looks smart but the program is far from perfect, with the building instructions often showing pieces floating in mid air, for example, or coming together in an impossible order. On my first attempt at using the program I made this model of the RileyRover (without its cables) in two or three hours. With a bit more experience it think it could be done in 30 minutes.