Mini wireless thermal printer inowana raibhurari yeArduino (uye MacOS application)

[Larry Bank] Raibhurari yeArduino yekudhinda zvinyorwa uye magiraidhi paBLE (Bluetooth Low Energy) thermal printer ine zvimwe zvakanakisa uye inogona kutumira mabasa ekudhinda isina waya kune akawanda akajairwa modhi nyore sezvinobvira.Aya maprinta madiki, asingadhure, uye asina waya.Uku kusanganiswa kwakanaka kunoita kuti vataridzike kumapurojekiti anogona kubatsirwa nekudhinda makopi akaomarara.
Izvo zvakare hazvina kuganhurirwa kune nyore default zvinyorwa.Iwe unogona kushandisa Adafruit_GFX raibhurari mafonti uye sarudzo kuti upedze zvakanyanya kuburitsa, uye kutumira mameseji akafomatirwa semifananidzo.Iwe unogona kuverenga ruzivo rwese nezve izvo raibhurari inogona kuita mune ino pfupi rondedzero yemabasa.
Asi [Larry] haana kugumira ipapo.Ndichiri kuedza nemamicrocontrollers uye BLE thermal printers, aidawo kuongorora zvakananga achishandisa BLE kutaura nemaprinta aya kubva kuMac yake.Print2BLE ndeye MacOS application iyo inokutendera iwe kudhonza mufananidzo mafaera kuhwindo rekushandisa.Kana iyo yekutarisa maitiro yakanaka, bhatani rekudhinda rinoita kuti ribude muprinta semufananidzo we1-bpp wakakanganiswa.
Madiki anopisa anodhinda akakodzera mapurojekiti akatsvinda, akadai seakagadziridzwa Polaroid kamera.Iye zvino maprinta madiki aya haana waya uye ane mari.Chete nerubatsiro rweraibhurari yakadaro zvinhu zvinogona kuva nyore.Ehe, kana zvese izvi zvichiita sezviri nyore, unogona kushandisa plasma kuisa kudhindwa kwemafuta kumashure mukutsikisa kwemafuta chero nguva.
Ndiri kubrowser repository, ndichinetsekana kana paine anoziva nezvemaprinta aya akachipa, kureva, Phomemo M02, M02s, uye M02pro haana kunyorwa seanopindirana, asi kutsvaga katsi, nguruve uye mamwe maprinta, anogona kunge akafanana kana mashoma. underlying mechanism?Unoda kuziva kana ichishanda kuraibhurari.Imwe repository pa github ye phomemo python zvinyorwa zvekudhinda palinux.Zvinhu izvi zvakachipa uye zvinotonhorera kutamba.Unoda kuziva kuti sei isina kuwedzera kudhonza.
Kune misiyano yakawanda yeaya maprinta eBLE.Mukati, vese vanogona kunge vaine yakafanana printhead uye UART interface, asi makambani anowedzera BLE mabhodhi anoda kushandura zvinhu kuti zviome kushandisa kunze kwezvikumbiro zvavo.Iwo maprinta maviri andinotsigira anofanirwa kudzoserwa kumashure kuburikidza neayo maapplication eAroid nekuti haatsigire ESC/POS standard command set.GOOJPRT inoita nemazvo uye inongotumira mirairo yakajairwa kuburikidza neBLE.Ini ndinofungidzira kuti vanhu vazhinji "vasinganzwisisike" vanosarudza kushandisa maprotocol ekukumanikidza kushandisa nharembozha yavo.
Naizvozvo, kana ndikatenga imwe yadzo ndoidurura kunze uye kuburitsa chikamu cheBLE, saka zvinokwanisika kuti iwe unongove neUART inopisa printer?
Ndanga ndichitamba neAmazon's 80mm NETUM wireless/rechargeable printer.Inodhura madhora makumi masere uye inoratidzwa pane serial com port.Inotsigira ESC/POS, saka ndakanyora yangu PowerShell raibhurari yemifananidzo.Izvo chete zvakashata zveNETUM ndezvekuti haina huwandu hweakakura kwazvo eprinta rolls, asi uyu ndiwo mutengo we compactness.Ndakaona kuti ndinogona kutora mamwe epakati-saizi rolls uye kuburitsa hafu yawo pane isina chinhu spool.Zvinotora asingasviki maminetsi mashanu, izvo zvisiri kukanganisa kukuru maererano nekumhanya kwandinovashandisa.
Mhinduro pfupi-hongu!Bluetooth Low Energy (BLE) inowirirana pamapuratifomu akasiyana, saka kuishandisa paLinux hakuzoite mutsauko wakawanda.
Pamavara anogona kurongeka, mitsetse yakapfava, nemabhakodhi, hapana madhiraivha akaomarara anodiwa, nekuti anenge ese akajairika madhinda/marisiti anodhinda anotsigira iri nyore Epson printer standard code, inozivikanwawo seESC/P.[1] Kuti zvive zvakanyatsojeka, maprinta akanyorwa/receipt anodziya anoshandisa musiyano weESC/POS (Epson Standard Code/Point of Sale).[2] Zita rekuti ESC/P kana ESC/POS rakakodzerawo nekuti pane ESCape character (ASCII code 27) pamberi peprinter command.
Yakareruka general-chinangwa thermal label/receipt printers inogona kutengwa zvakachipa pamawebhusaiti akadai seAliExpress.[3] Aya maprinta echinangwa chese ane RS-232 UART TTL level interface inotsigira ESC/POS.Iyo RS-232 UART TTL level interface inogona kuchinjirwa nyore ku USB uchishandisa UART/USB bhiriji chip (senge CH340x) kana tambo.Kune WiFi uye BLE isina waya yekubatanidza, iwe unongoda kubatanidza module senge Espressif ESP32 module kune UART TTL interface.[4] Kana wedzera gumi-gumi neshanu madhora ekuUS pamutengo weyakajairwa thermal label/receipt printer, uye ichapa zvakananga USB/WiFi/BLE.Asi mufaro uri papi apa?
Paunenge uchida kugadzirisa mufananidzo (zoom/dither/black-and-white conversion) uye woitumira kune label printer, mutyairi akaoma anouya kutamba.Kune Windows, mutyairi anopiwa online, tsvaga "Windows thermal label printer driver" pasina "s".Zvakanyanya kunetsa kune ma microcontroller anoshandisa maprinta epasi rose / receipt kudhinda mafoto, uye iyo [Larry Bank]'s Arduino raibhurari inoita seyakaendeswa kune inotevera nhanho.
3. Goojprt Qr203 58 mm micro embedded thermal printer Rs232+Ttl panel inoenderana neEml203, inoshandiswa parisiti bhakodhi US $15.17 + US $2.67 Kutumira:
4. Wireless module NodeMcu V3 V2 Lua WIFI development board ESP8266 ESP32 ine PCB antenna uye USB port ESP-12E CP2102 USD 2.94 + USD 0.82 Mari yekutumira:
Bepa rinoshandiswa nevadhindi ava rine chekuita nehuwandu hwematambudziko ehutano.Pamusoro pezvo, haigone kudzokororwa kana kutenderedza nharaunda mune chero chimiro.
Iyo ine ine simba endocrine disruptor bisphenol-a.Nenzira, zvigadzirwa zvisina BPA kazhinji zvine BPA-zvakasarudzika zvakasiyana, asi zvakanyanya endocrine zvinokanganisa.
Pasinei nemakemikari anogumbura kana kwete, bepa rinopisa harina kugadzikana (zvinonzwisisika) hushamwari nechero tsanangudzo.
Iwe haugone kutarisana nechikamu chidiki chemari yakagadzirwa necashier.Asi zvakakodzera kutaurwa.
Yakafemerwa neichi Hackaday post na [Donald Papp], iyi positi inonongedza ku [Larry Bank]'s Arduino raibhurari ine mafoto ekudhindwa kweanopisa anodhinda, [Jeff Epler] ane imwe itsva kuAdafruit (Gunyana 2021) 28th)'BLE Thermal “ Katsi” Printer Tutorial ine CircuitPython [1][2][3] Izvi zvakakonzera basa rekudhinda mapikicha richifambiswa nekakanaka kadiki (asi kari kudhura IMHO) Adafruit CLUE nRF52840 Express Thermal printer ine Bluetooth LE board uye 1.3” 240×240 ruvara IPS TFT kuratidza pabhodhi.[4]
Nehurombo, iyo CircuitPython kodhi inongodhinda chifananidzo chakafanofambiswa neiyo foto editing application (seyemahara uye yakavhurika sosi muchinjiko-chikuva GIMP mufananidzo mupepeti).[5] Asi kutaura zvakanaka, ndinokahadzika kana CLUE board ine Nordic nRF52840 Bluetooth LE processor, 1 MB flash memory, 256KB RAM, uye 64 MHz Cortex M4 processor inomhanya yakazara CircuitPython ine nzvimbo yekufanogadzirisa chero chinhu kunze kwekureruka Mufananidzo- plank.
[Jeff Epler] akanyora: Pandakaona "katsi" printer mune ino Hackaday chinyorwa (https://hackaday.com/2021/09/21/mini-wireless-thermal-printers-get-arduino-library -and-macos -app/), ini ndinongoda kuzvigadzirira imwe.Iyo yepakutanga poster yakagadzira raibhurari yeArduino, asi ini ndaida kugadzira vhezheni yakakodzera CircuitPython.
2. Adafruit's “BLE Thermal “Cat” Printer ine CircuitPython” Tutorial [peji rimwechete html format]

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

Nekushandisa webhusaiti yedu uye masevhisi, unobvumirana pachena nekuiswa kwekuita kwedu, kushanda uye kushambadza makuki.dzidza zvimwe


Nguva yekutumira: Oct-13-2021