{"id":3299,"date":"2021-08-31T08:58:46","date_gmt":"2021-08-30T20:58:46","guid":{"rendered":"http:\/\/signsofsuccess.co.nz\/?page_id=3299"},"modified":"2023-02-20T23:53:09","modified_gmt":"2023-02-20T23:53:09","slug":"lomo-lubitel-166b-digital-camera-page-2","status":"publish","type":"page","link":"https:\/\/glover.gen.nz\/wordpress\/lomo-lubitel-166b-digital-camera-page-2\/","title":{"rendered":"LOMO Lubitel 166B Digital Camera &#8211; Page 2"},"content":{"rendered":"<p><a href=\"http:\/\/glover.gen.nz\/wordpress\/lomo-lubitel-166b-digital-camera\/\">Back to main page<\/a><\/p>\n<h2>Software and features<\/h2>\n<p>The PI uses Raspberry PI OS on a 32GB SD card. The SPI interface must be on to use the Waveshare screen.<\/p>\n<p>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!<\/p>\n<p>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.<\/p>\n<p>There are a few packages to download and install for this code to work &#8211; RPiGPIO,numpy, opencv, picamera and the package for the RTC\u00a0 (real time clock).<\/p>\n<p>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.<\/p>\n<p>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<a href=\"https:\/\/www.arducam.com\/raspberry-pi-camera\/autofocus\/\"> Arducam<\/a> 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.<\/p>\n<h3><a href=\"http:\/\/glover.gen.nz\/wordpress\/lomo-lubitel-166b-digital-camera\/\">Back to page 1<\/a><\/h3>\n<h3>\nMain Module Source<\/h3>\n<pre class=\"lang:default decode:true \" title=\"Lubitel 166B - Main Control Module\" data-url=\"http:\/\/glover.gen.nz\/docs\/Lubitel166B.txt\"><\/pre>\n<h3>GUI Module Source<\/h3>\n<pre class=\"lang:python decode:true \" title=\"Lubitel 1668 GUI Module\" data-url=\"http:\/\/glover.gen.nz\/docs\/Lubitel166BGUI-1.txt\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Back to main page 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, &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/glover.gen.nz\/wordpress\/lomo-lubitel-166b-digital-camera-page-2\/\"> <span class=\"screen-reader-text\">LOMO Lubitel 166B Digital Camera &#8211; Page 2<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3299","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/pages\/3299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=3299"}],"version-history":[{"count":4,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/pages\/3299\/revisions"}],"predecessor-version":[{"id":3529,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/pages\/3299\/revisions\/3529"}],"wp:attachment":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=3299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}