Skip to main content

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
0 votes
0 answers
99 views

SD Card Writer Attached to ATmega328P Not Working Despite Success Using Arduino Uno

I've designed a custom circuit board using an ATmega328P, which I intend to use for writing data to an SD card via a reader/writer module. When I initially tested the SD card reader/writer with an ...
Jack Newport's user avatar
2 votes
1 answer
49 views

L9780 and SPI communication

I'm working on a program to interface with a development board I spun for an L9780 - wideband oxygen controller IC. At this point, I'm trying to get a consistent "status" read back but ...
jungle_jim's user avatar
3 votes
1 answer
54 views

Connecting 3x 0.91Oleds (Using a TCA9548A 8-channel multiplex) and 1 1.51 Inch Transperant SPI OLED

As the title suggests, I have an Arduino Nano connected to a multiplex (which is connected to 3x 0.91 OLEDs) and an 1.51 inch OLED connected through an SPI. The problem is that they just refuse to ...
anton koluh's user avatar
0 votes
0 answers
145 views

ESP-C3 Super mini MAX98357A and SD Card Reader together

After a lot of research and minimum results about pin mapping and particular specific configurations for SPI and I2S on ESP-C3, i about to give up on this. I have recently bought ESP32-C3 Supermini ...
eduardogarcia234's user avatar
0 votes
0 answers
47 views

How can I display an image on a Waveshare ILI9486?

I am using STM32 and 3.5 inch TFT display (Waveshare ILI9486) and I want to display an image and I have connected the SD card. How to do using the Arduino IDE? For now I am trying to fetch a word from ...
Sharan k's user avatar
0 votes
0 answers
67 views

Data constant and always zero from the ADXL345 accelerometer with ESP32 using SPI

I am trying to get data from an ADXL345 accelerometer using an ESP32 via SPI communication. I have configured my code following the ADXL345_WE library specifications and have verified the hardware ...
Revolucion for Monica's user avatar
1 vote
0 answers
74 views

Deciphering AD7730 outputs

I am currently working with a AD7730 chip for analog-digital conversion. The chip is programmable, and I have been pulling code from GitHub as well as other links. I am unfamiliar with SPI (the ...
Alex Vaughan's user avatar
1 vote
0 answers
114 views

Issue with multiple RC522s connected to Arduino Uno

THIS IS NOT A DUPLICATE QUESTION. My main problem is that whenever I attach the third RC522, the whole system becomes unstable. When I attach the fourth, suddenly one or two of the modules stop ...
Arman Asgharpoor's user avatar
2 votes
2 answers
787 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
2 votes
2 answers
224 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
25 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
46 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
320 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
-1 votes
1 answer
305 views

SPI with DMA in a Arduino Due

I have a project where I need to store data (~16 Mo) on a memory and be able to fetch the data fast (<36000 bits/s) with DMA because I have other signals to take care of. Currently I use an SD card ...
Vlad's user avatar
  • 49
1 vote
0 answers
301 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
2k 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
1k 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
94 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
213 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
  • 176
1 vote
0 answers
91 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
134 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,405
1 vote
0 answers
275 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
279 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
218 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
129 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
73 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
159 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
866 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
2 votes
1 answer
805 views

How to connect a NRF24L01 to a Wemos D1 R2

I have troubles to connect a NRF24L01 transceiver to a Wemos D1 R2 board. I succeeded on an Arduino Uno. Does anyone know the pinout? I used (same as with Uno): D13 - SCK D12 - MI D11 - MO D8 and D9 ...
FredV's user avatar
  • 21
3 votes
2 answers
743 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
  • 49
3 votes
0 answers
270 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
91 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
218 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
179 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
467 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
140 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
3 answers
868 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
249 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
454 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
-1 votes
1 answer
1k 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
25 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
254 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
232 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,405
0 votes
1 answer
905 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
309 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
2 answers
2k 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
120 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
111 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
35 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
187 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

1
2 3 4 5
11