Hi is it possible to make an alert type if thermal paper in arduino have all used up?
Arduinos do not have thermal paper or any paper, so what are you really trying to do?
Please post a link to your printer, and a schematic of how you have it wired to the Arduino. We'll probably also need your code to drive the printer, and a sample of what it's printing.
Im just thinking that if thermal printers paper on it are all consumed up, is there any way to make an alert .. if any , would like to print it to lcd or just in buzzer
Tx pin connected to pin 6
Rx pin connecred to pin5
Gnd is on common ground
As requested in reply #2, post a link to the (preferably user manual of the) printer.
The printer might notify you via serial but only you know. It might have an out-of-paper indication that you can hack but only you know.
This type of thermal printers from adafruit
This type of thermal printers from adafruit
There already is a function in the library that they suggested: "hasPaper() //Returns true for paper, false for no paper."
also from the printer datasheet, pin 12 on the LPT interface is output for "Paper Out"
have you tried either?
you could use either in your code to then set some sort of alarm!
Did you read the user manual that is linked on the Adafruit page? Page 10 mentions 'paper sensor status' and page 20 seems to describe what you're looking for. So there is hope that this can be done via the serial connection.
So the question is if the library has a function for that. Dig through the the Adafruit_Thermal.h file and you will find mention of a public method hasPaper().
Sounds promising Try it.
If interested, you can find detals about hasPaper() in the Adafruit_Thermal.cpp file and see what it does. Surprise, it uses one of the status commands on page 20 of the user manual
Thanks sterretje and sherzaad for this info... i will try to dig for it...
hasPaper(); // hasPaper was not declared in this scope
Max2p:
hasPaper(); // hasPaper was not declared in this scope
Isn't it a class member?
Sorry... i forgot... i have fix it to printer.hasPaper();
Anyway.. thanks....