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.

111 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
29 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 ...
2
votes
0answers
529 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
0answers
194 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
531 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
567 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
510 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
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 ...
1
vote
0answers
448 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
0answers
65 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
69 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
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/...
1
vote
0answers
213 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
271 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
541 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
1k 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
792 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
75 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
419 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
420 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
981 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
483 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
84 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
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 ...
1
vote
0answers
690 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
921 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
384 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
6k 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
114 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
100 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
469 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
521 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
0answers
24 views

SPI communications with an IMU

I am pairing an Arduino UNO with a Yost Labs 3-Space Sensor Nano, the user manual for said sensor can be found here: 1. This is my code, pretty straight forward (although this is my first time working ...
0
votes
0answers
16 views

Problem with STM32 and SDFat lib on other SPI port

I am using STM32F103C8 and I am triing to compile a code with SDFat library. The problem is I need to use the second channel of the SPI1 (pins PB5,PB4,PB3, PA15): I found out that is possible to use ...
0
votes
2answers
51 views

GPS date and time not displaying correctly in Arduino Uno,NEO6M GPS module

I am learning how the Arduino and GPS module work so I can apply it to another project. My components are an Arduino Uno, NEO-6M GPS module, and a Adafruit 1.8" TFT display. The code did not work ...
0
votes
1answer
21 views

TI ADS7250 Read From SPI and SPI1 Simultaneously

I'm so confused by the ADS2750 datasheet here, I can't seem to figure the proper bit shift to read data from bits 15-27 properly. I'm not even sure what some of the acronyms mean on page 23 table 1. I ...
0
votes
1answer
23 views

what command should i use to read and write through spi.tranfer command

#include<spi.h> byte val; // variabe for storing temp data #define PIN_SPI_SS (9) #define PIN_SPI_MOSI (10) #define PIN_SPI_MISO (11) #define PIN_SPI_SCK (12) void setup(); pinMode(...
0
votes
0answers
24 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
0answers
31 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 ...
0
votes
1answer
22 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
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
0answers
15 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?
0
votes
0answers
49 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
156 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
74 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
0answers
60 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 ...