In this paper, we present the development of charge and discharge controller of battery used in low power wind applications. This controller allows on the one hand protecting the battery against overcharging and deep discharge. On the other hand, it helps to protect the turbine against strong winds. It is controlled by PIC microcontroller 16F877A. This control function is performed using an algorithm that continuously compares the battery voltage to the charge and discharge thresholds, and tilting towards dissipation resistors. The control signals generated by the microcontroller are PWM (Pulse Width Modulation) type. The validation of the main functions of the controller is presented.