Reading data from sensor plugged into USB Host?

I have a Grid-Eye Sensor as seen here:
http://www.digikey.com/product-detail/en/DKSB1015A/906-1002-ND/4360804

I’d like to read the data from this sensor using the Spider and USB Host. I’ve implemented all the code for which I can see the endpoints, but not sure what to do with them to read data from the sensor.

Hope that makes sense.

1 Like

Is there any reason you want to use USB Host to read it? It looks like that board also breaks out the pins for I2C which would probably be a better/easier route to take.

https://eewiki.net/download/attachments/13599167/Grid-EYE%20SPECIFICATIONS(Reference).pdf?version=1&modificationDate=1380660426690&api=v2

I believe the breakout board provides a USB serial interface, using a FTDI chip and a PIC. What does the user manual say?

Looks to me like it breaks out I2C & serial (P1 & P2) directly to the sensor chip, if you want to bypass the PIC.
https://eewiki.net/display/projects/Panasonic%20GridEYE%20Breakout%20Board%20and%20GUI

I could be reading it wrong. I’d like to see a picture of the bottom side of the board.

@ ianlee74 - Yep, it does provide a I2C interface, but it looks like they provide a higher level interface with the Ft230X and PIC. I was able to find some Java code which uses the serial interface.

I think if you want to use I2C directly you need to remove two resistor, to disconnect from PIC.

Thank you for the feedback. Yes there are a couple different versions out there. One that uses the I2C and the other a mini-USB serial port. The one I have has the USB serial port. That’s why I was thinking I could use the USBHost module to gain access to the raw data from the sensor itself.
I will dig into this further to see if there is a way.

Thank you,
Jeff

@ jeffnuck - my estimate is that there is a 89.435% chance that USB host serial port will work. just a few lines of code.

@ jeffnuck -

Hey there …

Did you end up using the USB and serial communications? If so how did you address reading and writing?