With this device you can view photographic films directly on the TV screen in negative and positive images, save the necessary ones on a digital medium , edit further in graphical programs.
Tools and materials:
– Raspberry PI 3B;
Step one: adapter
The master has printed the adapter on a 3D printer. A camera is mounted in its upper narrow part. At the bottom there is a window for the film. Before developing it, the master measures one frame per film. The focal length defines 44 mm.
Below you can download the file for adapter printing.
Step two: LED panel
The lightbar is very important to get the best photos. The light should be uniform without bright gaps. With it, the film will be illuminated from below.
First, the wizard cuts out a rectangle from acrylic.
Marks and drills mounting holes .
Sands the workpiece. Acrylic is transparent and by grinding the master gets good light diffusion on the acrylic. Sand thoroughly without deep scratches. Each scratch will be displayed on the negative.
LEDs also need to be prepared. The master grinds off the upper part of each of the twelve LEDs.
Adheres LEDs to opposite sides of the panel. There are six for each.
Mounts LEDs in parallel. Installs a 100 ohm resistor on each circuit. Will connect to Russerie Pin2 (+ 5V) and Pin6 (GND).
Fastens the LED panel to the adapter .
Powers the LEDs and checks the operation.
Step three: buttons < br> This device only requires two operations. The first is to allow the operator to view and record images. The second is to exit the program.
The wizard decided to use the green button to record and the red button to exit. Buttons connect to pins 14, 16, 18 and 20.
Step four: case
The master also printed the case for the device on a 3D printer.
< a href = "https://usamodelkina.ru/uploads/posts/2020-02/1582130294_1-46.jpg" rel = "prettyPhoto"> Files for printing can be downloaded below.
Step five: code for testing
The wizard took the code from the site RaspberryPi.org By default, the image resolution is set to the same as the monitor resolution. The maximum resolution for photos is 2592 × 1944.
Ideally, it is better to use a macro lens, but the master did not receive it in time and installed what it was.
The top of the adapter is designed for the Raspberry Pi V2 camera. It is held in place with 4 screws.
The wizard used the following code for testing:
from picamera import PiCamera from time import sleep camera = PiCamera () camera.start_preview () camera.awb_mode = & # 39; auto & # 39; camera.image_effect = & # 39; negative & # 39; sleep (150) camera.capture (& # 39; /home/pi/Desktop/negative.jpg') camera.stop_preview ()
from picamera import PiCamera from time import sleep from gpiozero import Button button = Button (23) button1 = Button (24) camera = PiCamera () camera.awb_mode = & # 39; auto & # 39; camera.image_effect = & # 39; negative & # 39; camera.start_preview () image = 1 while True & # 58; try & # 58; if button1.is_pressed & # 58; camera.stop_preview () break if button.is_pressed & # 58; camera.capture (& # 39; /home/pi/conversions/Convertion%03d.jpg'% image) image + = 1 except KeyboardInterrupt & # 58; camera.stop_preview () break The wizard has adjusted the images for better quality snapshots. from picamera import PiCamera from time import sleep from gpiozero import Button import datetime import time #date code for saving images date = datetime.datetime.now (). strftime (& # 34;% d_% H_% M_% S & # 34;) # green button button = Button (23) # red button button1 = Button (24) camera = PiCamera () # camera image adjustment and viewing on monitor camera.resolution = (2592, 1944) camera.awb_mode = & # 39; auto & # 39; camera.image_effect = & # 39; negative & # 39; # display image to monitor camera.start_preview () # image saving increment image = 1 while True & # 58; try & # 58; # red exit button if button1.is_pressed & # 58; #camera shutdown camera.stop_preview () break # green button capture if button.is_pressed & # 58; # save image location and formatting camera.capture (& # 39;/home/pi/conversions/conversion & # 39; + date + & # 39;% 03d.jpg & # 39;% image) # image saving increment image + = 1 # keyboard program exit except KeyboardInterrupt & # 58; #camera shutdown camera.stop_preview () break
Step Seven: Device Operation
Run the code in the IDE. Pressing the green button will take a still image of the negative and store it in internal memory. The images are saved in the directory.
The wizard then moved them to a USB drive and to his computer for processing in Photoshop.
The red button exits the program. You can also control the device by connecting a keyboard.