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
2
votes
2answers
33 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
40 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
23 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
0answers
35 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
55 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
29 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
13 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
9 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
vote
1answer
35 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
53 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
20 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
29 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
17 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 ...
0
votes
0answers
21 views

I2C (and SPI) - Byte-by-byte

I would like to read multiple bytes from an I2C device but only one byte at a time. For example, to read 10 bytes from an I2C real time clock I would issue a single read command (send device code ...
1
vote
1answer
38 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
87 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
23 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
22 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 ...
3
votes
3answers
302 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
34 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
108 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
124 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
381 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
49 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
169 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
19 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
27 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
48 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
31 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 ...
0
votes
0answers
65 views

How should I be connecting CE/CS pins of a SPI device to GPIO pins in userspace?

I am trying to avoid using the built-in CS/CE 0 and 1 pins that the system defaults to when using SPI communication so that I can expand out to as many as 10 devices in the future. The devices in ...
1
vote
0answers
123 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-...
0
votes
0answers
85 views

Can we implement a protocol other than spi on Raspberry Pi?

Pi supports SPI, I2C and UART by default. Can we implement any other protocol like MDIO into it? If yes, how do we do it?
0
votes
1answer
2k views

Does Raspberry Pi 4 Support Android Things?

I am trying to communicate with an MFRC522 device using my RPi 4B and the SPI interface. My application is written in Java and communicates under NetBeans with the RPi as a remote platform. The ...
2
votes
2answers
55 views

SPI Not working when chip select is connected to ground, works fine when connected to CE 0,1 or 2

I am working on MFRC522 sensors. However I need more than 3 SPI Devices. The 3 works fine except when I want to connect chip select to GPIO, It does not work. I tried a single spi device by connecting ...
0
votes
0answers
119 views

How can Rpi python read SPI ADNS3080 Optical Mouse Sensor's register values?

I am using ADNS3080 optical flow in raspberry pi 3. I set SPI connection between raspberry and ADNS3080 optical flow. I used spidev library for reading values in python. I want to read delta_x and ...
2
votes
0answers
63 views

Loopback SPI interface not working

I'm trying to do the loopback test for the SPI interface on my raspberrypi model 2 B V1.1, by following the intruction on this website : https://www.raspberrypi.org/documentation/hardware/raspberrypi/...
2
votes
1answer
33 views

Control SPI Wirelessly

I would like to control a WaveShare e-Ink display wirelessly. I have lots of experience working with this type of device over SPI using the GPIO boards and the WaveShare python libraries. I'd like to ...
1
vote
0answers
19 views

How do I hold SPI high value?

I'm using wiringPi spi library to communicate two raspberries. As the spi clks aren't synchronised, I don't read the high values, since they are only a pulse. Is there a way to hold the high value ...
1
vote
1answer
636 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 ...
2
votes
1answer
228 views

Continuous data acquisition from ADC at around 10 MSPS

I would like to continuously stream data from an ADC with 12 to 16 bit to a Raspberry 4 at around 10 MSPS. Since the Raspberry is not realtime, I'm assuming I need some sort of FIFO buffer as ...
2
votes
1answer
25 views

Raspbian - Custom SPI Bus similar to custom I2c Bus

I am currently using this line to put in a custom I2C Bus in my boot/config file: dtoverlay=i2c-gpio,bus=4,i2c_gpio_delay_us=1,i2c_gpio_sda=6,i2c_gpio_scl=0 However, I want to be able to set up a ...
2
votes
1answer
83 views

How should I connect ten “MFRC522-based RFID” readers using SPI to the Pi Zero W?

Using the MFRC522.py library and SimpleMFRC522 extension, I have been able to pass tag ID information as well as the text block; but only for one tag at a time. Diving deeper into the MFRC522 ...
3
votes
2answers
397 views

Rpi reading only zero output results from SPI 10-bit ADC MCP3008 problem

I am attempting to make a temperature monitor based on these links: 1. https://bitbucket.org/pschow/rpiadctherm/src/dbfe8101eeb4/basiclogmcp.py?at=master 2. https://www.paulschow.com/2013/08/...
1
vote
2answers
897 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 ...
1
vote
0answers
55 views

raspberry pi 3 spi issue

I connected MOSI to MISO on Raspberry PI 3 Executed the below code: import time import sys import spidev spi = spidev.SpiDev() spi.open(0,0) print(spi.bits_per_word) print(spi.mode) print(spi....
0
votes
0answers
69 views

Can't read data from PN532 NFC reader over SPI

I'm using Pi4J library to read data from a NFC reader based on PN532, connected to my Pi via SPI. However, I don't seem to receive any data from if when I put a NFC card to my reader. I'm using SPI0 ...
1
vote
1answer
478 views

How to detect if an SPI device is connected

Hello I am i have connected an MCP23S17 spi GPIO expansion, upon testing it with the sample code from here, It does not seem to work. There could be many reasons why this is happening. I would like to ...
1
vote
1answer
467 views

Read/Write to SPI NAND using RPI

I have an SPI NAND flash that I want to read/write the data to it using Raspberry Pi but since flashrom doesn't support SPI NAND and I couldn't find any tools that can do SPI NAND reading raw from the ...
0
votes
0answers
36 views

Raspberry PI SPI clock change

Need to change a clock speed for RPI SPI Is it possible to add a clock config to this string: dtoverlay=jedec-spi-nor,flash-spi0-0?
0
votes
1answer
76 views

Can't set modes 1 and 3 in Auxillary SPI(1)

The auxiliary SPI will not accept modes 1, or 3. I’ve enabled spi1-1cs, and /dev/spidev1.0 is created. I can send and receive data but only SPI_MODE_2 and SPI_MODE_0. Setting to mode 3 produces a file ...

1
2 3 4 5
8