Nigute ushobora gukora kamera ya Polaroid ya digitale kumafoto ahendutse yumuriro

Muri iki kiganiro, nzakubwira amateka ya kamera yanjye iheruka: kamera ya Polaroid ya digitale, ihuza printer yakira na Raspberry Pi.Kugirango niyubake, nafashe kamera ishaje ya Polaroid Minute Maker, nkuraho amara, kandi nkoresha kamera ya digitale, E-wino yerekana, printer ya resept na progaramu ya SNES mugukoresha kamera aho gukoresha ingingo zimbere.Ntiwibagirwe kunkurikira kuri Instagram (@ ade3).
Urupapuro ruva kuri kamera rufite ifoto ni amarozi.Itanga ingaruka zishimishije, kandi videwo iri kuri ecran ya kamera igezweho igaburira ibyo byishimo.Kamera zishaje za Polaroide burigihe bintera agahinda gato kuko ni imashini zakozwe neza cyane, ariko iyo firime ihagaritswe, bahinduka ibihangano bya nostalgic, bakusanya umukungugu mubitabo byibitabo.Byagenda bite se niba ushobora gukoresha printer ya resept aho gukoresha firime ako kanya kugirango uzane ubuzima bushya kuri kamera zishaje?
Iyo byoroshye kuri njye kubikora, iyi ngingo izacengera muburyo bwa tekiniki yukuntu nakoze kamera.Ibi ndabikora kuko nizere ko igeragezwa ryanjye rizatera abantu bamwe kugerageza umushinga bonyine.Ntabwo ari ibintu byoroshye guhinduka.Mubyukuri, ibi birashobora kuba bigoye gufata kamera bigoye nigeze kugerageza, ariko niba uhisemo gukemura uyu mushinga, nzagerageza gutanga ibisobanuro bihagije mubyambayeho kugirango nkubuze gukomera.
Kuki nabikora?Nyuma yo gufata amafoto hamwe na kamera yikawa ya blender, ndashaka kugerageza uburyo butandukanye.Urebye urukurikirane rwanjye rwa kamera, kamera ya Polaroid Minute Maker yahise ansimbuka ihinduka ihinduka ryiza ryo guhindura imibare.Uyu ni umushinga mwiza kuri njye kuko uhuza bimwe mubintu nsanzwe nkina: Raspberry Pi, E Ink kwerekana na printer ya resept.Bishyire hamwe, uzabona iki?Ngiyo inkuru yukuntu kamera yanjye ya Polaroid yakozwe…
Nabonye abantu bagerageza imishinga isa, ariko ntamuntu wakoze akazi keza asobanura uko babikora.Nizeye kwirinda iri kosa.Ikibazo cyuyu mushinga ni ugukora ibice byose bitandukanye bikorana.Mbere yuko utangira gusunika ibice byose murubanza rwa Polaroid, ndagusaba ko wakwirakwiza ibintu byose mugihe ugerageza no gushiraho ibice bitandukanye.Ibi birakubuza guteranya no gusenya kamera igihe cyose uhuye n'inzitizi.Hasi, urashobora kubona ibice byose bihujwe kandi bikora mbere yuko byose byuzuzwa murubanza rwa Polaroid.
Nakoze videwo kugirango nandike iterambere ryanjye.Niba uteganya gukemura uyu mushinga, ugomba rero gutangirana niyi videwo yiminota 32 kuko ushobora kubona uburyo ibintu byose bihura kandi ukumva ibibazo bishobora guhura nabyo.
Dore ibice nibikoresho nakoresheje.Iyo byose bivuzwe, ikiguzi gishobora kurenga $ 200.Amafaranga azakoreshwa ni Raspberry Pi (35 kugeza 75 US $), printer (50 kugeza 62 US $), monitor (37 US $) na kamera (25 US $).Igice gishimishije nugukora umushinga wawe, bityo ikiguzi cyawe kizaba gitandukanye bitewe numushinga ushaka gushyiramo cyangwa gukuramo, kuzamura cyangwa kumanura.Iki nigice nkoresha:
Kamera nkoresha ni kamera yumunota wa Polaroid.Ndamutse nongeye kubikora, nakoresha imashini ya swing ya Polaroid kuko mubyukuri ni igishushanyo kimwe, ariko ikibanza cyimbere ni cyiza.Bitandukanye na kamera nshya ya Polaroid, izi moderi zifite umwanya munini imbere, kandi zifite umuryango inyuma igufasha gufungura no gufunga kamera, byoroshye cyane kubyo dukeneye.Kora guhiga kandi ugomba gushobora kubona imwe muma kamera ya Polaroid mububiko bwa kera cyangwa kuri eBay.Urashobora kugura imwe kumadorari atarenze 20.Hasi, urashobora kubona Swinger (ibumoso) na Minute Maker (iburyo).
Mubyigisho, urashobora gukoresha kamera iyo ari yo yose ya Polaroid kubwubu bwoko bwumushinga.Mfite kandi kamera yubutaka ifite inzogera kandi izingiye, ariko ibyiza bya Swinger cyangwa Minute Maker nuko bikozwe muri plastiki ikomeye kandi idafite ibice byinshi byimuka usibye umuryango winyuma.Intambwe yambere nukwambura amara yose kuri kamera kugirango tubone umwanya kubicuruzwa byacu byose bya elegitoroniki.Byose bigomba gukorwa.Mugusoza, uzabona ikirundo cyimyanda, nkuko bigaragara hano:
Ibice byinshi bya kamera birashobora gukurwaho hamwe na pliers nimbaraga za brute.Ibi bintu ntabwo byatandukanijwe, bityo uzahangana na kole ahantu hamwe.Gukuraho imbere ya Polaroid biragoye kuruta uko bigaragara.Hano hari imigozi imbere kandi ibikoresho bimwe birakenewe.Biragaragara ko Polaroid yonyine ifite.Urashobora gushobora kubipakurura hamwe na pliers, ariko narabiretse ndabahatira gufunga.Iyo urebye neza, nkeneye kwitondera cyane hano, ariko ibyangiritse nashoboraga gusana hamwe na super glue.
Numara gutsinda, uzongera kurwanya ibice bitagomba gutandukana.Mu buryo nk'ubwo, pliers n'imbaraga za brute birasabwa.Witondere kutangiza ikintu cyose kigaragara hanze.
Lens nimwe mubintu byoroshye gukuramo.Usibye gucukura umwobo mu kirahure / plastike no kuwucukumbura, ntabwo natekereje kubindi bisubizo byoroshye.Ndashaka kubungabunga isura ya lens bishoboka cyane kugirango abantu badashobora no kubona kamera ntoya ya Raspberry Pi hagati yimpeta yumukara aho lens yari yashyizwe mbere.
Muri videwo yanjye, nerekanye mbere na nyuma yo kugereranya amafoto ya Polaroid, kugirango ubone neza icyo ushaka gusiba kuri kamera.Witondere neza ko ikibanza cyimbere gishobora gukingurwa no gufungwa byoroshye.Tekereza ku kibaho nk'umutako.Mubihe byinshi, bizakosorwa mumwanya, ariko niba ushaka guhuza Raspberry Pi na monitor na clavier, urashobora gukuraho ikibanza cyimbere hanyuma ugacomeka mumashanyarazi.Urashobora gutanga igisubizo cyawe hano, ariko nahisemo gukoresha magnesi nkuburyo bwo gufata umwanya.Velcro isa nkaho yoroshye.Imigozi ni myinshi.Iyi ni ifoto ya animasiyo yerekana kamera ifungura no gufunga ikibaho:
Nahisemo Raspberry Pi 4 Model B yuzuye aho kuba Pi Zero nto.Ibi ni bimwe kugirango byongere umuvuduko naho igice kuko ndumuntu mushya mumurima wa Raspberry Pi, ndumva rero byoroshye kubikoresha.Biragaragara, ntoya Pi Zero izakina inyungu zimwe mumwanya muto wa Polaroid.Intangiriro kuri Raspberry Pi irenze iyi nyigisho, ariko niba uri mushya kuri Raspberry Pi, hano hari ibikoresho byinshi biboneka hano.
Icyifuzo rusange ni ugufata igihe no kwihangana.Niba ukomoka kuri Mac cyangwa PC, noneho uzakenera igihe cyo kumenyera nuance ya Pi.Ugomba kumenyera kumurongo wumurongo no kumenya ubuhanga bwa Python.Niba ibi bigutera kumva ufite ubwoba (Nabanje kugira ubwoba!), Nyamuneka ntukarakare.Igihe cyose ubyemera ushikamye kandi wihanganye, uzabibona.Gushakisha kuri interineti no kwihangana birashobora gutsinda inzitizi zose uhura nazo.
Ifoto iri hejuru yerekana aho Raspberry Pi ishyirwa muri kamera ya Polaroid.Urashobora kubona aho uhurira n'amashanyarazi ibumoso.Menya kandi ko umurongo ugabanya ibara ryagutse ku bugari bwo gufungura.Ahanini, iyi ni ugukora printer yegamiye kuri yo no gutandukanya Pi na printer.Mugihe ucomeka muri printer, ugomba kwitonda kugirango utavunika pin yerekanwe n'ikaramu kumafoto.Umugozi werekana uhuza pin hano, kandi impera yinsinga izana niyerekanwa ni kimwe cya kane cya santimetero z'uburebure.Nabwirijwe kwagura impera z'insinga gato kugirango printer itazikandaho.
Raspberry Pi igomba guhagarikwa kugirango uruhande rufite icyambu cya USB rwerekeza imbere.Ibi bituma USB umugenzuzi ashobora guhuzwa kuva imbere akoresheje adapter ya L.Nubwo ibi bitari muri gahunda yanjye yambere, nakoresheje umugozi muto wa HDMI imbere.Ibi binyemerera gusohoka byoroshye hanyuma hanyuma ucomeka monitor na clavier muri Pi.
Kamera ni Raspberry Pi V2 module.Ubwiza ntabwo ari bwiza nka kamera nshya ya HQ, ariko ntabwo dufite umwanya uhagije.Kamera ihujwe na Raspberry Pi ikoresheje lente.Kata umwobo muto munsi yinzira unyuramo.Agasanduku kagomba guhindurwa imbere mbere yo guhuza Raspberry Pi.
Imbere yimbere ya Polaroid ifite ubuso buringaniye, bubereye gushiraho kamera.Kugirango ushyireho, nakoresheje kaseti y'impande ebyiri.Ugomba kwitonda inyuma kuko hari ibice bya elegitoronike ku kibaho cya kamera udashaka kwangiza.Nakoresheje uduce tumwe na tumwe nka spacers kugirango mbuze ibyo bice kumeneka.
Hano hari izindi ngingo ebyiri ugomba kumenya ku ifoto iri hejuru, urashobora kubona uburyo bwo kugera ku byambu bya USB na HDMI.Nakoresheje L-shusho ya USB adaptate kugirango nerekane ihuza iburyo.Kumugozi wa HDMI mugice cyo hejuru cyibumoso, nakoresheje umugozi wagutse wa santimetero 6 ufite umuhuza wa L ku rundi ruhande.Urashobora kubibona neza muri videwo yanjye.
E Ink isa nkaho ari amahitamo meza kuri moniteur kuko ishusho isa cyane nishusho yacapishijwe ku mpapuro zakira.Nakoresheje Waveshare 4.2-inch ya elegitoroniki yerekana yerekana module hamwe na 400 × 300 pigiseli.
Irangi rya elegitoronike rifite ireme ryiza nakunze gusa.Irasa nimpapuro.Birashimishije rwose kwerekana amashusho kuri ecran nta mbaraga.Kuberako nta mucyo wo guha ingufu pigiseli, iyo ishusho imaze kuremwa, iguma kuri ecran.Ibi bivuze ko niyo nta mbaraga zaba zifite, ifoto iguma inyuma ya Polaroid, inyibutsa ifoto iheruka gufata.Mvugishije ukuri, igihe kugirango kamera ishyirwe mububiko bwibitabo byanjye ni kirekire cyane kuruta igihe ikoreshwa, mugihe rero kamera idakoreshejwe, kamera izahinduka hafi yifoto, nuguhitamo neza.Kuzigama ingufu ntabwo ari ngombwa.Bitandukanye n’umucyo werekana urumuri ruhora rukoresha imbaraga, E Ink ikoresha ingufu gusa mugihe igomba gukururwa.
Irangi rya elegitoronike ryerekana kandi rifite ibibi.Ikintu kinini ni umuvuduko.Ugereranije n’umucyo ushingiye kumurika, bisaba igihe kirekire kugirango ufungure cyangwa uzimye buri pigiseli.Indi mbogamizi nukugarura ecran.Monitori ihenze cyane ya E Ink irashobora kuvugururwa igice, ariko moderi ihendutse izongera gushushanya ecran yose igihe cyose habaye impinduka.Ingaruka nuko ecran ihinduka umukara n'umweru, hanyuma ishusho igaragara hejuru mbere yuko ishusho nshya igaragara.Bifata isegonda imwe gusa kugirango uhume, ariko wongere.Byose muri byose, bisaba amasegonda 3 kugirango iyi ecran yihariye ivugururwe kuva igihe buto yakandagiye kugeza igihe ifoto igaragara kuri ecran.
Ikindi ugomba kuzirikana nuko, bitandukanye na mudasobwa yerekana desktop na imbeba, ugomba kuba utandukanye na e-wino yerekana.Mubisanzwe, urimo kubwira moniteri kwerekana ibirimo pigiseli imwe icyarimwe.Muyandi magambo, ntabwo ari ugucomeka no gukina, ukeneye code zimwe kugirango ubigereho.Igihe cyose ifoto yafashwe, umurimo wo gushushanya ishusho kuri monite urakorwa.
Waveshare itanga abashoferi kubyo yerekana, ariko inyandiko zayo ziteye ubwoba.Teganya kumarana igihe urwana na monitor mbere yuko ikora neza.Ninyandiko ya ecran nkoresha.
Iyerekana ifite insinga 8, kandi uzahuza izo nsinga kumapine ya Raspberry Pi.Mubisanzwe, urashobora gukoresha umugozi uzana na moniteur, ariko kubera ko dukorera mumwanya muto, ngomba kwagura impera yumugozi ntabwo ari muremure cyane.Ibi bizigama hafi kimwe cya kane cya santimetero.Ntekereza ko ikindi gisubizo ari ugukata plastike nyinshi muri printer yakira.
Guhuza ibyerekanwa inyuma ya Polaroid, uzacukura imyobo ine.Monitor ifite umwobo wo gushiraho mu mfuruka.Shira ibyerekanwa ahantu hifuzwa, urebe neza ko usiga umwanya munsi kugirango ugaragaze impapuro zakira, hanyuma ushireho akamenyetso hanyuma ucukure ibyobo bine.Noneho komeza ecran uhereye inyuma.Hazabaho icyuho cya 1/4 hagati yinyuma ya Polaroid ninyuma ya monitor.
Urashobora gutekereza ko kwerekana wino ya elegitoronike itera ibibazo kuruta uko bikwiye.Urashobora kuba ufite ukuri.Niba ushaka uburyo bworoshye, ushobora gukenera gushakisha akantu gato gashinzwe amabara ashobora guhuzwa binyuze ku cyambu cya HDMI.Ikibi nuko uzahora ureba kuri desktop ya sisitemu y'imikorere ya Raspberry Pi, ariko akarusho nuko ushobora kuyicomeka ukayikoresha.
Urashobora gukenera gusuzuma uburyo printer yakira.Ntibakoresha wino.Ahubwo, icapiro rikoresha impapuro zumuriro.Ntabwo nzi neza uko impapuro zakozwe, ariko urashobora kubitekereza nkigishushanyo gifite ubushyuhe.Iyo ubushyuhe bugeze kuri dogere 270 Fahrenheit, havuka ahantu hirabura.Niba impapuro zigomba gushyuha bihagije, bizahinduka umukara rwose.Inyungu nini hano nuko nta mpamvu yo gukoresha wino, kandi ugereranije na firime nyayo ya Polaroide, nta miti igoye ikenewe.
Hariho kandi ibibi byo gukoresha impapuro zumuriro.Biragaragara, urashobora gukora gusa umukara n'umweru, nta bara.Ndetse no mubirabura n'umweru, nta gicucu cy'imvi.Ugomba gushushanya rwose hamwe nududomo twirabura.Mugihe ugerageje kubona ubuziranenge bushoboka uhereye kuriyi ngingo, byanze bikunze uzagwa mubibazo byo gusobanukirwa jitter.Byakagombye kwitabwaho cyane kuri algorithm ya Floyd-Steinberg.Nzakwemerera kugenda kuri urwo rukwavu wenyine.
Mugihe ugerageje gukoresha igenamiterere ritandukanye hamwe nubuhanga bwo gutandukana, byanze bikunze uzahura nibice birebire byamafoto.Ibi nibice byinshi byo kwifotoza niyubashye mubishusho byiza bisohoka.
Ku giti cyanjye, nkunda kugaragara kw'amashusho atandukanye.Iyo batwigishije gushushanya binyuze muri stipping, byanyibukije icyiciro cyambere cyubuhanzi.Nuburyo budasanzwe, ariko buratandukanye no gutondekanya neza kwifoto yumukara numweru twatojwe gushima.Ibi ndabivuze kuberako iyi kamera itandukana numuco kandi amashusho yihariye akora agomba gufatwa nk "imikorere" ya kamera, ntabwo "bug".Niba dushaka ishusho yumwimerere, turashobora gukoresha izindi kamera zose zabaguzi kumasoko hanyuma tukazigama amafaranga icyarimwe.Ingingo hano ni ugukora ikintu kidasanzwe.
Noneho ko usobanukiwe nicapiro ryumuriro, reka tuvuge kubyerekeye printer.Icapiro ry'inyemezabuguzi nakoresheje ryaguzwe muri Adafruit.Naguze "Mini Thermal Receipt Printer Starter Pack", ariko urashobora kuyigura ukundi niba bikenewe.Mubyigisho, ntukeneye kugura bateri, ariko urashobora gukenera adaptateur kugirango ubashe kuyicomeka kurukuta mugihe cyo kwipimisha.Ikindi kintu cyiza nuko Adafruit ifite inyigisho nziza zizaguha ikizere ko ibintu byose bizagenda mubisanzwe.Tangira kuriyi.
Nizere ko printer ishobora guhuza Polaroid nta gihindutse.Ariko nini cyane, ugomba rero guhinga kamera cyangwa gutunganya printer.Nahisemo gutunganya printer kuko igice cyubujurire bwumushinga kwari ukugumya kugaragara kwa Polaroid bishoboka.Adafruit kandi igurisha printer zakira nta kase.Ibi bizigama umwanya hamwe namadorari make, kandi ubu maze kumenya uko ibintu byose bikora, nshobora gukoresha ubutaha nubaka ikintu nkiki.Ariko, ibi bizazana ikibazo gishya, aribwo buryo bwo kumenya uko wafata impapuro.Imishinga nkiyi yose ni ubwumvikane nibibazo byo guhitamo gukemura.Urashobora kubona munsi yifoto inguni igomba gucibwa kugirango printer ikore.Uku gukata kuzakenera kandi kugaragara kuruhande rwiburyo.Mugihe ukata, nyamuneka witondere kwirinda insinga za printer nibikoresho bya elegitoroniki imbere.
Ikibazo kimwe na printer ya Adafruit nuko ubwiza butandukanye bitewe nimbaraga zituruka.Basaba gukoresha amashanyarazi ya 5v.Nibyiza, cyane cyane kubicapiro bishingiye ku nyandiko.Ikibazo nuko iyo ucapuye ishusho, uduce twirabura dukunda kuba mwinshi.Imbaraga zisabwa kugirango ushushe ubugari bwose bwimpapuro nini cyane kuruta iyo wanditse inyandiko, bityo ahantu hirabura hashobora kuba imvi.Biragoye kwitotomba, izi printer ntabwo zagenewe gucapa amafoto nyuma ya byose.Mucapyi ntishobora kubyara ubushyuhe buhagije mubugari bwimpapuro icyarimwe.Nagerageje izindi nsinga z'amashanyarazi hamwe nibisubizo bitandukanye, ariko ntabwo natsinze byinshi.Hanyuma, uko byagenda kose, nkeneye gukoresha bateri kugirango ndayikoreshe, nuko ndeka kugerageza umugozi w'amashanyarazi.Mu buryo butunguranye, bateri ya 7.4V 850mAh Li-PO yongeye kwishyurwa nahisemo gukora ingaruka zo gucapa amashanyarazi yose nagerageje umwijima.
Nyuma yo kwinjiza printer muri kamera, gabanya umwobo munsi ya monitor kugirango uhuze nimpapuro zisohoka muri printer.Gukata impapuro zakira, nakoresheje icyuma cya kaseti ishaje.
Usibye gusohora umukara wibibara, indi mbogamizi ni bande.Igihe cyose printer ihagaze kugirango ifate amakuru yatanzwe, izasiga icyuho gito mugihe itangiye kongera gucapa.Mubyigisho, niba ushobora gukuraho buffer hanyuma ukareka amakuru akomeza kugaburira printer, urashobora kwirinda iki cyuho.Mubyukuri, ibi bisa nkaho ari amahitamo.Urubuga rwa Adafruit ruvuga ibyapa bidafite ibyangombwa kuri printer, bishobora gukoreshwa kugirango ibintu bishoboke.Sinigeze ngerageza ibi kuko ntazi uko bikora.Niba ukemuye iki kibazo, nyamuneka dusangire intsinzi yawe.Nibindi byiciro byo kwifotoza aho ushobora kubona neza bande.
Bifata amasegonda 30 yo gusohora ifoto.Iyi ni videwo ya printer ikora, urashobora rero kumva igihe bifata kugirango ucapishe ishusho.Nizera ko iki kibazo gishobora kwiyongera niba Adafruit hack ikoreshwa.Ndakeka ko igihe kiri hagati yo gucapa cyatinze kubukorikori, kibuza printer kurenza umuvuduko wa data buffer.Ibi ndabivuze kuberako nasomye ko impapuro zambere zigomba guhuzwa numutwe wa printer.Nshobora kuba naribeshye.
Nka E-wino yerekana, bisaba kwihangana kugirango printer ikore.Hatariho icapiro ryumushoferi, mubyukuri ukoresha code kugirango wohereze amakuru kuri printer.Muri ubwo buryo, ibikoresho byiza birashobora kuba urubuga rwa Adafruit.Kode iri mu bubiko bwanjye bwa GitHub yakuwe mu ngero zabo, niba rero uhuye n'ingorane, inyandiko za Adafruit zizaba amahitamo yawe meza.
Usibye ibyiza bya nostalgic na retro, ibyiza byumugenzuzi wa SNES nuko bimpa kugenzura bimwe ntagomba gutekereza cyane.Nkeneye kwibanda ku kubona kamera, printer, na monitor kugirango dukorere hamwe, kandi nkagira umugenzuzi wabanjirije ushobora gushushanya vuba imikorere yanjye kugirango ibintu byoroshe.Mubyongeyeho, nsanzwe mfite uburambe bwo gukoresha Coffee Stirrer Kamera igenzura, kugirango nshobore gutangira byoroshye.
Umugenzuzi winyuma uhujwe na USB.Gufata ifoto, kanda buto A.Gucapa ishusho, kanda buto ya B.Gusiba ishusho, kanda buto ya X.Kurandura ibyerekanwe, nshobora gukanda Y buto.Ntabwo nakoresheje gutangira / guhitamo buto cyangwa ibumoso / iburyo buto hejuru, niba rero mfite ibitekerezo bishya mugihe kizaza, birashobora gukoreshwa mubintu bishya.
Kubijyanye n'imyambi ya buto, ibumoso n'iburyo buto ya keypad bizunguruka binyuze mumashusho yose nafashe.Kanda hejuru ntabwo bikora igikorwa icyo aricyo cyose.Kanda bizamura impapuro za nyemezabuguzi.Ibi biroroshye cyane nyuma yo gucapa ifoto, ndashaka gucira impapuro nyinshi mbere yo kuyisenya.Kumenya ko printer na Raspberry Pi bavugana, iki nacyo nikizamini cyihuse.Nakandagiye, maze kumva ibiryo by'impapuro, namenye ko bateri ya printer ikiri kwaka kandi yiteguye gukoresha.
Nakoresheje bateri ebyiri muri kamera.Imwe iha Raspberry Pi indi igaha printer.Mubyigisho, mwese murashobora gukoresha hamwe mumashanyarazi amwe, ariko sinkeka ko ufite imbaraga zihagije zo gukoresha printer byuzuye.
Kuri Raspberry Pi, naguze bateri ntoya nashoboraga kubona.Kwicara munsi ya Polaroid, inyinshi murizo zihishe.Ntabwo nkunda ko umugozi w'amashanyarazi ugomba kuva imbere ugana mu mwobo mbere yo guhuza na Raspberry Pi.Birashoboka ko ushobora kubona uburyo bwo gukanda indi bateri muri Polaroid, ariko nta mwanya munini.Ingaruka zo gushyira bateri imbere nuko ugomba gufungura igifuniko cyinyuma kugirango ufungure kandi ufunge igikoresho.Kuramo gusa bateri kugirango uzimye kamera, nibyiza.
Nakoresheje umugozi wa USB ufite kuri / kuzimya kuva kuri CanaKit.Nshobora kuba mwiza cyane kuri iki gitekerezo.Ndatekereza ko Raspberry Pi ishobora gufungura no kuzimya ukoresheje buto gusa.Mubyukuri, guhagarika USB muri bateri biroroshye.
Kuri printer, nakoresheje bateri ya 850mAh Li-PO.Batare nkiyi ifite insinga ebyiri zivamo.Imwe ni ibisohoka naho ubundi ni charger.Kugirango ngere kuri "kwihuta byihuse" mubisohoka, nagombaga gusimbuza umuhuza hamwe-rusange-intego-3-ihuza.Ibi birakenewe kuko sinshaka gukuramo printer yose igihe cyose nkeneye guhagarika ingufu.Byaba byiza duhinduye hano, kandi ndashobora kubitezimbere mugihe kizaza.Ndetse nibyiza, niba switch iri hanze ya kamera, noneho ndashobora gukuramo printer ntakinguye umuryango winyuma.
Batare iri inyuma ya printer, kandi nakuyemo umugozi kugirango nshobore guhuza no guhagarika ingufu nkuko bikenewe.Kugirango wishyure bateri, USB ihuza nayo itangwa binyuze muri bateri.Nanjye nabisobanuye muri videwo, niba rero ushaka kumva uko ikora, nyamuneka reba.Nkuko nabivuze, inyungu itangaje nuko igenamiterere ritanga ibisubizo byiza byanditse ugereranije no guhuza urukuta.
Aha niho nkeneye gutanga umwanzuro.Nshobora kwandika Python nziza, ariko sinshobora kuvuga ko ari nziza.Nibyo, hari inzira nziza zo gukora ibi, kandi programmes nziza zirashobora kunoza cyane code yanjye.Ariko nkuko nabivuze, birakora.Kubwibyo, nzagusangiza ububiko bwanjye bwa GitHub, ariko mubyukuri sinshobora gutanga inkunga.Twizere ko ibi bihagije kugirango nkwereke ibyo nkora kandi ushobora kubitezimbere.Sangira ibyo wateje imbere, nzanezezwa no kuvugurura code yanjye no kuguha inguzanyo.
Kubwibyo, hafatwa ko washyizeho kamera, monitor na printer, kandi ushobora gukora mubisanzwe.Noneho urashobora gukoresha inyandiko yanjye ya Python yitwa "digital-polaroid-camera.py".Kurangiza, ugomba gushiraho Raspberry Pi kugirango uhite ukoresha iyi nyandiko mugitangira, ariko kuri ubu, urashobora kuyikoresha uhereye kuri Python umwanditsi cyangwa terminal.Ibikurikira bizaba:
Nagerageje kongeramo ibitekerezo kuri kode kugirango nsobanure uko byagenze, ariko hari ikintu cyabaye mugihe mfata ifoto nkeneye gusobanura byinshi.Iyo ifoto yafashwe, ni ibara ryuzuye, ishusho yuzuye.Ishusho ibitswe mububiko.Ibi biroroshye kuko niba ukeneye kubikoresha nyuma, uzaba ufite ifoto isanzwe ihanitse.Muyandi magambo, kamera iracyakora JPG isanzwe nkizindi kamera za digitale.
Iyo ifoto yafashwe, hazakorwa ishusho ya kabiri, itezimbere kugirango yerekanwe kandi icapwe.Ukoresheje ImageMagick, urashobora guhindura ifoto yumwimerere hanyuma ukayihindura umukara numweru, hanyuma ugashyiraho Floyd Steinberg.Nshobora kandi kongera itandukaniro muriyi ntambwe, nubwo iyi mikorere yazimye kubusa.
Ishusho nshya yakijijwe kabiri.Ubwa mbere, uzigame nka jpg yumukara numweru kugirango ishobore kurebwa no gukoreshwa nyuma.Igice cya kabiri cyo kuzigama kizakora dosiye hamwe niyagurwa rya .py.Iyi ntabwo ari dosiye isanzwe yishusho, ahubwo ni code ifata amakuru yose ya pigiseli uhereye kumashusho ikayihindura mumibare ishobora koherezwa kuri printer.Nkuko nabivuze mugice cya printer, iyi ntambwe irakenewe kuko ntamushoferi wanditse, ntushobora kohereza gusa amashusho asanzwe kuri printer.
Iyo buto ikanda kandi ishusho yacapwe, hari na code ya beep.Ibi birahinduka, ariko nibyiza kubona ibitekerezo byumvikana kugirango nkumenyeshe ko hari ikintu kigenda.
Ubushize, ntabwo nashoboye gushyigikira iyi code, ni ukukwereka inzira nziza.Nyamuneka koresha, uhindure, utezimbere kandi ubigire wenyine.
Uyu ni umushinga ushimishije.Urebye, nzakora ikintu gitandukanye cyangwa wenda nkigezaho ejo hazaza.Iya mbere ni umugenzuzi.Nubwo umugenzuzi wa SNES ashobora gukora neza ibyo nshaka gukora, ni igisubizo kitoroshye.Umugozi urafunzwe.Iraguhatira gufata kamera mukiganza kimwe nubugenzuzi mukundi.Biteye isoni rero.Igisubizo kimwe gishobora kuba ugukuraho buto uhereye kumugenzuzi hanyuma ukayihuza na kamera.Ariko, niba nshaka gukemura iki kibazo, nshobora no kureka SNES burundu no gukoresha buto gakondo.
Ikindi kibangamiye kamera nuko burigihe burigihe kamera ifunguye cyangwa yazimye, igifuniko cyinyuma kigomba gukingurwa kugirango uhagarike printer na bateri.Birasa nkaho arikintu cyoroshye, ariko burigihe burigihe uruhande rwinyuma rufunguye kandi rugafungwa, impapuro zigomba kongera kunyuzwa mu gufungura.Ibi bitesha impapuro zimwe kandi bifata igihe.Nshobora kwimura insinga no guhuza insinga hanze, ariko sinshaka ko ibi bintu bigaragara.Igisubizo cyiza nugukoresha kuri / kuzimya bishobora kugenzura printer na Pi, bishobora kugerwaho bivuye hanze.Birashoboka kandi kugera ku cyambu cya printer charger uhereye imbere ya kamera.Niba urimo ukorana nuyu mushinga, nyamuneka tekereza gukemura iki kibazo kandi umbwire ibitekerezo byawe.
Ikintu cya nyuma gikuze cyo kuzamura ni printer yakira.Mucapyi nkoresha nibyiza mugucapura inyandiko, ariko ntabwo kumafoto.Nashakishaga uburyo bwiza bwo kuzamura printer yanjye yumuriro, kandi ngira ngo nabibonye.Ibizamini byanjye byibanze byerekanye ko printer yakira imashini ihuza na 80mm ESC / POS ishobora gutanga ibisubizo byiza.Ikibazo ni ugushaka bateri ntoya kandi ikoreshwa na bateri.Iki kizaba igice cyingenzi cyumushinga wanjye utaha, nyamuneka komeza witondere ibyifuzo byanjye kuri kamera ya printer yumuriro.
PS: Iyi ni ingingo ndende cyane, nzi neza ko nabuze amakuru yingenzi.Nkuko kamera byanze bikunze izanozwa, nzongera kuyivugurura.Nizere rwose ko ukunda iyi nkuru.Ntiwibagirwe kunkurikira (@ ade3) kuri Instagram kugirango ubashe gukurikira iyi foto nibindi bitekerezo byanjye byo gufotora.Ihangane.
Kubyerekeye umwanditsi: Adrian Hanft numufotozi numukunzi wa kamera, uwashushanyije, akaba n'umwanditsi wa "Umukoresha Zero: Imbere mu Gikoresho" (Umukoresha Zeru: Imbere mu Gikoresho).Ibitekerezo byagaragaye muriyi ngingo nibyo byumwanditsi gusa.Urashobora kubona ibikorwa byinshi nibikorwa bya Hanft kurubuga rwe, blog na Instagram.Iyi ngingo nayo yatangajwe hano.


Igihe cyo kohereza: Gicurasi-04-2021