I'm working with Arduino Mega and usb to ttl converter with CP2102 chip. My aim is to connect device for measuring wind speed with usb mini port to Arduino using usb to ttl converter. The converter is connected to RX and TX pins of Arduino, VCC, GND and RESET. Im not sure how to initialize communication between the device and Arduino and how to recieve information from it. I tryed Serial.read(), but that doesn't seem working. I'm new in this so I'm not sure even if it's gonna work.
Hi, the forum can't help you without lots more information. Please read the forum guide in the sticky post at the top of the forum section, that will tell you what you need to post for the forum to be able to tell you if what you are attempting is even possible.
How do you know this device is compatible with the usb to TTL converter?
Chances are the device expects to be plugged into a host device like a pc/laptop. A usb to TTL converter is not a host device.
Some more advanced types of Arduino are capable of acting as a usb host device, and there may be a usb host shield available to give Mega this capability.
Even with a usb host shield, the device may require proprietary driver software. In that case I think your plan is doomed.
What do you see if you plug the device into a PC/laptop?
A bad idea on many types of arduino, including Mega. Those pins are used for uploading your code and using serial monitor. Fortunately, Mega has several other unused UART ports, so use one of those. Check out a pinout diagram of Mega to identify the pins for the other UARTs (TX1, RX1 or TX2, RX2 etc).
Please post a link to the product page or user manual for the device, and a photo of a hand drawn wiring diagram, with pins and connections clearly labeled.