element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#098 – Thermal Printer
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 1 reply
  • Subscribers 24 subscribers
  • Views 729 views
  • Users 0 members are here
Related

PSoC 4 Pioneer Kit Community Project#098 – Thermal Printer

cy.wbz
cy.wbz over 12 years ago

Hello!

 

In today’s example we are continuing with yesterday’s theme of providing an example that is very close to an end solution. Today’s example showcases a thermal printer. A thermal printer device produces a black printed image by selectively heating coated thermochromic paper when the paper passes above the printer head. This type of printer is often used for in low power printing and mobile retail and point of sale (POS) operations.

 

In this example we use a thermal printer with a print head (PTMBL1B00A) that supports 384 horizontal dots arranged in 6 groups of 64. This example has been implemented on our CY8CKIT-001 and the CY8CKIT-038, but can be easily ported to the CY8CKIT-042 Pioneer board.

 

image

 

Forum Post Attachments:

 

At the bottom of this post we are including the following items:

  • Example Project Zip File
  • Project Images

 

Components Used: 

 

The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

  • PWM
  • Control Register
  • SPIM
  • Comparator
  • AND Gate
  • CyPins
  • CyClock

 

Firmware Description:

 

The main.c firmware is included in the example project. Please review the commented sections for more details.

 

In this example the PSoC 4A device uses an SPI interface to transfer the values line by line to the shift register and enables the strobe signals to print them on the paper. The printed data is moved into a shift register that is latched into a latch register. This data is then transferred to the paper by enabling the corresponding strobe signal. A stepper motor is used to rotate the paper while printing occurs.

 

The print and motor control logic seen in the schematic design controls the signals to the strobe lines and stepper motor driver inputs. A PWM is provided in order to ensure the smooth operation of the stepper motor. A Thermistor is also present in the printer which is used for monitoring the print-head temperature. The comparator is used to switch off the printer if the print-head is overheating.

 

Hardware Connections:

 

In this example the user can use the schematic view of the Creator design to understand the connections to the external components. The thermal printer datasheet is provided on the component website. In this example we built up a simple test board to attached the thermal printer and the stepper motor. For a stepper motor example please see example #045. The following is a setup of the hardware. We used a breadboard to wire up the connections from the development kit to our thermal printer board.

 

image

 

Test Your Project:

 

Setup your hardware by connecting the stepper motor and the thermal printer to a test board. Once this is complete program the PSoC 4 development kit to evaluate the example.

 

image

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
Thermal_Printer..zip
5661.Project Images.zip
  • Sign in to reply
  • Cancel
Parents
  • DAB
    DAB over 12 years ago

    Hi Matt.

     

    Did you use transister drivers for the stepper motor or did you drive them off the Psoc?

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • DAB
    DAB over 12 years ago

    Hi Matt.

     

    Did you use transister drivers for the stepper motor or did you drive them off the Psoc?

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube