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
1answer
14 views

PI Zero SPI info needed for Python

I'm trying to program the SPI in Python but the documentation is terrible. SPI Docs I found some sites that show how to get started but I need to know how to change modes, set clock polarity, and set ...
0
votes
0answers
11 views

Ifconfig, interrupt device and enc28J60 spi1

Good morning I have configured and connected an enc28j60 card to the spi1 port of my raspberry pi3 and I have found the error in the photo that does not make the ethernet port work. I ask you for help ...
0
votes
0answers
31 views

OLED Boot Splash Screen

I am currently controlling my 128x64 Monochrome OLED Display via SPI via a Raspberry Pi and it is working successfully so far. I am currently in process of trying to get the Display to show an image/...
1
vote
1answer
22 views

8x8 Matrix (max7219): Half of the LEDs permanently on

I am trying to hook up an 8x8 LED matrix to my Raspberry Pi 4B. I connected it to SPI1 because I am already using SPI0 for another device. Here are the pins I am using: CLK - GPIO 20 CS - GPIO 16 DIN ...
0
votes
0answers
44 views

How should I be connecting CE/CS pins of a SPI device to GPIO pins in userspace?

I am trying to avoid using the built-in CS/CE 0 and 1 pins that the system defaults to when using SPI communication so that I can expand out to as many as 10 devices in the future. The devices in ...
1
vote
0answers
42 views

Waveshare RS485 CAN hat over raspberry pi 3A+

So I have been at least trying to connect to the hat from the Pi, the following is my configuration: I follow the manual set in this link: https://www.waveshare.com/w/upload/2/29/RS485-CAN-HAT-user-...
0
votes
0answers
45 views

Can we implement a protocol other than spi on Raspberry Pi?

Pi supports SPI, I2C and UART by default. Can we implement any other protocol like MDIO into it? If yes, how do we do it?
0
votes
1answer
233 views

Does Raspberry Pi 4 Support Android Things?

I am trying to communicate with an MFRC522 device using my RPi 4B and the SPI interface. My application is written in Java and communicates under NetBeans with the RPi as a remote platform. The ...
2
votes
2answers
26 views

SPI Not working when chip select is connected to ground, works fine when connected to CE 0,1 or 2

I am working on MFRC522 sensors. However I need more than 3 SPI Devices. The 3 works fine except when I want to connect chip select to GPIO, It does not work. I tried a single spi device by connecting ...
0
votes
0answers
42 views

How can Rpi python read SPI ADNS3080 Optical Mouse Sensor's register values?

I am using ADNS3080 optical flow in raspberry pi 3. I set SPI connection between raspberry and ADNS3080 optical flow. I used spidev library for reading values in python. I want to read delta_x and ...
2
votes
0answers
41 views

Loopback SPI interface not working

I'm trying to do the loopback test for the SPI interface on my raspberrypi model 2 B V1.1, by following the intruction on this website : https://www.raspberrypi.org/documentation/hardware/raspberrypi/...
2
votes
1answer
32 views

Control SPI Wirelessly

I would like to control a WaveShare e-Ink display wirelessly. I have lots of experience working with this type of device over SPI using the GPIO boards and the WaveShare python libraries. I'd like to ...
1
vote
0answers
18 views

How do I hold SPI high value?

I'm using wiringPi spi library to communicate two raspberries. As the spi clks aren't synchronised, I don't read the high values, since they are only a pulse. Is there a way to hold the high value ...
1
vote
1answer
131 views

Get cheap ST7789 TFT display working through SPI (without CS pin)

I purchased a cheap Chinese ST7789 TFT (1.3in, 240x240) that is clearly identified as SPI compatible, tough it does NOT have a CS pin and also some of the pins seem weirdly named to me. I have been ...
2
votes
1answer
52 views

Continuous data acquisition from ADC at around 10 MSPS

I would like to continuously stream data from an ADC with 12 to 16 bit to a Raspberry 4 at around 10 MSPS. Since the Raspberry is not realtime, I'm assuming I need some sort of FIFO buffer as ...
2
votes
1answer
23 views

Raspbian - Custom SPI Bus similar to custom I2c Bus

I am currently using this line to put in a custom I2C Bus in my boot/config file: dtoverlay=i2c-gpio,bus=4,i2c_gpio_delay_us=1,i2c_gpio_sda=6,i2c_gpio_scl=0 However, I want to be able to set up a ...
2
votes
1answer
70 views

How should I connect ten “MFRC522-based RFID” readers using SPI to the Pi Zero W?

Using the MFRC522.py library and SimpleMFRC522 extension, I have been able to pass tag ID information as well as the text block; but only for one tag at a time. Diving deeper into the MFRC522 ...
3
votes
2answers
289 views

