Sleep spindles are one of the prominent EEG oscillatory rhythms of non-rapid eye movement sleep. In the memory consolidation, these oscillations have an important role in the processes of long-term potentiation and synaptic plasticity. Moreover, the activity (spindle density and/or sigma power) of spindles has a linear association with learning performance in different paradigms. According to the experimental observations, the sleep spindle activity can be improved by closed loop acoustic stimulations (CLAS) which eventually improve memory performance. To examine the effects of CLAS on spindles, we propose a biophysical thalamocortical model for slow oscillations (SOs) and sleep spindles. In addition, closed loop stimulation protocols are applied on a thalamic network. Our model results show that the power of spindles is increased when stimulation cues are applied at the commencing of an SO Down-to-Up-state transition, but that activity gradually decreases when cues are applied with an increased time delay from this SO phase. Conversely, stimulation is not effective when cues are applied during the transition of an Up-to-Down-state. Furthermore, our model suggests that a strong inhibitory input from the reticular (RE) layer to the thalamocortical (TC) layer in the thalamic network shifts leads to an emergence of spindle activity at the Up-to-Down-state transition (rather than at Down-to-Up-state transition), and the spindle frequency is also reduced (8-11 Hz) by thalamic inhibition.