Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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.

96 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
4k views

Using SD card shield on Arduino Due

I have a Seeed Studio SD card shield (V3) that I am trying to use on my Arduino Due. I am having trouble using the SD examples that come with the Arduino IDE. They worked fine on my Arduino Uno by ...
2
votes
0answers
339 views

How to use SPI to set/ read registers for a sensor (Avoiding need for Github Lib)

Ok so as some readers might have seen, my current project involves using MPU's. The idea is sending data via CAN bus to a controlling MCU to then send to a raspberry pi to perform the calculations ...
2
votes
2answers
313 views

Two SD card interfaces on one ESP8266?

I know it's possible to hook up multiple SPI devices, but how can one access the second drive from a sketch? Looking at the SDWebServer.ino example, my doubt is with the SD.begin(SS); part. If I ...
2
votes
0answers
183 views

Scheduling and BLE Read on demand

I'm building a data logging device with BLE capability using RFduino. Sensors are read using timer interrupt to a buffer. When the buffer is full, then the whole buffer is written to SD card. At the ...
2
votes
0answers
458 views

Do software SPI read from a register using shiftin()

How to read from a register using software SPI, presumably shiftin()? It works using the builtin SPI library + hardware SPI. I seem to be able to write but not read using manual shiftin()/shiftout()...
2
votes
1answer
485 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 ...
2
votes
0answers
1k views

RF24 - Split data in payloads at sender and then rebuild on receiving end

I'm trying to send some data using nRF24L01+ transceivers, but I need to use 8 byte payloads for reliability. The data I'm sending is much bigger than that, so I need to split it into 8 byte packets ...
2
votes
0answers
488 views

Read from the SD card - ACMD41 times out

I'm trying to read from the SD card using an Arduino Pro Mini (3.3 V), Pololu micro-SD reader (the 3.3V one) over a SPI protocol. I've tried both the SD library from Arduino SDK, and the Adafruit one....
1
vote
0answers
87 views

reference to 'File' is ambiguous. Why am I getting this error?

The program is supposed to take photo and store the picture into the SD card with the timestamp. My Program Code: #include <SdFat.h> #include <Adafruit_VC0706.h> #include <SPI.h> #...
1
vote
1answer
59 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 ...
1
vote
0answers
48 views

My PIR sensor output changes but digitalread high all the time

This is my final project, I have to communicate with two wemos d1 mini by LAN. The problem is that when I read the state of the PIR sensor it is "HIGH" all the time, but when I connect the led light, ...
1
vote
0answers
43 views

Reading byte per byte from a txt file on SD Card without using the 512Bytes buffer

I am trying to read every sequenced-byte that is located on a txt file in the SD card. I have been reading quite a lot about the SPI and SD libraries, But I have found a lot of different information ...
1
vote
0answers
137 views

Is it possible to use I2C and SPI ons the same Clock line?

I'm trying to connect an I2C OLED display and an n RF24L01 WiFi module to an ATTiny85. But I only need 1 extra pin. Is it possible to use the same clock wire/pin for the I2C and SPI device? Maybe with ...
1
vote
0answers
209 views

Reading data from SPI on ESP32-WROOM-32

I'm newbie with Arduino and need to do a short task: read data from SPI (sent by another microcontroller) and send to WiFi (by ESP32-WROOM-32). I can't understand how to initialize and read data from ...
1
vote
0answers
343 views

Interfacing MAX6675 with Arduino Mega 2560

I'm trying to use a thermocouple k type and a MAX6675 IC. I bought the MAX6675 chip and made the circuit (just a 1 nf capacitor on +5 V and GND near the IC) with the help of the datasheet I used the ...
1
vote
0answers
986 views

NFC PN532 SPI - Error: Timeout when waiting for ACK

I've been struggling to get the PN532 module working over SPI with an Arduino Uno. I have the wires connected as follows: SCK -> 13 MISO -> 12 MOSI -> 11 SS -> 10 VCC -> 5V ...
1
vote
0answers
604 views

NRF24l01+ works only when touching its antenna

