2022 Developer Survey is open! Take survey.

Questions tagged [spi]

The SPI bus, Serial Peripheral Interface, is a synchronous serial communication interface for short distance communication, e.g. between components in an embedded system such as the Pi. Devices communicate in full duplex mode using a master-slave architecture with a single master. The master device (typically the Pi) initates all communications.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
16 views

Pigpio Hardware PWM_unable to write frequency above 5Khz

I have been using the pigpio library as a modified spi interface to send and receive serial data. I use Chip Select, Clock, and Data Lines but i am using "bit-banging" for the timing between ...
user avatar
  • 1
0 votes
0 answers
30 views

How can I interpret this GPIO Alt-Modes?

I have a Hyperpixel 4.0 Touchscreen, which i use one my Raspberry PI 3b+ This Touchscreen is attached directly on the 40 GPIO-Pins and a few Pins have some special Alt-modes. I analysed the alt Modes ...
user avatar
0 votes
3 answers
50 views

CAN bus from Raspberry Pi3+ to Arduino Nano

I am currently trying to add my RPi-3B+ to my CAN-Network. I successfully have a running CAN-Network with 10 Unos\Nanos. In the future the Pi should act as a command center and data storage. My ...
user avatar
  • 101
0 votes
0 answers
20 views

Are Waveshare 2-CH_RS232_HAT stackable?

Is it possible to stack the Waveshare 2-CH_RS232_HAT? This is a link to the wiki page: https://www.waveshare.com/wiki/2-CH_RS232_HAT. The hat is driven via SPI, the interrupt pin can be chosen, there ...
user avatar
  • 1
0 votes
0 answers
21 views

PiPico Quad Spi library to controll NOR flash modules

