A pulsed molecular beam source with an electromagnetic valve controlled by a microcomputer has been developed. Relative intensities and velocity distributions of the molecular beams from the source with a convergent and a convergent-divergent nozzles are measured. For these measurements a data acquisition system using the microcomputer has been also developed. For the convergent nozzle the measured beam intensity and speed ratio are consistent with theoretical considerations and the existing data. For the nozzle with a divergent section, beams of about 20 times larger in intensity and two times in speed ratio compared with those for the convergent one are obtained.