In this project, we aimed to design a computer-controlled refractometer with the basic tools we had. For this purpose we used a hollow glass prism which is filled with a liquid whose refractive index to be measured. We placed this prism on a stepper motor in front of a laser module. So the laser beam refracts as it passes through this liquid and falls to the screen on the other side of the prism with a deviation. To determine angle of this deviation, we used a webcam. We adjusted the angle of incidence of the beam by rotating the stepper motor. A Python code is used to determine the amount of deviation and to rotate the stepper motor via Arduino. In order to test the refractometer we designed, refractive indices of different liquids were measured and presented with error calculations.