I want to connect a USB cable to the pins on an Arduino to send text strings, like a gun that reads barcodes. Where do I connect? Do I need any special libraries? And as hardware, is the board and cable adapted to the pin connection sufficient?
Welcome to the forum
Which Arduino board are you using ?
I am using Arduino nano, but I can change boards if needed!
Then why not use the USB port on the board and print the text to it ?
Alternatively create a second soft serial port and use an external TTT to USB module and print to that
Because I need that port to power the board, the port where it sends the string does not have enough current to keep the board and the sensors connected.
I haven't found much on this TTT extension, can you send me some links so I can investigate further. Thanks for the support!
Connecting something that has a USB connector can not be used on an Arduino like you are thinking it can.
USB is a complex protocol and is not a simple serial stream of data. At best you need a USB host shield to attach to your Arduino.
Thank you!!
thanks for the support!
Good idea, I've been using this adapter "FTDI USB to TTL Serial Converter Adapter FT232RL Module" to program an ESP32-CAM and it work's just fine.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.