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
1answer
23 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 ...
-1
votes
0answers
30 views

Data transfer between Raspberry Pi 3 to Raspberry Pi zero

I connect the RC522 RFID reader to my Raspberry Pi3 (OS: Windows 10 IoT core) and the reading worked well. now I want to send cards data from my Pi3 to raspberry Pi zero (OS: Raspbian OS). How the ...
0
votes
3answers
40 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 ...
5
votes
1answer
89 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 ...
0
votes
1answer
29 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 ...
1
vote
0answers
29 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....
0
votes
0answers
18 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 ...
2
votes
1answer
56 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 ...
0
votes
1answer
57 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 ...
0
votes
1answer
59 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 ...
0
votes
1answer
31 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 ...
0
votes
0answers
13 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 ...
2
votes
2answers
81 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 ...
0
votes
0answers
22 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 ...
0
votes
0answers
33 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 ...
0
votes
1answer
55 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
51 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 ...
2
votes
2answers
172 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
35 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 ...
0
votes
2answers
144 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 ...
1
vote
0answers
69 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
53 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
103 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
40 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
35 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
63 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 ...
1
vote
1answer
53 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
101 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
1answer
75 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
70 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
47 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 ...
1
vote
1answer
40 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
121 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
150 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
44 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
157 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
71 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
33 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
42 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
120 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
74 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
97 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
95 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
74 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
60 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
335 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
115 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
34 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
59 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
452 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 ...

1
2 3 4 5
9