For this case a zener diode would work well.
Have a look here:
http://www.reuk.co.uk/Zener-Diode-Voltage-Regulator.htm
It provides a tool to calculate the required resistor value.
For this case a zener diode would work well.
Have a look here:
http://www.reuk.co.uk/Zener-Diode-Voltage-Regulator.htm
It provides a tool to calculate the required resistor value.