Abstract:
A method for recognizing a color of a printing ribbon includes providing a printing ribbon having a repeated sequence of dyed and undyed regions such that output of a photosensor sensing the ribbon is a low or high level based on a threshold. The method includes illuminating a sensing area of the ribbon, moving the ribbon relative to the sensing area, measuring output of the photosensor over time as the ribbon moves, correlating output of the photosensor to the repeated sequence as the ribbon moves to determine the color of the ribbon under the print head, and setting operational parameters of the printer and print head according to the color of the ribbon under the print head. The repeated sequence is unprintable black dye, yellow dye with undyed ribbon, magenta dye, undyed ribbon, cyan dye, and transparent overcoating with undyed ribbon.