Servo not rotating full 180 degrees using arduino servo example

Read this guide:

Post your sketch ( don't forget the code tags! ) and show a schematic how it is all wired ( inclusive the power source ).
Without substantial information, no help is possible. Be aware that we cannot see what is on your table - so you must tell us everything.