I have two simple NRF24l01+ (with range of 200m) and two NRF24l01+ with range of 1km.and two socket adapter. or what I have and I have two good library with names RF24 and RF24-master . problem ...
1
vote
0answers
74 views

Not able to read the product ID from ADIS16260 Gyroscope Sensor

I have interfaced a ADIS1620 sensor to the Arduino UNO using SPI.I am having a bit of trouble here to read the product ID information from the ADIS1620.According to the datasheet here, on page 11, it ...
1
vote
0answers
401 views

SPI communication between two Ethernet Shields (W5100)

I am a newbie to the world of IoT, I want to ask... Is it possible to connect two Ethernet shields with SPI? And if yes, how can I codes them? I have reference from http://www.gammon.com.au/spi and ...
1
vote
0answers
376 views

SPI or A0/A1: what is the best solution for pin allocation on an Arduino shield?

When you design an Arduino shield you want to make it compatible with a maximum number of shields that may be stacked with it on an Arduino (UNO). Considering the following two possible tradeoffs, ...
1
vote
0answers
2k views

Load website from SD card

I combined two different codes together, a captive portal and a SD card web server. I encountered a problem which the website in the SD card doesn't load when I connect to the AP (captive portal page)....
1
vote
0answers
787 views

How do you debug SPI connected devices?

EDIT: Changed the title to better express what I'm after. I've been dabbling in connecting two Arduino Nano 3's with the RFM69HCW breakout for the past 5 days.. but got nowhere. I've followed the ...
1
vote
0answers
445 views

How can I transfer multiple frames from the Arducam's fifo buffer to file without zero padding?

I've been unable to resolve a coding problem I've been having with the Arducam Mini 2MP and I was hoping someone might be willing to give me some pointers or clear up any apparent misconceptions I've ...
1
vote
0answers
81 views

Bug read an image from SD card and draw it on TFT

I have developed a code to read an image stored on my SD Card and display it on a TFT. I can read the image from the SD Card successfully but I cannot draw it on the TFT. I dunno where is the bug. ...
1
vote
1answer
1k 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 ...
1
vote
0answers
613 views

Serial clock for SPI

I'm trying to configure my ADC(LM98725) registers through Arduino UNO via SPI but I'm facing a small problem, it would be great if somebody help me out. I have to configure my 16 bit ADC registers ...
1
vote
0answers
837 views

ESP8266 pin multiplexing possible?

I am trying to use Adafruit's ESP8266 implementation for a project of mine, which makes use of a bunch of sensors. The problem I have is the limited amount of pins available from ESP8266: 2 pins are ...
1
vote
0answers
357 views

Arduinino & Max7219

I'm using a MAX7219 and 6 (six) seven segment displays I used my own board and two purchased on ebay - no difference in operation. MOSI, and CLK are correct and verified with my scope (Tektronics) CS (...
1
vote
0answers
5k views

Making CS (chip select) work in SPI (for and SD card and OLED)

I'm working on a project that will log data to an SD card and display a user interface on an OLED. The SparkFun OLED breakout was super easy to set up. I was also able to get the SD-Card library ...
1
vote
0answers
1k views

Arduino stops working after some receivings from RF

I made a sketch that receives an rgb code from a remote Arduino using nrf24l01 and while it works for the first receivings then it stops working. I placed a testing Serial.println in the loop to test ...
1
vote
0answers
111 views

Arduino DUE and a ledmatrix with issues

I am trying to code something for fun using an Arduino Due and a LED matrix. The led matrix has a backpack controller. This device is using SPI. So I connect MOSI and SCLK to their respective pins and ...
1
vote
0answers
1k views

Simple question about the SPI clock for Intel Edison

I am doing a project with an Intel Edison Arduino breakout board. http://store.arduino.cc/product/E000052 http://download.intel.com/support/edison/sb/edisonmodule_hg_331189002.pdf I have a device ...
1
vote
0answers
92 views

Don's NDEF library and bluetooth

