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 vote
1 answer
82 views

ESP32 SPI Mutual Communication

I have two ESP32 cards. I want to set one of these cards as Master and the other as Slave and communicate via SPI. I have done this before on Arduino Uno, but I cannot do this on ESP32. Below are my ...
Enes Orhan's user avatar
0 votes
0 answers
19 views

Arduino SPI Mutual Communication [closed]

Below are my codes for transferring string data between two Arduinos from Master to Slave via SPI. Similarly, how can I transfer string data from Slave to Master? Any suggestions? Master Code: #...
Enes Orhan's user avatar
2 votes
2 answers
104 views

Can I use SPI-related pins as a Digital Output?

I am trying to use an esp32 (NodeMCU-32s) as a ringlight controller for my camera. All it should do is sense when an input pin goes low (the camera's output connects to ground when the shutter goes ...
Zach's user avatar
  • 21
1 vote
0 answers
16 views

Sparkfun canbus shield with LSM6DS33 dual SPI problem

Hello fellow arduino users! I have a question regarding using the Sparkfun Canbus shield in conjunction with the LSM6DS33 sensor on a dual SPI configuration. I have managed to get theese two to ...
Paul Boutsiadis's user avatar
1 vote
2 answers
36 views

Can Arduino UNO/MEGA master assert SPI SS LOW on multiple slaves at once if Full Duplex is unnecessary?

I have a computer talking serially to an UNO SPI Master and, beyond it, multiple MEGA Slaves. The slaves never talk back to the master. I understand it is normal and correct to assert SS LOW to ...
Loren M Williams's user avatar
0 votes
1 answer
173 views

ESP32 TTGO T-Call connect to SX1276

I have an ESP32 TTGO T-Call and I want to add a LoRa SX1276. I am new to that and I am trying to write a simple program that, when it receives a packet from a LoRa sender, sends via gsm an HTTP ...
kostas ch.'s user avatar
0 votes
1 answer
74 views

SPI with DMA in a Arduino Due

I have a project where I need to store data (~16Mo) on a memory and be able to fetch the data fast (<36000bits/s) with DMA because I have other signals to take care of. Currently I use a SD card ...
Vlad's user avatar
  • 51
1 vote
0 answers
118 views

Arduino (Mega 2560) Ethernet Shield 2 (W5500) - Can't connect

I'm having issues connecting to my arduino mega via ethernet. Its a very basic start to the code just to get the network side up and running, them im going to add in what I actually want it to do. For ...
Isaac M's user avatar
  • 11
1 vote
1 answer
530 views

Using SPI on Pi Pico, Arduino IDE

Beginner with the Pi Pico here, but I studied electronics engineering and am reasonably hardware literate. I've used mbed online for a project prior to covid. I want to use SPI to connect to a display ...
K Langley's user avatar
0 votes
2 answers
331 views

SD Card Mount Failed with Waveshare ESP32 using Arduino IDE

I'm currently working on a project using an ESP32 (the Waveshare ESP32 Driver Board), and I am trying to read data from an SD card, but consistently getting a "SD Card Mount Failed" error. I ...
Mike Buss's user avatar
2 votes
0 answers
52 views

Slow I2C communication

To collect temperature and BPM, I connected a max30101 in my Heltec WiFi kit V3 with ESP32. The data collected are stored in arrays to extract statistical features from signals which an algorithm will ...
Alice's user avatar
  • 31
2 votes
0 answers
90 views

Ability to connect 2 or more w5500 Modules and deal with them as objects

I wish to create a rudimentary ethernet in/out - switch/hub where I can (sort of) daisy chain my boards. (I don't wish to use a ethernet switch/router/hub) One port would be acting as server The ...
Ohbhatt's user avatar
  • 76
1 vote
0 answers
57 views

COM disconnects and program fails when including code trying to initialize SD card (RP2040 Pi Pico W running Arduino)

I'm having an issue where anytime I run a program such as the SD card read write example (Below) the COM port disconnects. The only changes I have made to the example code is I am using SPI1 instead ...
Rian Noble's user avatar
1 vote
1 answer
73 views

Programming barebones ATMega328 with external programmer and no bootloader

I have created a circuit with a barebones ATMega328. I also have an external programmer (Sparkfun's Pocket AVR Programmer)... Now I want to program a particular sketch... When uploading a sketch, do i ...
user1584421's user avatar
  • 1,385
1 vote
0 answers
119 views

Fast wired communication protocols

I have an esp32 connected to an FPGA about 2 cm on a PCB. I am trying to send a constant data stream to the FPGA at a throughput of around 1.5 MB/s. This is too fast for UART, I've been considering ...
Orbitronics's user avatar
2 votes
2 answers
124 views

Changing SPI ports on an Arduino

My end goal is to read information from an nRF24l01 module connected to my Arduino UNO R3, and generate an interrupt whenever a message is sent to the Arduino. Now, I have read that for Hardware ...
insipidintegrator's user avatar
2 votes
1 answer
83 views

Remap SPI functions to default pins Arduino Zero via software?

I am looking at the documentation for the Arduino Zero, and I am a little confused. It indicates that pins 13, 12, and 11 can be used for CIPO, COPI and SCK, but using SPI.begin() puts the signals on ...
eramirez2024's user avatar
1 vote
0 answers
79 views

How to set OTA on ESP 32

I am currently using an evalkit Nina W106-00B board that incorporates an ESP32. I am desperately trying to implement OTA (Over-The-Air) updates. I started by modifying my partitions.csv file, which ...
Zapsalis's user avatar
1 vote
0 answers
41 views

How to create 2 individual daisy chains using the MAX7219 Module and Mega2560

I am using MAX7219 8 digit 7 segment displays with Arduino Mega2560. Now, I have to physically space out the displays far from each other. Hence, after a certain distance the displays on the far end ...
Soumarya's user avatar
0 votes
1 answer
125 views

FreeRTOS is not solving my problem to run tasks parallelly

I'm pretty new to esp32 and I'm trying to combine two codes in one, they are simple codes from projects that I found online, the first one uses PIR sensor to send message to telegram each time motion ...
w22tq's user avatar
  • 17
0 votes
1 answer
399 views

Arduino Bluepill STM32 spi doesn't work

Has anyone successfully use SPI1 of those pins? SCLK -> PB3 SDIO -> PB5 SDO -> PB4 MISO CS -> PA15 I've tried to use another side of SPI1 pins on the other sides of the board (PA4, 5, ...
Settasak's user avatar
1 vote
1 answer
377 views

How to connect NRF24L01 to Wemos D1 R2

I have troubles to connect a NRF24L01 to a Wemos D1 R2 board. I succeeded on an Arduino Uno. Does anyone knows the pinout? I used (same as with Uno): D13 - SCK D12 - MI D11 - MO D8 and D9 for CE and ...
FredV's user avatar
  • 11
3 votes
1 answer
259 views

Send data through SPI with DMA

I need to send data as fast as possible from an Arduino DUE to an extern DAC. To do so I use DMA & SPI and I want DMA to fetch data from the memory and send it to the SPI which will just relay it ...
Vlad's user avatar
  • 51
3 votes
0 answers
111 views

Raspberry pi pico (Arduino core) not initialising SPI correctly for NRF24l01

I'm working on a project where i have a Raspberry pi Pico connected to a NRF24l01+ to send some data. However i'm not recieving any data on the reciever and i think that its because the SPI bus is not ...
Earthbound Ruben's user avatar
1 vote
0 answers
54 views

How to save the current SPI settings with out have a global variable keeping track?

I am making a function for one of my devices, my device needs a particular SPI setting. I was hoping to save the current setting of the SPI class into some variable, load in the required setting, do a ...
DrakeJest's user avatar
  • 229
2 votes
0 answers
168 views

SD card breakout sometimes does not initialise (SPI connection - Teensy 3.2)

I have connected this Adafruit SD Breakout to a Teensy 3.2 over SPI. Because Teensy 3.2 is 3.3 V, I've connected the 3.3 V pin of the Teensy to the 3V pin of the SD breakout. See sketch below. I'm ...
daniel's user avatar
  • 185
1 vote
0 answers
133 views

Error with Mega2560 via SPI

I tried the following code to communicate via SPI with MPU9250 and Mega2560 But I got the following error: Error initializing communication with IMU Why I got this error? /* * Brian R Taylor * brian....
m-m's user avatar
  • 11
1 vote
1 answer
262 views

AD7768-1 library " Arduino "

I am working on a project and I need an AD7768-1 library to make this analog-digital-converter talk to my Arduino using SPI. " The AD7768-1" doesn't exist in Arduino's library. Thanks in ...
Jaafar AIT M'BAREK's user avatar
1 vote
0 answers
89 views

UART SERCOM on Pins 11-13 Arduino M0 (SAMD21)

I am a newb at coding. Does anyone have any code laying around or some time to write some to send data over UART SERCOM on pins 11/12/13 on a SAMD21 board like the Arduino M0? I am trying to send a ...
Charlie Nicholson's user avatar
-1 votes
2 answers
381 views

TFT display shows black stripes

I'm new to the field: I'm trying to drive a TFT ST7735S display (this is the model I'm currently using: https://www.amazon.it/dp/B078JBBPXK/ref=pe_24968671_487022601_TE_SCE_dp_1) with an Arduino Mega ...
Luke__'s user avatar
  • 103
2 votes
0 answers
151 views

ESP32DevkitC-V4 interfacing ADS8698 (18 bit ADC)

I am currently working on an SPI interface to measure the voltage of an amplified sensor bridge signal. I am using an ESP32 module to control the device. Since I am logging the data to an SD card, I ...
Dexter S's user avatar
0 votes
2 answers
221 views

Is it possible to program an AVR chip (atmega328p) via i2c?

Currently I am using avrdude and I'm programming my atmega328p chip via the spi pins by pulling the RESET pin low (spidev programmer). In my project I'm using predominantly i2c and this the only place ...
php_nub_qq's user avatar
0 votes
0 answers
59 views

SPI - CS Intermittently Goes High on Arduino UNO

This question is similar to SPI - Apparently Random pulses on CS/SS line in that I have a single SPI peripheral (a Microchip 23LC512 Serial SRAM) that an Arduino UNO is communicating to. Everything is ...
Joe's user avatar
  • 101
-1 votes
1 answer
668 views

I need help with creating a menu using u8g2 library

I want to make a project with a (Nokia 5110) display using u8g2 library. Here I have the code for my program: #include <Arduino.h> #include <U8g2lib.h> #include <TM1637Display.h> #...
kshysztof's user avatar
1 vote
0 answers
24 views

Code uploads to Due and fails to execute but runs on Redboard

I have run into this issue where my code will upload to my Due but fails to execute. I have verified the code works on a SparkFun Redboard. The only code difference is that the SPI pin assignments ...
Ender's user avatar
  • 11
1 vote
0 answers
174 views

How to properly set CS for SPI applications on Arduino Due

I needed SPI with CPOL=1 and CPHA=1. I read, that I could achieve this via SPI_MODE3. Further, I read to put the CS low and CS high code after SPI.beginTransaction(...) and before SPI.endTransaction() ...
leonhardp's user avatar
1 vote
2 answers
189 views

Methods of programming the Arduino

I took a look at a barebones Arduino schematic. It had three different ways of programming the chip. The first interface is for programming through SPI (For example with "Pocket AVR Programmer&...
user1584421's user avatar
  • 1,385
0 votes
1 answer
605 views

Funduino USB Host Shield problems

I'm currently working on connecting a Funduino version of usb host shield onto an arduino mega board. But the serial output shows "osc did not start", which means the board can't find the ...
Redsam121's user avatar
1 vote
0 answers
211 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 ...
Libegria's user avatar
4 votes
1 answer
1k 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 ...
Infinity Computers's user avatar
1 vote
1 answer
79 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 ...
daniel's user avatar
  • 185
1 vote
1 answer
86 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 ...
George Kerwood's user avatar
1 vote
0 answers
34 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 ...
RGB Engineer's user avatar
1 vote
1 answer
154 views

Communicate with Sparkfun CAN Bus Shied [closed]

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 ...
Pablo's user avatar
  • 19
0 votes
1 answer
373 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 ...
Dimitrios Desyllas's user avatar
2 votes
1 answer
983 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 ...
pepr's user avatar
  • 147
2 votes
0 answers
351 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 (...
Infinity Computers's user avatar
3 votes
0 answers
769 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 ...
NStorm's user avatar
  • 131
4 votes
1 answer
293 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,...
user1441016's user avatar
1 vote
2 answers
161 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 ...
aWiseMan's user avatar

1
2 3 4 5
10