Read a USB device Data+ and Data-

Hi,
I would to know how can I read Data+ and Data- of an optical Sensor with USB Mini port output by Arduino (Pro Mini 3.3v)?
Then, I want send it via NRF24L01 to another NRF24L01 module that connected to PC.
The Power of the Sensor,Arduino and NRF24L01 module has been supplied by a 3.7v-800mA battery.
Thank you

navab1362:
Hi,
I would to know how can I read Data+ and Data- of an optical Sensor with USB Mini port output by Arduino (Pro Mini 3.3v)?
Then, I want send it via NRF24L01 to another NRF24L01 module that connected to PC.
The Power of the Sensor,Arduino and NRF24L01 module has been supplied by a 3.7v-800mA battery.
Thank you

navab1362:
Hi,
I would to know how can I read Data+ and Data- of an optical Sensor with USB Mini port output by Arduino (Pro Mini 3.3v)?
Then, I want send it via NRF24L01 to another NRF24L01 module that connected to PC.
The Power of the Sensor,Arduino and NRF24L01 module has been supplied by a 3.7v-800mA battery.
Thank you

Insufficient information. Are you wanting to read the USB data with an Arduino at the same time it is being read by your computer? DO you have an Arduino that can actually read the USB signals at the magabit per second speeds used by the USB?
Paul

Probably maybe, is the best I can give you with the information you have given us. Data+ and Data- of an optical Sensor with USB Mini port output. just what are you saying, what is this Data+- etc, What is the involvement of the mini port? I would suggest resolving these problems before your start on the wireless part. Please post a annotated schematic, not a frizzy thing so we can understand what you are asking.

Very likely that sensor expects to be connected to a USB host, like a computer. A Pro Mini can not act as host; without help from external hardware (such as an FTDI cable, which you probably use to program the thing) not even as client.

wvmarle:
Very likely that sensor expects to be connected to a USB host, like a computer. A Pro Mini can not act as host; without help from external hardware (such as an FTDI cable, which you probably use to program the thing) not even as client.

Thank you for your professional behavior!
Right, this sensor is connected to a computer by usb cable.
In fact I have a wired sensor and want to convert it to wireless. The sensor only sends coordination of xy.


SCATT wired optical sensor

navab1362:
Thank you for your professional behavior!
Right, this sensor is connected to a computer by usb cable.
In fact I have a wired sensor and want to convert it to wireless. The sensor only sends coordination of xy.
https://www.scatt.com/images/scatt_parts/scatt_os-02_back.png
SCATT wired optical sensor

And can I use a CP2102 IC to convert USB to TTL?
Up to 1 second delay between sender and receiver is acceptable!

Yes - but as far as I know it does not act as USB host, so it almost certainly won't work together with your sensor.

wvmarle:
Yes - but as far as I know it does not act as USB host, so it almost certainly won’t work together with your sensor.

My plan is as follow:

  1. Convert sensor data to TTL
  2. Read serial data by Arduino Pro Mini
  3. Send read data by Arduino with NRF24L01 to another NRF24L01 module

Is that possible?
Thank you

Yes.

wvmarle:
Yes.

Thanks a lot :slight_smile:

navab1362:
Thanks a lot :slight_smile:

I think you are confused. When a sensor uses USB, that requires an intelligent controller of some sort in the sensor. USB data transmission is in the form of packets of bytes being sent at an agreed upon data rate, It can never be raw sensor data. You may be able to find the input to the sensor's controller and do something with that.
Paul