Makina osindikizira a Mini opanda zingwe amapeza laibulale ya Arduino (ndi pulogalamu ya MacOS)

[Larry Bank] Laibulale ya Arduino yosindikiza zolemba ndi zithunzi pa chosindikizira chotentha cha BLE (Bluetooth Low Energy) ili ndi zinthu zina zabwino kwambiri ndipo imatha kutumiza ntchito zosindikizira opanda zingwe kumitundu yambiri yodziwika mosavuta.Makina osindikizirawa ndi ang'onoang'ono, otsika mtengo, komanso opanda zingwe.Izi ndizophatikiza zabwino zomwe zimawapangitsa kukhala okongola pama projekiti omwe angapindule ndi kusindikiza makope olimba.
Silinso ndi mawu osavuta osasinthika.Mutha kugwiritsa ntchito zilembo za library ya Adafruit_GFX ndi zosankha kuti mumalize zotulutsa zapamwamba kwambiri, ndikutumiza zolemba zojambulidwa ngati zithunzi.Mutha kuwerenga zonse zomwe laibulale ingachite pamndandanda wachidule wa magwiridwe antchito.
Koma [Larry] sanalekere pamenepo.Pomwe amayesa ma microcontrollers ndi makina osindikizira a BLE, adafunanso kufufuza mwachindunji pogwiritsa ntchito BLE kuti alankhule ndi osindikiza awa kuchokera ku Mac yake.Print2BLE ndi pulogalamu ya MacOS yomwe imakulolani kukoka mafayilo azithunzi pawindo la pulogalamu.Ngati chiwonetsero chazithunzi chili chabwino, batani losindikiza lizipangitsa kuti zituluke mu chosindikizira ngati chithunzi chosokonekera cha 1-bpp.
Makina osindikizira ang'onoang'ono otenthetsera ndi oyenera pulojekiti yabwino, monga makamera osinthidwa a Polaroid.Tsopano osindikiza ang'onoang'ono awa ndi opanda zingwe komanso otsika mtengo.Pokhapokha ndi thandizo la laibulale yoteroyo zinthu zikhoza kukhala zosavuta.Zachidziwikire, ngati zonsezi zikuwoneka ngati zosavuta, mutha kugwiritsa ntchito plasma kuti mubwezeretse kusindikiza kwamafuta nthawi iliyonse.
Ndikuyang'ana nkhokwe, ndikudabwa ngati alipo amene akudziwa za osindikiza otsika mtengo awa, mwachitsanzo, Phomemo M02, M02s, ndi M02pro sizinatchulidwe kuti ndizogwirizana, koma kuyang'ana paka, nkhumba ndi osindikiza ena, akhoza kukhala ofanana kwambiri. makina oyambira?Ndikufuna kudziwa ngati ikugwira ntchito ku laibulale.Chosungira china pa github cha zolemba za phomemo python zosindikiza pa linux.Zinthu izi ndizotsika mtengo komanso zosavuta kusewera.Ndikufuna kudziwa chifukwa chake sichinatengeke kwambiri.
Pali zosiyana zambiri za osindikiza a BLE awa.Mkati, onse akhoza kukhala ndi mutu wosindikizira ndi mawonekedwe a UART, koma makampani omwe amawonjezera matabwa a BLE amakonda kusintha zinthu kuti zikhale zovuta kugwiritsa ntchito kunja kwa mapulogalamu awo.Osindikiza awiri omwe ndimathandizira amayenera kusinthidwa m'mapulogalamu awo a Android chifukwa sagwirizana ndi malamulo a ESC/POS.GOOJPRT imachita bwino ndipo imangotumiza malamulo okhazikika kudzera pa BLE.Ndikukayikira kuti anthu ambiri "achilendo" amasankha kugwiritsa ntchito njira zolumikizirana kuti akukakamizeni kugwiritsa ntchito mapulogalamu awo am'manja.
Chifukwa chake, ndikagula imodzi mwa izo ndikutulutsa ndikutulutsa gawo la BLE, ndiye kuti ndizotheka kuti muli ndi chosindikizira cha UART chokha?
Ndakhala ndikusewera ndi chosindikizira cha Amazon 80mm NETUM opanda zingwe / chowonjezera.Zimawononga $ 80 ndipo zimawonetsedwa pa serial com port.Imathandizira ESC/POS, kotero ndidalemba laibulale yanga ya PowerShell ya zithunzi.Choyipa chokha cha NETUM ndikuti ilibe mphamvu ya mipukutu yayikulu kwambiri yosindikizira, koma iyi ndi mtengo wa compactness.Ndinapeza kuti nditha kutenga mipukutu yapakatikati ndikutsegula theka lake pa spool yopanda kanthu.Zimatenga mphindi zosakwana zisanu, zomwe sizosokoneza kwambiri malinga ndi liwiro lomwe ndimagwiritsa ntchito.
Yankho lalifupi - inde!Bluetooth Low Energy (BLE) imagwirizana kwambiri pamapulatifomu osiyanasiyana, kotero kuigwiritsa ntchito pa Linux sikungapange kusiyana kwakukulu.
Pamawu ochulukirachulukira, mizere yosavuta, ndi ma barcode, palibe ma driver ovuta omwe amafunikira, chifukwa pafupifupi osindikiza onse odziwika bwino amathandizira makina osindikizira a Epson, omwe amadziwikanso kuti ESC/P.[1] Kuti mumveke bwino kwambiri, osindikiza a lebulo/risiti amagwiritsa ntchito mtundu wa ESC/POS (Epson Standard Code/Point of Sale).[2] Dzina ESC/P kapena ESC/POS ndiloyeneranso chifukwa pali zilembo za ESCape (ASCII code 27) pamaso pa chosindikizira.
Makina osindikizira osavuta amafuta / risiti amatha kugulidwa motchipa pamawebusayiti monga AliExpress.[3] Makina osindikizira awa ali ndi mawonekedwe a RS-232 UART TTL omwe amathandizira ESC/POS.Mawonekedwe a RS-232 UART TTL amatha kusinthidwa mosavuta kukhala USB pogwiritsa ntchito chip UART/USB mlatho (monga CH340x) kapena chingwe.Pamalumikizidwe opanda zingwe a WiFi ndi BLE, mumangofunika kulumikiza gawo monga gawo la Espressif ESP32 ku mawonekedwe a UART TTL.[4] Kapena onjezani madola 10-15 aku US pamtengo wa makina osindikizira amtundu wamafuta / risiti, ndipo ipereka mwachindunji USB/WiFi/BLE.Koma zosangalatsa zili kuti mu izi?
Pamene mukufuna kukonza chithunzicho (zoom / dither / black-and-white conversion) ndikutumiza ku printer label, dalaivala wovuta amabwera.Kwa Windows, dalaivala amaperekedwa pa intaneti, fufuzani "Windows thermal label printer driver" popanda "s".Ndizovuta kwambiri kwa olamulira ang'onoang'ono omwe amagwiritsa ntchito makina osindikizira a label/receipt kusindikiza zithunzi, ndipo ili laibulale ya [Larry Bank] ya Arduino ikuwoneka kuti ikupititsidwa patsogolo.
3. Goojprt Qr203 58 mm micro embedded thermal printer Rs232+Ttl yogwirizana ndi Eml203, yogwiritsidwa ntchito pa risiti barcode US $15.17 + US $2.67 Kutumiza:
4. Wopanda zingwe gawo NodeMcu V3 V2 Lua WIFI chitukuko bolodi ESP8266 ESP32 ndi PCB mlongoti ndi USB doko ESP-12E CP2102 USD 2.94 + USD 0.82 Ndalama zotumizira:
Mapepala omwe amagwiritsidwa ntchito ndi osindikizawa akugwirizana ndi chiwerengero chachikulu cha matenda.Kuphatikiza apo, sizobwezerezedwanso kapena kuwononga chilengedwe mwanjira iliyonse.
Lili ndi chosokoneza kwambiri cha endocrine bisphenol-a.Mwa njira, zinthu zomwe mulibe BPA nthawi zambiri zimakhala ndi BPA-zosiyana mwaukadaulo, koma zosokoneza kwambiri za endocrine.
Mosasamala kanthu za mankhwala okwiyitsa kapena ayi, pepala lotenthetsera silikhala logwirizana ndi chilengedwe (mwanzeru) mwa kutanthauzira kulikonse.
Simungathe kuthana ndi gawo laling'ono la ndalama zomwe wosunga ndalama amapangira.Koma ndi bwino kutchula.
Mouziridwa ndi positi iyi ya Hackaday yolembedwa ndi [Donald Papp], positi iyi ikuloza ku laibulale ya [Larry Bank] ya Arduino yokhala ndi zithunzi zosindikiza za osindikiza amafuta, [Jeff Epler] ali ndi ina yatsopano ku Adafruit (September 2021) 28th)'BLE Thermal “ Maphunziro Osindikiza a Cat” okhala ndi CircuitPython [1][2][3] Izi zidapangitsa kuti pakhale ntchito yosindikiza zithunzi motsogozedwa ndi chosindikizira chaching'ono (koma chokwera mtengo cha IMHO) Adafruit CLUE nRF52840 Express Thermal ndi bolodi la Bluetooth LE ndi 1.3” 240 × 240 mtundu IPS TFT chiwonetsero pa bolodi.[4]
Tsoka ilo, kachidindo ka CircuitPython amangosindikiza chithunzi chomwe chidakonzedwa ndi pulogalamu yosinthira zithunzi (monga chithunzi chaulere komanso chotseguka cha GIMP).[5] Koma kunena chilungamo, ndikukayika ngati bolodi la CLUE lomwe lili ndi purosesa ya Nordic nRF52840 Bluetooth LE, 1 MB flash memory, 256KB RAM, ndi purosesa ya 64 MHz Cortex M4 yomwe ili ndi CircuitPython yonse ili ndi malo opangira chilichonse kupatula chophweka. matabwa.
[Jeff Epler] analemba kuti: Nditaona chosindikizira cha "mphaka" m'nkhani iyi ya Hackaday (https://hackaday.com/2021/09/21/mini-wireless-thermal-printers-get-arduino-library -and-macos -app/), ndikungofunika kudzikonzera ndekha.Chojambula choyambirira chinapanga laibulale ya Arduino, koma ndinkafuna kupanga mtundu woyenera CircuitPython.
2. Maphunziro a Adafruit a “BLE Thermal “Cat” Printer okhala ndi CircuitPython” [mtundu umodzi wa html]

https://cdn-learn.adafruit.com/downloads/pdf/ble-thermal-cat-printer-with-circuitpython.pdf?timestamp=1632888339

Pogwiritsa ntchito tsamba lathu ndi ntchito zathu, mumavomereza mwatsatanetsatane kuyika kwa machitidwe athu, magwiridwe antchito ndi ma cookie otsatsa.Dziwani zambiri


Nthawi yotumiza: Oct-13-2021