+21622886281
Micro:bit Thermal printer

Control a thermal printer with Micro:bit

A thermal printer is a type of printer that uses heat to transfer ink or toner onto paper. Instead of using ink cartridges or toner cartridges, thermal printers use special thermal paper that has a coating of heat-sensitive material on one side. When the paper is passed through the printer, heat is applied to the coating, which causes the material to darken and create an image or text.

Thermal printers are widely used in many different applications, such as point-of-sale (POS) systems, label printing, and barcode printing. They are known for their speed, durability, and low cost of operation, as they do not require ink or toner. However, thermal paper is costlier than regular paper and the printout is not long-lasting as it fades with time.

There are two types of thermal printers: direct thermal and thermal transfer. Direct thermal printers use heat to activate the ink on the special thermal paper directly, while thermal transfer printers use a ribbon that is heated and pressed against the paper to transfer ink.

A thermal printer can be connected to a Micro:bit using an expansion driver card specifically designed for thermal printers. This card will provide the necessary interface and control signals to communicate with the thermal printer.

Once the thermal printer is connected to the Micro:bit, you can use the programming languages that Micro:bit supports to control the printer. This can include sending text or images to be printed, adjusting the print density and speed, and controlling other printer functions such as cutting the paper.

You will also need a library or an API that allows the Micro:bit to communicate with the thermal printer via the expansion driver card. This library will provide the necessary commands for sending data to the thermal printer, and handle any communication protocols required.

To use a thermal printer with a Micro:bit, you’ll need to have a basic understanding of programming and the Micro:bit platform, as well as knowledge of the specific thermal printer and expansion driver card you are using.

Purpose of this tutorial:

In this tutorial we will see how to send data from the Micro:bit card to a QR701 thermal printer: If you press button A on the Micro: bit card, the printer prints the word ‘Micro:bit card’.

To control a QR701 thermal printer with a Micro:bit, you will need to follow these steps:

  1. Connect the QR701 thermal printer to the Micro:bit. Make sure that the connections are secure and that the correct pins are matched.
  2. Install the necessary libraries or APIs for communicating with the thermal printer on your Micro:bit. This may include a printer-specific library or a general serial communication library.
  3. Write the code to control the printer using the Micro:bit programming languages, such as MakeCode. The code should include commands to send text or images to the printer, adjust print density and speed, and control other printer functions such as cutting the paper.
  4. Upload the code to the Micro:bit and test the printer’s functionality. Make sure that the text or images are being printed correctly, and that you can adjust the print density and speed as desired.
  5. Make any necessary adjustments to the code, and repeat the testing process until the printer is working as desired.

Components required

Micro:bit card

The micro:bit is a small, programmable computer developed by the BBC for use in computer education in the UK. It features a 5×5 LED matrix, two buttons, and various sensors, and can be programmed using a variety of languages, including MakeCode, Python, and JavaScript. The device is intended to be used in classroom settings to teach children the basics of programming and computer science, but it can also be used for a wide variety of other projects and experiments.

GPIO card

A GPIO (General Purpose Input/Output) card for the Micro:bit is an expansion board that can be used to connect the Micro:bit to various sensors and actuators. The Micro:bit has a limited number of I/O pins, and a GPIO card provides more I/O pins to connect more devices.

A GPIO card typically connects to the Micro:bit via the edge connector on the bottom of the board, and provides additional I/O pins in a breadboard-compatible format. Some GPIO cards also include built-in components such as LEDs, buttons, and sensors, which can be used to add functionality to the Micro:bit without the need for additional components.

The Micro:bit GPIO card can be programmed using the Micro:bit programming environment, which is based on the block-based programming language, and also support micropython. The GPIO card can be used to control and read sensors, lights, motors, and other electronic devices.

QR701 thermal printer

The QR701 thermal printer is a compact and portable thermal printer that is typically used for point-of-sale (POS) systems, label printing, and barcode printing. It uses thermal printing technology, which means that it uses heat to transfer ink or toner onto paper.

Some of the features of the QR701 thermal printer include:

  • High print speed: It can print up to 90mm/s, which is quite fast
  • High resolution: It has a printing resolution of 8 dots/mm (203 dpi)
  • Support for various paper widths: Can print on paper widths from 40mm to 82.5mm
  • Support for various paper types: It supports paper types such as thermal paper, thermal label paper, and thermal tag paper
  • Support for various languages: It supports various languages such as Chinese, English, Japanese, and French
  • Small and lightweight: It is small and lightweight, making it easy to transport and use in various settings.

The QR701 thermal printer can be connected to a variety of devices such as computers, POS terminals, and microcontrollers, using various interfaces such as USB, serial, and Ethernet.

This printer is widely used in retail, warehouse, logistics and other industries. It can be used to print receipts, labels, and tickets, among other things.

5V-2A charger

