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
1answer
21 views

Arduino Due SPI clock pauses each octet

I'm trying to communicate with SPI slave using Arduino DUE as master. Device requires commands to be 32 bit wide, SPI mode 3. I've ran the minimum code (using Arduino IDE 1.8.12) to send some 32 bit ...
0
votes
1answer
57 views

Backup an ATMEGA16

I have an ATMEGA16 lying around that was in an old robot I'd bought. It was in a socket, so I pulled it out and was thinking of using this page to use it with Arduino IDE. Is there a way for me to ...
0
votes
1answer
21 views

UNO SPI slave read from UNO SPI Master beginTransaction

For a project I am trying to understand SPI. The final project I will use this in, is for reading the SPI from a car radio. That Radio writes to address 0x80 of a DDRAM LCD display. MY intent is ...
0
votes
2answers
26 views

How to pass a changing value to a graphic display using Arduino?

I am using an EA DOGM132-5 graphic display, they also have provided a library for Arduino, so everything is nice and easy. The library has a function for easily passing a string to the LCD. void ...
1
vote
1answer
35 views

Arduino Atmega32U with nRF51 BLE by Adafruit limited to 5 second update rate?

Would like to ask for assistance with the code below. It's the Adafruit Bluefruit Atmega32U LE module with Adafruit's Arduino IDE example "heart-rate monitor" sketch. The code uses the hardware SPI ...
0
votes
1answer
6k views

OVF in serial monitor instead of data

I am currently working with two Arduinos and I'm trying to synchronize them. I want to get data from four LIS3DH accelerometers. The LIS3DH accelerometers are connected to the Arduino using I2C ...
1
vote
1answer
2k views

SPI MCP23S08 to Arduino: strange stop/start behaviour

I have built an Arduino minimal breadboard circuit to test some parts I recently bought and I successfully managed to get the I2C MCP23008 working perfectly with LEDs and an LCD display. However I ...
0
votes
1answer
101 views

SCLK pulses not seen when using SPI on ESP32

I am using the following code in my esp32 using arduino IDE for spi communication which is an example code - #include <SPI.h> static const int spiClk = 1000000; // 1 MHz //uninitalised ...
0
votes
0answers
23 views

Is there a way to both read and write on the rising edge of the SPI Clock?

Im trying to use sipo and piso shift registers simultaneously with ESP32 using SPI. However the sipo(SN74AHC) reads data on the rising edge of clock and the piso(SN74HC165) outputs data on the rising ...
0
votes
1answer
224 views

How to connect two LED strips (APA102/SK9822) to Arduino UNO?

So what I am trying to do is to connect two SK9822 LED strips to Arduino UNO. I am a bit confused about how to properly set this up so I can individualy control any led. So obviously 5V should go to ...
0
votes
0answers
28 views

Failed to display string on oled (SPI) from SD module

i am working on a project in which data from sd card is displayed on the oled screen both using SPI communication, but it is not displaying anything. i commented out the sd part and then oled works ...
-1
votes
1answer
121 views

Using Arduino to Record analog signals with SPI ADC + Sampling Rate Issue

I am using Arduino UNO to Read 8-channel, 24-bits resolution Analog signals using ADS1299 Analog-fornt-end. ADS1299 use SPI interface to talk with Arduino. Currently, I can record the analog signal ...
2
votes
1answer
557 views

ADS1262 and 2.2 SPI TFT (Two SPI Slave) with Arduino

I am interfacing two SPI slave module i.e. ADS1262 and 2.2 SPI TFT with the Arduino Ethernet board. When I test each device on its own it works. Initially, I interfaced the TFT to the Arduino and it ...
0
votes
0answers
22 views

Read the respiration data to Arduino serial console

Currently working with ADS1292rShield library. Is there any way to read the value of the respiration and heart rate without using the Protocentral GUI. Printing DataPacketHeader to the console just ...
0
votes
1answer
219 views

Getting incorrect output from ADC over SPI in Arduino Uno

I am trying to read data from an ADC ADCS7476 (datasheet) using SPI on Arduino Uno. I am using the following code to read the data from the ADC and printing it on serial monitor. However, the code is ...
0
votes
0answers
14 views

Does MFRC522 module read all 13.56 MHz RFID tags?

Hello everyone. Does MFRC522 module read all 13.56 MHz RFID tags? Or there are different types of the 13.56 MHz tags that the MFRC522 module reads only one type of them?
-1
votes
3answers
304 views

Arduino SPI Multiplexer problems

