One of the main factors affecting protein structure in solution is pH. Traditionally, to study pH-dependent conformational changes in proteins, the concentration of the H+ions is adjusted manually, complicating real-time analyses, hampering dynamic pH regulation, and consequently leading to a limited number of tested pH levels. Here, we present a programmable device, a scanning pH-meter, that can automatically generate different types of pH ramps and waveforms in a solution. A feedback loop algorithm calculates the required flow rates of the acid/base titrants, allowing one, for example, to generate periodic pH sine waveforms to study the reversibility of protein folding by fluorescence spectroscopy. Interestingly, for some proteins, the fluorescence intensity profiles recorded in such a periodically oscillating pH environment display hysteretic behavior indicating an asymmetry in the sequence of the protein unfolding/refolding events, which can most likely be attributed to their distinct kinetics. Another useful application of the scanning pH-meter concerns coupling it with an electrospray ionization mass spectrometer to observe pH-induced structural changes in proteins as revealed by their varying charge-state distributions. We anticipate a broad range of applications of the scanning pH-meter developed here, including protein folding studies, determination of the optimum pH for achieving maximum fluorescence intensity, and characterization of fluorescent dyes and other synthetic materials.