Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
It depends.Is there anyway to connect a uC like PIC(any) to a printer and perform a print? or would that be to difficult?
True but not if the printer depends on the PC to compose the page. Most of the inexpensive printers sold in theh past 15 years do this. When they first came out they were called windows printers.Atomsoft, if it's a parallel printer it's actually really easy, all you need are 9 connections, 1 for each data bit and 1 for the strobe. Set the data bits, turn the strobe pin on and wait a small period of time and then set it low again. Each strobe pulse will cause the printer to read in the data pins. USB is however a different story. If a printer has a serial connection it likley has a parallel one as well (though not always)
%!PS
/minidict 45 dict def minidict begin
/inch {72 mul} def
/ld {load def} def
/gs /gsave ld /gr /grestore ld /gray {gs setgray fill gr} def
/li /lineto ld /rl /rlineto ld /ct /curveto ld/set {gs setlinewidth st gr} def
/mt /moveto ld /tr /translate ld /np /newpath ld /cp /closepath ld
/st /stroke ld /rp /repeat ld /ro /rotate ld /rt /rmoveto ld
/box {np mt rl rl rl cp set} def /circle {np arc set} def
/newline {tm lg sub /tm exch def lm tm mt} def
/centre {dup stringwidth pop 2 div linewidth 2 div exch sub lm add tm mt} def
/right {dup stringwidth pop rm exch sub tm mt} def /r {right n} def
/s /show ld /n {show newline} def /L {newline} def
/c {centre n} def /kern {0 rmoveto} def /k {kern} def
/F {findfont exch scalefont setfont} def
/w /widthshow load def /h {0 32} def
/textbox {/lm 0 def /bm 0 def /rm 7 inch def /tm 0 inch def /lg 12 def lm tm moveto} def
/page {gsave 50 72 translate textbox} def
/close {grestore showpage end} def
/end
gs 0.75 inch 10.50 inch tr textbox
10 /Helvetica F
(Hello World) n
grestore
You could learn PCL and send your datastream that way.
Last time I tinkered with a printing application it goes something like this.
1. Application to OS print subsystem
2. OS subsystem creates a printing metafile
3. The driver of the printer takes the metafile an puts it into something the printer understands.
So you "could" learn a bit of PCL and fire that at the printer directly, PCL is relatively old but still understood by most printers.
im glad i can give at least a project idea. I wont be taking this on becuase too advanced for me i guess and wont fit project needs. I wanted to make a project that would print info contain in eeprom but formatted like eeprom will contain date/time info and other things.
But i might as well have it dump the info to a terminal and print it there.
sounds cool but if my project was to ever hit mainstream (for sale) then it would need to be a general printer needed. Or i would have to sell with printer and if printer isnt widely available or is to costly then it would effect sales.
well it was meant in general but lets say for example my im making my alarm and want it to print out the info every time an alarm goes off but on command print out entire eeprom info.