Homemade voltage regulator