Method: Phidgets::PowerGuard#setOverVoltage
- Defined in:
- ext/phidgets/phidgets_power_guard.c
#setOverVoltage(over_voltage) ⇒ Object Also known as: over_voltage=
The device constantly monitors the output voltage, and if it exceeds the OverVoltage value, it will disconnect the input from the output. This functionality is critical for protecting power supplies from regenerated voltage coming from motors. Many power supplies assume that a higher than output expected voltage is related to an internal failure to the power supply, and will permanently disable themselves to protect the system. A typical safe value is to set OverVoltage to 1-2 volts higher than the output voltage of the supply. For instance, a 12V supply would be protected by setting OverVoltage to 13V. The device will connect the input to the output again when the voltage drops to (OverVoltage - 1V).
25 26 27 28 |
# File 'ext/phidgets/phidgets_power_guard.c', line 25 VALUE ph_power_guard_set_over_voltage(VALUE self, VALUE over_voltage) { ph_raise(PhidgetPowerGuard_setOverVoltage((PhidgetPowerGuardHandle)get_ph_handle(self), NUM2DBL(over_voltage))); return Qnil; } |