Relevant for:
Optionally, a PWM function can be activated for each output. With PWM, instead of one bit per channel, a full byte value from 0 … 100 is output, which defines the pulse width at the output in percent. The PWM function is useful for controlling parts of quantities, e.g. regulating a water supply or dimming lights.
▷ Define in the Value Editor under MEM OutputPWMActive, for which of the outputs the PWM should be activated.
Example: If PWM is to be activated for outputs 1 and 2, enter the decimal value 3.
❯ This means that instead of the outputs O_1 and O_2 , the corresponding outputs PWM_1 and PWM_2 can now be used.
▷ Under , specify the frequency at which the PWM signal is to be generated. A PWM frequency can be set for each RevPi expansion module:
| PWM Frequency | Duty cycle[1] |
|---|---|
40 Hz |
1 % |
80 Hz |
2 % |
160 Hz |
4 % |
200 Hz |
5 % |
400 Hz |
10 % |
▷ Apply PMW_1 … XX for the outputs activated as PWM to enter the desired PWM value in %.
▷ Save the configuration with .
▷ Restart the driver by selecting .
|
Note
|
Alternatively, you can address the PWM outputs with piTest using the command |