For powering an electromagnet with adjustable voltage, standard laboratory DC power supplies are recommended, though they may be costly for hobbyists. Switched-mode power supplies, like those found in computers, can also be a viable option, as they provide DC output and are often more affordable. Alternatively, creating a resistor voltage divider with a potentiometer allows for adjustable voltage using batteries, but requires basic circuit-building skills. To maintain a constant voltage from a battery, using a higher voltage battery with a zener diode can be effective, though it necessitates some electronics knowledge. Safety is paramount, so understanding the equipment and its usage is essential before proceeding.