Mini printer idafite ubushyuhe ya printer ibona isomero rya Arduino (na porogaramu ya MacOS)

[Larry Bank] Isomero rya Arduino ryo gucapa inyandiko nubushushanyo kuri BLE (Bluetooth Ntoya Ingufu) icapiro ryumuriro rifite ibintu byiza cyane kandi birashobora kohereza imirimo yo gucapa idafite simusiga kubintu byinshi bisanzwe byoroshye bishoboka.Mucapyi ni nto, ihendutse, kandi idafite umugozi.Nibintu byiza bihuza bikurura imishinga ishobora kungukirwa no gucapa kopi zikomeye.
Ntabwo kandi bigarukira gusa kumyandiko isanzwe.Urashobora gukoresha Adafruit_GFX yububiko bwibitabo byimyandikire hamwe namahitamo kugirango urangize ibisohoka byinshi, kandi wohereze inyandiko imiterere nkibishushanyo.Urashobora gusoma amakuru yose yerekeye icyo isomero rishobora gukora mururu rutonde rugufi rwimirimo.
Ariko [Larry] ntiyagarukiye aho.Mugihe yageragezaga kuri microcontrollers hamwe na BLE icapiro ryumuriro, yashakaga kandi gushakisha mu buryo butaziguye akoresheje BLE kugirango avugane naba printer kuva muri Mac ye.Print2BLE ni porogaramu ya MacOS igufasha gukurura dosiye zishusho kumadirishya ya porogaramu.Niba ingaruka zo kureba ari nziza, buto yo gucapa izatuma isohoka muri printer nka 1-bpp ishusho.
Mucapyi ntoya yubushyuhe ikwiranye nimishinga myiza, nka kamera ya Polaroid yahinduwe.Noneho utucapiro duto ntituboneka kandi twubukungu.Gusa hamwe nubufasha bwibitabo birashobora gusa ibintu byoroshye.Birumvikana, niba ibi byose bisa nkibyoroshye cyane, urashobora gukoresha plasma kugirango ushire icapiro ryumuriro usubire mumashanyarazi igihe icyo aricyo cyose.
Ndimo ndareba ububiko, nibaza niba hari umuntu uzi ibi bicapiro bihendutse, ni ukuvuga Phomemo M02, M02s, na M02pro ntabwo byashyizwe ku rutonde, ariko ushakisha injangwe, ingurube nizindi printer, zishobora kuba nyinshi cyangwa nkeya kimwe uburyo bwihuse?Ushaka kumenya niba ikoreshwa mubitabo.Ubundi bubiko kuri github ya phomemo python inyandiko zo gucapa kuri linux.Ibi bintu bihendutse kandi byiza gukina.Ushaka kumenya impamvu itabonye traction nyinshi.
Hariho byinshi bitandukanye byiyi printer ya BLE.Imbere, bose bashobora kuba bafite icapiro rimwe na UART, ariko ibigo byongeramo imbaho ​​za BLE bakunda guhindura ibintu kugirango bigoye gukoresha hanze yibyo basabye.Mucapyi ebyiri nshyigikiye zigomba guhindurwa hifashishijwe porogaramu zabo za Android kuko zidashyigikiye amabwiriza asanzwe ya ESC / POS.GOOJPRT yitwara neza kandi yohereza gusa amategeko asanzwe binyuze muri BLE.Ndakeka ko abantu benshi "badasanzwe" bahitamo gukoresha protocole y'itumanaho kugirango baguhatire gukoresha porogaramu zabo zigendanwa.
Kubwibyo, niba nguze kimwe muribi nkagisiba nkagikuramo igice cya BLE, noneho birashoboka cyane ko ufite printer ya UART gusa?
Nakinnye hamwe na 80mm ya NETUM ya Amazone idafite printer / yongeye kwishyurwa.Igura amadorari 80 kandi irerekanwa kuri port com serial.Ifasha ESC / POS, nuko nanditse isomero ryanjye bwite rya PowerShell kumashusho.Gusa ikibi cya NETUM nuko idafite ubushobozi bwimyandikire minini cyane, ariko nigiciro cyo guhuzagurika.Nabonye ko nshobora gufata umuzingo uringaniye kandi ugafungura kimwe cya kabiri kuriwo.Bifata iminota itarenze itanu, ntabwo arikibazo kinini ukurikije umuvuduko nkoresha.
Igisubizo kigufi-yego!Bluetooth Ntoya (BLE) irahuza cyane kumahuriro atandukanye, kubishyira mubikorwa rero Linux ntacyo bizahindura cyane.
Kubwinyandiko nini, imirongo yoroshye, hamwe na barcode, nta bashoferi bigoye basabwa, kubera ko hafi ya label / ibisanzwe byacapwe byunganira kode isanzwe ya Epson printer isanzwe, izwi kandi nka ESC / P.[1] Kugirango urusheho gusobanuka, label / inyemezabuguzi ya printer yumuriro ukoreshe ESC / POS (Epson Standard Code / Ingingo yo kugurisha).[2] Izina ESC / P cyangwa ESC / POS naryo rirakwiriye kuko hariho inyuguti ya ESCape (code ya ASCII 27) mbere yubuyobozi bwa printer.
Byoroheje rusange-intego yubushyuhe bwa label / imashini yakira irashobora kugurwa bihendutse kurubuga nka AliExpress.[3] Icapiro rusange-rigamije rusange rifite RS-232 UART TTL urwego rwunganira ESC / POS.Imigaragarire ya RS-232 UART TTL irashobora guhindurwa byoroshye kuri USB ukoresheje chip ya UART / USB ikiraro (nka CH340x) cyangwa umugozi.Kubijyanye na WiFi na BLE bidafite umugozi, ukeneye gusa guhuza module nka module ya Espressif ESP32 na interineti ya UART TTL.[4] Cyangwa ongeramo amadorari 10-15 US $ kubiciro bya label yumuriro rusange / imashini yakira, kandi izahita itanga USB / WiFi / BLE.Ariko ni hehe bishimishije muri ibi?
Mugihe ushaka gutunganya ishusho (zoom / dither / umukara-na-umweru uhinduka) hanyuma ukohereza kuri label printer, umushoferi utoroshye araza gukina.Kuri Windows, umushoferi atangwa kumurongo, shakisha “Windows yumuriro wa printer ya printer ya Windows” nta “s”.Biragoye cyane kuri microcontrollers ikoresha label / progaramu ya progaramu ya printer yo gucapa amafoto, kandi iryo ni isomero rya Arduino [Larry Bank] risa nkaho ryajyanywe kurwego rukurikira.
3. Goojprt Qr203 58 mm micro micro yashyizwemo printer yumuriro amafaranga 232 + Ttl panel ihujwe na Eml203, ikoreshwa mukwakira barcode US $ 15.17 + US $ 2.67 Kohereza:
4. Modire ya Wireless NodeMcu V3 V2 Lua WIFI ishinzwe iterambere ESP8266 ESP32 hamwe na antenna ya PCB hamwe nicyambu cya USB ESP-12E CP2102 USD 2.94 + USD 0.82 Amafaranga yo kohereza:
Impapuro zikoreshwa niyi printer zifitanye isano numubare munini wibibazo byubuzima.Byongeye kandi, ntabwo isubirwamo cyangwa yangiza ibidukikije muburyo ubwo aribwo bwose.
Harimo endocrine ikomeye ihungabanya bisphenol-a.Nukuvugako, ibicuruzwa bitarimo BPA mubisanzwe birimo BPA-tekiniki zitandukanye, ariko ihungabana rya endocrine.
Hatitawe ku miti irakaze cyangwa itariyo, impapuro zumuriro ntabwo zangiza ibidukikije (logique) kubisobanuro byose
Ntushobora guhangana nigice gito cyamafaranga yakozwe numubitsi.Ariko birakwiye ko tuvuga.
Ahumekewe niyi nyandiko ya Hackaday yanditswe na [Donald Papp], iyi nyandiko yerekana isomero rya Arduino rya [Larry Bank] hamwe n’icapiro ry’amafoto yo gucapa amashyuza, [Jeff Epler] afite agashya kuri Adafruit (Nzeri 2021) 28) 'BLE Thermal “ Injangwe "Icapiro ry'imyandikire hamwe na CircuitPython [1] [2] IPS TFT yerekana kumurongo.[4]
Kubwamahirwe, code ya CircuitPython yerekana gusa ishusho yatunganijwe na progaramu yo guhindura ifoto (nkubuntu kandi ifunguye isoko yambukiranya urubuga rwa GIMP).. ikibaho.
[Jeff Epler] yaranditse ati: Igihe nabonaga icapiro rya "injangwe" muri iyi ngingo ya Hackaday ( -app /), Nkeneye gusa gutegura umwe kubwanjye.Icyapa cyumwimerere cyakoze isomero rya Arduino, ariko nashakaga gukora verisiyo ibereye CircuitPython.
2. Icapiro rya "BLE Thermal" Cat "Icapa hamwe na CircuitPython" inyigisho [urupapuro rumwe rwa html]

https: // cdn

Ukoresheje urubuga na serivisi zacu, wemera byimazeyo gushyira ibikorwa byacu, imikorere hamwe na kuki yamamaza.wige byinshi


Igihe cyo kohereza: Ukwakira-13-2021