Ingredient
- Raspberry Pi Zero W
- Camera / NoIR Camera
- Raspberry Pi Zero Case
- SD Card (16G)
- USB Data Cable
Difference between Camera and NoIR Camera
It is nearly the same but the IR filter, mean that NoIR can perform better in night but the image will look weired in day light. There are some camera can switch the IR filter on / off by providing voltage, like this. . Programming on such devices is beyond our tutorial.
Using RPi-Cam-Web-Interface
package
Using RPi IR-Cut Camera
RPi IR-CUT Camera默认工作在常规模式。 执行命令:
sudo nano /boot/config.txt
,在最后一行加入disable_camera_led=1
,保存并重启树莓派后Camera将工作在夜视模式。 如需恢复到常规模式,只需删除disable_camera_led=1
,保存并重启树莓派即可。 如需灵活控制显示模式,可通过树莓派的GPIO接口连接到以下位置,通过改变GPIO的电平来切换不同的模式(高电平为常规模式,低电平为夜视模式)。