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
0 votes
1 answer
70 views

SPI sending and receiving data

I hope you can help. I am currently using a raspberry pi 4b and want to be able to use the SPI capabilities. For my pi I have SPI0 and SPI1. The pins used are as follows; SPI0_MOSI - pin 19 (BCM_10) ...
Ben's user avatar
  • 11
0 votes
0 answers
26 views

Connect Raspberry Pi Pico to 93C46 trought Microwire (3-wire Protocol)

i searched to know if someone did that before, but i didn't find anything, some C code to read and write using Arduino, but when i try to convert it i failed because i'm new at MicroPython and ...
Hitotam's user avatar
0 votes
1 answer
59 views

Connecting Two SPI LCD to raspberry pi GPIO pins

I am doing my NEA project right now and I have a problem using 2 TFT LCD. Here are more details about the LCD 2.8" LCD SPI, Driver: ili9341 with touch version 1.2, this a picture of it: I have ...
Mohamed Ahmed's user avatar
0 votes
0 answers
57 views

Failed to add edge detection - Raspberry Pi 4 GPIO

I am trying to run a LoRa receiver using python from time import sleep from SX127x.LoRa import * from SX127x.board_config import BOARD BOARD.setup() class LoRaRcvCont(LoRa): def __init__(self, ...
Guilherme Gomes Zucco's user avatar
0 votes
1 answer
41 views

Why My Spi Connection Is Not Getting started?

Hello Guys I Am New To Embedded & Rasberry PI. So In Order To Understand SPI Connection I Made An PI-PI SPI Setup PS. I am Using Two Rasbrry Pi Model 4 B with Raspi OS & i did the followings ...
Its_MEDev's user avatar
1 vote
1 answer
63 views

Need Help with nRF905 Transceiver Module on Raspberry Pi Zero

I recently bought a nRF905 Transceiver Module from Jaycar and am wondering how to use it. It is meant for an Arduino and I have found some libraries for it (nRF905 Library For Arduino - GitHub) I need ...
Arlo Michael's user avatar
0 votes
0 answers
101 views

Raw wiring to a ILI9341 TFT display

I'm trying to connect a RPi Zero W to a Winstar WF24LTYAJDNN0 LCD module with integrated ILI3941 controller. The LCD comes with the typical 40 pin flat cable with the following pinout: The LCD is ...
weirdgyn's user avatar
  • 122
2 votes
1 answer
46 views

Extending the SPI buffer size beyond 65536 bytes

I am trying to use the Raspberry Pi 4 model B to program the Lattice ICE40 FPGA chip via SPI. It requires continuous clock signal throughout the whole transmission of the bitfile, which is easily ...
martin.havelka's user avatar
0 votes
0 answers
34 views

TFT HSD - 9190J-D1 connection to Raspberry Pi model B

I have Raspberry Pi 4 Model B I want to connect SPI TFT 4" LCD HSD-9190J-D1 using GPIO pins. Kindly help me up with proper connections and necessary drivers required for the LCD to work as ...
Jiwan Rai's user avatar
0 votes
1 answer
24 views

Use different clock for SPI receive and send data on RPI4B

Has anyone here ever used two different clocks to synchronize sent and received data via SPI ? By that I mean, using a PIN clock1 for transmission and a PIN clock2 for reception. I don't know if it is ...
rdpdo's user avatar
  • 3
1 vote
1 answer
25 views

Outputting to SH1106 display with PIL only works from loaded files [closed]

I'm dealing with a maddening bug when trying to use an OLED module (sh1106 clone, interfaced over SPI) with a raspberry pi. I have stolen the following function from https://github.com/8TN/Raspberry-...
catalogue_number's user avatar
0 votes
0 answers
20 views

COM disconnects and program fails when including code trying to initialize SD card (RP2040 Pi Pico W running Arduino)

I'm having an issue where anytime I run a program such as the SD card read write example (Below) the COM port disconnects. The only changes I have made to the example code is I am using SPI1 instead ...
Rian Noble's user avatar
0 votes
0 answers
19 views

How to write to multiple outputs on a TLV5620CN over SPI?

How can I write to multiple output DACs at the same time? This is the function I am using. int DACCodes[4]; void writeVoltageSPI(int channel, float v, float maxV) { int code = (int)(256 * v / maxV)...
EOsgood's user avatar
0 votes
2 answers
99 views

SPI clock is not switching on RPi

I need to use SPI for a project I'm working on with a Raspberry PI, but the little bit of test code I wrote doesn't seem to work. #test program for spi import spidev import RPi.GPIO as GPIO from time ...
AMacDonald's user avatar
0 votes
1 answer
114 views

can't send spi message: Invalid argument

I'm using the SPI library SPI-Py with MFRC522 RFID Library. I'm getting this error when I run REad.py. This issue is related to the SPI-Py library can't send spi message: Invalid argument I have ...
niranjan's user avatar
1 vote
1 answer
137 views

SPI loaded but MOSI as input

I wrote a script to display data on a led matrix, controlled by a few GPIO for line selection and SPI to feed data for this line. This was working perfectly 2 days ago, I let the script display random ...
low's user avatar
  • 11
1 vote
0 answers
19 views

Cannot get WS28xx strip code working in eclipse swing

Hey all I have been looking at doing this for some time now. I ran across this posting and this is the type of led strip I am using. However, using that code seems to have errors when trying to add it ...
StealthRT's user avatar
  • 121
1 vote
1 answer
39 views

Using MAX7219 Dot Matrix module with Luma.Led on different GPIOs

I have a MAX7219 dot matrix module (this one) that I'm trying to run on my Raspberry Pi 4 with the Luma.LED library. Its documentation suggests the following GPIOs/pins be used: Board Pin Name ...
Vroni's user avatar
  • 11
2 votes
2 answers
219 views

SPI Clock Phase on CM4 spidev1.0

I have a CM4 Compute Module and am trying to set the clock phase on the second SPI channel. But the ioctl() to set mode returns an error whenever I attempt to set this phase bit: int fd = open("/...
Jon's user avatar
  • 121
3 votes
1 answer
193 views

Uninterrupted, endless SPI transfer - is it possible?

I wrote a linux driver for SPI protocol so RaspberryPi could communicate with my device that's using serial data transfer (the device has clock input and data output). It almost works, the problem is ...
PookyFan's user avatar
  • 133
2 votes
0 answers
109 views

spi overlay driver don't run due to shared pin11

I'm trying to run old FLIR Lepton driver on Raspberry Pi 3 Model B v1.2 (2015). FLIR SW driver here: https://www.flir.eu/developer/lepton-integration/lepton-integration-raspberry-pi/. PDF guide here: ...
Niko's user avatar
  • 21
3 votes
0 answers
143 views

Assistance with pigpio SPI slave bscXfer on Raspberry Pi 4

I am trying to write C code so my Raspberry Pi4 can be an SPI slave, and the SPI master can read data from the Pi4. I'm expecting to get this data from SPI master (in a continuous loop): 0x01 0x42 ...
dtbaker's user avatar
  • 151
2 votes
1 answer
205 views

2-ch-can-hat (mcp2515) on SPI1 rpi 3 b+

On a Raspberry Pi 1 Mod. B+ Raspberry Pi reference 2021-01-11 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 21090519d85bdaa1615d5d5057d37b09368ea5d2, stage2 Oct 29 2021 10:49:08 ...
martburg's user avatar
  • 121
1 vote
0 answers
315 views

SPI Chip Select (CS) Control?

I am working with spidev on my RPi4 project and I have noticed that there is a significant delay caused by the CS signal. I am using the hardware CS pin (CE0, pin header 24) to drive the CS signal for ...
zeruel.z's user avatar
2 votes
0 answers
151 views

Multiple SPI reads on Pi Pico requires reinitialisation

I'm playing around with reading in analogue inputs from an MCP3208 ADC via SPI. However, reading multiple inputs seems to cause a seg fault unless I reinitialise the SPI on each read/write. I've ...
user151296's user avatar
0 votes
0 answers
131 views

SPI device driver for Raspberry Pi 4B using Buildroot 2022.02.5

I'm new to buildroot and using it to flash an image to Raspberry Pi and I need to learn it for a project in a college subject. This particular project needs a GUI so I acquired an SPI Display Module (...
Bikke21's user avatar
0 votes
2 answers
578 views

Pi Pico SPI Interrupt only fires once

I have set an interrupt for spi0 which fires only once. Here is my entire code: int main() spi_init(spi0, 1000 * 1000); spi_set_slave(spi0, true); gpio_set_function(...
Uncle Marvo's user avatar
0 votes
1 answer
511 views

Connecting MCP2515 with raspi

I am trying to connect mcp2515 can bus module with raspi 4b. On using pi@piv2:~ $ sudo ip link set can0 up type can bitrate 125000 the terminal freezes so i downgraded my terminal to 5.4.61-v7l ,t ...
VEDANT KABRA's user avatar
0 votes
0 answers
259 views

Adding two ENC2860 ethernets on 2 spi of Raspberry Pi Zero

I have successfully added enc2860 using spi0, I followed https://www.raspberrypi-spy.co.uk/2020/05/adding-ethernet-to-a-pi-zero/ to get it working without any issue on eth0. But I now want to add 2nd ...
Harish Patil's user avatar
1 vote
0 answers
734 views

How to use SPI touch screen with RPi?

I bought a SPI TFT 2.4" display with a resistive touchscreen from eBay (this one). The screen is ILI9341 and works fine with Python and displays what I want. But how do I make use of the touch ...
MLu's user avatar
  • 151
1 vote
0 answers
44 views

How do you connect 1 or more Waveshare 2.9inch eInk to Raspberry Pi 4 Model B (2018)?

Apologies for this newbie question, but I am not sure how to safely (?) connect at least one Waveshare 2.9inch eInk module to a Rasp Pi 4 Model B. I am assuming that the colored wires go into some of ...
ina's user avatar
  • 111
1 vote
0 answers
111 views

How to connect SD card and battery to Pico?

I have been looking into components I need for a MicroPython project. I needs to be battery powered and be able to read/write to a removable SD card. For this, I have discovered SD breakout boards. ...
SamTheProgrammer's user avatar
1 vote
1 answer
214 views

Raspberry Pi spidev CLK working but no signal on MOSI

I have a Raspberry Pi Zero W that uses this LCD screen, including its touch interface using SPI0. What I am trying to achieve is to add another SPI device that uses SPI0. I am able to successfully ...
user3699569's user avatar
3 votes
0 answers
124 views

Enabling SPI card reader in device tree on Raspberry Pi

Good evening, I have MFRC522 card reader. It works well with generic spidev kernel-level driver and high-level python driver. However, as I wanted to learn device trees in linux, I tried to bind ...
yomol777's user avatar
0 votes
0 answers
158 views

Two independent SPI connections for LoRa modules using board and rfm9x libraries

We have been trying to allow for two simultaneous and independent SPI connections in a Raspberry Pi 4 but have had no luck until now. In particular, we want to use two rfm9x LoRa modules ...
Jose_Pulido's user avatar
0 votes
0 answers
112 views

SPI Interrupt Bit-Offset / Too Early

I´m running an SPI Slave on my Pico and executing an interrupt when 16 bits of Data are received. I visualized the interrupt with a gpio spike on the beginning and end of the interrupt to see when it´...
0i9n's user avatar
  • 11
0 votes
1 answer
485 views

How to set SPI master on RPI Pico to some exact frequency?

I want to have SPI master on my RPI Pico, and I require it to have exactly 4.8 MHz clock. But I don't know how to set it up properly, since SPI clock doesn't allow every value. I read about peripheral ...
PookyFan's user avatar
  • 133
0 votes
1 answer
446 views

Software SPI Interrupt

I´m trying to set up an interrupt function, that gets triggerd, when the 8bit RX register of my SPI port is filled on my Raspberry Pi Pico. The Raspberry is running in Slave Mode. I have checked the ...
0i9n's user avatar
  • 11
-1 votes
1 answer
49 views

spi driver works on pi 3 and pi 4, but not on pi cm4

I have a spi driver for an nrc7292. When I load it on a pi3 or 4 it works every time, but when I load it on a cm4 it only loads correctly about half the time. What could possibly be different? Once ...
bob mcgrath's user avatar
0 votes
0 answers
105 views

Getting fbcp to work on a generic ili9341 display

I’m trying to get fbcp to work on my raspberry pi. I’m following the instructions on the GitHub repo, however, when I type in make -j it gives an error. I’ll paste the error below
M0H1D's user avatar
  • 1
1 vote
1 answer
105 views

RPI Zero spiWrite bit order in PIGPIO

I'm trying to interface with an ADXL355 accelerometer via SPI on an RPI Zero W, and am unsure about the order that bits are written out via the function spiWrite. The datasheet for the ADXL355 shows a ...
Daniel Godø-Dempsey's user avatar
0 votes
1 answer
83 views

Spi wrong voltage

Obviously, my spi is not happy. MISO and MOSI were idling around 1.5v instead of 3.3 so I added a 10k pull up, and that helped a bit, but as you can see, it's still not good. It idles around 2.8v ...
bob mcgrath's user avatar
2 votes
0 answers
57 views

Raspberry Pi and RFM69HCW (Adafruit) not working - SPI used (URGENT)

I am working on a project, and I was trying to get the Pi 4 working with an RFM69HCW module. I tried using spidev for this, and read the spidev documentation. I followed the steps but I keep getting ...
Thira's user avatar
  • 21
1 vote
1 answer
471 views

Raspberry pi 4, UART4 and SPI0

Raspberry pi 4 has 4 usable uart ports, uart 4 with rx in gpio 9 and tx in gpio 8, share rx pin with SPI0 miso0 pin. I would like to use both peripherals no ate the same time, but in different moment ...
Jefferson Alexis's user avatar
0 votes
1 answer
81 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 ...
Cody's user avatar
  • 11
0 votes
3 answers
587 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 ...
v3xX's user avatar
  • 101
1 vote
1 answer
333 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-...
OM222O's user avatar
  • 121
1 vote
0 answers
126 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,...
czscout's user avatar
  • 11
0 votes
1 answer
191 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 ...
Brushless's user avatar
1 vote
1 answer
125 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 ...
Jeff Muller's user avatar

1
2 3 4 5
10