Skip to main content

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.

0 votes
0 answers
11 views

Raspberry Pi 3B shows a screen with an underscore in the corner

I am using a raspberry pi 3B v1.2 with a 3.5 inch kuman display as shown here. I have installed the lcd-show drivers by doing this: sudo rm -rf LCD-show git clone https://github.com/goodtft/LCD-show....
Minion123's user avatar
0 votes
1 answer
29 views

rpi SPI works if I run python via ssh but not working if I start the py file in /etc/rc.local

So, to explain further. I have a raspberry pi Model 3B which I run headless. I have a python3 script with which I communicate via SPI with a 3rd party board. According to the manufacturer I need to ...
papatrexas's user avatar
0 votes
0 answers
48 views

Cannot determine pins to use when connecting 3 SPI devices to Pi 5

I am trying to connect 3 SPI devices to my pi 5, they are all RFID-RC522 modules and so they all have the same device id, so I put them on separate busses. I researched and selected these three ...
spl's user avatar
  • 101
0 votes
1 answer
27 views

#include files for https://www.kernel.org/doc/html/v4.14/driver-api/spi.html Pi5 C/C++ development

Referring to https://www.kernel.org/doc/html/v4.14/driver-api/spi.html Writing code to use the SPI API's on a Pi5(RP1). The spec shows the basic Structs for each SPI API. Those structs contain ...
Tom's user avatar
  • 11
0 votes
0 answers
15 views

RPI 4 with LS7366R encoder counter chip with incremental photoelectric rotary encoder

I have raspberry Pi 4 and it is connected to LS7366R, but I am not using the CS0 or cs1, am using any GPIO and controlling it (high/low) manually. the encoder has A and B signals, and they are ...
Alkhatib's user avatar
1 vote
1 answer
58 views

Get display working on SPI1

I'm trying to get a waveshare 4.2inch E-Ink Display Module Compatible with Raspberry Pi 4B/3B+/3B/2B/B+/A+/Zero/Zero W/WH/Zero 2W Series Boards 400x300 Resolution SPI Interface working on a Raspberry ...
zimdanen's user avatar
  • 113
0 votes
1 answer
32 views

Change which pin is used for SPI SCLK

I'm trying to get a waveshare 4.2inch E-Ink Display Module Compatible with Raspberry Pi 4B/3B+/3B/2B/B+/A+/Zero/Zero W/WH/Zero 2W Series Boards 400x300 Resolution SPI Interface working on a Raspberry ...
zimdanen's user avatar
  • 113
0 votes
0 answers
33 views

How soon can I use SPI to communicate with a peripheral after boot?

So, I'm building a device involving a raspberry pi (Pi4) and an e-ink display, with SPI communication. I'm wondering what the soonest would be, I could communicate with the display. Main idea here is, ...
Phil H's user avatar
  • 1
0 votes
0 answers
19 views

SPI with Bookworm OS - Change SPI Clock Speed [duplicate]

Is it possible to adjust the Clock speed of the SPI device from the terminal/CLI?
Andys's user avatar
  • 11
1 vote
2 answers
150 views

Using SPI and GPIO in Pi OS Bookworm on Pi 3b v1.2

How can I control GPIO from the CLI when I have SPI enabled? I need to add a reset signal to an application that issues the reset via a shell script, prior to launching the application. The ...
Andys's user avatar
  • 11
0 votes
0 answers
23 views

Delay between writes of two spi.xfer for sending data to DAC

I am using Raspberry pi 3 for sending data through a DAC through SPI communication. Right now I am using AD5686 which is connected to the raspberry pi using SPI communication SPI0 (SCLK to CLK of DAC, ...
Guadrian BM's user avatar
-1 votes
1 answer
55 views

Digital potentiometer X9C104P with a Raspberry Pi 5

I've tried using a Raspberry Pi 5 to control a digital potentiometer X9C104P. I followed this wiring diagram: Potentiometer (POT) - Raspberry Pi INC: GPIO20 UD: GPIO21 Vh: 5V Vss: GND Vcc: 5V CS: ...
samia bouchfar's user avatar
0 votes
0 answers
44 views

Reading from MT6816 magnetic encoder with SPI connection using Python on Raspberry Pi 4

I am totally new to the field, don't really know what I'm doing and in need of help. I'm trying to read an absolute angle using an MT6816 14-bit magnetic encoder via SPI connection using Python on ...
Kannidhis's user avatar
0 votes
0 answers
26 views

Problem when testing module DAC MCP4922 with Raspberry Pi

I'm encountering an issue while testing a custom-designed DAC module that utilizes an MCP4922 chip as its primary processor. The vendor provided C language test code for ESP32-S3, but I intend to test ...
Hien_lee's user avatar
0 votes
0 answers
29 views

Implementing Precise Timing between values with Raspberry Pi and 16-bit DAC using py-spidev

I want to send values from an RPi to a DAC in order to generate an analog signal. The DAC is 16 bits, and I'm using the py-spidev library. Let's say I have a pre-prepared list of 1000 16-bit values ...
Thomas1234's user avatar

15 30 50 per page
1
2 3 4 5
34