-
Notifications
You must be signed in to change notification settings - Fork 36
Sensors
BlockPi support many different kinds of single output digital sensors.
For example, a infrared trace sensor like this
can make an infrared alarm with a high-level trigger active buzzer:
PS: The IR sensor in this tutorial outputs 0 when it's blocked.
We can simulate a passageway induction lamp by using a light sensor, a sound sensor and a LED.
The lamp won't light up in the day when it's bright, but will light up for a few seconds when there is loud noise at dark night.
See the video below:
https://video.zhihu.com/video/1210300305264504832
PS: The sound sensor in this tutorial outputs 0 when there is loud sound, the light sensor outputs 0 when it's bright.
BlockPi also support HC-SR04 ultrasonic distance sensor. For example, you can use it to simulate a backing-up indicator lamp in a vehicle with a RGB LED.
See the video below: