TelegaGraph

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
Post Reply
Lepeshka
Posts: 2
Joined: Sun Mar 25, 2018 10:03 am
Contact:

TelegaGraph

Post by Lepeshka » Sun Mar 25, 2018 3:11 pm

TelegaGraph prints messages from Telegram Bot on a thermal printer only with ESP8266.

It is only the first version. The code is not the best, but I would like to have something to work. Used board Wemos D1 mini firmware Micropython v.1.9.3

I wrote a basic library for working with bot api Telegram. It can only send and receive messages. At the moment, sending of the message is very limited, in view of the need to complete the URL character encoding function.

For the thermal printer was also written a library, which implements only a small functionality. This library also requires improvements. For example, you need to add a function that will turn the printer into low-energy mode so that it does not discharge the battery so quickly.

To connect the printer to the microcontroller, UART1 was used, which is located on GPIO2 (D4). This UART, as I understand it, has only TX pins. I did not go to hell with UART0, because one-way transmission is enough for me. I sacrifice only the status functions of the printer, for example, I can not find out that the paper is over.

GitHub: https://github.com/Lepeshka92/TelegaGraph
Youtube: https://www.youtube.com/watch?v=bRStFu05Uio

User avatar
pythoncoder
Posts: 2888
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: TelegaGraph

Post by pythoncoder » Mon Mar 26, 2018 6:13 am

I like it :D I wonder if there's scope for saving power by switching off the DC supply to the printer until a message arrives?
Peter Hinch

Lepeshka
Posts: 2
Joined: Sun Mar 25, 2018 10:03 am
Contact:

Re: TelegaGraph

Post by Lepeshka » Mon Mar 26, 2018 8:24 am

pythoncoder wrote:
Mon Mar 26, 2018 6:13 am
I like it :D I wonder if there's scope for saving power by switching off the DC supply to the printer until a message arrives?
Printer can be put into energy-saving mode until arrival of a new message

Post Reply