LOMO Lubitel 166B Digital Camera – Page 2
Software and features
The PI uses Raspberry PI OS on a 32GB SD card. The SPI interface must be on to use the Waveshare screen.
The programming is done in Python 3. Not my best language, please forgive my rubbish code, and please send me corrections for obvious blunders/improvments!
I have WIFI enabled on the Raspberry Pi, and all programming is done on a desktop, using Filezilla to upload and download the source to/from the desktop, and Notepad++ to write the code. SSH and SFTP are used to communicate with the PI over the WIFI network.
There are a few packages to download and install for this code to work – RPiGPIO,numpy, opencv, picamera and the package for the RTC (real time clock).
Other stuff like the libraries for the Waveshare screen need to be installed, including some extra Python libraries, and also the FBCP Tansplant packageto speed up display on the screen.
I have ruthlessly stolen ideas and code samples from many places. particularly to help with the rotary encoder, too many to mention as I used something from everwhere! However, I am particularly grateful to Arducam for ideas and some code to enable me to write my focus assist function. I had to throw away most of their really good stuff, as my lens is not autofocus, but the use of opencv is straight from their page.