-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPIClass error in VL53L8CX_HelloWorld_SPI.ino #10
Comments
Hi @2hgeng ,
with
Pay attention to connect the VL53L8CX SPI pins to the pins of the SPI instance on the Portenta board. Best Regards, |
I am connecting to SPI1 of Portenta board, the start ranging function status is 255 (decimal) and no data is received from sensor. `#define CS_PIN PI_0 VL53L8CX sensor_vl53l8cx_top(&DEV_SPI, CS_PIN); void setup() // Set SPI settings // Configure VL53L8CX component. // Start Measurements |
Hi @2hgeng , |
The board is Arduino Portenta H7 lite sitting on the breakout board. |
And how the VL53L8CX sensor is connected to the Portenta board? |
I am using VL53L8CX breakout board and connecting it to Portenta breakout board SPI1. |
Did you connect the SPI_I2C_N pin of the Polulu board at 3.3V? |
Yes it is at 3.3V, the Polulu board by default pulls it high. |
Hi @2hgeng , |
Hi @2hgeng , |
Yes, it is connected to 3.3V power |
Could you share a picture of your hardware setup and the software sketch that you are using? |
Looks like the Pololu sensor breakout board is using a level shifter which is an issue. I am trying to get new board with new shifter and see if that works. I will keep you posted. Thank you. |
Compilation error:
error: no matching function for call to 'arduino::HardwareSPI::HardwareSPI(unsigned int, unsigned int, unsigned int)'
SPIClass DEV_SPI(SPI_MOSI_PIN, SPI_MISO_PIN, SPI_CLK_PIN);
The text was updated successfully, but these errors were encountered: