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
0answers
23 views

SPI on Raspberry Pi 3B+ Ubuntu 18.04 [closed]

I am running Ubuntu 18.04 on a Raspberry Pi 3B+. I have enabled SPI on the RPI using something similar to this: https://roboticsbackend.com/raspberry-pi-hardware-permissions/#SPI (the instructions are ...
0
votes
0answers
11 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 ...
4
votes
1answer
479 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 ...
0
votes
0answers
7 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
21 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 ==== === ...
1
vote
1answer
258 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 ...
1
vote
1answer
62 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 ...
0
votes
1answer
40 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-...
3
votes
1answer
990 views

Write to spi EEPROM in Raspberry Pi 4

The Pi4 has 512Kb of EEPROM which hold the bootloader. Does anyone know if it is possible to write to spi memory to be used in programs in the user space without corrupting the bootloader? Is there ...
3
votes
1answer
533 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
528 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. ...
1
vote
1answer
179 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
0answers
18 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
27 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
16 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
1answer
157 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 ...
0
votes
1answer
180 views

About multiple SPI on Raspberry Pi3

I'm tying to use MCP3008 to read the ADC signal from sensors. But I need to transfer the data through the LoRa module. Which is also the SPI interdace. The example of ping pong has been done. But ...
2
votes
3answers
8k views

How to enable SPI1 and SPI0 at the same time?

I have installed a LCD screen that use my SPI0 bus and I2C but i want to connect my RFID reader to the same raspberry. My lcd screen can you see here: https://www.adafruit.com/product/1601 SPI1 will ...
1
vote
2answers
91 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
456 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 ...
4
votes
1answer
333 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 ...
2
votes
1answer
207 views

SPI vs HDMI power consumption

I'm using a Pi Zero in a portable project and wondered if there were any power savings to be made by using an SPI display over a HDMI one or vice versa.
2
votes
3answers
680 views

Multiple Rpi Serial Ports Problem

So I am undergoing a project where I will need to add 20 UART (RX/TX) to a single raspberry Pi 3. Each device runs at 9600 After looking at the pi, I found it only has 1 UART on it. What would be ...
0
votes
0answers
20 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
577 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 <...
-1
votes
2answers
444 views

Interface AD7193 with Raspberry Pi

I have been trying to interface an ADC with raspberry Pi namely AD7193 via SPI . For that I have enabled my SPI and installed spidev on my pi. but i dont know what to do next in order to get the ...
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
2answers
619 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
1answer
32 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
2answers
4k views

I want to use spi0 and spi1 at the same time

I want to use LCD and mcp3208 simultaneously. spi0(gpio8,9,10,11) is port for LCD and spi1(gpio16,19,20,21) is port for mcp3208. spi0 channel is always on and spi1 is opened when I want to collect ...
1
vote
2answers
330 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
380 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 ...
3
votes
1answer
260 views

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

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
1answer
4k views

SPI transfer fails with buffer size greater than 4096

I'm trying to 8192 bytes over SPI in a single transfer, but for some reason anything over 4096 bytes fails to send. How can I enable larger data transfers? int ret; uint8_t txn[] = { 0x00, ... }; ...
0
votes
1answer
570 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
514 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
22 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 ...
1
vote
1answer
418 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
1answer
539 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 ...
1
vote
1answer
2k views

How to connect ST7789 LCD to Raspberry Pi

I'm trying to connect to this LCD ( sry 4 japanese page:( use translate plz ) This monitor driver is ST7789, 7pins.[GND VCC SCL SDA RES DC BLK] And now I'm connecting to pi like this https://imgur....
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
280 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 ...
1
vote
2answers
97 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 ...
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
1k 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
3k 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&...
2
votes
0answers
25 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 ...
0
votes
1answer
268 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
516 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
2 3 4 5
8