0

Connecting a printer to an Arduino?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Connecting a printer to an Arduino?

by uberhund on Sun Sep 04, 2011 5:04 pm

Yes, my "cable" is based on the traditional 3-wire solution as well:

CuteDigi Pin..........Epson Pin.........(color as shown in photos)
2..............................3.......................Yellow
3..............................4.......................Green
5..............................1.......................Red

Not shown is a common ground shared through the power supply.
Attachments
RS232 EpsonSide.jpg
RS232 EpsonSide.jpg (63.71 KiB) Viewed 1959 times
RS232 CuteDigiSide.jpg
RS232 CuteDigiSide.jpg (83.37 KiB) Viewed 1959 times
Last edited by uberhund on Mon Sep 05, 2011 8:41 am, edited 1 time in total.
Hacking is an addiction. Arduino is the gateway drug.

uberhund
 
Posts: 142
Joined: Tue Dec 02, 2008 4:06 pm

Re: Connecting a printer to an Arduino?

by short on Sun Sep 04, 2011 7:34 pm

uberhund, thanks a lot for all your help! It now all works quite fine :D


Cheers,

short
short
 
Posts: 5
Joined: Fri Sep 02, 2011 10:20 am

Re: Connecting a printer to an Arduino?

by richms on Mon Sep 05, 2011 3:17 am

I dont recall seeing upsidedown in the command set, if its just constant things then there is windows software to upload several images that you can print with a control character.

If you have to move to using bitmap mode like windows does the serial interface is way way way too slow for that - your not going to be doing any car racing games on reciept paper over serial if you have to print in graphical mode.

richms
 
Posts: 558
Joined: Tue Jan 20, 2009 3:05 am
Location: New Zealand

Re: Connecting a printer to an Arduino?

by short on Mon Sep 05, 2011 4:23 am

richms wrote:I dont recall seeing upsidedown in the command set, if its just constant things then there is windows software to upload several images that you can print with a control character.


I figured that out in the meantime: It is ESC {

Or, if you'd like to add it to uberhunds set of Characters:

char upSideDownON[]={0x1b,'{',0x01};
char upSideDownOFF[]={0x1b,'{',0x00};

It works fine with the Epson TM-T88II

I haven't figured out the bitmap printing with ESC POS yet, I think I might be messing up the data for the ESC * command.


Regards,

short
short
 
Posts: 5
Joined: Fri Sep 02, 2011 10:20 am

Re: Connecting a printer to an Arduino?

by spearson78 on Mon Apr 29, 2013 7:13 am

I've written a printer driver to control the Epson M-190 printer mechanism form an Arduino UNO.

There is a demo here

http://www.youtube.com/watch?v=yWz-9c-KAus&feature=youtu.be

and the source code is available on github.

https://github.com/spearson78/arduino-m190
spearson78
 
Posts: 1
Joined: Mon Apr 29, 2013 7:08 am

Re: Connecting a printer to an Arduino?

by uberhund on Mon Apr 29, 2013 8:24 am

Nice work, Spearson78. In fact, uber nice. Counter top real estate is critical in my case - your solution really brings the footprint down.
Hacking is an addiction. Arduino is the gateway drug.

uberhund
 
Posts: 142
Joined: Tue Dec 02, 2008 4:06 pm

Re: Connecting a printer to an Arduino?

by musiccankill on Wed May 08, 2013 7:50 am

Hello!!
I tried to enter the page for the m190 printer and the page has been deleted...
Does anybody have the library or knows where i can download it?
Thanks a lot in advnace..!
musiccankill
 
Posts: 1
Joined: Wed May 08, 2013 7:48 am

Re: Connecting a printer to an Arduino?

by Vamshich253 on Mon Mar 18, 2019 4:17 am

Hi Guys,

At the moment, I am looking to drive a Epson LQ-310 impact dot matrix printer with Arduino Mega ADK through USB using UHS2.0 library.

Unfortunately, the blog posted by rufruf is deleted.

Could anyone please help me regarding this on how to achieve this?

Thank You.

Vamshich253
 
Posts: 2
Joined: Mon Mar 18, 2019 4:00 am

Please be positive and constructive with your questions and comments.