We introduce a method for quantifying Stentor habituation using a microcontroller board-linked apparatus that can deliver mechanical pulses at a specified force and frequency. We also include methods for assembling the apparatus and setting up the experiment in a way that minimizes external perturbations.