Search results

  1. Z

    Teensy 4.0 : strange behavior of CS lines on an SPI bus

    The situation becomes even weirder, I didn't have time to prepare four simplified sensors, but I could remove the short-circuit. I have several sensors from different orders (one from September 2023, the second from June 2024 and the last from this month). Just for your information, my first...
  2. Z

    Teensy 4.0 : strange behavior of CS lines on an SPI bus

    Thank you both for your answers, MarkT, If I am reading correctly the LSM6DSOX's datasheet, it seems that my SPI clocking needs to have a polarity of 1 (to idle at logic high), and a phase of 1 to read at rising edges, which would mean SPI_MODE3 in the SPISettings ? UhClem, in order to avoid...
  3. Z

    Teensy 4.0 : strange behavior of CS lines on an SPI bus

    Good morning, Miss, Mister. My name is Florent Mosnier, and I am (still) working on a project where I need to log the measures of 9 accelerometers on an SD card in real time. I firstly made progress, but a glitch of the board has stopped my project for 10 months already : when putting too many...
  4. Z

    Teensy 4.0 : Strange issue when connecting multiple slaves on the secondary SPI bus

    Good morning everyone. Sory to disturb you but I got a really annoying issue when using the secoundary SPI bus. To give you some context : I need to read the data from 8 accelerometers (and an IMU ic on top of that) nearly silmutanously and reccord that data straight into an SD card as fast as...
  5. Z

    SPI and Serial communication not working on teensy 4.x

    Color scheme : Red : 3.3 V Black/Grey/Brown : GND (I ran out of balacjk wires) Blue/Orange : SCK Green/White : MOSI Yellow : MISO The two exterior power rails are 3.3V power The inner rails, from left to right SCK, MOSI, MISO and a GND I finally acheived acceleration reading on 4 sensors at...
  6. Z

    SPI and Serial communication not working on teensy 4.x

    Update : Sorry for not being active during kast week, I was really busy because of work. Firstly, a HUDGE thanks to mjs513 as now I have a reliable way to interface my lsm6dsox. Secondly, I tried the program and got mixed results : it works well overall, but the communication glitches often...
  7. Z

    SPI and Serial communication not working on teensy 4.x

    About the sensor boards, I have and want to use : The LSM9DS1 board from adafruit https://learn.adafruit.com/adafruit-lsm9ds1-accelerometer-plus-gyro-plus-magnetometer-9-dof-breakout The blue with wider pcb version The LSM6DSOX board, also from adafruit https://www.adafruit.com/product/4438 I...
  8. Z

    SPI and Serial communication not working on teensy 4.x

    Thanks for the advice. I tried yesterday night your propositions, but to no avail, I am consostently getting 0 as an answer instead of 01101100, I spend the next hour and a half coding a crude 4 channel oscilloscope on my Uno and the serial plotter, but the bandwidth is around 40 Hz, so not...
  9. Z

    SPI and Serial communication not working on teensy 4.x

    Hello everyone. For one of my projects, I need to get the measurements of several accelerometers, at precise time intervalls, and log the data obtained on an SD card. As I want the sampling rate to be as high as possible, I choosed SPI working accelerometers, the LSM6DSOX IMU, and Bought brand...
Back
Top