We describe a spraying-plunging method for preparing cryoelectron microscopy (cryo-EM) grids with vitreous ice of controllable, highly consistent thickness using a microfluidic device. The new polydimethylsiloxane (PDMS)-based sprayer was tested with apoferritin. We demonstrate that the structure can be solved to high resolution with this method of sample preparation. Besides replacing the conventional pipetting-blotting-plunging method, one of many potential applications of the new sprayer is in time-resolved cryo-EM, as part of a PDMS-based microfluidic reaction channel to study short-lived intermediates on the timescale of 10-1,000 ms.