Added lens section + some bugfixes and improvements

This commit is contained in:
nocantsin 2021-06-07 23:43:56 +02:00
parent 93fd9271a7
commit 3c58717e6d
1 changed files with 55 additions and 17 deletions

View File

@ -1,4 +1,4 @@
# User Manual
# User Guide
**Early Disclaimer: CinePI-2K's [current release](https://github.com/schoolpost/CinePI/releases) is far from being considered stable, so use it at your own risk. Do not expect it to work flawlessly. Expect lots of bugs and dropped frames! This is just the nature of things, but hopefully through a collaborative effort, we'll get to a stable working version soon!**
@ -14,20 +14,20 @@ It is difficult to package CinePI as an installable "app" for existing Raspberry
- Preferably an additional heat sink with cooling fans for the Raspberry Pi. These are being offered by various third-party manufacturers. It must leave access to the GPIO and camera ports.
- Raspberry Pi High Quality Camera module
- 8GB Micro SD card for the CinePI-2K operating system. (You can also use larger cards if 8GB are not available, but they won't offer any advantage.)
- Twin Dupont cable and a momentary push button. (These can be bought for a few dollars in any electronics supply store. If you don't want to solder, buy a push button with screw connectors.)
- Fast external USB 3.x SSD drive to act as your camera's storage medium. Samsung's T5 drives are a proven solution. Other USB SSD drives (respectively USB housings for SATA or NVME SSDs) can be used if they support USB 3 and the UASP protocol. Make sure to connect the drive with the originally supplied USB cable, respectively with a USB 3 cable that reliably supports high transfer speeds. Slow media or wrong cables will result in dropped frames.
- Twin Dupont cable and a momentary push button. (These can be bought for a few dollars in any electronics supply store. When the CinePi isn't built into a protective camera housing, a push button with screw connectors for the cables will be more robust than a push button that requires soldering the cables to it.) You can also skip the push button and simply leave the two blank cable ends available to the camera operator, who would then have to briefly short-circuit them in order to trigger recording.
- A fast external USB 3.x SSD drive to act as your camera's storage medium. Samsung's T5 drives are a proven solution. Other USB SSD drives (respectively USB housings for SATA or NVME SSDs) can be used if they support USB 3 and the UASP protocol. Make sure to connect the drive to one the Raspberry Pi's USB 3 ports (the ones with the blue socket) using the USB cable included with the drive, or a USB 3 cable that reliably supports high transfer speeds. Slow media or wrong cables will result in dropped frames.
The USB SSD disk can be formatted in **ExFAT** (universal file system for flash memory) / **EXT4** (Linux file system) / **NTFS** (Windows file system). EXT4 is recommended and performs currently the best, next best is ExFAT. NTFS is supported but not recommended due to ongoing development of the NTFS3 driver that is used in this release.
**Disks must be labeled "RAW" when being formatted. The CinePI-2K will not recognize disks without this label.**
- HDMI display/monitor, with a suitable cable to connect it to the Raspberry Pi's Micro HDMI port. A video field monitor (with focus peaking, zebras and punch-in focus) is recommended; budget models ($100-$200) are sufficient.
- For using the camera in the field, a USB power bank with power delivery (PD), or a comparable solution for mobile USB power (such as Blind Spot Gear's Power Junkie for Sony NP-F batteries if you want to use the same batteries for the camera and a video field monitor).
- HDMI display/monitor, with a suitable cable to connect it to the Raspberry Pi's Micro HDMI port. A video field monitor (with focus peaking, zebras and punch-in focus) is highly recommended; budget models ($100-$200) are sufficient.
- For using the camera in the field, a USB power bank with power delivery (PD), or a comparable solution for mobile USB power (such as [Blind Spot Gear's Power Junkie](https://www.blindspotgear.com/power-junkie) for Sony NP-F batteries if you want to use the same batteries for the camera and a video field monitor).
- For controlling the camera's settings (ISO, shutter angle, white balance), you need a smartphone app that talks to the CinePI-2K via Bluetooth using Blackmagic's Bluetooth camera control protocol originally developed for the Blackmagic Pocket 4K and 6K cameras. Existing iOS and Android apps for those cameras should be principally be able to control the CinePI-2K. The following iOS app has been tested and does work:
- [Bluetooth+ for Blackmagic](https://apps.apple.com/us/app/bluetooth-for-blackmagic/id1376947780)
The following Android app works principally, but not reliably:
The following Android app works principally:
- [My Camera Controller](https://play.google.com/store/apps/details?id=com.taskdesigns786.android.mycameracontroller)
@ -56,11 +56,9 @@ For a visual installation guide, you can watch [this video](https://vimeo.com/51
2. Attach your camera module with the ribbon band cable to the camera connector on the Raspberry Pi, as explained in the manual of the camera module. Use the tripod screw mount of the camera module to secure it on a tabletop micro tripod, clamp, magic arm or similar.
3. Solder or screw the push button to the loose ends of the twin Dupont cable. Connect one cable with the Raspberry Pi's GPIO 4 and the other with Ground:
3. Solder or screw the push button to the loose ends of the twin Dupont cable, or leave the loose ends available to the camera operator. Connect one cable with the Raspberry Pi's GPIO 4 and the other with Ground. A GPIO diagram can be found [here](https://www.raspberrypi.org/documentation/usage/gpio/) in the documentation of the Raspberry Pi project.
![Raspberry Pi 4b GPIO diagram](https://www.raspberrypi.org/documentation/usage/gpio/images/GPIO-Pinout-Diagram-2.png)
4. Screw your lens into the camera module. If you use a c-mount lens, keep the spacer ring on the camera module. If you use a CS mount (CCTV) lens, screw the spacer ring off the camera module. - In doubt, you can check later whether the lens will be able to focus to infinity, and remove or reattach the ring accordingly.
4. Screw your lens into the camera module. If you use a c-mount lens, keep the 5mm spacer ring on the camera module. If you use a CS mount (CCTV) lens, screw the spacer ring off the camera module. - In doubt, you can check later whether the lens will be able to focus to infinity, and remove or reattach the ring accordingly.
5. Put the Micro SD card that you flashed with the CinePI-2K software into the Raspberry Pi's Micro SD card slot.
@ -71,7 +69,6 @@ For a visual installation guide, you can watch [this video](https://vimeo.com/51
### First boot
- Switch on the monitor first.
- Power up the Raspberry Pi by attaching it to USB power.
@ -84,13 +81,13 @@ For a visual installation guide, you can watch [this video](https://vimeo.com/51
#### Troubleshooting
If the camera image stays black even after waiting for a longer time, while you see the CinePI-2K's control display (showing ISO, shutter angle, system temperature etc.), make sure that the lens cap of your lens is off.
- If the camera image stays black even after waiting for a longer time, while you see the CinePI-2K's control display (showing ISO, shutter angle, system temperature etc.), make sure that the lens cap of your lens is off.
If the image is still dark, point the camera to a light source, respectively a brighter lit scene, or increase ISO with the smartphone app (see section _Usage_).
- If the image is still dark, point the camera to a light source, respectively a brighter lit scene, or increase ISO with the smartphone app (see section _Usage_).
If your lens doesn't focus, but you only see a blurred-out image, either remove or (if you've already removed it) reattach the C-mount adapter screw mount ring that came with your Raspberry Pi's High Quality Camera module.
- If your lens doesn't focus, but you only see a blurred-out image, either remove or (if you've already removed it) reattach the C-mount adapter screw mount ring that came with your Raspberry Pi's High Quality Camera module.
If the camera display is shifted and partly cut off, switch off the monitor and switch it on again (while leaving the CinePI-2K running).
- If the camera display is shifted and partly cut off, switch off the monitor and switch it on again (while leaving the CinePI-2K running).
***
@ -105,7 +102,7 @@ In addition to the live view you will see a number of other settings/parameters
When you attach a USB 3.x SSD drive to the USB 3 slot of the Raspberry Pi, the disk will automatically be mounted and be ready for recording. (You will see the disk space in the bottom left being updated after your disk has been attached. If it indicates disk space that does not match the actual capacity of the drive you attached, then there might have been a mounting error. Re-attach the disk in this case.)
To trigger recording, press the button (connected GPIO 4 and ground, as described in the section _Camera Preparation_). Video recordings can only be made onto an external disk attached via USB 3.x.
To trigger recording, press the button or - if you didn't install a button - briefly short-circuit the two cable ends (connected to GPIO 4 and ground, as described in the section _Camera Preparation_). Video recordings can only be made onto an external disk attached via USB 3.x.
With the smartphone app (see section _Installation_), you can currently control the following parameters of the CinePI-2K:
@ -118,7 +115,48 @@ With the smartphone app (see section _Installation_), you can currently control
### Lens guide
[To be added.]
## CS mount vs. c-mount
The Raspberry High Quality Camera module supports two types of lenses:
1. CS mount (a standard for CCTV cameras)
2. c-mount (an older standard for 8mm and 16mm film cameras as well as for CCTV video cameras).
Both are screw mounts with identical diameters and mechanics. C-mount and CS mount lenses are indistinguishable from each other unless they have been labeled. The only difference between the two mounts is that CS mount has a shorter flange focal distance (i.e. a shorter distance between lens and sensor) of 12.526 mm than c-mount (17.526 mm). The black adapter ring included with the Raspberry Pi's High Quality Camera module serves as a 5mm spacer to make c-mount lenses fit the camera and have them correctly focus to infinity.
The Raspberry Pi Foundation sells inexpensive 6mm and 16mm CS mount lenses for the High Quality Camera module, which act as wide-angle and moderate tele lenses respectively. On internet marketplaces, you can easily find other CS mount and c-mount lenses, including vintage c-mount lenses for 8mm and 16mm cameras. As a rule of thumb, modern CS mount lenses will give your footage a high contrast video look, old c-mount lenses a softer and more filmic look. (Note: vintage film camera lenses can be pricey collectibles. It often makes more sense to look for defect old film cameras that include suitable - removable - lenses.)
Modern, high-resolution lenses are also more likely to provoke aliasing and moiré artefacts on the CinePi's recorded footage while lower-resolution vintage soften the image and thus prevent moiré.
## Sensor coverage and focal lengths
The Raspberry Pi High Quality Camera module uses a 1/2.3" sensor with a size of 7.564 * 5.476 mm. This means that CCTV lenses made for 1/2" sensors will cover the camera image without vignetting (i.e. without black corners).
In analog film terminology, the CinePi's sensor size of 7.564 * 5.476 mm sit right in between Super 8 (5.79 * 4,01 mm) and 16mm (10.26 * 7.49 mm) and is best comparable to Pathé's 9.5mm film format (8.2 * 6.15 mm).
16mm c-mount film lenses will therefore always cover the CinePi sensor without issues. According to our experience, Super 8 c-mount zooms can vignette at wide-angle settings. Adapted d-mount 8mm prime lenses (see next section) however tend to cover the sensor. (This also includes Kern's c-mount lenses for the Bolex H8 camera. They have a shorter flange focal distance than standard c-mount and can screwed on the CinePI without the c-mount spacer ring.)
Here's an overview of focal lengths for the CinePi, in comparison to common focal lengths for 35mm stills/full frame cameras:
| | super wide-angle | standard wide-angle | slight wide-angle | normal | portrait tele | standard tele | super tele |
|---------------------|---------------------|---------------------|---------------------|-------------------|----------|---------------|---------------|
| CinePi | 5 mm | 6 mm | 7 mm | 10.5 mm | 18 mm | 21 mm | 38mm
| 35mm full frame photo camera (for comparison) | 24 mm | 28 mm | 35 mm | 50 mm | 85 mm | 100 mm | 180 mm
## Adapting other lens mounts
D-mount lenses for Regular 8mm cameras (i.e. the older, 8mm reel-to-reel format with an image size of 4.5 * 3.3 mm that preceded Super 8) can be used on the CinePi with the help of a d-mount to c-mount adapter ring (manufactured by [Fotodiox](https://fotodioxpro.com/products/d-c-p)). Since d-mount has almost the same flange focal distance as CS mount (12.29 mm vs. 12.526 mm), such an adapted lens can be directly screwed onto the camera.
In the past, a number of lens mount adapters for common 35mm photo camera bayonets (Leica, Nikon F, M42, Minolta etc.) to c-mount were produced. These adapters can be used for mounting older manual photo camera lenses to the CinePi. However, the typical focal lengths of these lenses will make turn them into extreme tele focal lengths on the camera.
## Flange focal distance / back focus calibration
The thin, black, jagged metal rotating ring behind the lens mount is for fine-tuning the flange focal distance (respectively back focus) of any lens screwed onto the High Quality Camera module. This is a very useful feature of the camera module and particularly important for using 8 and 16mm parfocal film camera zoom lenses with the CinePi. Parfocality means that a zoom lens stays in focus when being zoomed in and out. (Most photo camera and cheaper CCTV zoom lenses aren't parfocal and lose focus while zooming.)
The best way to calibrate the back focus for a lens is to set its focus to infinity, point it at a far away object (such as a landmark on the horizon) and turn the back focus adjustment ring until the lens perfectly reaches infinity focus.
To set correct back focus for a parfocal zoom lens, the lens should first be calibrated to infnity as described above, then be focused onto a nearby object (in ca. 1-2m meters distance), zoomed in and out while fine-tuning back focus until the object stays in focus.
***