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
3
votes
0answers
484 views

Raspbian Jessie+ breaks SPI (RFID Reader MFCR 522)?

Long version: I have a very odd problem: I connected a Mifare MFRC 522 RFID Reader to my raspberry Pi (it handles communication via SPI). For that I used one of the many Tutorial already on the ...
1
vote
1answer
36 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
1answer
67 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 ...
0
votes
0answers
43 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
51 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 ...
1
vote
1answer
270 views

Single channel SPI DMA

The documentation on the SPI peripheral says: Two DMA channels are required, one to read from and one to write to the SPI. Is this necessarily true? I have a device where I need to write a few ...
0
votes
0answers
26 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
43 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
36 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
1answer
71 views

Why Raspberry Pi Zero W is missing to log data constantly every second?

I'm doing a project where I want to record IMU (Inertial Measurement Unit) readings. I want to use pretty high sampling frequency and I'm using Raspberry Pi Zero W to send PWM signal of 800Hz to ...
1
vote
0answers
151 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-...
1
vote
0answers
20 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 ...
4
votes
1answer
621 views

SPI access via C# .NET Core console app

I do not have much experience with C# or Linux/Raspbian so would like some advice/guidance please. Basically I need to write a C# .NET Core console app which will run on a Raspberry Pi Compute 3 ...
0
votes
1answer
687 views

Unable to open device /dev/spi

I'm trying to communicate with a 128x64 screen on SPI (GFX-hat pimori). It seems that the device /dev/spi* does not exist, I looked at how to do it on the net, but the device refuses to be created. ...
0
votes
0answers
37 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
188 views

Using GPIOs as Chip Selects on Raspberry pi 3 while using Windows IoT core

I need to control 5 SPI devices using Raspberry Pi 3 and Windows 10 IoT core. But, as we know, there are only 2 SPI Chip Selects available. Is there any way that I can use the GPIO of the Raspberry Pi ...
1
vote
0answers
49 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 ...
0
votes
1answer
187 views

Multiple Raspberry Pi zeros (no wifi) + touchscreen. Daisy-chained communication?

I'm trying to devise a solution that will connect multiple Raspberry Pi zeros together for communication between them. I'm using a touchscreen on each of them, so GPIO pins 1-24 are taken. Also, I'm ...
1
vote
2answers
109 views

Raspberry Pi and Arduino Due Spi

Is there any way to establish SPI communnication between Raspberry Pi 3B + and Arduino Due. Both only support master mode. I tried to google but mostly answers from 2013 come up. Has there any recent ...
0
votes
1answer
519 views

How to speed up SPI chip select transition using “spidev”?

I successfully drive a DAC via SPI using the spidev native SPI driver using a RaspberryPi3. The core portion of my code is as follows: fd = open("/dev/spidev0.0", O_RDWR); txarr[0]=0xAA; txarr[1]=...
1
vote
3answers
2k views

Raspberry Pi won't recognize nRF24L01+

I'm a Raspberry Pi n00b and a python beginner, but I have a lot of experience with DIY electronics, arduino and c#. I've tried everything I can think of, and I just can't get the Pi to recognise the ...
3
votes
1answer
366 views

Conflicting dtoverlays and framebuffer

I have a RPi3 with latest standard kernel. I am making use of spi1. In config.txt I have the line: dtoverlay=spi1-3cs. I have 2 ADC's connected to spi1 and all seems fine, using an HDMI screen to ...
1
vote
1answer
641 views

filenotfounderror with SPI function

I am currently working on a personal project and im having some problems troubleshooting this particular error. python3 ecg.py Traceback (most recent call last): File "ecg.py", line 30, in <...
0
votes
2answers
682 views

SPI Burst Read of 2048 32bit registers

i have build a Smartmeter based on an SPI ADC from Analog Devices. The measured values are beeing transfered to an Raspberry Pi with lib bcm2835 for visualization. The lib works with single bytes in ...
1
vote
2answers
353 views

could I Transfer the Video Data to Spi

The scenario uses two rasp's. One shoots video and the other plays video. Communication Between Devices is SPI with 500kHz Clock. Is it possible? I don`t know how to get Video streaming from camera ...
1
vote
2answers
417 views

Can't blink a LED using SPI interface on Raspberry Pi v3

