Varying power and pulsing outputs

From Smart Box
Jump to navigation Jump to search

You can also vary the power on the digital outputs and set up pulse sequences as well. A pulsed output could be used to switch a buzzer on and off continuously to act as an alarm. The example in fig. 15 uses the POWER command to slowly increase the brightness of a bulb connected to digital output 0.

fig. 15

Figure 16 shows how a number of outputs can be pulsed independently. For example a buggy could sound a buzzer and flash lights at a different rate to give a warning when it reverses. The normal SWITCH ON command is followed by the pulse period, the first figure shows how many centiseconds the output will be on for, the second number is the off period. The maximum value in either case is 255 centiseconds.

fig. 16