Author Topic: Fast reading from sensors  (Read 213 times)

Nick_W

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Re: Fast reading from sensors
« on: January 30, 2017, 06:54:54 pm »
I have a glimmer of a possibility, I do have an ADC with an I2C interface.

Problems here:

Clock speed on 120 module still doesn't work properly (limited to 250khz). Can we fix this soon? Should go up to 400khz.

I2C.read() functions are supposed to accept integers (according to the documentation), but actually accept bytes. This means you can only read 255 bytes at a time. One function (I2C.read(Integer)) does seem to compile, and says that it reads integer bytes followed by a stop bit, but just returns 0 all the time. (I2C.read(byte,True) works properly).

Even with these limitations, reading 255 bytes at a time at 250khz, I can read at 75us per byte, almost good enough.

If you could fix the speed issue, this would probably work. The read functions are a pain, fixing them would also be helpful, but the I2C speed is the limiting factor now.

Any chance of getting this fixed soon?

Thanks.