self balancing rc monster truck with adxl335.

i had an old rc monster truck laying around. i wanted to convert it into a self balancing robot with an adxl335 with arduino. as i am a noobie to reverse pendulum robots can someone pls help me out with the code.

here is video of someones robot. the monster truck has one motor to drive the back wheels as any other rc.