As a part of my PoC project, I'm using single 5050 LED made by Adafruit. I wired it like this (LED - RPi): DI (Data Input) - SPI0 MOSI CI (Clock Input) - SPI0 SCLK GND (Ground) - GND VCC (5V) - 5V ...
2
votes
1answer
285 views

Can't find out why my program won't read analog values (Using MCP3004) [closed]

I am using wiringPi and C. I have a flame sensor and a MCP3004 ADC. Here is the program that I wrote, but I can't figure out why it won't read the analog values from the flame sensor. #include <...
2
votes
2answers
37 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
1answer
632 views

Why does a communication over SPI returns garbage?

I am trying to read from a gps module NEO-6M using Raspbery Pi 3 B over SPI. It nicely works with Arduino but it doesn't want to work with Raspberry. I have used different libraries in Pyhon, even ...
2
votes
1answer
563 views

SPI only returning zeros with Raspbian (It works with IoT core)

I am using this ADC connected to the channel 0 of my Pi3 board for reading values from a sensor. In IoT core, I was using a very simple code for testing the my device, and it worked fine. The C# code ...
0
votes
1answer
579 views

USB/Bridge using MAX3421

Please, could someone help me, I am trying to use the module (max3421-hcb) with the raspberry pi 3, but I really don't know how to load this module, with the parameters, like wich GPIO will act as INT ...
0
votes
0answers
95 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
1answer
2k views

Raspberry Pi 2 and SH1106 OLED

I am trying to get a cheap SH1106 1.3" OLED from eBay working with my Raspberry Pi 2. Frm the eBay description, it says that it supports "I2C/IIC Interface, need only 2 IO". I am however not able to ...
2
votes
1answer
2k views

controlling rgb led strip via spi and node js

I recently purchased a pi and a string of individually addressable rgb led lights from shenhzen kapata (actually amazon, but they're the ones who sell it) and I'm trying to control it with my ...
0
votes
2answers
4k views

How to achieve a high sampling speed using an ADC with Raspberry Pi?

So, I am using the LTC 2366, 3 MSPS ADC and using the code given below, was able to achieve a sampling rate of about 380 KSPS. #include <stdio.h> #include <time.h> #include <bcm2835.h&...
1
vote
3answers
2k views

Possible SPI issues around NRF24 operations post RPi system update?

I have a number of RPis that communicate with Arduinos via BLavery's lib_nrf24.py (which appears to be derived from Barraca's pynrf24). Recently several of the RPis automatically updated via apt-get ...
1
vote
0answers
25 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
2answers
377 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
1answer
534 views

Pi4J | SPI | Gpio-Pin as Chip Select

I am using Pi4J to write programs on my Raspberry Pi. The Raspi is supposed to communicate with an Arduino Uno via SPI. It works pretty good, but there are only two SpiChannels so there are also only ...
1
vote
2answers
62 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 ...
2
votes
3answers
1k views

How can Rpi read ADS1256 ADC Data

I am using the AD/DA Hat from WaveShare https://www.waveshare.com/wiki/High-Precision_AD/DA_Board I want to realize a continuous readout of the data. It worked very well so far, but I am not so ...
0
votes
4answers
704 views

Lighting 5050 led and learning to use SPI

I'm just getting started trying to figure out how the whole SPI thing works. I'm using an APA102 led as I figured turning on and off LEDs and setting colours would be a good start. I bought the ...
4
votes
1answer
1k views

Pi Zero SPI too slow (spi_bcm2835)

I am running a display using SPI. When running it on my Pi Model B, everything runs fine and fast. But when connecting it to my Zero instead, it runs very slow. Then I put the SD card of my Zero in ...
1
vote
0answers
37 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 ...
1
vote
1answer
907 views

py-spidev and ADNS3080

I have been trying a lot to deal with the flow-motion sensor but I couldn't arrive to a clear result. It might be I can't understand the procedure.. I'm using cs1 on raspberry Defining the spi by ...
0
votes
1answer
3k views

Error installing iptables-persistent

I tried to install iptables-persistent without success. I checked the dependent packages and tried to install them manually but it is also not working. What I tried: sudo apt-get install iptables-...
1
vote
2answers
1k 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 ...
0
votes
0answers
18 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 ...

1
2 3 4 5
8