![]() |
Forum Index : Microcontroller and PC projects : Small tickets printer on Pico
Author | Message | ||||
grroel.tech Newbie ![]() Joined: 09/12/2021 Location: SpainPosts: 20 |
Hello, I have tried to connect a thermal ticket printer (EW5820) to a Raspberry Pi Pico 2 with WebPicoMite. I have followed and checked all the steps: The printer is working, tested on Windows. It is powered with sufficient power at 5v. Using the connector labelled "TTL" I have connected the following wires to the Pico: - GND to GND - RX to GP16 - TX to GP13 As a precaution I used a 3.3v - 5v level adapter (BSS138) with RX and TX. I have assigned the pins to COM1: SETPIN GP13,GP16, COM1 I have tried two methods: - OPEN "COM1:19200" AS #5 : PRINT #5, "Hello" : CLOSE#5 - DEVICE SERIALTX GP13,19200, "Hello". None of them worked. I changed the baud rate to other values with no result. On Aliexpress page a customer says that the TTL connector RX and TX pins are swapped. I tried reversing them and it didn't work. Have I done something wrong or have I omitted something? What else can I do to verify the operation? Thanks, best regards. |
||||
toml_12953 Guru ![]() Joined: 13/02/2015 Location: United StatesPosts: 444 |
I use that printer with a Pico 2W and it works fine. I use a TTL to RS-232 converter such as this one: ![]() Edited 2025-08-03 20:23 by toml_12953 |
||||
grroel.tech Newbie ![]() Joined: 09/12/2021 Location: SpainPosts: 20 |
Once that MAX3232 adapter is connected to the Pico, what is the cable layout to the printer? Do you need to take into account the CTS pin and the voltage of the printer connector? |
||||
toml_12953 Guru ![]() Joined: 13/02/2015 Location: United StatesPosts: 444 |
I use a straight-through connector. I have a 9-pin to 25-pin adapter on the back of the printer and a gender changer since the adapter has a female 9-pin side and the cable I use to connect to the MAX3232 needs a male. You connect the Vcc and Gnd connectors on the MAX3232 to the PicoCalc. Connect the RXD and TXD lines to the corresponding GPs. If you get no response, switch RXD and TXD. It's that simple. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |