Questions tagged [spi]

Serial Peripheral Interface. Allows full-duplex serial communication from a master device to one or more slave devices arranged on a bus. Sometimes referred to as a 4-wire bus.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
20 views

MicroSD card module not working [closed]

I have a DFRobot DFR0229 MicroSD card module for Arduino. The SD initialization always fails unless I use my hand to push in the MicroSD card fully into the slot. There is obviously a locking ...
user avatar
  • 1
1 vote
0 answers
48 views

SPI protocol with multiple devices

I need to write and read the measurements received by a sensor on an SD card. The card reading would be to display the data on a TFT screen. Specifically, I am using the 1.8-inch ST7735 screen. To use ...
user avatar
0 votes
0 answers
36 views

Teensy3.2; 4.0 wireless audio nRF24L01 - delay increases over time

At first there is almost no delay(between them), over a few minutes there is a delay of around 1 sec.Accidentally the SCK of the nRF24L01(transmitter) got disconnected, reconnected it back and the ...
user avatar
  • 1
4 votes
1 answer
208 views

How to make an Arduino act reliably as an SPI slave?

I want two Arduino Nanos to communicate with each other using SPI, ideally at around 2MHz or faster. I have two standard Nanos running at 16MHz on 5V. The master uses SPI.transfer() to send an array ...
user avatar
1 vote
1 answer
46 views

Why is there a cutoff on these accelerometer measurement values? - ADXL375

I'm using a Teensy 3.2 to read data from an ADXL375 using SPI. In general the communication is going just fine and I can activate settings etc. However, when I try to read X, Y or Z data it seems like ...
user avatar
  • 63
1 vote
1 answer
50 views

How can I SPI "Latch" (LE/CS/SS) for a specific number of SCLK cycles?

Context I am working on a project which includes 13 cascaded STMicroelectronics LED1642GWs. These LED drivers are essentially 16bit shift registers, whereby the buffered serial data can be loaded to a ...
user avatar
1 vote
0 answers
18 views

How do I use BLE module and RFM69 module together?

I am trying to use an Adafruit BLE module and an RFM69 module on the same Arduino. The higher-level functions in each included library (Adafruit_BLE.h, RFM69.h) both use the SPI.h library to talk to ...
user avatar
2 votes
1 answer
59 views

Communicate with Sparkfun CAN Bus Shied

i have a Arduino Mega 2560 R3 and a Sparkfun CAN Bus Shied. Im using the SparkFun_CAN-Bus_Arduino_Library-master. I want to communicate over SPI (they have diffrent SPI pins), so i had to change it in ...
user avatar
  • 21
0 votes
1 answer
56 views

How I can populate a buffer from data read from SPI?

I have wired a Macronix MX35LF1GE4AB Flash memory into an arduino Uno using Logic Level Shifters. What I try to do with it is to dump its contents. In order to do so, I am implementing the following ...
user avatar
1 vote
1 answer
91 views

Is there any standard for colors of Serial Peripheral Interface wires?

Having DuPont cables like on the picture... ... and the RFID RC522 reader with colored wires as found in one of the tutorials. I know that copper is the same inside of the wires. Anyway, is there ...
user avatar
  • 137
2 votes
0 answers
71 views

Why can't an Arduino/ATmega328 act as an SPI slave at anywhere approaching the maximum speed claimed in the datasheet?

