This project is my first documented project on hackaday.io. In the spare parts bin I had a composite video screen (also used for FPV flying) and had a raspberry Pi, and seeing how cheap the raspberry pi camera with no IR filter was, I decided to build some cheap night vision goggles.
Raspberry Pi Model A 512 Mb RAM
Processes the camera input and outputs a live feed to the screen.
Pi NoIR Camera
Camera with no IR filter allowing for "night vision."
Today I have begun working on the software aspect of the project as I don't currently have access to the 3D modeling resources I was using yesterday, which involves two main parts. The first is the python script that opens the video file stream to be displayed on the screen using the picamera library. The code has mostly been copied, and the complete documentation can be found here.
The second main part is the launcher script, which was created with help from this tutorial on instructables. This script is necessary because as soon as the goggles are turned on, the pi boots and needs to start displaying the feed with no user input, as there will be no user input devices connected. The python file is called "NVG.py" and can be found in the NVG folder in the root directory. It also needs to be made executable, as illustrated in the tutorial.
#!/bin/sh# launcher.sh# navigate to home directory, then to this directory, then execute the script, then back homecd /
sudo python NVG.py
The crontab background process needs to be modified so that the file runs on startup, using the following lines:
sudo crontab -e
@reboot sh /home/pi/bbt/launcher.sh >/home/pi/logs/cronlog2>&1
Now the NVG.py file should be launched on startup and the video stream should be displayed to the screen.
First day seriously working on the project, and I have begun hand sketching and using Rhinoceros 5 3D for the modeling of the headset that will house the pi, screen, LEDs, and the battery pack for the LEDs. The pi will be powered by an external USB battery pack that will be run from a backpack, in addition to the screen battery pack. I also started writing the python script with the picamera library that will be used to start a live stream on the screen.
The pi runs off of USB voltage (5V), the LEDS 1.7V, and the screen 12V, so keeping all the power systems organized and condensed will be a challenge.