<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Interfacing Thermal Printer with Freedom board FRDM-KL25Z : Part 1</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16898/interfacing-thermal-printer-with-freedom-board-frdm-kl25z-part-1</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Interfacing Thermal Printer with Freedom board FRDM-KL25Z : Part 1</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16898/interfacing-thermal-printer-with-freedom-board-frdm-kl25z-part-1</link><pubDate>Fri, 08 Oct 2021 07:50:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca495d74-aefd-48ea-9c12-33f759ccc0eb</guid><dc:creator>bheemarao</dc:creator><comments>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16898/interfacing-thermal-printer-with-freedom-board-frdm-kl25z-part-1#comments</comments><description>Current Revision posted to Documents by bheemarao on 10/8/2021 7:50:06 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;This tutorial was extracted from Erich Styger blog &lt;/em&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#373737;"&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#592d5f;" target="_blank"&gt;&lt;span style="font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;http://mcuoneclipse.wordpress.com&lt;/em&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt; with his agreement.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;One of my embedded projects is to measure the running time in a sports event (see “&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2012/08/14/timing-system-in-a-lunch-box/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Sports Timing System in a Lunch Box"&gt;Sports Timing System in a Lunch Box&lt;/a&gt;“). The recorded time is stored in an EEPROM plus sent over USB or wireless connection to the host. It would be great if I could print out the time and ranking directly, so if there is no PC, the system can be small and tiny. So here is my next project and tutorial:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-family:inherit;font-size:15px;font-style:inherit;"&gt;&lt;strong&gt;Printing with the Freedom board!&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/hello-world-on-the-printer-with-frdm-kl25z.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img alt="Hello World on the Printer with FRDM-KL25Z" class="jiveImage size-full wp-image-11011" height="576" src="http://mcuoneclipse.files.wordpress.com/2014/03/hello-world-on-the-printer-with-frdm-kl25z.png?w=584&amp;amp;h=576" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hello World on the Printer with FRDM-KL25Z&lt;/p&gt;&lt;p style="margin:0;padding:0px;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The ability to print is a great addition to any other project: I can send messages to be printed out on a remote board, using it as a receipt printer, logging test results and many more things: having printing capabilities is such a great addition to any project, and it does not take much! I have spent this Sunday morning only 4 hours from unpacking, connecting the hardware, programming the first software with CodeWarrior+Processor Expert until I had a “Hello World from the FRDM-KL25Z!” showing up on the printer! And that 4 hours included writing this tutorial.&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;So expect it would take you less than one hour with the help of this tutorial.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/first-hello-world-message-on-printer.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="First Hello World Message on Printer" class="jiveImage wp-image-11013 size-full" height="230" src="http://mcuoneclipse.files.wordpress.com/2014/03/first-hello-world-message-on-printer.png?w=584&amp;amp;h=230" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;First Hello World Message on Printer&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Adafruit Mini Thermal Receipt Printer&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;I ordered a small thermal printer from Adafruit (&lt;a class="jive-link-external-small" href="http://learn.adafruit.com/mini-thermal-receipt-printer" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://learn.adafruit.com/mini-thermal-receipt-printer&lt;/a&gt;) which costs $50. I added three thermal paper rolls (&lt;a class="jive-link-external-small" href="http://www.adafruit.com/products/599" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://www.adafruit.com/products/599&lt;/a&gt;) to my order to have enough paper to start with :-):&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/adafruit-mini-thermal-printer.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Adafruit Mini Thermal Printer" class="wp-image-10987 jiveImage size-full" height="395" src="http://mcuoneclipse.files.wordpress.com/2014/03/adafruit-mini-thermal-printer.png?w=584&amp;amp;h=395" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Adafruit Mini Thermal Printer unpacked&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The main features of the printer (from the data sheet):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Thermal paper printer, 2.25″/57mm wide (effective printing width 48 mm)&lt;/li&gt;&lt;li&gt;Built-in fonts: small, medium, large text&lt;/li&gt;&lt;li&gt;Bold, underline and inverted text with left/right/center positioning&lt;/li&gt;&lt;li&gt;Different bar codes&lt;/li&gt;&lt;li&gt;Printing monochrome bitmaps and images&lt;/li&gt;&lt;li&gt;Size: 111x65x57 mm&lt;/li&gt;&lt;li&gt;5-9V DC, 1.5 A&lt;/li&gt;&lt;li&gt;TTL Serial (RS-232, 5V) protocol&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Useful links:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Printer data sheet:&lt;a class="jive-link-external-small" href="http://www.adafruit.com/datasheets/cashino%20thermal%20printer%20a2.pdf" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://www.adafruit.com/datasheets/cashino%20thermal%20printer%20a2.pdf&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Printer user manual:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.adafruit.com/datasheets/A2-user%20manual.pdf" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://www.adafruit.com/datasheets/A2-user%20manual.pdf&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Adafruit Thermal Printer Overview:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://learn.adafruit.com/mini-thermal-receipt-printer/overview" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://learn.adafruit.com/mini-thermal-receipt-printer/overview&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;With the printer came a test print which has the baud listed. There are printers with 9600 baud and others with 19200, mine came with 19200. More about this later.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-test-print-with-baudrate.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Test Print with Baudrate" class="jiveImage wp-image-10986 size-full" height="440" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-test-print-with-baudrate.png?w=584&amp;amp;h=440" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Test Print with Baudrate&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Mounting and Connectors&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The two brackets are for mounting the printer behind a panel. In order not to lose the parts, I mounted them right away:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/adding-printer-mounting-brackets.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Adding Printer Mounting Brackets" class="jiveImage wp-image-10985 size-full" src="http://mcuoneclipse.files.wordpress.com/2014/03/adding-printer-mounting-brackets.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Adding Printer Mounting Brackets&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The cables get connected to the backside of the printer:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-backside-connectors.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Backside Connectors" class="jiveImage size-full wp-image-10984" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-backside-connectors.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Backside Connectors&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Power Supply&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The printer requires a 5-9V power supply. Thermal printing needs a lot of power, so a 1.5 amps power supply is needed! There are many ways how you could give power to the printer. I usually have always a bunch of power supplies, but the challenges is that the plugs never match my needs. So usually I end up cutting the wires and making it fitting my needs. For this project I use a 5V 2A power supply I have left over from a damaged Cisco router:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/5v-2a-power-supply.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="5V 2A Power Supply" class="wp-image-10998 jiveImage size-full" height="447" src="http://mcuoneclipse.files.wordpress.com/2014/03/5v-2a-power-supply.png?w=584&amp;amp;h=447" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;5V 2A Power Supply&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;I cut the 5V wires:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/power-supply-5v-wires-cut.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Power Supply 5V Wires cut" class="jiveImage size-full wp-image-10999" src="http://mcuoneclipse.files.wordpress.com/2014/03/power-supply-5v-wires-cut.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Power Supply 5V Wires cut&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Same for the printer supply wires:&lt;/p&gt;&lt;p style="margin:0;font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin:0px 0px 1.625em;"&gt;&lt;span class="emoji-exclaim emoji wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":!:"&gt;:!:&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;Cut the wires on the 2-pin connector (NOT on the 3-pin side)!&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/cutting-printer-supply-wires.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Cutting Printer Supply Wires" class="jiveImage size-full wp-image-11000" height="348" src="http://mcuoneclipse.files.wordpress.com/2014/03/cutting-printer-supply-wires.png?w=584&amp;amp;h=348" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Cutting Printer Supply Wires&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Then remove the isolation:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/removed-isolation.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Removed Isolation" class="jiveImage size-full wp-image-11001" src="http://mcuoneclipse.files.wordpress.com/2014/03/removed-isolation.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Removed Isolation&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;I’m using heat shrink tubes for isolation, but you can use electrical isolation tape too (not so nice as heat shrink tubes). I cut pieces of different diameter and size:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/shrink-tubes.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Shrink Tubes" class="jiveImage wp-image-10997 size-full" src="http://mcuoneclipse.files.wordpress.com/2014/03/shrink-tubes.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Shrink Tubes&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Put them on the wire before soldering:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/shrink-tubes-on-wires.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Shrink Tubes on Wires" class="jiveImage wp-image-10996 size-full" height="438" src="http://mcuoneclipse.files.wordpress.com/2014/03/shrink-tubes-on-wires.png?w=584&amp;amp;h=438" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Shrink Tubes on Wires&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Wrap the wires together:&lt;/p&gt;&lt;p style="margin:0;font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin:0px 0px 1.625em;"&gt;&lt;span class="emoji-exclaim emoji wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":!:"&gt;:!:&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;carefully check the wire polarity (what is plus, and what is ground)! In doubt, use a voltage meter to verify it!&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/wires-wrapped-together.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Wires Wrapped together" class="jiveImage size-full wp-image-10995" src="http://mcuoneclipse.files.wordpress.com/2014/03/wires-wrapped-together.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Wires Wrapped together&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Solder the wires:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/solder-the-wires.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Solder the Wires" class="jiveImage wp-image-10994 size-full" src="http://mcuoneclipse.files.wordpress.com/2014/03/solder-the-wires.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Solder the Wires&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Then use a hot air gun to shrink it:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/shrinking.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Shrinking with Hot Air Gun" class="jiveImage wp-image-10993 size-full" height="485" src="http://mcuoneclipse.files.wordpress.com/2014/03/shrinking.png?w=584&amp;amp;h=485" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Shrinking with Hot Air Gun&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The result is a nice connection:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/shrinked-power-cable.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Shrinked Power Cable" class="jiveImage size-full wp-image-10992" height="456" src="http://mcuoneclipse.files.wordpress.com/2014/03/shrinked-power-cable.png?w=584&amp;amp;h=456" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Shrinked Power Cable&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Inserting Paper&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;When powered, the green LED flashes. There is a ‘Paper Feed’ button plus a lever to open the printer.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-button-led-and-lever.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer button, led and lever" class="wp-image-11006 jiveImage size-full" height="368" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-button-led-and-lever.png?w=584&amp;amp;h=368" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer button, LED and lever&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;A roll presses the paper on the printer head:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/paper-press-roll.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Paper Press Roll" class="jiveImage wp-image-11007 size-full" height="414" src="http://mcuoneclipse.files.wordpress.com/2014/03/paper-press-roll.png?w=584&amp;amp;h=414" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Paper Press Roll&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The printer head is near the ‘cut off’ area:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-head.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Head" class="jiveImage wp-image-11008 size-full" height="358" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-head.png?w=584&amp;amp;h=358" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Head&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The paper is placed inside the printer. Make sure the paper is clean and has no stickers/etc on it:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/paper-inside-the-printer.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Paper inside the printer" class="jiveImage size-full wp-image-11005" src="http://mcuoneclipse.files.wordpress.com/2014/03/paper-inside-the-printer.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Paper inside the printer&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Then close the cover:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-cover-closed.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Cover Closed" class="jiveImage size-full wp-image-11004" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-cover-closed.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Cover Closed&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Making a Test Print&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Powering the printer with the ‘paper feed’ button pressed will print a test report:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/test-print-with-baudrate.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Test Print with Baudrate" class="jiveImage wp-image-11003 size-full" height="426" src="http://mcuoneclipse.files.wordpress.com/2014/03/test-print-with-baudrate.png?w=584&amp;amp;h=426" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Test Print with Baudrate&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Now I’m sure my printer is working&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span class="emoji emoji-smile wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":-)"&gt;:-)&lt;/span&gt;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Printer Connection to the FRDM Board&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;There is problem: the printer uses 5V (TTL) logic levels, while my FRDM board has 3.3V levels. The printer accepts 3.3V input values (on the printer RX line), but it would be a bad idea to connect the printer output 5V TX signal to a microcontroller having 3.3V levels without a level shifter.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-tx-and-rx.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Tx and Rx" class="jiveImage wp-image-11014 size-full" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-tx-and-rx.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Tx and Rx&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;As I’m only sending data to the printer, I’m *not* going to connect the printer 5V Tx line to my board. I’m only connecting the GND and the microcontroller Tx with the Printer Rx. For this I’m using connector cables:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-to-microcontroler-connection.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer to Microcontroler Connection" class="jiveImage size-full wp-image-11015" height="314" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-to-microcontroler-connection.png?w=584&amp;amp;h=314" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer to Microcontroler Connection&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Ground is connected to the board GND pin. I’m free to use any available UART Tx pin, and I have used UART0 Tx (Port A, pin 2) PTA2:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/frdm-kl25z-connections.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="FRDM-KL25Z Connections" class="jiveImage size-full wp-image-11016" height="443" src="http://mcuoneclipse.files.wordpress.com/2014/03/frdm-kl25z-connections.png?w=584&amp;amp;h=443" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;FRDM-KL25Z Connections&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Summary&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;In few hours, I have now the ability to print at least some text, using the FRDM-KL25Z and the Adafruit thermal receipt printer. Much faster than I have expected, which is a great thing. Time for having lunch. A next post will be about how to use the software.&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;But if you cannot wait: the project is already on GitHub:&lt;a class="jive-link-external-small" href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FRDM-KL25Z/FRDM-KL25Z_Printer" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FRDM-KL25Z/FRDM-KL25Z_Printer&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Happy Printing&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span class="emoji emoji-smile wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":-)"&gt;:-)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>