The ATmega328 datasheet claims a maximum SPI slave speed of Fosc/4. For a chip clocked at 20MHz, that would be 5Mbps. However, my tests show that even with no processing whatsoever in the interrupt (...
user avatar
2 votes
0 answers
158 views

ESP32-C3 SPI Class documentation/features?

ESP32-C3 has a nice feature called GPIO Matrix which allows to map most of it's peripherals to any GPIO pin. And it has feature called IO_MUX which allows direct & faster operations for some of ...
user avatar
  • 121
4 votes
1 answer
59 views

Arduino Array Scope with SPI

when I try the following code the SPI works correctly (see oscilloscope plot) #include <SPI.h> void setup() { SPI.begin(); } void loop() { SPI.beginTransaction(SPISettings(100000, MSBFIRST,...
user avatar
1 vote
2 answers
51 views

Why is my SPI clock voltage lower at higher frequencies?

I measured that the SPI-Clock of my Arduino Nano in my project didn't reach near 5V. So I quickly tested with a new one, nothing attached except a (mydaq) scope. I measured the SPI clock: 2.5 V @ 8 ...
user avatar
0 votes
1 answer
89 views

ESP32: spi_master: check_trans_valid(801) when using SPI

I use the following code to communicate with a display: void Display_HandleDC(spi_transaction_t* p_Transaction) { gpio_set_level((gpio_num_t)LCD_DC, (uint32_t)p_Transaction->user); } static ...
user avatar
  • 103
1 vote
0 answers
35 views

RFM69 Sending Failure

Hi I'm trying to get the RFM69 rf module to work on an arduino uno. Here is my code: #include <SPI.h> // Addresses for this node. CHANGE THESE FOR EACH NODE! #define NETWORKID 0 // Must be ...
user avatar
  • 21
1 vote
0 answers
53 views

Rfid Mfrc522 not working using long cable

I am doing a project using Arduino and a Rfid Mfrc522 module that consists of reading a card to unlock/lock a door. The Arduino is 3 meters far away from the Rfid Mfrc522 module and I used 7 cables to ...
user avatar
  • 11
1 vote
1 answer
68 views

Arduino uno spi sck not working

I am trying to verify sck output on my arduino uno. I don't have oscilloscope so I loopbacked miso to sck and tried Executing int rx0=SPI.transfer(5) while printing this using Serial.printrx0) it is ...
user avatar
1 vote
0 answers
51 views

Store files in AT45DB161D SPI chip to use them from arduino

I am new to this concept but I am wondering if it is possible to store some files on the AT45DB161D dataflash chip. these files must be read by Arduino. I know that I should use a file system and I ...
user avatar
  • 11
1 vote
1 answer
100 views

Correct usage of SPI with ISR

My Arduino needs to do: Run ISR as many times as possible/ as fast as possible. Occasionally receive data over I2C. Output data over SPI in ISR. My question is regarding SPI and ISR. The ...
user avatar
1 vote
0 answers
34 views

How to change the default SPI pin used in SPI and Ethernet library [duplicate]

Hello i have a custom board of the RP2040 and would like to use the ethernet library. But the ethernet example webClient uses the default SPI pins of whatever board it is being used, but what if im ...
user avatar
  • 193
2 votes
0 answers
55 views

SPI problem with Bitcraze PMW3901 sensors and Arduino NANO

I am currently trying to connect four Bitcraze PMW3901 sensors to an Arduino NANO, but I seem to have issues with the SPI. When I connect two sensors using the code below, it works perfectly: I am ...
user avatar
  • 21
1 vote
0 answers
39 views

ESP32 cam module SPI and NRF

I'm trying to use nrf2401 as transmitter on ESP32-cam module. I'm programming with Arduino IDE, but I'm not sure how to set the pins. I know that the board has 2 SPI interfaces. The first one is for ...
user avatar
2 votes
0 answers
64 views

Stand alone Atmega328p-au

I'm trying to make a standalone arduino board with an OLED display using an Atmega328p. I never tried to make such a board using SMD components. I've soldered everything together except the OLED ...
user avatar
1 vote
0 answers
80 views

ADC stops working at small delays (MCP3464)

I have tried debugging for a couple days with no luck, so this question is a cry for help. I am trying to configure an external ADC (MCP3464 datasheet). The ADC uses SPI communication and I am getting ...
user avatar
0 votes
1 answer
869 views

RaspberryPi Pico SPI and nrf24l01

I am programming a RaspberryPi Pico with the Arduino IDE. Works pretty well, but now I try to control an nrf24l01 module. My code compiles but I do not know on which pins the SPI bus has to be hocked ...
user avatar
  • 340
0 votes
1 answer
94 views

ESP32 WROOM32 SPI EMF issues

I'm trying to run Waveshare SSD1327 128x128 screen via SPI on ESP32 WROOM32 board. On ESP8266 (D1R1?) it works flawlessly while using HW SPI but when I run it on esp32, anything connected to mains ...
user avatar
1 vote
1 answer
59 views

Trying to use I2C accelerometer and SPI OLED

I'm trying to stream the data coming from my I2C MMA8452Q accelerometer to an Adafruit-based SSD1351 OLED RGB display that uses SPI via an Arduino UNO. When I run example code for the accelerometer I ...
user avatar
  • 11
1 vote
1 answer
45 views

How can the SAMD21 chip knows when the on-board NINA W102 restarts

I am building a project that requires the SAMD21 microcontroller to send a resetToFactory signal to the NINA W102 on Arduino Nano 33 IoT. My plan is that, once the W102 receives the signal will do NVS ...
user avatar
1 vote
0 answers
292 views

MAX31865 and PT100 readings problem

PT100 (3 wire) is connected to arduino uno as i believe i have them connected properly, i have checked other forums such as changing the capacitor to ferrite core, and probably changing up to 4 ...
user avatar
2 votes
1 answer
56 views

SPI.begin doesn't work after tristate

I am working on a ultra-low power project using an ATMEGA328P, a nRF24L01 and a 0.47F super-capacitor to measure various sensors akin to Gammon's solar power project. I have been having problems with ...
user avatar
  • 43
3 votes
1 answer
108 views

SPI synchronization with Arduino DUE and ADIS16364 IMU

I'm trying to use an Arduino Due to interface with an ADIS16364 IMU from Analog Devices (product info here) via SPI. There are two modes for retrieving the measurements from this particular IMU (six ...
user avatar
1 vote
0 answers
30 views

Reading a flash ROM chip (M45PE20) through SPI with an ATMEGA 2560 -- output only FF's

I'm trying to communicate through SPI to a Flash ROM chip (M45PE20) with an ATMEGA 2560. I'm looking to read the data off the chip, but the output I'm getting is nothing but FF's. I've checked my ...
user avatar
2 votes
0 answers
105 views

Using ICSP pins as SPI in Arduino Due

I am using two RFID sensors operating on SPI with arduino Due. They will not be operating at the same time. Is it favorable to use the ICSP pins as SPI pins for one of them, or use them in a one ...
user avatar
  • 121
2 votes
0 answers
35 views

Reading and writing to GD25B32CPIG flash memory

I recently removed a GD25B32CPIG flash memory chip from a commercial coin-operated arcade game. Apparently it has all the game's sounds stored directly on the chip. I decided to see if I can learn to ...
user avatar
2 votes
1 answer
87 views

Arduino does not boot when SPI lines are loaded

i connected an Arduino Nano to an external SPI Flash using THIS tutorial (russian) and the SPIMemory library. While accessing the Flash works well, i have encountered the following issue: The Problem: ...
user avatar
1 vote
1 answer
168 views

Sending multiple data with SPI interface monitored by an Osciloscope

I have multiple 32-bit data stored in an array, and I want to sequentially send them by SPI interface. I want to check that my code is correctly sending data by SPI interface, so I upload the code and ...
user avatar
  • 11
1 vote
1 answer
152 views

Converting ESP32 SPI code to Arduino for MAX6921 IV-18 driver board

I purchased a IV-18 VFD tube driver module, which came with some example code for an ESP32 board. The driver module has a 20 output MAX6921 serial chip to drive the vacuum tube. I want to use this ...
user avatar
1 vote
1 answer
60 views

Interfacing SPI (MCP3903)

I'm trying to interface MCP3903. I haven't really don't any SPI interfacing before and I can't seem to find clear enough answer for newbs. Please bare with me. I'm trying to use this library. http://...
user avatar
2 votes
0 answers
72 views

SPI Arduino slave not recieving data correctly

Using an STM32L476RG Nucleo microcontroller board as the SPI master and an Arduino mega as a slave with pin 52 for SCLK, pin 53 for SS and pin 51 for MOSI on the Arduino. There is no issue with the ...
user avatar
  • 21
1 vote
1 answer
50 views

Arduino recieve sensor data from other arduino SPI

I have Arduino Uno (sender) and Arduino Uno Wifi rev 2 (receiver). I want to send the ping value to the other one via serial - jumper wires. Arduino Uno is using the newping example, and I want the ...
user avatar
  • 121
1 vote
1 answer
40 views

WDT ISR not called when SPI ST7789 module initiated

Using the .init function for the ST7789 TFT screen prevents my WDT ISR from firing. What explains this behaviour, and is there something I can do? Any other timer ISR I could use instead? #include <...
user avatar
  • 11
2 votes
0 answers
74 views

nRF24L01 +pa +lna link does not communicate

I’m trying to create a link between two nRF24L01 units. Each nRF24L01+-based module (purchased) is connected to Arduino Nano on a custom-designed PCB. The printed wiring is per the hardware ...
user avatar
1 vote
0 answers
42 views

Raspberry Pi with multiple arduinos using spi

I want to use Raspberry Pi as an aggregator & distributor of messages originating from or destined for a flight simulation program. I'd like to use arduinos connected via spi as specific hardware ...
user avatar
1 vote
1 answer
113 views

SPI read while writing?

I'm working on a driver for an SPI device that returns some data (device status) while the command byte is still being written. Is there a way to read this status data using standard Arduino APIs or ...
user avatar
0 votes
1 answer
108 views

Is it possible to write data to a fat file system on SPI flash using an arduino?

I have an SPI flash based mp3 module and was wondering whether its possible to write to the flash chip using a microcontroller(arduino). the IC supports FAT16/FAT32 file systems. I have researched ...
user avatar
1 vote
0 answers
100 views

Arduino Master SPI MISO Receive Data

I'm trying to interface an Arduino Mega with an AD7714 ADC. This ADC requires a command to be sent to the communications register (in my case 0x5C) in order to begin a read from the data register. My ...
user avatar
3 votes
0 answers
109 views

Black screen when using higher SPI-speed for RA8857 LCD-controller

I'm using an Arduino Due that talks via SPI to an LCD (800x480) with the RA8875 controller chip. The most recent datasheet I could find is: RA8875 datasheet. Everything works as expected when using ...
user avatar
1 vote
1 answer
158 views

25Q128 flash and garbage data over SPI

I have a logic analyzer coming in the mail, but thought I might ask for help here first. I soldered the 25Q128 flash onto an adapter and wired it up to an Arduino UNO clone as you can see in the ...
user avatar
  • 111
1 vote
0 answers
168 views

'class Adafruit_SPIDevice' has no member named 'endTransaction'

So what I have done is followed all of the instructions in the following link: https://learn.adafruit.com/adafruit-pygamer/setup and have managed to get all the way up to https://learn.adafruit.com/...
user avatar

1
2 3 4 5
10