Autonomous navigation in unstructured environments is a common topic of research, being motivated by robotic competitions and involving several sets of skills. We present a modular architecture to integrate different components for path planning and navigation of an autonomous mobile robot. This architecture was developed in order to participate in the RoboMagellan competition hosted by RoboGames. It is divided in the organizational, functional and executive levels in order to secure that the developed system has programmability, autonomy, adaptability and extensibility. Global and local localization strategies use unscented and extended Kalman filters (UKF and EKF) to fuse data from a Global Positioning System (GPS) receiver, inertial measurement unit (IMU), odometry and camera. Movement is controlled by a model reference adaptive controller (MRAC) and a proportional controller. To avoid obstacles a deformable virtual zone (DVZ) approach is used. The architecture was tested in simulated environments and with a real robot, providing a very flexible approach to testing different configurations.