Momwe mungapangire kamera ya digito ya Polaroid pazithunzi zotsika mtengo zotentha nthawi yomweyo

M'nkhaniyi, ndikuwuzani nkhani ya kamera yanga yaposachedwa: kamera ya digito ya Polaroid, yomwe imaphatikiza chosindikizira cha risiti ndi Raspberry Pi.Kuti ndimange, ndinatenga kamera yakale ya Polaroid Minute Maker, ndinachotsa matumbo, ndikugwiritsa ntchito kamera ya digito, chiwonetsero cha E-inki, chosindikizira cha risiti ndi wolamulira wa SNES kuti agwiritse ntchito kamera m'malo mwa ziwalo zamkati.Osayiwala kunditsata pa Instagram (@ade3).
Pepala lochokera ku kamera yokhala ndi chithunzi ndi lamatsenga pang'ono.Zimapangitsa chidwi, ndipo kanema pazenera la kamera yamakono yamakono amakupatsirani chisangalalo chimenecho.Makamera akale a Polaroid nthawi zonse amandimvetsa chisoni pang'ono chifukwa ndi makina opangidwa mwaluso kwambiri, koma filimuyo ikasiyidwa, imakhala ntchito zaluso zosasangalatsa, zosonkhanitsa fumbi pamashelefu athu.Bwanji ngati mutagwiritsa ntchito chosindikizira chamalisiti m'malo mogwiritsa ntchito kanema wapompopompo kuti mubweretse moyo watsopano ku makamera akalewa?
Zikakhala zosavuta kuti ndipange, nkhaniyi ifotokoza zambiri za momwe ndinapangira kamera.Ndimachita izi chifukwa ndikuyembekeza kuti kuyesa kwanga kudzalimbikitsa anthu ena kuyesa ntchitoyi paokha.Uku sikusintha kosavuta.M'malo mwake, uku kutha kukhala kusweka kwa kamera kovutirapo komwe ndidayesapo, koma ngati mungaganize zothana ndi ntchitoyi, ndiyesetsa kupereka zambiri kuchokera pazomwe ndakumana nazo kuti ndikutetezeni kuti musamamatire.
Chifukwa chiyani ndiyenera kuchita izi?Nditatha kujambula ndi kamera yanga ya blender, ndikufuna kuyesa njira zingapo.Kuyang'ana mndandanda wanga wa makamera, kamera ya Polaroid Minute Maker mwadzidzidzi idalumphira mwa ine ndikukhala chisankho choyenera kutembenuka kwa digito.Iyi ndi pulojekiti yabwino kwa ine chifukwa imaphatikiza zina mwazinthu zomwe ndikusewera nazo kale: Raspberry Pi, chiwonetsero cha E Ink ndi chosindikizira chamalisiti.Ziyikeni pamodzi, mupeza chiyani?Iyi ndi nkhani ya momwe kamera yanga ya digito ya Polaroid idapangidwira…
Ndawonapo anthu akuyesera ntchito zofanana, koma palibe amene wachita bwino kufotokoza momwe amachitira.Ndikuyembekeza kupewa cholakwika ichi.Chovuta cha polojekitiyi ndikuti magawo onse osiyanasiyana azigwira ntchito limodzi.Musanayambe kukankhira mbali zonse mu nkhani ya Polaroid, ndikupangira kuti mufalitse zonse poyesa ndikukhazikitsa zigawo zonse zosiyanasiyana.Izi zimakulepheretsani kulumikizanso ndikuchotsa kamera nthawi iliyonse mukakumana ndi chopinga.Pansipa, mutha kuwona magawo onse olumikizidwa ndikugwira ntchito zonse zisanalowedwe mumilandu ya Polaroid.
Ndinapanga mavidiyo kuti ndilembe momwe ndikupita.Ngati mukukonzekera kuthetsa ntchitoyi, ndiye kuti muyenera kuyamba ndi vidiyoyi ya mphindi 32 chifukwa mutha kuwona momwe zonse zikugwirizanirana ndikumvetsetsa zovuta zomwe mungakumane nazo.
Nazi zida ndi zida zomwe ndidagwiritsa ntchito.Zonse zikanenedwa, mtengo ukhoza kupitirira $200.Ndalama zazikulu zidzakhala Raspberry Pi (madola 35 mpaka 75 aku US), osindikiza (madola 50 mpaka 62 aku US), oyang'anira (madola 37 aku US) ndi makamera (madola 25 aku US).Gawo losangalatsa ndikupanga pulojekiti kukhala yanu, kotero kuti mtengo wanu udzakhala wosiyana malinga ndi polojekiti yomwe mukufuna kuiphatikiza kapena kuyikapo, kukweza kapena kutsitsa.Ili ndi gawo lomwe ndimagwiritsa ntchito:
Kamera yomwe ndimagwiritsa ntchito ndi kamera ya mphindi ya Polaroid.Ndikanati ndichitenso, ndingagwiritse ntchito makina osambira a Polaroid chifukwa ndi ofanana, koma gulu lakutsogolo ndilokongola kwambiri.Mosiyana ndi makamera atsopano a Polaroid, zitsanzozi zimakhala ndi malo ambiri mkati, ndipo zimakhala ndi chitseko kumbuyo chomwe chimakulolani kutsegula ndi kutseka kamera, yomwe ili yabwino kwambiri pa zosowa zathu.Chitani kusaka ndipo muyenera kupeza imodzi mwa makamera awa a Polaroid m'masitolo akale kapena pa eBay.Mutha kugula imodzi pamtengo wochepera $20.Pansipa, mutha kuwona Swinger (kumanzere) ndi Minute Maker (kumanja).
Mwachidziwitso, mutha kugwiritsa ntchito kamera iliyonse ya Polaroid pamtunduwu wa polojekiti.Ndilinso ndi makamera akumtunda okhala ndi mvuto ndikupindika, koma mwayi wa Swinger kapena Minute Maker ndikuti amapangidwa ndi pulasitiki yolimba ndipo alibe magawo ambiri osuntha kupatula khomo lakumbuyo.Chinthu choyamba ndikuchotsa matumbo onse ku kamera kuti tipeze malo azinthu zathu zonse zamagetsi.Zonse ziyenera kuchitidwa.Pamapeto pake, mudzawona mulu wa zinyalala, monga momwe zilili pansipa:
Mbali zambiri za kamera zimatha kuchotsedwa ndi pliers ndi mphamvu yankhanza.Zinthu izi sizinapatulidwe, ndiye kuti mumalimbana ndi guluu m'malo ena.Kuchotsa kutsogolo kwa Polaroid ndikovuta kuposa momwe kumawonekera.Pali zomangira mkati ndipo zida zina zimafunikira.Mwachiwonekere, Polaroid yekha ali nawo.Mutha kumasula ndi pliers, koma ndidasiya ndikukakamiza kutseka.Poyang'ana m'mbuyo, ndikuyenera kumvetsera kwambiri apa, koma zowonongeka zomwe ndinayambitsa zikhoza kukonzedwa ndi super glue.
Mukapambana, mudzamenyananso ndi ziwalo zomwe siziyenera kugawidwa.Momwemonso, pliers ndi brute force ndizofunikira.Samalani kuti musawononge chilichonse chowonekera kunja.
Lens ndi chimodzi mwazinthu zovuta kuchotsa.Kupatula kubowola dzenje mu galasi / pulasitiki ndikutulutsa, sindinaganizire njira zina zosavuta.Ndikufuna kusunga mawonekedwe a mandala momwe ndingathere kuti anthu asawone ngakhale kamera yaying'ono ya Raspberry Pi pakatikati pa mphete yakuda pomwe mandala adakhazikitsidwa kale.
Mu kanema wanga, ndinawonetsa kale ndi pambuyo poyerekezera zithunzi za Polaroid, kuti muwone zomwe mukufuna kuchotsa pa kamera.Samalani kuonetsetsa kuti gulu lakutsogolo likhoza kutsegulidwa ndi kutsekedwa mosavuta.Ganizirani za gululo ngati chokongoletsera.Nthawi zambiri, imakhazikika m'malo mwake, koma ngati mukufuna kulumikiza Raspberry Pi ku chowunikira ndi kiyibodi, mutha kuchotsa gulu lakutsogolo ndikulumikiza gwero lamagetsi.Mutha kupereka yankho lanu pano, koma ndidaganiza zogwiritsa ntchito maginito ngati njira yogwirizira gululo.Velcro ikuwoneka yofooka kwambiri.Zomangira ndizochuluka kwambiri.Ichi ndi chithunzi chojambula chosonyeza kamera ikutsegula ndikutseka gululo:
Ndinasankha Raspberry Pi 4 Model B wathunthu m'malo mwa Pi Zero yaying'ono.Izi ndikuwonjezera liwiro komanso mwina chifukwa ndine watsopano kumunda wa Raspberry Pi, kotero ndimakhala womasuka kugwiritsa ntchito.Mwachiwonekere, Pi Zero yaying'ono idzasewera zabwino zina pamalo opapatiza a Polaroid.Mau oyamba a Rasipiberi Pi ndi opitilira maphunzirowa, koma ngati ndinu watsopano ku Raspberry Pi, pali zinthu zambiri zomwe zikupezeka pano.
Malingaliro ambiri ndikutenga nthawi ndikuleza mtima.Ngati mukuchokera ku Mac kapena PC, mudzafunika nthawi kuti mudziwe bwino za Pi.Muyenera kuzolowera mzere wolamula ndikuwongolera maluso ena a Python coding.Ngati izi zimakupangitsani kuchita mantha (ndinali ndi mantha poyamba!), Chonde musakwiye.Malingana ngati muvomereza ndi kulimbikira ndi kuleza mtima, mudzapeza.Kusaka pa intaneti ndi kulimbikira kumatha kuthana ndi zopinga zonse zomwe mumakumana nazo.
Chithunzi pamwambapa chikuwonetsa komwe Raspberry Pi imayikidwa mu kamera ya Polaroid.Mutha kuwona malo olumikizirana ndi magetsi kumanzere.Komanso dziwani kuti mzere wogawanika wa imvi umapitirira m'lifupi mwa kutsegula.Kwenikweni, izi ndikupangitsa chosindikizira kutsamirapo ndikulekanitsa Pi ndi chosindikizira.Mukalumikiza chosindikizira, muyenera kusamala kuti musathyole pini yoloza ndi pensulo pachithunzichi.Chingwe chowonetsera chimagwirizanitsa ndi zikhomo pano, ndipo mapeto a waya omwe amabwera ndi chiwonetsero ndi pafupifupi kotala la inchi m'litali.Ndinayenera kukulitsa malekezero a zingwezo pang’ono kuti chosindikizira chisawasindikize.
Raspberry Pi iyenera kuyikika kuti mbali yomwe ili ndi doko la USB iloze kutsogolo.Izi zimalola chowongolera cha USB kuti chilumikizidwe kuchokera kutsogolo pogwiritsa ntchito adapter yooneka ngati L.Ngakhale izi sizinali gawo la dongosolo langa loyambirira, ndimagwiritsabe ntchito chingwe chaching'ono cha HDMI kutsogolo.Izi zimandilola kuti nditulutse gululo mosavuta ndikulumikiza chowunikira ndi kiyibodi mu Pi.
Kamera ndi gawo la Raspberry Pi V2.Ubwino wake si wabwino ngati kamera yatsopano ya HQ, koma tilibe malo okwanira.Kamera imalumikizidwa ndi Raspberry Pi kudzera pa riboni.Dulani kabowo kakang'ono pansi pa lens momwe riboni ingadutse.Riboni iyenera kupotozedwa mkati isanalumikizidwe ndi Raspberry Pi.
Gulu lakutsogolo la Polaroid lili ndi malo athyathyathya, omwe ndi oyenera kuyika kamera.Kuyiyika, ndinagwiritsa ntchito tepi ya mbali ziwiri.Muyenera kusamala kumbuyo chifukwa pali zida zamagetsi pa bolodi la kamera zomwe simukufuna kuwononga.Ndidagwiritsa ntchito zidutswa za tepi ngati ma spacers kuti magawowa asaphwanyidwe.
Pali mfundo zina ziwiri zomwe muyenera kuziwona pachithunzi pamwambapa, mutha kuwona momwe mungapezere madoko a USB ndi HDMI.Ndinagwiritsa ntchito adapter ya USB yooneka ngati L kuti ndikaloze kulumikizana kumanja.Kwa chingwe cha HDMI pakona yakumanzere yakumanzere, ndinagwiritsa ntchito chingwe chowonjezera cha 6-inchi chokhala ndi cholumikizira chooneka ngati L mbali inayo.Mutha kuwona izi bwino muvidiyo yanga.
E Ink ikuwoneka kuti ndi yabwino kwa polojekiti chifukwa chithunzicho ndi chofanana kwambiri ndi chithunzi chosindikizidwa papepala.Ndinagwiritsa ntchito Waveshare 4.2-inch electronic inki display module ndi 400 × 300 pixels.
Inki yamagetsi ili ndi mtundu wa analogi womwe ndimakonda.Zimawoneka ngati pepala.Ndizokhutiritsa kwambiri kuwonetsa zithunzi pazenera popanda mphamvu.Chifukwa palibe kuwala kopatsa mphamvu ma pixel, chithunzicho chikapangidwa, chimakhalabe pazenera.Izi zikutanthauza kuti ngakhale palibe mphamvu, chithunzicho chimakhala kumbuyo kwa Polaroid, zomwe zimandikumbutsa zomwe chithunzi chomaliza chomwe ndinatenga chinali.Kunena zowona, nthawi yoti kamera iyikidwe pashelufu yanga ya mabuku ndi yayitali kwambiri kuposa momwe imagwiritsidwira ntchito, bola ngati kamera siigwiritsidwe ntchito, kamerayo imakhala pafupifupi chithunzi chazithunzi, chomwe ndi chisankho chabwino.Kupulumutsa mphamvu sikofunikira.Mosiyana ndi zowonetsera zowunikira zomwe zimawononga mphamvu nthawi zonse, E Ink imangodya mphamvu ikafunika kujambulidwanso.
Zowonetsa inki zamagetsi zilinso ndi zovuta zake.Chinthu chachikulu ndi liwiro.Poyerekeza ndi zowonetsera zowunikira, zimangotenga nthawi yayitali kuti muyatse kapena kuzimitsa pixel iliyonse.Choyipa china ndikutsitsimutsa chinsalu.Chowunikira chokwera mtengo kwambiri cha E Ink chikhoza kutsitsimutsidwa pang'ono, koma chotsika mtengo chimajambulanso chinsalu chonse nthawi iliyonse kusintha kulikonse.Zotsatira zake ndikuti chinsalucho chimakhala chakuda ndi choyera, ndiyeno chithunzicho chimawonekera mozondoka chithunzi chatsopano chisanawonekere.Zimangotenga sekondi imodzi kuti muphethire, koma kuwonjezera.Zonsezi, zimatenga pafupifupi masekondi atatu kuti chinsalu ichi chisinthidwe kuyambira pomwe batani likakanizidwa mpaka pomwe chithunzi chikuwonekera pazenera.
Chinthu china choyenera kukumbukira ndi chakuti, mosiyana ndi mawonedwe apakompyuta omwe amawonetsa ma desktops ndi mbewa, muyenera kukhala osiyana ndi ma e-inki owonetsera.Kwenikweni, mukuuza chowunikira kuti chiwonetse zomwe zili ndi pixel imodzi panthawi.Mwanjira ina, iyi si pulagi ndi kusewera, muyenera code kuti mukwaniritse izi.Nthawi iliyonse chithunzi chikujambulidwa, ntchito yojambula chithunzicho pa polojekiti ikuchitika.
Waveshare imapereka madalaivala pazowonetsa zake, koma zolemba zake ndizowopsa.Konzani kuti mukhale ndi nthawi yolimbana ndi polojekiti isanagwire ntchito bwino.Izi ndi zolembedwa za skrini yomwe ndimagwiritsa ntchito.
Chiwonetserocho chili ndi mawaya 8, ndipo mulumikiza mawayawa ndi mapini a Raspberry Pi.Kawirikawiri, mungagwiritse ntchito chingwe chomwe chimabwera ndi polojekiti, koma popeza tikugwira ntchito pamalo opapatiza, ndiyenera kuwonjezera mapeto a chingwe osati pamwamba kwambiri.Izi zimapulumutsa pafupifupi kotala la inchi ya danga.Ndikuganiza kuti yankho lina ndikudula pulasitiki yochulukirapo kuchokera pa chosindikizira cholandila.
Kuti mulumikizane ndi chiwonetsero kumbuyo kwa Polaroid, mubowola mabowo anayi.Monitor ili ndi mabowo okwera pamakona.Ikani zowonetsera pamalo omwe mukufuna, onetsetsani kuti mwasiya malo pansi kuti muwonetse pepala lolandirira, kenako chongani ndikubowola mabowo anayi.Ndiye kumangitsa chophimba kuchokera kumbuyo.Padzakhala kusiyana kwa 1/4 inchi pakati pa kumbuyo kwa Polaroid ndi kumbuyo kwa polojekiti.
Mutha kuganiza kuti chiwonetsero cha inki yamagetsi ndizovuta kwambiri kuposa momwe ziyenera kukhalira.Ukhoza kukhala wolondola.Ngati mukuyang'ana njira yosavuta, mungafunikire kuyang'ana chowunikira chaching'ono chomwe chingagwirizane ndi doko la HDMI.Choyipa ndichakuti mudzakhala mukuyang'ana pa desktop ya Raspberry Pi, koma mwayi ndikuti mutha kuyiyika ndikuigwiritsa ntchito.
Mungafunike kuwunikanso momwe chosindikizira chamalisiti chimagwirira ntchito.Sagwiritsa ntchito inki.M'malo mwake, osindikizawa amagwiritsa ntchito mapepala otentha.Sindikudziwa bwino momwe pepalalo linapangidwira, koma mukhoza kuganiza ngati kujambula ndi kutentha.Kutentha kukafika madigiri 270 Fahrenheit, madera akuda amapangidwa.Ngati mpukutu wa pepala uyenera kutentha mokwanira, umasanduka wakuda.Ubwino waukulu apa ndikuti palibe chifukwa chogwiritsa ntchito inki, ndipo poyerekeza ndi filimu yeniyeni ya Polaroid, palibe zovuta zamagulu zomwe zimafunikira.
Palinso kuipa kogwiritsa ntchito mapepala otentha.Mwachiwonekere, mungathe kugwira ntchito zakuda ndi zoyera, popanda mtundu.Ngakhale mumtundu wakuda ndi woyera, palibe mithunzi ya imvi.Muyenera kujambula chithunzicho ndi madontho akuda.Mukayesa kupeza mtundu wochuluka momwe mungathere kuchokera ku mfundo izi, mosakayikira mudzagwa muvuto lakumvetsetsa jitter.Chisamaliro chapadera chiyenera kuperekedwa ku algorithm ya Floyd-Steinberg.Ndikulola kuti uchoke pa kaluluyo wekha.
Mukayesa kugwiritsa ntchito makonda osiyanasiyana ndi njira zosinthira, mosakayikira mudzakumana ndi zithunzi zazitali.Ili ndi gawo la ma selfies ambiri omwe ndawongoleredwa muzotulutsa zabwino kwambiri.
Ineyo pandekha, ndimakonda maonekedwe a zithunzi zowonongeka.Pamene anatiphunzitsa kupenta pogwiritsa ntchito stippling, zinandikumbutsa za kalasi yanga yoyamba yojambula.Ndi mawonekedwe apadera, koma ndi osiyana ndi kujambula kosalala kwa zithunzi zakuda ndi zoyera zomwe taphunzitsidwa kuziyamikira.Ndikunena izi chifukwa kamera iyi imachoka ku miyambo ndipo zithunzi zapadera zomwe zimapanga ziyenera kuonedwa ngati "ntchito" ya kamera, osati "bug".Ngati tikufuna chithunzi choyambirira, titha kugwiritsa ntchito kamera ina iliyonse pamsika ndikusunga ndalama nthawi yomweyo.Mfundo apa ndikuchita chinthu chapadera.
Tsopano popeza mwamvetsetsa kusindikiza kwamafuta, tiyeni tikambirane za osindikiza.Chosindikizira chamalisiti chomwe ndidagwiritsa ntchito chidagulidwa ku Adafruit.Ndinagula "Mini Thermal Receipt Printer Starter Pack", koma mukhoza kugula padera ngati pakufunika.Mwachidziwitso, simukusowa kugula batri, koma mungafunike adaputala yamagetsi kuti mutha kuyiyika pakhoma pakuyesa.China chabwino ndichakuti Adafruit ali ndi maphunziro abwino omwe angakupatseni chidaliro kuti chilichonse chiziyenda bwino.Yambirani apa.
Ndikukhulupirira kuti chosindikizira chikhoza kukwanira Polaroid popanda kusintha kulikonse.Koma ndi yayikulu kwambiri, chifukwa chake muyenera kudula kamera kapena kuchepetsa chosindikizira.Ndinasankha kukonzanso chosindikizira chifukwa chimodzi mwazosangalatsa za polojekitiyi chinali kusunga maonekedwe a Polaroid momwe ndingathere.Adafruit amagulitsanso osindikiza malisiti opanda casing.Izi zimapulumutsa malo ndi madola angapo, ndipo tsopano ndikudziwa momwe chirichonse chimagwirira ntchito, ndingagwiritse ntchito nthawi ina ndikamanga chinachake chonga ichi.Komabe, izi zibweretsa vuto latsopano, lomwe ndi momwe mungadziwire momwe mungagwirire mpukutu wa pepala.Ma projekiti ngati awa ndi okhudzana ndi kunyengerera komanso zovuta zomwe mungasankhe kuzithetsa.Mutha kuwona m'munsimu chithunzicho mbali yomwe ikufunika kudulidwa kuti chosindikizira chikhale choyenera.Kudula uku kudzafunikanso kuchitika kumanja.Mukamadula, chonde samalani kupewa mawaya osindikizira ndi zida zamagetsi zamkati.
Vuto limodzi ndi osindikiza a Adafruit ndikuti khalidwe limasiyanasiyana kutengera mphamvu.Amalimbikitsa kugwiritsa ntchito magetsi a 5v.Ndiwothandiza, makamaka posindikiza zolemba.Vuto ndiloti mukamasindikiza chithunzi, madera akuda amayamba kuwala.Mphamvu yofunikira kutenthetsa m'lifupi lonse la pepala ndi yaikulu kwambiri kuposa pamene mukusindikiza malemba, kotero kuti madera akuda akhoza kukhala imvi.Ndizovuta kudandaula, osindikiza awa sanapangidwe kuti azisindikiza zithunzi.Chosindikizira sichingapange kutentha kokwanira m'lifupi la pepala panthawi imodzi.Ndinayesa zingwe zina zamagetsi zokhala ndi zotulutsa zosiyanasiyana, koma sindinachite bwino.Pomaliza, mulimonse, ndiyenera kugwiritsa ntchito mabatire kuti ndiyambitse, kotero ndidasiya kuyesa kwa chingwe chamagetsi.Mosayembekezereka, batire ya 7.4V 850mAh Li-PO yobwereketsa yomwe ndidasankha idapanga kusindikiza kwa magwero onse amagetsi omwe ndidayesa mdima kwambiri.
Mukayika chosindikizira mu kamera, dulani dzenje pansi pa chowunikira kuti mugwirizane ndi pepala lotuluka mu chosindikizira.Podula pepala lolandirira, ndimagwiritsa ntchito tsamba la chodulira tepi chakale.
Kuphatikiza pa kutulutsa kwakuda kwa mawanga, choyipa china ndikumanga.Nthawi zonse chosindikizira ikaima kuti apeze deta yomwe ikudyetsedwa, idzasiya kusiyana kochepa pamene iyambanso kusindikiza.Mwachidziwitso, ngati mutha kuthetsa buffer ndikulola kuti kusuntha kwa data kupitirire mu chosindikizira, mutha kupewa kusiyana uku.Zowonadi, izi zikuwoneka ngati njira.Webusayiti ya Adafruit imatchula za pushpins zosalembedwa pa chosindikizira, zomwe zitha kugwiritsidwa ntchito kuti zinthu zigwirizane.Sindinayese izi chifukwa sindikudziwa momwe zimagwirira ntchito.Ngati muthetsa vutoli, chonde ndiuzeni za kupambana kwanu.Ili ndi gulu lina la ma selfies komwe mutha kuwona bwino magulu.
Zimatenga masekondi 30 kusindikiza chithunzicho.Iyi ndi kanema wa chosindikizira akuthamanga, kotero inu mukhoza kumva kuti zimatenga nthawi yaitali bwanji kusindikiza chithunzi.Ndikukhulupirira kuti izi zitha kuwonjezeka ngati ma hacks a Adafruit agwiritsidwa ntchito.Ndikukayikira kuti nthawi yapakati pa kusindikiza yachedwetsedwa, zomwe zimalepheretsa chosindikizira kupitilira liwiro la bafa ya data.Ndikunena izi chifukwa ndimawerenga kuti mapepalawo amayenera kulumikizidwa ndi mutu wosindikiza.Ine ndikhoza kukhala ndikulakwitsa.
Mofanana ndi chiwonetsero cha E-inki, pamafunika kuleza mtima kuti chosindikizira chizigwira ntchito.Popanda dalaivala yosindikiza, mukugwiritsa ntchito code kutumiza deta mwachindunji ku printer.Momwemonso, chida chabwino kwambiri chingakhale tsamba la Adafruit.Khodi yomwe ili munkhokwe yanga ya GitHub imasinthidwa kuchokera ku zitsanzo zawo, chifukwa chake ngati mukukumana ndi zovuta, zolemba za Adafruit zidzakhala chisankho chanu chabwino.
Kuphatikiza pa zabwino za nostalgic ndi retro, mwayi wowongolera SNES ndikuti umandipatsa maulamuliro ena omwe sindiyenera kuganiza kwambiri.Ndiyenera kuyang'ana kwambiri pakupeza kamera, chosindikizira, ndi zowunikira kuti zigwire ntchito limodzi, ndikukhala ndi chowongolera chomwe chinalipo kale chomwe chingandipangire mwachangu ntchito zanga kuti zinthu zikhale zosavuta.Kuphatikiza apo, ndili ndi chidziwitso kale pogwiritsa ntchito chowongolera changa cha Coffee Stirrer Camera, kotero nditha kuyamba mosavuta.
Reverse controller imalumikizidwa kudzera pa chingwe cha USB.Kuti mujambule chithunzi, dinani batani A.Kuti musindikize chithunzicho, dinani batani B.Kuti muchotse chithunzicho, dinani batani la X.Kuti muchotse chiwonetserocho, nditha kukanikiza batani la Y.Sindinagwiritse ntchito mabatani oyambira/kusankha kapena mabatani akumanzere/kumanja pamwamba, ndiye ngati ndili ndi malingaliro atsopano m'tsogolomu, atha kugwiritsidwabe ntchito pazinthu zatsopano.
Ponena za mabatani a mivi, mabatani akumanzere ndi kumanja a kiyibodi adzazungulira pazithunzi zonse zomwe ndajambula.Kukankhira mmwamba sikuchita ntchito iliyonse.Kusindikiza kudzapititsa patsogolo pepala la chosindikizira cholandirira.Izi ndizothandiza kwambiri nditasindikiza chithunzicho, ndikufuna kulavula mapepala ambiri ndisanaching'ambe.Podziwa kuti chosindikizira ndi Raspberry Pi akulankhulana, uku ndi kuyesa kwachangu.Ndinasindikiza, ndipo nditamva chakudya cha mapepala, ndinadziwa kuti batire ya printeryo inali ikugwirabe ntchito ndipo inali yokonzeka kugwiritsidwa ntchito.
Ndinagwiritsa ntchito mabatire awiri mu kamera.Imodzi imapatsa mphamvu Raspberry Pi ndipo ina imapatsa mphamvu chosindikizira.Mwachidziwitso, mutha kuyendetsa zonse ndi magetsi omwewo, koma sindikuganiza kuti muli ndi mphamvu zokwanira kuti mugwiritse ntchito chosindikizira.
Kwa Raspberry Pi, ndidagula batire laling'ono kwambiri lomwe ndidapeza.Atakhala pansi pa Polaroid, ambiri a iwo amabisika.Sindimakonda kuti chingwe chamagetsi chiyenera kufalikira kuchokera kutsogolo kupita ku dzenje musanalumikizane ndi Raspberry Pi.Mwina mutha kupeza njira yofinya batire lina ku Polaroid, koma palibe malo ambiri.Choyipa choyika batire mkati ndikuti muyenera kutsegula chivundikiro chakumbuyo kuti mutsegule ndi kutseka chipangizocho.Ingotsegulani batire kuti muzimitse kamera, chomwe ndi chisankho chabwino.
Ndinagwiritsa ntchito chingwe cha USB chokhala ndi / off switch kuchokera ku CanaKit.Ndikhoza kukhala wokongola kwambiri ku lingaliro ili.Ndikuganiza kuti Raspberry Pi ikhoza kutsegulidwa ndikuzimitsa ndi batani ili.M'malo mwake, kulumikiza USB ku batire ndikosavuta.
Pa chosindikizira, ndimagwiritsa ntchito batire ya 850mAh Li-PO yowonjezeredwanso.Batire ngati iyi ili ndi mawaya awiri akutulukamo.Chimodzi ndi chotulutsa ndipo china ndi chojambulira.Kuti ndikwaniritse "kulumikizana mwachangu" pazotulutsa, ndimayenera kusinthira cholumikizira ndi cholumikizira chawaya cha 3.Izi ndizofunikira chifukwa sindikufuna kuchotsa chosindikizira chonse nthawi iliyonse ndikafuna kulumikiza magetsi.Zingakhale bwino kusintha apa, ndipo ndikhoza kuzikonza mtsogolo.Ngakhale zili bwino, ngati chosinthira chili kunja kwa kamera, ndiye kuti nditha kutulutsa chosindikizira popanda kutsegula chitseko chakumbuyo.
Batire ili kuseri kwa chosindikizira, ndipo ndidatulutsa chingwe kuti ndilumikizane ndikudula mphamvu ngati pakufunika.Kuti muthe kulipiritsa batire, kulumikizana kwa USB kumaperekedwanso kudzera mu batri.Ndinafotokozeranso izi muvidiyoyi, kotero ngati mukufuna kumvetsetsa momwe zimagwirira ntchito, chonde onani.Monga ndanenera, phindu lodabwitsa ndiloti izi zimapanga zotsatira zabwino zosindikizira poyerekeza ndi kulumikiza mwachindunji khoma.
Apa ndipamene ndiyenera kupereka chodzikanira.Ndikhoza kulemba Python yogwira mtima, koma sindinganene kuti ndi yokongola.Zachidziwikire, pali njira zabwinoko zochitira izi, ndipo opanga mapulogalamu abwino amatha kuwongolera nambala yanga.Koma monga ndanenera, zimagwira ntchito.Chifukwa chake, ndigawana nanu malo anga a GitHub, koma sindingathe kukuthandizani.Ndikukhulupirira kuti izi ndizokwanira kukuwonetsani zomwe ndikuchita ndipo mutha kuzikonza.Ndigawireni zosintha zanu ndi ine, ndikhala wokondwa kusintha ma code anga ndikukupatsani mbiri.
Chifukwa chake, zimaganiziridwa kuti mwakhazikitsa kamera, kuwunika ndi chosindikizira, ndipo zitha kugwira ntchito moyenera.Tsopano mutha kuyendetsa script yanga ya Python yotchedwa "digital-polaroid-camera.py".Pamapeto pake, muyenera kuyika Raspberry Pi kuti izingoyendetsa izi poyambira, koma pakadali pano, mutha kuyiyendetsa kuchokera kwa mkonzi wa Python kapena terminal.Izi zidzachitika:
Ndinayesa kuwonjezera ndemanga ku code kuti ndifotokoze zomwe zinachitika, koma chinachake chinachitika ndikujambula chithunzicho ndipo ndikuyenera kufotokoza zambiri.Chithunzicho chikajambulidwa, chimakhala chamtundu wathunthu, chithunzi chokwanira.Chithunzicho chimasungidwa mufoda.Izi ndizosavuta chifukwa ngati mungafunike kuzigwiritsa ntchito pambuyo pake, mudzakhala ndi chithunzi chapamwamba.Mwanjira ina, kamera ikupangabe JPG wamba ngati makamera ena a digito.
Chithunzicho chikatengedwa, chithunzi chachiwiri chidzapangidwa, chomwe chimakonzedwa kuti chiwonetsedwe ndi kusindikiza.Pogwiritsa ntchito ImageMagick, mutha kusintha kukula kwa chithunzi choyambirira ndikuchisintha kukhala chakuda ndi choyera, kenako ndikuyika Floyd Steinberg dithering.Ndikhozanso kuonjezera kusiyana mu sitepe iyi, ngakhale mbali iyi yazimitsidwa mwachisawawa.
Chithunzi chatsopanocho chinapulumutsidwa kawiri.Choyamba, sungani ngati jpg yakuda ndi yoyera kuti muwonekere ndikugwiritsanso ntchito pambuyo pake.Kusunga kwachiwiri kumapanga fayilo yokhala ndi .py extension.Ili si fayilo wamba, koma ndi code yomwe imatenga chidziwitso chonse cha pixel kuchokera pachithunzichi ndikuchisintha kukhala data yomwe ingatumizidwe ku chosindikizira.Monga ndanenera mu gawo losindikizira, sitepe iyi ndiyofunikira chifukwa palibe dalaivala yosindikiza, kotero simungatumize zithunzi zachilendo kwa chosindikizira.
Batani likakanikiza ndikusindikiza chithunzi, palinso ma beep codes.Izi ndizosasankha, koma ndizabwino kupeza mayankho omveka kuti mudziwe kuti chinachake chikuchitika.
Nthawi yapitayi, sindinathe kuthandizira code iyi, ndikukulozerani njira yoyenera.Chonde gwiritsani ntchito, sinthani, sinthani ndikupanga nokha.
Iyi ndi ntchito yosangalatsa.Poyang'ana m'mbuyo, ndichita china chosiyana kapena mwina kusintha mtsogolo.Choyamba ndi chowongolera.Ngakhale wolamulira wa SNES amatha kuchita ndendende zomwe ndikufuna kuchita, ndi yankho losavuta.Waya watsekedwa.Zimakukakamizani kuti mugwire kamera m'dzanja limodzi ndi chowongolera ku dzanja lina.Zochititsa manyazi.Njira imodzi ikhoza kukhala kusenda mabatani kuchokera kwa wowongolera ndikuwalumikiza mwachindunji ku kamera.Komabe, ngati ndikufuna kuthetsa vutoli, nditha kusiya SNES kwathunthu ndikugwiritsa ntchito mabatani achikhalidwe.
Kusokoneza kwina kwa kamera ndikuti nthawi iliyonse kamera ikatsegulidwa kapena kuzimitsidwa, chivundikiro chakumbuyo chimafunika kutsegulidwa kuti achotse chosindikizira ku batire.Zikuwoneka kuti iyi ndi nkhani yaing'ono, koma nthawi zonse mbali yakumbuyo ikatsegulidwa ndi kutsekedwa, pepalalo liyenera kupyozedwanso potsegula.Izi zimawononga pepala ndipo zimatenga nthawi.Ndikhoza kusuntha mawaya ndi mawaya olumikiza kunja, koma sindikufuna kuti zinthu izi ziwonekere.Njira yabwino ndiyo kugwiritsa ntchito chosinthira / chozimitsa chomwe chimatha kuwongolera chosindikizira ndi Pi, chomwe chingapezeke kuchokera kunja.Zitha kukhalanso zotheka kupeza cholumikizira chaja chosindikizira kuchokera kutsogolo kwa kamera.Ngati mukukumana ndi polojekitiyi, chonde ganizirani kuthetsa vutoli ndikugawana nane maganizo anu.
Chinthu chomaliza chomaliza kukweza ndi chosindikizira chamalisiti.Chosindikizira chomwe ndimagwiritsa ntchito ndichabwino kusindikiza mawu, koma osati zithunzi.Ndakhala ndikuyang'ana njira yabwino kwambiri yosinthira chosindikizira changa chotenthetsera, ndipo ndikuganiza kuti ndachipeza.Kuyesa kwanga koyambirira kwawonetsa kuti chosindikizira chamalisiti chogwirizana ndi 80mm ESC/POS chikhoza kutulutsa zotsatira zabwino kwambiri.Vuto ndilopeza batire laling'ono komanso loyendera batire.Ili likhala gawo lofunikira la polojekiti yanga yotsatira ya kamera, chonde pitilizani kulabadira malingaliro anga amakamera osindikizira otentha.
PS: Iyi ndi nkhani yayitali kwambiri, ndikutsimikiza kuti ndaphonya zambiri zofunika.Popeza kamera idzakonzedwa bwino, ndidzayisinthanso.Ndikukhulupirira kuti mumakonda nkhaniyi.Osayiwala kunditsata (@ade3) pa Instagram kuti muthe kutsata chithunzichi ndi zina zanga zojambula.Khalani anzeru.
Za wolemba: Adrian Hanft ndi wokonda kujambula ndi kamera, wopanga, komanso wolemba "User Zero: Inside the Tool" (User Zero: Inside Tool).Malingaliro omwe afotokozedwa m'nkhaniyi ndi a wolemba okhawo.Mutha kupeza ntchito zambiri ndi ntchito za Hanft patsamba lake, blog ndi Instagram.Nkhaniyi yasindikizidwanso pano.


Nthawi yotumiza: May-04-2021