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
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 ...
1
vote
2answers
360 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 ...
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
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
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
1answer
669 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 ...
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 ...
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'...
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, ...
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
682 views

How could I write a C function using the wiringPi SPI library to read the X and Y measurements from this 2-axis inclinometer?

How would one use the wiringPi SPI library (http://wiringpi.com/reference/spi-library/) to get the x and y readings from this SCA100T inclinometer? I understand that the function wiringPiSPIDataRW() ...
0
votes
1answer
620 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 ...
3
votes
1answer
610 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
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 ...
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
1answer
1k 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 ...
0
votes
1answer
560 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 ...
0
votes
1answer
98 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
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 ...
3
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
1answer
913 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 ...
-1
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-...
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
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 ...
1
vote
1answer
287 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
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
63 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
1answer
75 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
198 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
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 ...
4
votes
1answer
672 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
788 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
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
194 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 ...
0
votes
1answer
191 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
123 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
554 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
376 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
672 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
708 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
2 3 4 5
8