hello
I'm trying to communicate with a sensor with an Arduino.
The sensor is directly connected via USB and supports RS232C communication.
The test was completed by connecting the sensor to the computer.
When connecting with Arduino, the usb-uart line was used, the library software serial was used, and communication was attempted using 13 and 12 digital pins, but failed(nothing come out data).
How to communicate with Arduino and sensor?
@ahsjdkfl0630 can you provide a link to where you purchased the thermocouple board and the documentation for it.
That sounds like the thermocouple is a USB device that enumerates to a serial port. If that is the case, then I think you would need to be a USB host (like a PC or Raspberry Pi for example) to talk to it.
There do appear to be 4 pins next to the USB connector. Maybe they break out the raw serial data.
@ahsjdkfl0630 there doesn't seem to be a way to get at (or intercept) the serial data on that board. In simple terms the USB thermocouple board is a USB "slave" device. The PL2303 is also a USB "slave" device, so they won't talk to each other.
If you really wanted to use an Arduino, then you would need to know the part number for the thermocouple IC (it'll be written on the top of the chip). Given that information, you should be able to get hold of a datasheet for the chip - assuming it's from one of the big chip companies. Once you have the datasheet, you may well find the pins on the chip that send/receive the serial data.
If you are prepared to carry out some minor surgery on the board, then you might be able to disconnect the serial signals from the USB chip and re-route them to your Arduino.