Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. ny51sens
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by ny51sens

    • ny51sens

      Any parallel interface accellerometers ?
      Hardware • lsm303dlhc accellerometers • • ny51sens  

      5
      0
      Votes
      5
      Posts
      1295
      Views

      pansen

      SPI can be blazing fast. A colleague of mine recently implemented some memory interface in the range of two/three digit MBits per second. Intuitively I would say bit banging an 8 bit parallel data input using a microcontroller is slower than using high-speed SPI. Just polling the 8 bits from the pins will take ages...Of course I am assuming you're using a uc and not a FPGA. You need to be precise, just because you can read data faster doesn't mean you can process it faster. I'd be a bit shocked to hear that an accelerometer could produce more data than a standard uc SPI can take...but then, I also have no experience. So I'm also curious what you are planning to do!
    • ny51sens

      How would I read from a BMP280 sensor at the fastest possible rate ?
      Development • bmp280 • • ny51sens  

      3
      0
      Votes
      3
      Posts
      2475
      Views

      ny51sens

      I've now tried various algorithms. In all of these I set the oversampling of both temperature and pressure to 1 (no oversampling). Forced mode, with fixed 5mS delay between reads, Forced mode, with fixed 4mS delay between reads, Forced mode, with fixed 3mS delay between reads, Forced mode, with fixed 1mS delay between reads, Normal mode, set t_sb = 0.5 mS, waiting until status bit 3 = 0, read data, repeat Normal mode, set t_sb = 0.5 mS, waiting until status bit 3 = 0, read data, wait until status bit 3 = 1, repeat With each algorithm, I'd do 2000 reads. As I went through the above scenarios, the minimum and maximum readings (for both values) got farther and farter apart - ie: the range of values got larger. That was until #5, where it was slightly better then #1. The range with #6 was the least of all - in other words, algorithm 6 gave the most consistent readings (I should say the sensor is laying still throughout these tests). In #5, it took 6 seconds to make 2000 readings - or an ODR of about 333 hz. In #6, it took 12 seconds to make 2000 readings - or an ODR of 166 hz. Just what the datasheet said would be the maximum ODR. I have to assume with #5, about half the readings were done before the registers were updated. In other words, it was a waste of cpu time to make the reading.
    • ny51sens

      Getting the HC-SR501 to function first time
      Hardware • • ny51sens  

      1
      0
      Votes
      1
      Posts
      776
      Views

      No one has replied