pedestrian0423 / DW1000_Raspi_Python_library

Python library for the DWM1000 ultra wide band modules
19 stars 24 forks source link

Problem with SPI #2

Closed Kuritto closed 2 years ago

Kuritto commented 2 years ago

Hello, I'm trying to test a DW1000 module, so I tried to write my own code. Unfortunately it dosen't work, so I find your's library and I have the same problem as with my code. When I'm trying to connect module with RPi4 by SPI it returns Device ID as 7F7F instead of DECA. Do you have any idea why it isn't work? I would be grateful for your's help SPI_Error .

pedestrian0423 commented 2 years ago

Hi, The problem might be incurred from "wiring problem" or "byte array processing error". All of the values presented at your log shows 0111(7), 1111(15), 01111111(127), 7F, 7F7F. If you could provide wiring diagram of your hardware setup, It'll be helpful to understanding what the problem is.

marcusobrien commented 2 years ago

@pedestrian0423 - Could you provide the connections between the Pi 3 and the DWS1000 please.

pedestrian0423 commented 2 years ago

@marcusobrien Please check the datasheet of DW1000 and the pin out of the raspberry pi first.

pedestrian0423 commented 2 years ago

Since no other questions over three months, I close this issue.