Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Stuttering when printing images or test print #52

Open
wlwatkins opened this issue Mar 16, 2022 · 19 comments
Open

Stuttering when printing images or test print #52

wlwatkins opened this issue Mar 16, 2022 · 19 comments

Comments

@wlwatkins
Copy link

Hi,

I'm having an issue but I am not sur it's not due to the printer itself. Indeed I followed the tutorial to setup the printer with a raspberry pi and installed the zj58 drivers. However when I do the test print or print a PNG file through LP the printer stutters. That is every 5mm it stops for a second. This leads to slow prints and also to artefacts in the result.
I saw some videos on YouTube where the images are printed continuously without any issues.

Any idea?

@ladyada
Copy link
Member

ladyada commented Mar 16, 2022

could be a bad or weak power supply

@wlwatkins
Copy link
Author

I'm using a bench top 30amps power supply at 9v so no problems there. When I print the test paper it printe very quickly ans smoothly

@caternuson
Copy link
Contributor

wiring also matters for power issues. is the self test print working without issue?

it might help to post in the forums first with photos of your hardware setup:
https://forums.adafruit.com/
to make sure it's not something hardware related.

@wlwatkins
Copy link
Author

here's a video of the issue
https://youtu.be/1MUEXiSN3ok
As you can see, the printing stutters even though the ps has enough intensity to provide what is needed. This looks like a software issue, but I cannot find a solution. I've tried many different drivers, etc... but nothing. Is this a normal behaviour?

@ladyada
Copy link
Member

ladyada commented Apr 5, 2022

did you set the xon/xoff flow control?

@wlwatkins
Copy link
Author

yep

@caternuson
Copy link
Contributor

@wlwatkins
Copy link
Author

20220405_180022
20220405_180027

here's the test page. the paper is bad quality so i'm using it for testing. (though i'm not excluding it is part of the issue)
i've also tried with the virtual print thing though i couldn't find online what it does, nor is it mentioned in any documentation

@PaintYourDragon
Copy link
Contributor

Flow control seems to be working. In the printer config dialog on the Pi, can you confirm the baud rate is set to 19,200? It looks like the printer’s receiving data in super slo-mo, hence the pauses. I mean some short pause is normal even at 19,200, but this is pretty severe.

@wlwatkins
Copy link
Author

wlwatkins commented Apr 5, 2022

I've tried with an arduino mega and i get same behaviour. I also get the same stuttering when printing the test page from zj-58 driver which I tried from multiple sources.
but yeah, it does look like it's getting the data in slow impulse.
If i change the baud rate, i get gibberish letters printed at a correct speed

Maybe it's the firmware. Any tutorial on how to update the firmware from a raspberry pi? it's the only way I seem to have to connect the printer.

when I see this, I'm quite intrigued https://youtu.be/LwKOvT7rCiU?t=505

I tried with a serial to usb board and same behaviour...

@wlwatkins
Copy link
Author

I followwed this https://learn.adafruit.com/mini-thermal-receipt-printer?view=all#downloads and added the DTR wire and an arduino, no it prints much faster. It's not perfect, but still better. Any idea how to incorparate this wire on a raspberry pi?

@wlwatkins
Copy link
Author

@ladyada
Copy link
Member

ladyada commented Apr 6, 2022

@willmendil what is the exact URL of the product you purchased

@wlwatkins
Copy link
Author

@ladyada
Copy link
Member

ladyada commented Apr 6, 2022

do you have the box it came in, did it have an adafruit product ID sticker on it?

@wlwatkins
Copy link
Author

20220406_173729

@wlwatkins
Copy link
Author

@ladyada any insight?

@ladyada
Copy link
Member

ladyada commented Apr 12, 2022

you could try the arduino library or not use the printer driver and just connect direct over serial. often the printers need more power, 5V or 9V @ 4A

@wlwatkins
Copy link
Author

tried it with an arduino mega and uno with demo codes.
What worked "better" was to use a serial to usb board and connect the DTR cable. but it was still not as good... i might have been given a bad unit... I order some other printers off aliexpress which were a bit cheaper. I'll see if they work (hopefully because this is getting expensive). I also tried uploading the firmware but i only get errors using the "AClasTool.exe tool

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants