This paper presents a study carried out in a rural town in the Maya area of Quintana Roo, Mexico, where a photovoltaic system isolated from the electrical grid was installed, which supplies irrigation equipment to be used by an agricultural community. The ideal energy manager for the working conditions was analyzed and a device was designed according to the characteristics of the region. It was simulated with the help of an algorithm in order to improve the efficiency with respect to the energy obtained and the demand of the system during its operation in real conditions. It concludes by providing some recommendations for the operation of the system.