I want to use the ADG731 32 ch multiplexer to read 32 potentiometers, I have wired everything and it works but it doesn't works as fast as I would want. The problem is that If I turn a potentiometer ...
0
votes
0answers
44 views

MLX90129 - SPI protocol

I don't know if someone has already worked with the MLX90129. Right now, I'm trying to establish the SPI protocol between MLX90129 and an Arduino. I'm using the example that it is showed in the ...
0
votes
1answer
27 views

ADXL345 gives wiring error in SPI mode

I get the following output from serial monitor when trying to use the ADXL345 with Arduino Uno in SPI mode (I2C mode works fine): CA Ooops, no ADXL345 detected ... Check your wiring! See photos for ...
2
votes
0answers
25 views

Start VL53l0X measurement failed

The initialization of the ToF fails with this code. I'm trying to frankenstein it with Radiohead RFM69, so far no luck. // rf69_reliable_datagram_client.pde // -*- mode: C++ -*- // Example sketch ...
0
votes
1answer
45 views

connected between 2 arduino

i want to connect SPI 2 arduino master and slave through the MUX , to write and read in external memory , when the master write in memory slave read . pls help . code to master #include <SPI.h&...
0
votes
1answer
238 views

Sending command through SPI on Arduino UNO

I am assuming the default pin configuration is pin 10(SS), 11(MOSI), 12(MISO), 13(CLK) from a default setup, SPI.begin(). The code compiles OK. Not sure about the int valuex and using the SPI.transfer(...
0
votes
0answers
47 views

Trouble Uploading Sketch - Issues with SPISettings

Full disclosure - I'm very new to Arduino. I am probably missing something simple. However, I've scoured the internet and can't seem to figure it out. I am trying to use an Arduino Duo Wifi rev2 to ...
0
votes
1answer
179 views

Adafruit Micro-SD breakout not initializing on MEGA 2560

] [I am having quite a bit of trouble trying to get my Arduino MEGA 2560 to read my micro-SD card. My wiring is as follows: Breakout Arduino 5v 5v Gnd Gnd CLK 52 DO ...
0
votes
1answer
38 views

Set SPI MOSI pin to idle low on a Due?

I have an SPI slave connected to Due. I send the SPI slave into sleep mode. During sleep, I need to pull all pins low, including MOSI. What's the best way to pull the SPI-4 pin low on a Due? Here's a ...
52
votes
2answers
187k views

How do you use SPI on an Arduino?

With reference to the Arduino Uno, Mega2560, Leonardo and similar boards: How does SPI work? How fast is SPI? How do I connect between a master and a slave? How do I make an SPI slave? Please note: ...
1
vote
2answers
832 views

Arduino NANO hardware SPI not working

I have an Arduino NANO clone and a 2.4" ILI9341 TFT display. The VCC and LCD pins of the display are connected to the 5V pin of the board. The GND to the GND. All the logic pins are connected to ...
0
votes
1answer
38 views

Velleman KA02 not working on Mega 2560 r3

I have a Velleman KA02 audio shield. When I use this shield on an Arduino UNO R3 with this sample code, it works. And by "work" I mean when I interact with the Serial Monitor (by pressing Y, for ...
0
votes
2answers
94 views

multiple RC522 RFID on arduino yun

I was trying for one month to make multiple RC522 rfid readers work together on SPI on an arduino yun, one works fine, but if I plug 4, each with a specific slave select, only one, sometimes 2, ...
0
votes
0answers
50 views

Whats wrong with my SPI code using uno?

I am stuck reading A1335 sensor through SPI. I have asked on the Aduino forum under the "Networking.." topic but no one is helping. Link to other forum post I have changed the code so many times now ...
3
votes
1answer
234 views

Cannot set MOSI pin low even after ending SPI

I'm building a battery operated device and must shutoff MOSI pin during sleep because it leaks current through the SD card if I don't (about 400 µA). Problem is, it won't stay off. I've looked at ...
-1
votes
2answers
86 views

How can I rewrite Arduino Code using SPI library into C++?

The issue is that I have code using an Arduino library and need to convert it into C++ so I can use it with a raspberry pi on ROS (Robot operating system). Does anyone know the best way to change it ...
0
votes
1answer
462 views

SPI communication Problem Arduino

I'm trying to set up SPI communication between two Arduinos (UNO and Mega), I want to read the status of the slave output pin from the master. I connected a diode to pin 9 of Mega and I wanted to ...
0
votes
2answers
881 views

Trouble with NRF24L01

I've been trying on and off to try and get my nrf24l01's working for some time and they never seem to work. Right now I'm just trying to turn a led on and off over the radio and it isn't working. ...
0
votes
1answer
49 views

Extra `eecfbba=.@aa` file in sd card

I am doing a project, and I need an SD card. Everything worked well, but after a while when I read the SD card from my PC(Windows 10 64 bit, Intel Core), I found a file called eecfbba=.@aa. It's so ...
0
votes
0answers
110 views

I2C and SPI using sensor and Oled display

Im currently working on a project which displays vital signs such as pulse and oxygen on my display. Now, my sensor is connected through I2C while my OLED runs through SPI. Im trying to display the ...
1
vote
1answer
2k views

LoRa stops working after several hours. Arduino reset button ineffective

I am designing a master-slave LoRa link between two Arduino Pro Minis. The goal is to control a car heater a few hundred meters from my home. The master sends a command to the slave as needed. The ...
0
votes
0answers
39 views

adafruit rfm95w and sd card

I am looking to use the adafruit rfm95w(https://www.adafruit.com/product/3231) on top of the adafruit huzzah esp8266(https://learn.adafruit.com/adafruit-fea ... 6/overview) and an SPI sd card breakout....
0
votes
1answer
139 views

Can the ESP-1 use SPI to communicate with sensors?

I wonder if I can use SPI to communicate between ESP-1 ESP8266 module and SPI sensors and other slaves. If so, do I need to install a library?
0
votes
1answer
198 views

Arduino Due as Triggered DMA SPI Slave is possible?

Is it possible for arduino Due to act as DMA-SPI-slave device which can exchange SPI data (uint16_t TX[10] and RX[10]) in triggered slave mode? I have a setup in which time period is very short (~...
0
votes
2answers
1k views

How to connect MPU9250 with NodeMCU using SPI or I2C Slave?

I want to connect 3 MPU9250 sensors, but since there is just one I2C bus, so there are another 2 sensors I want to connect through SPI. Library used - https://github.com/bolderflight/MPU9250/blob/...
0
votes
0answers
23 views

Accessing Serpente R2 SPI Flash as FAT filesystem

CircuitPython has the ability to access the Serpente R2's SPI Flash chip as a FAT file system. I can't figure out how to configure the Adafruit SPIFlash library to work for this board. The file I have ...
-1
votes
1answer
769 views

Problem with SPI comms using NodeMCU v 3, Nano and SD

Recently I bought a NodeMCU 8266 v 3 (Lolin) and it works fine. I set up a Catalex SD card module (with a built-in 5-3.3V regulator) and all was good. Then I set the Lolin with an Arduino Uno and or a ...
0
votes
1answer
42 views

SPI command versus data?

I have bough an LCD screen display TFT Touch Screen Board For Arduino UNO R3. Aand the following commands are given to me for the initialization: write_SPI_commond(0xFF); write_SPI_commond(0xFF); ...
1
vote
0answers
49 views

Topic: How to draw a circle on LCD128x64?

I want to know what's the default or recommended arithmetic to draw a circle on the LCD128x64 using ST7920 driver. I've done the following functions: drawing a pixel at any point on the LCD sending ...
0
votes
1answer
140 views

SD Library function doesnt work while using second SPI port with ESP32

i work on a group project with an ESP32. We have a lcd display and a sd card connected via the two SPI ports of the ESP32. The card gets initialized with no problem using this code: bool ...
0
votes
1answer
95 views

Multiple variant.cpp entries for same physical pin

Some variant.cpp files have more than one entry that points to the same physical pin. For example (from Arduino Zero's file): // 14..19 - Analog pins // -------------------- { PORTA, 2, PIO_ANALOG, ...
0
votes
0answers
270 views

Using the Broadcom AFBR-S50 with Arduino

I'm trying to interface with a Broadcom AFBR-S50MV85G ToF sensor over SPI using an Arduino, which is complicated by the fact that the provided library and reference application is written for Cortex ...
0
votes
1answer
2k views

Multiple Slaves(Arduino Mega 2560) response over SPI

I have problem creating Setup which have : A SPI Master (Arduino Mega 2560) SPI slaves (Arduino Mega 2560) ,which responds to the Masters request by sending float data (or Rather a 2D float array ,...
-1
votes
1answer
556 views

Arduino UNO inconsistent I2C register reading from ArduCam

I have an Arducam hooked up to an Arduino UNO. The code I am running looks like this: #include <Wire.h> #include <ArduCAM.h> #include <SPI.h> #include "memorysaver.h" const int CS ...

1
2 3 4 5
8