0

Connecting a printer to an Arduino

76913752

Quick tip in the forums for connecting a printer to an Arduino. Uberhund writes –

As someone who has actually made a working printer solution for the Arduino (one of the very few, from what I can tell), it’s still my opinion the solution below is optimum, as of this writing. The parallel to serial conversions and Arduino pin-count issues make the parallel approach a non-starter.

1) Acquire an RS232 serial shield. If from http://www.cutedigi.com, then these three Mods will be required:

MOD1: Bend shield pins 0 and 1 so they do not plug into the Arduino TTY dedicated digital IO pins. This allows the Arduino serial com to remain available to USB debugging.

MOD2: Add jumpers between whatever two ports you wish to use as printer IO pins and the RS232 shield pins 0 and 1 (remember – we bent the shield pins so they are no longer talking to the Arduino, but the RS232 shield is still expecting TTY-level serial data on its pins 0 and 1 anyway. The jumpers will “fool” the shield into believing data is from Arduino pins 0 and 1, when actually the signals are coming from whatever Arduino pins you jumper them to.)

MOD3: Add a reset button to the RESET and GND pins. Grrr. The shield completely covers the Arduino reset button. Who designs things this way?

2) Plug in your receipt printer to the DB9 pin of the shield and start churning out paper.

Believe it or not, it’s that simple. Why someone hasn’t make a decent printer shield is beyond me. I spoke with the support person for the RS232 shield about the issues, and he responded to me as if I were speaking Martian. It took me a year to find this solution. Enjoy.

Also check out – Arduino controlled EPSON TM-T88P Printer


Make a robot friend with Adafruit’s CRICKIT – A Creative Robotics & Interactive Construction Kit. It’s an add-on to our popular Circuit Playground Express, FEATHER and other platforms to make and program robots with CircuitPython, MakeCode, and Arduino. Start controlling motors, servos, solenoids. You also get signal pins, capacitive touch sensors, a NeoPixel driver and amplified speaker output. It complements & extends your boards so you can still use all the goodies on the microcontroller, now you have a robotics playground as well.

Join 7,500+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython in 2018 – Python on Microcontrollers is here!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/


Maker Business — Fewer startups, and other collateral damage from the 2018 tariffs

Wearables — Light as a Worbla feather

Electronics — How to make your own magnetic field probe!

Biohacking — The State of DNA Analysis in Three Mindmaps

Python for Microcontrollers — One year of CircuitPython weeklies!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.