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
vote
0answers
22 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 ...
1
vote
1answer
29 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. ...
1
vote
0answers
32 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 ...
0
votes
0answers
37 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 ...
0
votes
3answers
30 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 ...
1
vote
2answers
62 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 ...
2
votes
0answers
56 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 ...
0
votes
0answers
32 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 ...
0
votes
1answer
63 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 ...
0
votes
1answer
22 views

Different SPI modes on one bus

I have two SPI slaves connected to one SPI bus on the raspberry. One uses SPI mode 1 the other uses SPI mode 3. In my C++ program I have two SPI_bus objects configured for each mode. If I now try to ...
0
votes
0answers
30 views

Pi4 MCP3008 - SPI port setup failed, no SPI available

I am trying to use a joystick with a MCP3008 in the middle (Connected to GPIO8 - SPI CS0) but I get following error: Exception in thread "main" java.lang.reflect.InvocationTargetException ...
0
votes
1answer
39 views

WiringPi SPI without Chip Select/Enable?

I am wondering how the WiringPi SPI works without using the chip select/enable spi.cs_change = true; in the following code. int wiringPiSPIDataRW (int channel, unsigned char *data, int len) { struct ...
0
votes
1answer
33 views

HQ Camera V4L2 - bad set of scene mode causes camera controls to become unresponsive

I have been playing with these cameras for some time using opencv/raspicam to control the camera. The raspicam/opencv interface allows setting the gain, this is dubious because there is no manual set ...
3
votes
0answers
67 views

How to write a Kernel module using SPI properly?

I have no experience writing kernel modules. I build some examples with gpio interrupts and they worked prety well. Now I want to use SPI from my kernel module and I will explain why I need it. I am ...
1
vote
0answers
48 views

How is spidev and the spi-bcm2835 module related?

Removing either one deletes the SPI devices from /dev/ What's the difference between the two modules and how do they relate?
0
votes
0answers
55 views

Raspberry pi 3 spi does not work

[![enter image description here][1]][1]I use MCP3008 adc to see a potentiometer values on raspberry pi 3. My connection same with the link down here. https://roboticadiy.com/potentiometer-analog-input-...
0
votes
1answer
37 views

Rx buffer overwrites Tx buffer in spidev xfer2

Coming here from electronics SE as it was suggested that I post here on this issue. The electronics SE post is here. I'm setting up a comms link between an STM32F407 MCU and the Pi3B+. The Pi is ...
0
votes
1answer
36 views

My pi 4 cant go beyond 5Mhz SPI without corrupting's the transaction

I am having troubles with my pi 4b, in which i could not push the spi beyond 5Mhz without the data being corrupted. I have an spi slave that is capable of abaout 15MHz on the serial clock (32ns high + ...
-1
votes
1answer
64 views

How to configure SPI to LSB_FIRST mode?

I am trying to configure my Raspberry Zero W SPI interface to communicate lsb-first. I've modified spidev_test.c, but when I run it, I get an error: uint8_t lsb_first = 1; ret = ioctl(fd, ...
0
votes
1answer
111 views

How to read SPI memory with raspberry pi? (using wiringpi)

This is the pinout I have for the flash memory W25Q128FV which I'm trying to interact with I'm trying to control it with a raspberry pi 3 B+. Here's how I wired everything: CS - GND D0 - SPIMISO WP - ...
0
votes
0answers
37 views

What is going on with the Raspberry PI SPI? Weird jitter in signal

I'm using python and spidev to do spi transactions over the Raspberry Pi's spi channel. I'm having a couple of different things happen that are not what I am expecting. This is a capture of a spi ...
1
vote
1answer
135 views

Using Rpi python and MCP3008 ADC to read flame (RGB) sensor data for FFT analysis

I have an IR pyroelectic flame sensor which detects flames within the 8-10hz of flame flicker. I am new to the ADC world so any help is very appreciated. Documentation: https://pyreos.com/wp-content/...
0
votes
1answer
50 views

Setting interface name in /boo/config.txt

I am trying to setup an interface name can1 (instead of can0) on spi0. Looking at the instructions at https://blog.stabel.family/raspberry-pi-4-device-tree/ I was able to add a new overlay file. Even ...
0
votes
0answers
30 views

Extra SPI0 chip select on GPIO16

Hey I have problem with using spidev on spi0.3 my CS pins: cs-gpios = <&gpio 8 1>, <&gpio 7 1> , <&gpio 25 1>, <&gpio 16 1>, <&gpio 23 1>; extra CS on ...
1
vote
1answer
37 views

my spidev code does not store the receive data

So i am using a trimmed down version of this code to do a spi transaction usin spidev. Here is my code /* * spi-driver-speed.c * 2016-11-23 * Public Domain */ #include <stdio.h> #include <...
-1
votes
1answer
86 views

1.44 inch ST7735S lcd screen on gpio only white output [closed]

I recently bought an lcd screen on ali express that is attached to the gpio, but the system does not detect it, screen is constantly white and output is only on hdmi. I tried turning spi on raspi-...
0
votes
0answers
60 views

Raspberry Pi 4 auxillary SPI mode 1 data on wrong clock edges

I know it is a known issue that modes 1 & 3 do not work on the rpi aux spi. I gave it a try anyway on an rp400 and found some interesting results. Am currently using pigpio via python. This image (...
0
votes
1answer
56 views

python spidev setting bits_per_word throws an error

so i need to set the bits per word to other than the deafult (which i think is 8) import spidev spi = spidev.SpiDev() spi.open(0,1) spi.bits_per_word = 8 This compiles no problem but when i set it ...
0
votes
0answers
61 views

How to use 4 CS for SPI in C++

I'm currently trying to implement 4 CS in RaspPi. I'm still a newby in this field and used the library wiringPi. For CS0 and CS1 this works totally fine. However now I have 2 more CS on the GPIO Pin ...
0
votes
0answers
47 views

DTS for custom board with sc16is752

im trying to write DTS for my custom board, but still is smth wrong: My hardware description on SPI0: CS-gpios: 8 7 25 16 23 CS0 - SC16IS752 (IRQ 24) CS1 - MCP2515 CS2 - RFID RC522 module CS3 - RFID ...
0
votes
2answers
39 views

spidev only returns zeroes, even when MISO pin is set HIGH

I'm trying to read out an MCP3008 chip using hardware SPI on a pi4, it wasn't working and in an effort to debug the problem I ended up connecting the spi input pin (MISO) directly to a 3.3V pin. I can ...
2
votes
2answers
187 views

Re-configure SPI-CS as gpio while using SPI

I am on a raspberry pi 4. Using both SPI's with no need for either chip select. I'm running out of I/O and could really use those. Does anyone know if there is a way to repurpose the SPI chip selects ...
0
votes
0answers
97 views

I2C not detecting BME280 (the I2C only version) when display is connected to SPI

I have bought an ePaper display and an BME280 sensor. The ePaper display itself is successfully powered via SPI (https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_(B)) and the BME280 should be ...
-1
votes
1answer
24 views

SPI0 CE_0 dosn't works

I use custom board with raspberry pi on SPI0 CE0 I have connected SC16IS752 (spi-uart IC) on SPI0 CE1 MCP2515 (can IC) I have problem with init this first device GPIO 7: level=1 fsel=4 alt=0 func=...
0
votes
0answers
41 views

SPI6 on RPi4B does not load

i've got problem with load SPI6 on RPI4B. What I did is: enabling SPI interface in Raspberry Pi Configuration checking in /etc/modules whether there is spi-dev (I added manually) (based on README ...
0
votes
2answers
275 views

Troubleshooting: RPi 4B & ILI9341 display

I bought a generic 2.8" TFT LCD 240x320 Serial SPI Display that uses the ILI9341 driver. I cannot seem to make it work with my RPi 4B. Does anyone have an idea as to why? Or ideas to further ...
0
votes
0answers
58 views

Test TFT SPI ILI9341 display via startx & con2fbmap showing console

I have a 2.4" TFT LCD 240x320 Serial SPI (ILI9341 driver) that I am unsuccessfully trying to use with Raspberry Pi 4B and the Adafruit_blinka library having executed the necessary pre-requisites (...
0
votes
0answers
50 views

How to set Clock Divider field of the CLK register?

I have noticed that my SPI communication is slower that it should be.I know that there are some limitations of SPI in raspberry PI but I am reaching only around 20k samples/s from sensor this value is ...
0
votes
0answers
51 views

Specifics on connecting RFM69 to pi3

I am trying to follow these instructions to test a RFM69 module added to an Raspberry Pi 3. This is likely rather naive, but I would like to know details on how to connect the pi to the module. The ...
0
votes
2answers
58 views

Connect 2 Pi's for file transfer, but with minimum networking [closed]

I want to connect two Pi's together for the purpose of transferring files, but I want to do it in the most secure method possible. One Pi ("Device 1") will be connected to the internet, and ...
0
votes
0answers
57 views

Is it possible to run a SPI display off of a Pi zero?

I bought a 1.6" 130*130 display (Link, SKU: MSP1601, Driver Chip: SSD1283A) to use with me pi zero in a project (Mini handheld gaming console). I have been looking for hours how to use this ...
0
votes
1answer
50 views

Changing the SPI bus

I have a Waveshare Can/RS485 Hat on my Pi. The Hat uses SPI0 with CS0 going to the CAN side. CS1 goes to the RS485 side. I have a new device that uses SPI also. As I explore the sample code, ...
0
votes
0answers
50 views

add SPI wthernet connection , not working - how can I check why?

I have added a spi ethernet tp my pi zero connected it and added the needed files anyspi.dtbo , w5500.dtbo added in config.txt dtparam=spi=on dtoverlay=anyspi,spi0-0,dev="w5500",speed=...
0
votes
1answer
29 views

Scaling down the SPI0 clock value on RPi 3B+/4B

I have a custom STM32 MCU board that interfaces with an RPi 3B+ via the SPI protocol. The MCU (STM32F407) has its SPI peripheral clock set at 84MHz and is configured as a slave device. For reliable ...
1
vote
1answer
209 views

Raspberry pi4 + ADC

I have been working with Raspberry pi 4 to acquire analog signals. I get AD/DA High Precision Board by Waveshare (ADS1256 A/D) to convert analog input and I downloaded python source code from ...
0
votes
0answers
311 views

Using MCP2518 CAN controller and SocketCAN on CM4 with PiCore

Background I am planning on using a Raspberry Pi CM4 with PiCore (a version of TinyCore for the RPI) for an embedded project involving a MCP2518 CAN controller. There is an MCP251x driver already ...
0
votes
1answer
83 views

SPI is only working with pi@raspberrypi:$ pigs spio 0 50000 0

I enabled SPI on my Raspberry pi 4 like in many Tutorials explained. In sudo raspi-config I enabled SPI. In /boot/config.txt I added dtparam=spi=on $ ls -l /dev/spidev*** shows crw-rw---- 1 root spi ...
0
votes
1answer
29 views

How to get more samples from ADC converter using SPI

I am trying to use ADC converter in my raspberry which has speed around 100k smp/s. I am setting clock as producent of converter recomend for 20 Mhz. But I only recive around ~ 43k samples/s and I can'...
1
vote
1answer
496 views

RPi DMA transfer over SPI

I have an application where I want to write to an external DAC and read from an external ADC using the pi's SPI interface continuously. The data to the DAC could come from some arbitrary function, and ...
0
votes
0answers
56 views

Max number of RC522 RFID modules connected to RPi via SPI

Good day all, I am wanting to know the maximum number of RC522 RFID modules that can be successfully connected to one RPi 4 B with multiplexer/s using SPI interface. The RC522 RFID modules are only ...

1
2 3 4 5
9