In this study, the design and implementation of a fuzzy logic (FL) based automatic gain controller card (AGC) is performed in order to control the pump laser current with respect to signal power and signal wavelength. The FL-AGC card consists of an amplifier, an analogue to digital converter (ADC), a digital to analogue converter (DAC), and a FL based software that is embedded to a microcontroller. With this configuration, gain flattening at the output of the erbium doped fibre amplifier (EDFA) along C band is achieved. In this way, ergonomically designed FL-AGC card can be easily matched with EDFAs and can be applicable to optical system applications. (C) 2014 Elsevier GmbH. All rights reserved.