I am trying to connect my Android smartphone with my Arduino Uno by sending a NDEF message to my phone. I know that the MIME type for bluetooth is application/vnd.bluetooth.ep.oob but in my PN532 ...
1
vote
0answers
456 views

What bytes do I send to the MAX7221 to light an LED (in an led Matrix)?

Datasheets LED Matrix (p2): https://www.circuitspecialists.com/products/pdf/M105057CHR1.pdf MAX7221: https://www.sparkfun.com/datasheets/Components/General/COM-09622-MAX7219-MAX7221.pdf ...
1
vote
0answers
488 views

How to disable RX led on Arduino Micro

I am using the RX LED pin as CS for my SPI connection and experiencing problems while debugging and communicating via SPI. Is it possible somehow to disable the RX blinking while using the serial ...
1
vote
1answer
2k views

Ethernet shield and sd card not working togather on arduino mega

I am making a web-client with an Arduino mega and Ethernet Shield. I am trying to receive data from a web-server running a php script and saving that data to the SD card located in the Arduino ...
0
votes
1answer
32 views

How fast should I be able to write to AT45DB321D flash memory?

I checked the AT45DB321D datasheet and it says it operates at either 66 MHz oder 33 MHz. Both of these speeds are higher than what an Arduino Nano supports (my google fu fails me here, but according ...
0
votes
0answers
30 views

RadioHead Library and SPI Device (MAX7219) not working together

I am trying to use the RadioHead Library (receiving a 433Mhz Signal) and an LED Matrix (Max7219 via SPI) on the same Arduino Leonardo. Now either one works fine when only it is connecting. But when ...
0
votes
0answers
22 views

Is it possible to synchronize two SPI busses to send data out in parallel on the same clock signal?

We're working with these very odd driver chips which are sort of like shift registers except rather than latch the data at the end, the latch needs to happen over the last 'n' clock cycles in parallel ...
0
votes
0answers
18 views

TRANSFER one byte from MASTER (arduino NANO) to SLAVE (Arduino UNO), and RECEIVING two bytes from SLAVE, using SPI.transfer(byte)

good afternoon I'm working on: SEND & RECEIVED one integer from Master(NANO) to Slave(UNO). I'll get temperature, humidity and heat index from DHT11 ID01, DHT11 ID02 and DHT22 ID03, so I have ...
0
votes
0answers
42 views

MPU9250 with Arduino Nano and Arduino Nano 33 BLE

I am trying to read sensor data from two MPU9250s with both one Arduino Nano and a Arduino Nano 33 BLE using SPI. As for the Arduino nano, I was successful to acquire the sensor data and output it in ...
0
votes
1answer
74 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
0answers
79 views

SPI receive register size of ESP32

ESP32 has 64 byte SPI FIFO size, but I could not find what is the largest bit size it can receive over SPI? P.S. I need to interface a sensor, which returns 32 bit response. EDIT to clarify why I am ...
0
votes
0answers
37 views

Communication between Arduino and Can Bus

Function mcp2515_get_message appears the following instruction: uint32_t i1 = (uint32_t) spi_putc(0xff), i2 = (uint32_t) spi_putc(0xff), i3 = (uint32_t) spi_putc(0xff), ...
0
votes
1answer
98 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
1answer
52 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 ...
0
votes
0answers
106 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
0answers
34 views

Combining ADC IRQ with SPI peripherals results in SPI not working

I'm working on a pet project that requires ADC, SD card (SPI interface, SdFat library) and a display in the future (also SPI). I have put together a piece of code that initializes ADC at the highest ...
0
votes
0answers
43 views

LCD on top of SD datalogger flickers help!

I have a problem with my 16,2 with buttons lcd shield.(LCD Keypad Shield). It is connected on top of an SD dataloger. I came to the conclusion that every time the sd shield logs data and completes the ...
0
votes
0answers
42 views

SPI - different implementation / timing

I'm a little bit confused. I'm running the same code on a ESP32 (Adafruit Huzzah32) and an Arduino (SparkFun Pro Micro). It works on the ESP32 but not on the Arduino. Are there different API ...