User Manual
29
Click the Operators and drag out the block for value comparison.
The complete program is shown as below:
If the sound exceeds 150db, PiSmart will remind you “Too noisy! Please keep quiet!”
PWM Port
The PWM Port in the PiSmart comes with the PWM control function. PWM, or pulse width
modulation, is to control the analog circuits with the digital output of the microcontroller
(MCU), namely a method for digital encoding the analog signal level. You can carry out the
PWM control via direct programing the PWM port.
In Dragit, you can use the block for PWM control. Select PWM 0-PWM 7
on the drop-down list. In the figure on the right below, you can enter a number ranging
SunFounder