Spi sensor connect problem

Firmware/software/electronics/mechanics
Post Reply
SH_Lee
Member
Posts: 35
Joined: Tue Feb 18, 2020 8:48 am

Spi sensor connect problem

Post by SH_Lee »

Code: Select all

SYS: ----------------------------
SYS: Crazyflie Bolt is up and running!
SYS: Build 27:a90ca70b089f (2020.09 +27) MODIFIED
SYS: I am 0x20373347344D500E0027003C and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_CORE: 2 deck(s) found
DECK_CORE: Calling INIT on driver bcDWM1000 for deck 0
DWM: Failed to configure DW1000!
DECK_CORE: Calling INIT on driver bcFlow2 for deck 1
ZR2: Z-down sensor [OK]
PMW: Motion chip id: 0x49:0xB6
IMU: BMI088 Gyro SPI connection [OK].
IMU: BMI088 Accel SPI connection [OK]
IMU: BMP388 I2C connection [OK]
ESTIMATOR: Using Kalman (2) estimator
CONTROLLER: Using PID (1) controller
MTR-DRV: Using brushless motor driver
EEPROM: I2C connection [OK].
IMU: BMI088 gyro self-test [OK]
DWM: Error while initializing DWM1000
DECK_CORE: Deck 0 test [FAIL].
DECK_CORE: Deck 1 test [OK].
If the flow_deck and uwb sensor are connected to the drone, the uwb sensor will not operate.
Is there anything I should be careful about or correct when using multiple spi sensor decks?
According to what I've looked for, there may be a problem with the timing of the spi sensor, but I don't have an accurate knowledge of it.
Others need expert knowledge before modifying the code in that it can be used without difficulty.
It doesn't matter if you connect two sensors one by one.
But if you combine them together, you'll have a problem.


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
As a result of further experiments, removing the vcom pin of the optical flow deck turns on uwb and outputs the following error:

Code: Select all

Error while initializing the PMW3901 sensor
Is this a problem with the whole body? Or is it a code problem?
wydmynd
Member
Posts: 53
Joined: Thu Dec 06, 2018 9:25 am

Re: Spi sensor connect problem

Post by wydmynd »

this has been corrected in a firmware release about 1 month ago. make sure you have the most recent version.
SH_Lee
Member
Posts: 35
Joined: Tue Feb 18, 2020 8:48 am

Re: Spi sensor connect problem

Post by SH_Lee »

Of course. I used the firmware updated in September.
I wonder which part of the problem you tried to solve by updating.
I think it will be possible to adjust the same part to fit my environment.
Can you tell me the cause of the problem and the update part?
wydmynd
Member
Posts: 53
Joined: Thu Dec 06, 2018 9:25 am

Re: Spi sensor connect problem

Post by wydmynd »

i meant this - https://github.com/bitcraze/crazyflie-f ... issues/368
but perhaps your problem is different.
SH_Lee
Member
Posts: 35
Joined: Tue Feb 18, 2020 8:48 am

Re: Spi sensor connect problem

Post by SH_Lee »

It was a very helpful article.
I am currently using Crazyfly-Bolt, radio dongle, flow v2, uwb sensor.
I am modifying the code based on the above article.
So far, we've been getting very stable results to modify the latency.
If there are no additional problems, I think it will be available without much change.
Thank you for your help. :D
kimberly
Bitcraze
Posts: 560
Joined: Fri Jul 06, 2018 11:13 am

Re: Spi sensor connect problem

Post by kimberly »

Hi!

https://github.com/bitcraze/crazyflie-f ... issues/368 has been closed and fixed already so you are not supposed to have any problems with it anymore if you are flying with the latest release like wydmynd already mentioned.

I'm not sure if this has anything to do with the Bolt, but have you also tried a different LPS positioning method, like TDOA2 or 3? Do you see the same problem there (when you remove the latency) ?
SH_Lee
Member
Posts: 35
Joined: Tue Feb 18, 2020 8:48 am

Re: Spi sensor connect problem

Post by SH_Lee »

I tried to proceed with the experiment that you said.
Unfortunately, I tested it again today and it didn't work.
More precisely, it happens very often.
We are thinking about other ways because connection problems occur so often that we cannot trust to experiment with drones.
Based on the connection problem, I don't think the code is optimized overall.
There are too many codes to look at the full code, so we are currently looking for other ways to resolve them.
Do you have any additional advice?
kristoffer
Bitcraze
Posts: 331
Joined: Tue Jun 30, 2015 7:47 am

Re: Spi sensor connect problem

Post by kristoffer »

On the latest firmware there should not be any SPI issues with the UWB deck.
What kind of problems do you experience, could you please describe the symptoms?
Post Reply