adafruit / adafruit/Adafruit_CircuitPython_MAX31865
issues with using SPI1 on a RapsBerry Pi 4 Module B
- Dominant language
- Python
- Stars
- 22
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Hi all
Today I struggled all day by using SPI1 on the MAX31865 library. I can not use SPI0 as these pins are needed for I2C Communication. I enabled the SPI1 in the `/boot/config.txt` with `dtoverlay=spi1_3cs` and by using the test library from [rm-hull](https://github.com/rm-hull/spidev-test) I was able to send and recieve data on the SPI1. So the SPI connection works. Something seems to be wrong with the MAX31865 library.
With the default library I got the Error: `OSError: [Errno 22] Invalid argument` by altering the library to accept a phase in the [init](https://www.sigmdel.ca/michel/ha/rpi/spi_on_pi_en.html) of MAX31865 I managed to make a connection but now I am reading totally wrong values from the chip. Am I making something totally wrong? Do you need any more information from me?
Thank you very much in advance and best, Alp
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported setup using the /boot/config.txt dtoverlay=spi1_3cs configuration and the linked rm-hull/spidev-test program. Compare SPI1 behavior with the MAX31865 library's default and phase-enabled initialization, then verify that readings from the chip are correct rather than only confirming data transfer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, raspberry-pi
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100