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.
508 questions
0
votes
1
answer
562
views
Set SPI Mode on Arduino Uno R4
I am switching a code from Arduino Uno R3 to Arduino Uno R4 Wifi due to the limitation of RAM spaces on R3. I use a thermocouple shield and SD Card read/write shield with the project, which requires ...
1
vote
0
answers
82
views
SB Components Micro RP2040 and ST7789 2.4 TFT LCD SPI display not working together using any library
I have a Micro RP2040 board from SB Components. Link to this product
With this I also have a 2.4 inch SPI TFT LCD screen with an ST7789 controller Link to the screen, it's on that page just scroll ...
0
votes
1
answer
430
views
P10 LED Display Character Overlaying with DMD library
Hi, I am using p10 Led display and trying to make digital clock. it works fine but after 2 or more weeks later without any switch off there is a overlaying start on characters. why this happening I ...
-1
votes
1
answer
225
views
How do I fix display showing random pixels on ST7789V2 LCD Module?
Problem Description:
I’m trying to interface a Waveshare 1.69-inch LCD module (ST7789V2 driver, 240x280 resolution) with an Arduino UNO board. I’ve connected all the necessary ports as per the ...
1
vote
1
answer
341
views
Change MKR Zero SD SPI Pins
I have been trying to learn more about using the ATSAMD21 MCU with Arduino. I designed and assembled a bare bones breakout board and have successfully flashed the MKR Zero bootloader and uploaded ...
2
votes
1
answer
178
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 ...
3
votes
1
answer
157
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 ...
0
votes
0
answers
933
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 ...
0
votes
0
answers
147
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 ...
0
votes
0
answers
148
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 ...
1
vote
0
answers
152
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 ...
1
vote
0
answers
211
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 ...
2
votes
2
answers
2k
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 ...
2
votes
2
answers
416
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 ...
1
vote
0
answers
42
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 ...
1
vote
2
answers
68
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 ...
0
votes
1
answer
427
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 ...
-1
votes
1
answer
580
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 ...
1
vote
0
answers
480
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 ...
1
vote
1
answer
4k
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 ...
0
votes
2
answers
2k
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 ...
2
votes
0
answers
118
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 ...
2
votes
0
answers
346
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 ...
1
vote
0
answers
121
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 ...
1
vote
1
answer
193
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 ...
1
vote
0
answers
393
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 ...
2
votes
2
answers
553
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 ...
2
votes
1
answer
366
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 ...
1
vote
0
answers
163
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 ...
1
vote
0
answers
103
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 ...
0
votes
1
answer
204
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 ...
1
vote
1
answer
2k
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, ...
2
votes
1
answer
1k
views
How to connect a nRF24L01 to a Wemos D1 R2?
I have troubles connecting 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 ...
3
votes
2
answers
1k
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 ...
3
votes
0
answers
438
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 ...
1
vote
0
answers
173
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 ...
2
votes
0
answers
263
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 ...
1
vote
0
answers
212
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....
1
vote
1
answer
791
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 ...
1
vote
0
answers
178
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 ...
-1
votes
3
answers
1k
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 ...
2
votes
0
answers
380
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 ...
0
votes
2
answers
753
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 ...
-1
votes
1
answer
2k
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>
#...
1
vote
0
answers
51
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 ...
1
vote
0
answers
357
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() ...
1
vote
2
answers
311
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&...
0
votes
1
answer
1k
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 ...
1
vote
0
answers
379
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 ...
4
votes
3
answers
3k
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 ...