Searching \ for 'drive a Hewlett Packard Ink Jet printer with a PIC' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'drive a Hewlett Packard Ink Jet printer with a PIC'.

Truncated match.
PICList Thread
'drive a Hewlett Packard Ink Jet printer with a PIC'
1999\03\25@055602 by Marcos Migliorini

flavicon
face
Hi all:
Here in my country the HP 670, 680, and 692 ink jet printers are very
popular.
On the other way is very dificult to find a special printer for a
microcontrolers projects..... so I need to drive a HP ink jet from a pic. I
have experience with the old fashion Epson LX850, sending to it ascii
characters , and LF , CR commands; driving the strobe, busy and error lines
with a pic.
But when I tray to drive a HP Ink Jet the printer doesen´t work.
Some body know the way to drive this printers?

Thanks

Marcos Migliorini

1999\03\25@074651 by Sten Dahlgren

flavicon
face
Marcos Migliorini wrote:
>
> Hi all:
> Here in my country the HP 670, 680, and 692 ink jet printers are very
> popular.
> On the other way is very dificult to find a special printer for a
> microcontrolers projects..... so I need to drive a HP ink jet from a pic. I
> have experience with the old fashion Epson LX850, sending to it ascii
> characters , and LF , CR commands; driving the strobe, busy and error lines
> with a pic.
> But when I tray to drive a HP Ink Jet the printer doesen«t work.
> Some body know the way to drive this printers?
>
Maybe it's a ppa printer. You could find some info here
http://www.rpi.edu/~normat/technical/ppa/new.html

If it's not a ppa printer it should be a PCL one
and then you have to send it PCL commands. Check http://www.hp.com

regards
/Sten
--
Sten Dahlgren  ! I'd rather have 39 hp under my right arm than
Enea Data AB   ! one horse under my bottom !
Box 232        ! Join your nearest karting club !
183 23 TŠby    !
Sweden         !
+46 8 6385000  !
spam_OUTstdaTakeThisOuTspamenea.se   !

1999\03\25@133634 by Nigel Goodwin

flavicon
picon face
In message <00a101be76ae$286ef520$cafe00c8@marcosm>, Marcos Migliorini
<.....marcosmKILLspamspam@spam@SICOAR.COM> writes
>Hi all:
>Here in my country the HP 670, 680, and 692 ink jet printers are very
>popular.
>On the other way is very dificult to find a special printer for a
>microcontrolers projects..... so I need to drive a HP ink jet from a pic. I
>have experience with the old fashion Epson LX850, sending to it ascii
>characters , and LF , CR commands; driving the strobe, busy and error lines
>with a pic.
>But when I tray to drive a HP Ink Jet the printer doesen4t work.
>Some body know the way to drive this printers?

I don't know for sure about these particular HP printers, but many of
the newer ones are Windows GDI printers. This reduces the price by
having most of the processing power inside the PC, so you can't just
send the printer plain ASCII codes as with the older printers.

I can't say I've looked into it, but I believe you have to build a
complete 'bitmap' of the printed image, then send it to the printer,
probably using some special kind of protocol. I suspect this would be
hard to do with the limited mempry in a PIC?.
--

Nigel.

       /--------------------------------------------------------------\
       | Nigel Goodwin   | Internet : nigelgspamKILLspamlpilsley.demon.co.uk     |
       | Lower Pilsley   | Web Page : http://www.lpilsley.demon.co.uk |
       | Chesterfield    | Official site for Shin Ki Ju Jitsu         |
       | England         |                                            |
       \--------------------------------------------------------------/

1999\03\26@120121 by Leo van Loon

flavicon
face
You will find information about PCL3 language here:
www.interactive.hp.com/cgi-bin/cspt/cds/dlvr.pl?lid=general&fid=bpd02
925&pid=

Leo van Loon


{Quote hidden}

1999\03\26@153006 by John Payson

flavicon
face
|I can't say I've looked into it, but I believe you have to build a
|complete 'bitmap' of the printed image, then send it to the printer,
|probably using some special kind of protocol. I suspect this would be
|hard to do with the limited mempry in a PIC?.

I would expect it would be easier with an inkjet than a laser; with many
cheap laser printers, there isn't enough memory to hold a whole page so
what happens is that the PC starts sending data to the printer and when
its memory is full it starts printing.  The PC then has to manage to send
the rest of the data before the printer finishes the page (since the drum
can't stop!).

With an inkjet, however, there shouldn't be any minimum data speed requ-
irement so you can process the bitmaps as you go.  As a simple approach,
suppose the printer wants data where one byte represents 8 dots horizon-
tally and 75 bytes represent the 600 dots across the page (at 75dpi).
Further suppose you have a list of XY vectors in EEPROM that you want to
plot.

What you could do would be to set up a buffer of 75 bytes and then loop
something like this:

void plot(void)
{
 ui i,x1,y1,x2,y2;

 for (i=0; i<page_height; i++)
 {
   set_eeprom_address(0);
   while (data_remains())
   {
     x1=read_word();
     y1=read_word();
     x2=read_word();
     y2=read_word();
     if (y1 < i && y2 < i)
       continue;
     if (y1 > i && y2 > i)
       continue;
     if (y1==y2) /* Horizontal line */
     {
       if (x1 < x2) {y2=x1; x1=x2; x2=y2;}
       while (x1 <= x2)
         plot_in_buffer(x1);
     }
     else
     {
       /* Compute intercept and plot it in buffer... */
     }
   }
   send_buffer_to_printer();
 }
}

Note that the same approach could be used for 150 or 300 dpi, using a
1/4-line buffer, but that would take forever to print.

1999\03\28@164944 by tefan Ranguelov

flavicon
face
Hi !

Marcos Migliorini wrote:
>
> Hi all:
> Here in my country the HP 670, 680, and 692 ink jet printers are very
> popular.

Years ago i have written a driver for the HP DeskJet 500. It uses the
PLC 5 page description language from HP. The DJ500 had a parallel and
a RS232 interface, so it was very easy to hook it to the
microcontroller.

Today most of the printers have only a parallel interface so you will
need more port pins or extra chips for the interface. Maybe there are
still some printers with RS232.

The DJ 500 had a short description of the PCL 5 language in the manual,
my new LaserJet 6P doesn't have it, you have to order the Programing
reference from HP.

Printing text is very easy. Printing graphics works also, you have to
send
the pixels of a line from left to right, 8 pixels in a byte. The tricky
part
is do write an algorithm that generates the image from your data without
using to much RAM. It depends on what you want to print.

There are cheap so called GDI printers that use the PC for doing the
rendering.
They wouldn't work. You also may use a postscript printer, the
postscript
language is pure ascii, but postscript printers are NOT cheap.
...
> have experience with the old fashion Epson LX850, sending to it ascii
> characters , and LF , CR commands; driving the strobe, busy and error lines
> with a pic.

PCL 5 works in a similar way, the control sequences are different. So
look
for a description of PCL5, maybe from HP, maybe you can find the manual
of an old DeskJet.

Hope this helps.
St.

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...