I need to use quad SPI NOR flash modules (W25Q128JV) for a project and I bought a Pi Pico as a simple way of validating the design before moving to an FPGA for the final project (the project is real-...
user avatar
  • 11
1 vote
0 answers
25 views

SpiDev xfer not working when called from inside function

I have been working on integrating an absolute encoder using SPI (link to datasheet) into my project and have run into a problem with the SpiDev library for Python. When running the test script below,...
user avatar
  • 11
0 votes
1 answer
26 views

Talking to MAX31865 from Raspberry Pi using Serial Peripheral Interface

I am trying to talk to the MAX31865 board from a Raspberry Pi over SPI but am not getting the results I'd expect. Can someone with more SPI experience take a look at my setup and point to what I may ...
user avatar
0 votes
0 answers
22 views

Raspberry Pi split screen with two connected screens to spi

Good day. I'm fairly new at raspberry Pi and would like to connect two SPI displays. After connected I want to make use of a camera to project the video on both screens. Therefore the one screen needs ...
user avatar
0 votes
1 answer
35 views

Odd SPI issue only works when toggled

I'm running a pi 3b+ and I'm having a weird issue with SPI. I have a breadboard with an mcp3008 chip, and a potentiometer connected to it. I can get voltage values some of the time. I either have to ...
user avatar
0 votes
1 answer
73 views

Raspberry Pi Compute Module 4 SPI bus not registering on custom Poky OS [Yocto]

I am trying to get a MCP2515 (CAN-bus IC that works on SPI) to work on a Raspberry Pi Compute Module 4 (8GB eMMC, No Wifi, 4GB RAM). I have been able to get the module working on a regular Raspberry ...
user avatar
1 vote
2 answers
91 views

How to send data to a Pervasive eink display via Python?

I got a 5.8" eink display from Pervasive Displays and cannot get it to work, I feel that only a little bit is missing. After a lot of struggle I managed to run it via their sample C code, but the ...
user avatar
  • 73
0 votes
0 answers
23 views

What's the proper ili9341 driver for raspberry 4b ubuntu 20.04 system?

Newly purchased 2.4 lcd,but my system is not origin raspberry os. As to ubuntu 20.04,what's the proper ili9341 driver for raspberry 4b?
user avatar
  • 101
-1 votes
1 answer
57 views

Turn LED off and on using I2C, SPI or UART GPIO Pin

I have project requiring several simple LEDs and buttons, MORE that the number of ‘simple’ GPIO pins. Can I turn the LED TOTALLY OFF and on using a IC2, SPI, or UART pin? Can those pins be programed ...
user avatar
0 votes
0 answers
36 views

Additional SPI bus raspberry pi 3b+

I'm trying to read 2 devices from SPI bus nRF24 module and MAX31865. I read the MAX module constantly every second and need to read the nRF24 module from time to time in other binary, but when I just ...
user avatar
0 votes
1 answer
46 views

SPI Communication between Raspberry Pi and Arduino questions

Basically the title, but I have been looking into SPI as I am working on a project that basically requires a Serial connection between a Raspberry Pi (as a master) and an Arduino (slave); I intended ...
user avatar
  • 89
0 votes
1 answer
41 views

Fast SPI reading

I am trying to read MCP3201 with 44100 samples per second. The chip has top clock frequency of 1Mhz, which should be sufficient for 62500 two-byte samples per second. sampnumb = 44100 spi = spidev....
user avatar
  • 409
0 votes
1 answer
133 views

How to enable SPI and access RFID RC522 Chip on Alpine Linux

I've set up Alpine on a Raspberry Pi 3B in diskless mode and it runs exceptionally smooth. I've managed to address GPIO pins (e.g. to read from temperature sensors) without much effort. Now I'm trying ...
user avatar
0 votes
0 answers
38 views

Can't run MetaSploit commands on Raspberry Pi received via LoRa radio/SPI

Relevant Code: https://github.com/MichaelBonnet/TeamZephyr/tree/main/radio, rfm9x-base.py and rfm9x-payload.py Situation: I am using LoRa radio modules as a communication link between two Raspberry ...
user avatar
2 votes
1 answer
41 views

How to set the SPI comms delay from CS to SCLK?

I am using a Raspberry Pi to communicate with a SPI-enabled device over the 40-pin cable. To the best of my understanding, the Python scripts rely on the SpiDev device. The script uses the xfer3() API ...
user avatar
  • 123
0 votes
0 answers
11 views

Read from analog sensor through spi from ProcessPoolExecutor

I'm working on a project in which i need to record sensor (current sensor) readings every second, and store these records into JSON file, Also make some calculation on a bunch of data that has been ...
user avatar
1 vote
0 answers
37 views

GPIO9 Input Always Active

Porting an application from a RPi 3 to an RPi 4 that requires several button inputs. All are working properly, except the button in GPIO9 (Pin 21) is always high/true. Guessing this has to do with SPI ...
user avatar
0 votes
1 answer
84 views

Error setting up GPIO direction of SPI_CE0_N pin

I'm using a Rapsberry Pi Zero 2 to control an FPGA, the Lattice iCE40, via SPI (which I have accordingly enabled via raspi-config). In order to upload the image on the FPGA, I need to follow the ...
user avatar
  • 35
0 votes
0 answers
21 views

How I can configure the pins for the linux's kernel mx35lfxge4ab driver, so I can use the pins offered by rpi?

As I can see linux kernel has a driver for mx35lfxge4ab Flash NAND SPI chip: https://github.com/torvalds/linux/blob/master/drivers/mtd/nand/spi/macronix.c Furthermore, I have a device that also uses ...
user avatar
0 votes
0 answers
47 views

RP2040- Memory architecture

I am designing an RP2040 board that has external access to the QSPI chip. I need to be able to program the microcontroller externally without USB, and I thought this would be the easiest method. I'm ...
user avatar
0 votes
0 answers
106 views

Pi Pico- How to use XIP

I am trying to boot my Pico from an external NOR flash module, but I'm not sure how to do it. The QSPI pins on the RP2040 look to be used already, is there any way I can access these externally or set ...
user avatar
0 votes
0 answers
71 views

Pi PICO- Boot from XIP QSPI Flash

I am trying to boot a Pico from an external NOR flash module (Diligent Pmod SF3), but I can't find any information on how to configure the bootloader to do it. I looked at the documentation, but I'm ...
user avatar
0 votes
1 answer
103 views

How to control 2 devices using the SPI bus and one Chip Select

Just wanted to check my understanding of the SPI0 bus on the pi zero w. I have a DAC (MCP4921) driving the gate of a MOSFET as a current source for a load in the drain. I also have a ADC (MCP3008) ...
user avatar
0 votes
0 answers
36 views

Using RFID-RC522 with spi on RBpi 3B+

Hello_friends, I am trying to get a RFID reader working on a Raspberry 3b+ That same setup and codebase used to work well on the older 3b+ model from 2015 (the current one is 2017 edition), but now ...
user avatar
  • 216
0 votes
1 answer
150 views

Strange SPI error message during boot, but all SPI devices seem working

Folks, I have attached 2 SC16IS752 breakout boards to SPI0. This way I can have 4 UARTs (SC0..3). All four ports are working, but I have these strange lines during boot: [ 13.239108] spi-bcm2835 ...
user avatar
  • 201
0 votes
3 answers
78 views

why doesn't spi1 in pi4j work?

I'm trying to connect raspberry with another pcb via spi. It is connected via spi1 port and I can't change it. So I have a python script that works well, so I can send and receive data. The python ...
user avatar
5 votes
1 answer
150 views

raspberry pi 4 using SPI 4 & 5 at the same time causes kernel oops and crashes the whole system

intro i want to use multiple SPI busses at the same time. but when i use to use SPI 4 and SPI 5 at the same time it crashes the whole system it doesn't crash instantly sometimes it takes 10 seconds ...
user avatar
  • 51
0 votes
1 answer
52 views

When To Use a Level Shifter (Arduino Uno + Pi SPI)

I was following this guide from Adafruit to flash an Arduino with a Pi using AVR-Dude over SPI: https://learn.adafruit.com/program-an-avr-or-arduino-using-raspberry-pi-gpio-pins?view=all I noticed ...
user avatar
1 vote
0 answers
58 views

SpiDev read from BMM150 Geomagnetic Sensor

I am completely new to this topic so please excuse my mistakes. I have this: https://www.mikroe.com/geomagnetic-click geomagnetic click with a BMM150 sensor with this datasheet: https://download....
user avatar
  • 11
0 votes
0 answers
51 views

Reading SPI data from Atmel Energy meter IC M90E32AS through Raspberry Pi

Iam trying to read voltage values from Atmel Energy meter (AtM90E32AS) IC through Raspberry pi(3b) SPI communication. I made the connection accordingly and set the register values as given in the data ...
user avatar
2 votes
1 answer
131 views

Reassign GPIO pins for SPI (swap MOSI with SCK)

I had an adapter board made for a Raspberry Pi 4B and I somehow swapped the SPI clock and data lines on the board. Rather than redrawing and waiting for new adapter boards, is there a way to reassign ...
user avatar
0 votes
1 answer
153 views

Using WiringPi with more than two chip selects and MCP3008

I am trying to get more than two chip selects available on the Pi. I have the devices present, but am struggling to read a MCP3008 when the CS is plugged into the additional GPIO pins. My end goal is ...
user avatar
0 votes
1 answer
364 views

How to transfer large amount of data (100Kbytes) over SPI?

Related/previous question here. I'm looking to do a data logging project that involves transmitting data from an FPGA to a Raspberry Pi 4 through SPI. The FPGA will transfer 250,000 bytes ...
user avatar
  • 103
0 votes
1 answer
108 views

Connecting raspberry pi 4 to an FPGA for a data logging system. What is the fastest/most appropriate communication method?

I have a test set-up where an STM32F4 microcontroller is reading in an analogue signal and sending it to a windows PC through UART. The windows PC runs a Python script that interprets the data and ...
user avatar
  • 103
0 votes
0 answers
22 views

USR-ES1 Ethernet to SPI Module leds flashing sequentially

I am working on a topic using Raspberry Pi Zero and USR-ES1 W5500 ethernet SPI converter. I activated the W5500 driver of the Raspberry Pi Zero without any problems and I can use it without any ...
user avatar
  • 1
2 votes
2 answers
449 views

Connecting RC522 RFID module to Raspberry Pi 4

I connect my RC522 RFID module to my Raspberry Pi 4 according to https://pimylifeup.com/raspberry-pi-rfid-rc522/ so we have Write.py and Read.py: Write.py: #!/usr/bin/env python import RPi.GPIO as ...
user avatar
  • 35
0 votes
0 answers
33 views

SPI transfer random delays

I am using two SPI devices to talk to a MCP23S17 (SPI0) to multiplex the chip selects (CS) for four SPI slaves (SPI1). The loop is running at 500 Hz, the transfer takes roughly 900 us. Most of the ...
user avatar
  • 71
0 votes
0 answers
71 views

Cannot read tag with RFID-RC522

I have some trouble recently while reading a tag/card with my RFID-RC522. I can make it works on one RPi, but on the second one, it doesn't (previously it was also working, but I don't know what ...
user avatar
0 votes
1 answer
150 views

Raspberry Pico SPI at 24 bit

First post on here. I’ve recently designed a board for a Raspberry Pico to control the TI TDC7200. This IC uses SPI for communication, 8 bits for command and 24 bits for reading some of the data. ...
user avatar
  • 1
1 vote
0 answers
106 views

Problem in the SPI communication with RFID-RC522 (spi mode)

I have some trouble using the RFID-RC522 reader with my RPi. It was working in the past, but now it stopped. I'm trying to find if a configuration changed somewhere and I also looked at the code of ...
user avatar
2 votes
2 answers
1k views

raspberry pi 4B no /dev/spidev0.0

As it says in the title my raspberry pi 4B is missing /dev/spidev0.0 I'm trying to use an adxl372 accelerometer with a raspberry pi 4B. I built a kernel with industrial io drivers and the proper ...
user avatar
0 votes
3 answers
100 views

With a Pi Zero W is the MISO pin on the GPIO shared with any devices on the board itself?

I've been doing embedded work for many years, but have only very recently started working with the Raspberry Pi. I'm planning to build a project that uses a 5" TFT display and a Pi Zero W, and ...
user avatar
  • 103
0 votes
2 answers
444 views

Is there a workaround to make the Raspberry Pi 4 output 1.8 V?

I have a Raspberry Pi 4 Model B and I want to use it to flash a Coreboot BIOS image to a SPI EEPROM chip (using either flashrom or a program called "spi flash programmer" that is originally ...
user avatar
  • 101
1 vote
0 answers
249 views

change mfrc522 module SPI to I2C

I'm working on a project where I need to use touchscreen and RC522 senzor on same Raspberry Pi, now I need to change senzor from SPI to I2C in order to do that I need to change mfrc522 module which ...
user avatar
1 vote
1 answer
264 views

Enable ENC28J60 on Raspberry Pi 4 SPI1 CE1

I have a Raspberry Pi model 4B V1.4 running: Linux raspberrypi 5.10.42-v7l+ #1422 SMP Tue Jun 8 13:03:05 BST 2021 armv7l GNU/Linux I want to connect an ENC28J60 spi ethernet adapter on spi1. Using ...
user avatar
  • 111
-1 votes
1 answer
303 views

SPI Voltage Level?

I am trying to interface a sensor ADIS16362 with a Raspberry Pi 3 board and need to know if I can directly connect the sensor to Pi SPI pins? In the datasheet of ADIS16362 on page 4, there is a ...
user avatar
  • 1

1
2 3 4 5
9