Rpi reading only zero output results from SPI 10-bit ADC MCP3008 problem

I am attempting to make a temperature monitor based on these links: 1. https://bitbucket.org/pschow/rpiadctherm/src/dbfe8101eeb4/basiclogmcp.py?at=master 2. https://www.paulschow.com/2013/08/...
1
vote
1answer
342 views

Enable up to 5 SPI on Raspberry Pi 4

I'm trying to enable all the SPI Ports on my raspberry pi 4 (as mentioned in the datasheet). I already enable the SPI interfaces over the raspi-config tool but that only gives me spi0.0 and spi0.1 ...
1
vote
0answers
38 views

raspberry pi 3 spi issue

I connected MOSI to MISO on Raspberry PI 3 Executed the below code: import time import sys import spidev spi = spidev.SpiDev() spi.open(0,0) print(spi.bits_per_word) print(spi.mode) print(spi....
0
votes
0answers
40 views

Can't read data from PN532 NFC reader over SPI

I'm using Pi4J library to read data from a NFC reader based on PN532, connected to my Pi via SPI. However, I don't seem to receive any data from if when I put a NFC card to my reader. I'm using SPI0 ...
1
vote
1answer
107 views

How to detect if an SPI device is connected

Hello I am i have connected an MCP23S17 spi GPIO expansion, upon testing it with the sample code from here, It does not seem to work. There could be many reasons why this is happening. I would like to ...
1
vote
0answers
236 views

Read/Write to SPI NAND using RPI

I have an SPI NAND flash that I want to read/write the data to it using Raspberry Pi but since flashrom doesn't support SPI NAND and I couldn't find any tools that can do SPI NAND reading raw from the ...
0
votes
0answers
22 views

Raspberry PI SPI clock change

Need to change a clock speed for RPI SPI Is it possible to add a clock config to this string: dtoverlay=jedec-spi-nor,flash-spi0-0?
0
votes
1answer
45 views

Can't set modes 1 and 3 in Auxillary SPI(1)

The auxiliary SPI will not accept modes 1, or 3. I’ve enabled spi1-1cs, and /dev/spidev1.0 is created. I can send and receive data but only SPI_MODE_2 and SPI_MODE_0. Setting to mode 3 produces a file ...
0
votes
1answer
69 views

Number of SPI devices limited just by CS pins? And pin assignment flexibility question

I've done some research, but not probably not enough, as I'm still confused some. First of all, I've got a Pi rev 1 Model B (with the 26 pin connector) and two devices: The Waveshare AD/DA board and ...
1
vote
0answers
203 views

Rpi4B buster SPI CAN Bus Interface Problem

I'm using PI4 OS Buster. I want to connect 2 canbus interfaces so I will be able to read both of them at the same time. this is the connections I have made GPIO CAN HEADR ...
1
vote
1answer
1k views

How to connect ST7789 LCD to Raspberry Pi

I'm trying to connect to this LCD ( sry 4 japanese page:( use translate plz ) This monitor driver is ST7789, 7pins.[GND VCC SCL SDA RES DC BLK] And now I'm connecting to pi like this https://imgur....
0
votes
0answers
51 views

SPI_Communication on Raspberry

for two weeks I have been testing the serial communication on my raspbrery pi2 and the microkontroler STM32G4. for the UART communication there is no problem however the SPI communication does not ...
0
votes
2answers
140 views

Using ENC28J60 on /dev/spidev1.0 or /dev/spidev1.2

I'm forced to use port /dev/spidev0.0 with a camera that I'm not able to configure at this time. Hence I need to change my current configuration where I'm using ENC28J60 on /dev/spidev0.0 and move it ...
0
votes
0answers
29 views

Varying possibly broken behavior of different GPIO pins on bitbanging LED display driver

I connect Raspberry Pi 3 b+ directly to 8x8 LED display, packaged with max7219cng display driver. To control GPIO pins, I'm using baremetal code, written by myself. For working with GPIO I've ...
0
votes
0answers
67 views

Control two SPI devices at the same time

I have a problem with Raspberry Pi 3b+. I need to connect two DACs (MCP4911) to SPI bus 1. The two DACs are expected to output the different DC voltage level. However, I found that when I connected ...
0
votes
0answers
38 views

Raspberry Pi 0 W SPI ioctl() call failure

I'm trying to setup my Rasperry Pi 0 to use two SPI ports simultaneously I need such configuration since I need: to connect this board trough ETHERNET to a local LAN; to collect video stream from a ...
1
vote
1answer
105 views

Choosing GPIO for Chip select SPI on Rpi 3B+

I would like to ask what GPIO pins are best suited for Chip select. The Raspberry Pi 3B+ and Raspberry Pi 4 has 2 chip select GPIO 7 and GPIO 8 but i have 6 slave devices (MCP3008 A/D converter). As ...
3
votes
1answer
791 views

Write to spi EEPROM in Raspberry Pi 4

The Pi4 has 512Kb of EEPROM which hold the bootloader. Does anyone know if it is possible to write to spi memory to be used in programs in the user space without corrupting the bootloader? Is there ...
1
vote
1answer
46 views

Boot behavior, Pi 3 B+ won't boot with GPIOs connected, 3 B boots fine

I have a 40 pin ribbon which connects an RPi 3 B (SPI and GPIO) to another microprocessor. It seems to work fine on a 3B. I've recently found out that if I connect a 3 B+ instead the Pi will not boot, ...
3
votes
1answer
124 views

High level of noise of SPI pins on RPi Zero W

I have a zero W powered via USB from a laptop. I have setup up for the SPI drivers and run a very simple test program which is: import spidev import time spi = spidev.SpiDev() spi.open(0, 0) ...
0
votes
1answer
56 views

spidev sanity check not working

ArchARM on Raspberry Pi 3, spidev installed from AUR. I'm trying to control a Waveshare device via SPI, and can't get SPI to work from Python. The most basic sanity test I can think of is failing: ...
0
votes
0answers
43 views

I want to multithread raspberry pi spi0 and spi1

I'm controlling two ssd1351 oleds in Raspberry Pi. When I tested using one spi bus, I see the images on both screens differently. (One eye is closed first) So, I wanted to threading another spi bus ...
0
votes
1answer
91 views

How do I connect Raspberry PI SPI pins to LED Segment via SPI?

The led segment (SPI Slave) I have got has the pin names - VCC, GND, DN, CS, CLK. The raspberry pi model is 3 model B version 1.2. The segment model is XC-3714. Is my understanding correct here that ...
0
votes
0answers
111 views

Raspbi spi CS line won't drive low

Raspberry pi 2 Model B V1.1 Not sure what's happening here, everything should work. Tried different cables, different pins on the analyzer, different laptop... the CE0 line won't go low. Currently ...
2
votes
1answer
74 views

2.5 V and 3.3 V on Raspberry Pi 3 MOSI line

I'm trying to read a SPI sensor via the raspberry pi, but I seem to be getting strange voltage levels on the MOSI line and no response on the MISO line. The chip-select line and clock lines make ...
0
votes
1answer
122 views

How to solve Argument list size exceeds 4096 bytes when working with large number of DotStar LEDs

I'm working with an array of ~1400 dotstar LED's running off a Raspberry Pi 3 B+ with raspian 4.19. The program is in python 3.5 using the DotStar package and I'm running into an issue. Specifically, ...
0
votes
1answer
178 views

is there a way to change SPI clock in shell or bash file?

I would like to write a bash to light up an OLED screen with SSD1306 driver, I can use below code to send commands: echo -ne $cmd > /dev/spidev0.0 however the SPI clock seems too fast for SSD1306,...
0
votes
0answers
19 views

Has anyone used spidev library with python 3?

I am currently trying to interface a RPI 3B+ with a flash memory chip using SPI communication. do anyone have a good resource for using SPI communication with memory? What language should I use. I ...
0
votes
1answer
110 views

Fluctuating SCLK voltage with increase in frequency

Raspberry pi newbie here. As part of my academics i was working on Raspberry Pi 3 B+ , Raspbian OS kernel 4.14.98-v7 and i was testing protocols and i am stuck at SPI. I am running spidev_test.c from ...
2
votes
1answer
68 views

CE1 not going low for pigpio.spi_open() with flags

I'm attempting to modify joan's test script (https://raspberrypi.stackexchange.com/a/44320/42126) for an RPi SPI master to communicate with an Atmega328P slave. I cannot change which GPIO pins I have ...
10
votes
1answer
2k views

Pi 4 I/O interface options… and where to find them

The BCM2711's hardware documentation lists multiple I/O interface options. Among others these are: up to 6 × I2C, up to 6 × UART (muxed with I2C), up to 6 × SPI (only five exposed on Raspberry Pi ...
1
vote
1answer
155 views

Speed up SPI transfer

So I need to transfer a byte on the spi interface on raspberry pi. Here's my code in python import spidev import time import binimp fhandle=open("white.txt") initial=binimp.extract(fhandle,'192','...
2
votes
0answers
102 views

SPI0 and UART0 interference caused by SPI interrupt

I have a raspberry CM3 running a custom Linux version created by buildroot (kernel: 4.19.44-v7). The CM3 is configured to be part of a measurement system that is used on a quad-bike (so a lot of ...

1
2 3 4 5
7