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
0answers
12 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
18 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
23 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
42 views

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

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
23 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
31 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
22 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
13 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 ...
2
votes
1answer
62 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
32 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
47 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
24 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
102 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
45 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 ...
0
votes
3answers
52 views

Why does connection between raspi and potentiometer via SPI fail after one time running code?

I'm pretty new in this forum and generally at wotking with Raspberry Pi. I'm trying to read the value of a potentiometer with my raspberry pi 4 B and am using MCP3008 through spi. My purpous is to ...
0
votes
0answers
28 views

Issues with an executable (C#) and sudo

first of all I am using Raspberry Pi 4 with Raspbian. I've made an executable in C # (Mono project) that uses the "unosquare/raspberryio" library for GPIO, SPI and I2C communication. If I ...
0
votes
0answers
62 views

Raspberry Pi Zero W problems with SPI

I followed this guide: https://ralimtek.com/raspberry%20pi/electronics/software/raspberry_pi_secondary_sd_card/ Only thing I changed is the core bug repair procedure, which one I made this more up to ...
0
votes
0answers
14 views

Problems re-building modules getting SPI working on a bcm2832(RPi ZERO W) [duplicate]

When I try to get SPI working on a bcm2832(RPi ZERO W) by re-building modules and solving the kernel bug, following this post, I am getting the following errors I could not get solved: pi@raspberrypi:~...
1
vote
1answer
56 views

Waveshare AD/DA espansione board setting sampling frequency

In order to acquire 3 analog signals with Raspberry pi 4 I want to use ADS1256 Waveshare's AD expansion board ( 8 channels single-ended, 24 bit). I was wandering if there's a way to set a different ...
1
vote
0answers
25 views

Can you boot the RPI 3 or below from SPI EEPROM?

RPI4 has an eeprom, however the other versions don't. I would be interested in particular in the RPI Zero. Could you add an SPI EEPROM to the header/gpio pins in order to load u-boot or maybe even a ...
0
votes
0answers
39 views

RPI actual SPI communication speed

I tested my RPI 3B's actual SPI communication speed using the time stamp and spidev of Python. Then, I got the 353.2k bitrate per second when I set the SPI clock as 30MHz. Then, the real SPI ...
1
vote
1answer
88 views

how to use MCP23S17 pin expander via SPI

I'm working on a custom sensor that is wired to a couple of MCP23S17 gpio expanders, which are in term connected to a Raspberry Pi 4 via the SPI pins i.e. SPI_MOSI, SPI_MISO, SPI_SCLK and CE0 pin. I'm ...
2
votes
2answers
44 views

Full duplex SPI communication with an ADC using the pigpio library

I am trying to read the data from an Analog to Digital Converter (ADC), the ADS1248 from texas instrument using the pigpio library in python with the SPI protocol. When reading the data from the ADC ...
0
votes
0answers
187 views

How to Disable Hardware SPI Chip Enable/Chip Select?

I'm setting up a Raspberry Pi 4b with a number of Adafruit chips, and thus have used their CircuitPython library to control SPI communication. They've conveniently set up a way to use any GPIO pins as ...
1
vote
0answers
27 views

Can four UARTs plus either an SPI or i2c connection be used at the same time on a Pi 4?

Since using 5 UARTs at the same time on a Pi 4 is apparently not possible, is there any reason why 4 UARTs plus either an i2c or SPI connection at the same time (one or the other) would not work?
0
votes
1answer
97 views

How does the Kedei 3.5" 800*480 SPI touch screen version 1.1 work with a Pi 4?

I am trying to set up a Kedei Raspberry Pi Display version 1.1 2017/10/10 Type 3590 (horizontal 800*480px) with my Pi 4. Unfortunately, I didn't manage to get the Touch Screen running on SPI. The HDMI ...
1
vote
2answers
71 views

How can RpiZW interface three SPI ADS1248 ADC, one microSD adapter, and one Ethernet Adapter?

I'd like to connect multiple different SPI devices to a Raspberry Pi Zero W (at least 5), with a few specific requirements. The devices would be, if possible: 1x ENC28J60 Ethernet SPI adapter - this ...
1
vote
0answers
61 views

Most compatible 32-64 channel multiplexer for raspberry pi [closed]

I have been working on one sensor testing project. In this project, I have to detect or sense more than 60 sensors at a time with raspberry. I am looking for the most compatible 32 channel multiplexer ...
0
votes
0answers
20 views

how do I eject a SD card hooked up on the SPI port?

I have a SD card reader hooked up to SPI0 on a RPi3. I followed this post: https://ralimtek.com/raspberry%20pi/electronics/software/raspberry_pi_secondary_sd_card/ My devicetree file is pretty ...
0
votes
0answers
10 views

I have Problem where the Ip Cam video is Lagging when RPi 3.5" inch (SPI) LCD is usedwith RPi 4

I have interfaced and IP camera with resolution 1280720 to Raspberry Pi 4 4GB and 3.5 " TFT LCD chinese version with xpt2046 controller (touch ..which is disabled)(resol 480320). I have ...
2
votes
1answer
82 views

Interfacing Micron Serial NOR Flash Memory

I want to communicate with Digilent Pmod SF3 which contains Micron N25Q256A NOR Flash memory. I did all the wiring setup between Raspberry Pi and Pmod board as shown below: Pmod RPi ==== === ...
0
votes
1answer
113 views

Raspberry Pi 4 - BCM2835 Library - SPI1 - data mode 1

I use the BCM2835 library to communicate in SPI with an ADC. The SPI0 interface is already used by a touch screen (https://www.pi-shop.ch/pitft-plus-480x320-3-5-tft-touchscreen-fuer-raspberry-pi-model-...
0
votes
0answers
33 views

Activate SPI & I2C, deactivate serial console programmatically

To enable I2C and SPI interfaces and deactivate the serial console, you can use the raspi-config tool which works as expected. As far as I am informed, for SPI and I2C activation, the tool is just ...
0
votes
1answer
41 views

Clock problem when programming ATMega328P over ICSP pins

I'm following this example from Adafruit that shows how to program an AVR such as ATMega328P from a Raspberry Pi, using the AVR's ICSP pins. I run all the steps and it is working fine except a single ...
1
vote
0answers
21 views

What clock does the SPI SCLK use?

I would like to set the PWM and GPCLK pins to use the same clock source as the SPI bus uses, As mentioned by an answer to a previous question The PWM and GPCLK can be set to the following sources: 0 ...
1
vote
1answer
70 views

What's the difference between SPI CE0 and CE1 and any other GPIO?

What's the purpose of specifying SPI CE0 and CE1 when you can just toggle regular GPIO?
1
vote
0answers
96 views

Rpi ILI9341 2.8" 240 x 320 5110 SPI TFT LCD Screen Setup Problem

I ordered a cheap 2.8 inch ILI9341 screen from Amazon (https://www.amazon.co.uk/240x320-Screen-Serial-Module-ILI9341/dp/B07MXH92RL/ref=sr_1_12?dchild=1&keywords=spi+screen&qid=1589230039&...
0
votes
1answer
29 views

How to create a synchronous pwm to the SPI(0 or 1) clock pin

Hello I would like to know if there is anyway to create a synchronous clock signal to the SPI clock pin using another GPIO. I have this IC that needs another signal that is synchronous to the SLCK ...
0
votes
0answers
28 views

raspbian on 1.3 spi serial oled display

I'm currently running raspbian on a raspberry pi2 b connected to a TFT display. It seemed fun to me to make some DIY smartglasses, but for that I need a smaller screen. So I want to display raspbian ...
4
votes
3answers
344 views

What hardware peripherals might be capable of reading 6.144, or better yet, 9.216 megabits/second?

I'm hoping to interface a Raspberry Pi 4 with an 8 channel, 48 kHz ADC. Ideally a 24 bit ADC, which if my math is right means 9.216 megabits per second. But a 16 bit ADC would be acceptable: that ...
2
votes
0answers
42 views

USB via MAX3421

I am trying to get an additional USB port working by using the MAX3421 chip over SPI on a Raspberry Pi Zero W running raspbian. I have successfully installed the driver as a kernel module. The chip ...
1
vote
2answers
215 views

Getting a NRF24L01 module running with Java

I'm currently trying to make a NRF24L01 module work by using Java. I found this library that makes use of the JNI, but I can't get it to work. When I try to run the provided example code the ...
0
votes
0answers
194 views

lib_nrf24 throws OSError (Errno 9) Bad file descriptor on radio.available(0)

I am using BLavery's lib_nrf24 library with an nRF24L01 module on my pi running Octopi (it's pretty much rasbpian for the purposes here, AFAIK - here is the result of the os-release command). ...
0
votes
0answers
724 views

Ubuntu GPIO mapping and port configuration

I turned from Raspbian to Ubuntu 19 32bit on my RPI4 because I need this distribution. I downloaded it using the RPI Imager. I had a working pinout on Raspbian, mapped on config.txt for the I2C and ...
0
votes
1answer
57 views

Program won't continuously read a value from a function

I'm in the midst of a school project and having trouble with reading ADC values from an MCP3004. I have it done in two different ways but one of them won't work. Using wiringPi.h and mcp3004.h, all ...
0
votes
1answer
288 views

Raspberry Pi 4 Spidev Problems with NRF24L01 (AttributeError: module 'spidev' has no attribute 'spiDev')

I am new to the Raspberry Pi platform and I have been trying to get my Pi to communicate with an NRF24L01 module. I have been at this for a few days and just cannot get it to work. Here is my info and ...
1
vote
1answer
30 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
53 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
94 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
36 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 ...

1
2 3 4 5
8