Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very dark images often result in corrupt prints #24

Open
lazyatom opened this issue May 7, 2012 · 3 comments
Open

Very dark images often result in corrupt prints #24

lazyatom opened this issue May 7, 2012 · 3 comments

Comments

@lazyatom
Copy link
Contributor

lazyatom commented May 7, 2012

It looks like images with a lot of darkness in them cause the prints to corrupt; sometimes skipping parts of the image, sometimes resulting in garbage character output. See here for examples:

Tweaking the darkness setting for the printer right down seems to resolve this:

The first print (at the bottom) used a darkness of 150, and still demonstrated the error. The second print (at the top) used a darkness of 50, and printed successfully.

My current best guess is that the slow-down caused by the darkness results in some kind of buffer overrun within the printer. Introducing a delay(1) after every 500 bytes sent to the printer resolves the problem, at the cost of a significant print speed reduction.

@lazyatom
Copy link
Contributor Author

I wonder if the server could analyse the darkness of the image at certain points and introduce commands into the image stream to compensate? For example, images with large pixel densities could be split into smaller chunks of images, interspersed with commands to alter the heat time of the printer and thus increase the print speed?

@lazyatom
Copy link
Contributor Author

We could also try to detect the state of the printer; at the moment nothing is done with any data that the printer might send back to the Arduino, if there is any?

@jamesweiner
Copy link

Thanks for looking into this James... let me know if I can help any more at all!

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

No branches or pull requests

2 participants