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.
Questions tagged [spi]
496 questions
15
votes
3 answers
Add more than 2 SPI slaves
As what I see on the scheme, there are 2 channels for slaves - CS0 and CS1. Does it mean that I can only connect 2 chips, like MCP3008 or something? Or can I attach more slaves to these 2 attached slaves.
Does Raspberry scheme have support or…
Sergei Basharov
- 283
- 1
- 3
- 6
10
votes
1 answer
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 4B)
The Pi 4 however shares the pinout of its…
Ghanima
- 15,958
- 17
- 65
- 125
9
votes
1 answer
Cannot Use SPI frequency above 500 kHz
I am running Arch Linux ARM on a Raspberry Pi 2 Model B, and I am attempting to communicate with a TFT display. I am writing a kernel module to interface with the display using SPI, and it works, but I cannot get the SPI frequency to go above 500…
j_lentini
- 149
- 6
8
votes
2 answers
What is the purpose of SCLK pin of SPI protocol?
I read about SPI(Serial Peripheral Interface) protocol and try to understand their pin functionalities. Where i read about SCLK pin, which is provide serial clock to synchronize the master and slave communication.
So, I have a query regarding to…
rsp
- 622
- 1
- 6
- 16
7
votes
3 answers
SPI: Raspberry PI master and Arduino slave
I'm trying to have a Raspberry PI act as a SPI master and send data to an Arduino Nano (one of the cheap clones). I partly succeeded, but I don't get a continuous communication, and some bytes get lost.
I only use simple wires on a breadboard to…
Stefano Masini
- 171
- 1
- 1
- 3
7
votes
2 answers
Can Raspberry PI function as SPI slave?
I am new to Raspberry PI. Could I make Raspberry PI as SPI slave? It does not look like it is possible. Please help.
Main
- 371
- 2
- 6
- 14
7
votes
1 answer
Can header pin 11 be used as GPIO17 in Windows 10 IoT?
I have an Energenie RF transmitter add-on board which fits onto the Raspberry Pi header (for more details, see https://energenie4u.co.uk/res/pdfs/ENER314%20UM.pdf). This board allows the Raspberry Pi to control up to 4 Energenie radio controlled…
Swampie
- 81
- 1
- 4
7
votes
2 answers
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 device trees and I can interact with the sysfs bus,…
ragingSloth
- 171
- 1
- 4
6
votes
2 answers
How to check if SPI is enabled and functional on Raspi 3b+?
I have run raspi-config and enabled SPI and also verified that /boot/config.txt contains the line:
dtparam=spi=on
However, when I run lsmod | grep spi I get the following:
spidev 16384 0
spi_bcm2835 16384 0
In /dev I…
glenneroo
- 165
- 1
- 1
- 9
6
votes
1 answer
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 module (running Raspbian) allowing text to be written…
fox333
- 61
- 2
6
votes
3 answers
How to use SPI on Raspberry Pi 3?
I have a Raspberry Pi 3, and I would like to use it to communicate with an SPI device.
The pins from the SPI device have been connected to the appropriate headers on the board. Windows 10 IoT interacts with my device OK, using Windows.Devices.Spi…
Soonts
- 198
- 1
- 1
- 10
6
votes
2 answers
What is MOSI in Pi?
What is the significance of these pins MOSI MISO and SS? I am looking at SparkFun DeadOn RTC Breakout - DS3234
tam
- 81
- 1
- 1
- 4
6
votes
1 answer
Pi to Pi Communication over GPIO / USB
I have a Pi Zero that I would like to use to communicate with a B+.
In theory I can connect an adaptor cable and a WiFi or Ethernet USB dongle to the Zero, and do the same on the B+.
However, as an alternative, it is theoretically be possible to…
xirt
- 173
- 1
- 6
6
votes
1 answer
Does overclocking affect the SPI (APB) clock?
The current config.txt allows one to change arm_freq, gpu_freq, core_freq, h264_freq, isp_freq, and v3d_freq. In addition, there is support for the kernel to change clocks on demand and based on thermal limits.
On the other hand, the hardware…
Nakedible
- 1,561
- 1
- 13
- 18
6
votes
1 answer
Raspberry Pi as slave
I am using a Pi compute module and wish to make two of them to communicate to each other.
I have hooked up some slave I2C devices to it (RTC, Temperature sensor). So I don't think making Pi as slave using on-board I2C is an option
And I read…
Dennis
- 383
- 1
- 5
- 14