A 5V-2A charger is a type of power supply that can be used to provide power to the QR701 thermal printer. The charger is typically a small, compact device that can be plugged into an electrical outlet to provide power to the printer.

The 5V-2A charger is necessary to provide a stable power supply to the thermal printer. The thermal printer requires a stable power supply to function properly and to avoid any damage to the internal components. The 2A part of the charger specification indicates that the charger can provide up to 2 amperes of current, which is sufficient to power the printer and keep its battery charged, if the printer has one.

Test plate

A test plate, also known as a prototyping plate or a breadboard, is a device that is used to build and test electronic circuits. It provides a convenient way to connect components such as resistors, transistors, and LEDs, without the need for soldering.

Connecting wires

Connecting wires are used to connect electronic components in a circuit. They are typically made of copper and are coated with insulating material to prevent electrical contact between the wires themselves or between the wires and other conductive materials.

Mounting

To perform the assembly, we connect:

  • the VH pin of the printer to the (+) terminal of the charger

  • the first GND pin of the printer to the GND pin of the Micro: bit board

  • the second GND pin of the printer to the GND pin of the Micro: bit card

  • the TR pin of the printer to pin P8 of the Micro: bit card

Makecode program

This is the program that prints data sent from the Micro: bit card to the printer.




19 commentaires

Order Lenses Online For Glasses 09-08-2323

It's perfect time to make some plans for the future and it's time to be happy. I've read this post and if I could I wish to suggest you few interesting things or suggestions. Perhaps you can write next articles referring to this article. I want to read even more things about it!

exclusive trademark license agreement example 24-01-2323

Hello theгe, I discovered your website by ᴡay of Gooցlе at the same time as looking for a cօmparable matter, your site got herre up, it ɑppears great. I have bookmarked it in my ցoogle bookmarks. Hi there, simply changed into alert to your blog viia Google, and located that it is really informative. I am going to waatch out for brusѕels. I wilⅼ appгeciate when you continue this in future. Many other folks will probably be beenefited out of your writing. Cheers!

trademark lawsuit 19-01-2323

Sоmeone essentially lend a hand to maake critically articles Ι might state. That iss the first time I frequented your web ⲣae and up to now? І amaazed ѡitһ the rеsearсh yօu made to make thіs partіcular publis extraordinary. Great task!

pg slot wallet 06-01-2323

Please let me know if you're looking for a author for your blog. You have some really great posts and I believe I would be a good asset. If you ever want to take some of the load off, I'd really like to write some content for your blog in exchange for a link back to mine. Please shoot me an e-mail if interested. Kudos!

ปืนสั้นแก๊ส 17-12-2222

Pretty! This has been a really wonderful post. Thank you for supplying this info.

สล็อต 99th 15-12-2222

It's really very difficult in this busy life to listen news on Television, so I only use web for that purpose, and get the most recent news.

Free Spins 06-12-2222

Hey There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I will definitely comeback.

tracfone special coupon 2022 28-11-2222

I was suggested this blog by my cousin. I'm not sure whether this post is written by him as no one else know such detailed about my difficulty. You are wonderful! Thanks!

mostbet 25-11-2222

I am genuinely thankful to the holder of this website who has shared this impressive article at at this time.

ฝาก 100 รับ 100 ล่าสุด 2022 19-11-2222

This info is invaluable. When can I find out more?

paripesa 15-11-2222

hey there and thank you for your info – I have certainly picked up anything new from right here. I did however expertise a few technical issues using this site, since I experienced to reload the site lots of times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and can damage your quality score if advertising and marketing with Adwords. Well I am adding this RSS to my email and could look out for a lot more of your respective interesting content. Make sure you update this again very soon.

Lucky Days 14-11-2222

Hey there are using Wordpress for your site platform? I'm new to the blog world but I'm trying to get started and create my own. Do you require any html coding knowledge to make your own blog? Any help would be greatly appreciated!

ฝาก 20 รับ 100 ล่าสุด 2022​ 30-10-2222

Very good post! We are linking to this particularly great content on our site. Keep up the good writing.

Doretha 20-10-2222

I am no longer certain the place you're getting your info, however great topic. I needs to spend some time learning much more or working out more. Thank you for wonderful information I was in search of this info for my mission.

Donnell 18-09-2222

I am not certain the place you are getting your info, but great topic. I needs to spend some time studying more or working out more. Thanks for magnificent info I was on the lookout for this information for my mission.

Cyrus 18-09-2222

Hi! Would you mind if I share your blog with my facebook group? There's a lot of people that I think would really appreciate your content. Please let me know. Thank you

Amy 05-05-2222

I'll immediately grab your rss as I can't in finding your email subscription link or newsletter service. Do you've any? Please let me recognise so that I may subscribe. Thanks.

Helaine 03-05-2222

Post writing is also a excitement, if you know after that you can write otherwise it is complex to write.

bacha adnan 10-03-2222

merci les khey


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top