Segway

Hello guys!
I`m making segway.
But I have no idea where could i found this code for balance and steering.
Maybe some one has this code or could help me with this..

Lot of thanks.

Google "arduino balancing robot"

You making a full size "segway" for humans to ride on? Or a mini balancing robot?