We’re rewarding the question askers & reputations are being recalculated! Read more.

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
3
votes
3answers
282 views

Solution for simple multi-Arduino communication network (or alternative?)

I know similar question has already been discussed here but I could not get clear answer. Here is the thing: I have one master device - Mega2560, and multiple (about 9 but could be expandedin future) ...
4
votes
2answers
507 views

How can I work with two devices that use the SPI protocol?

I'm working with a project in which I need to use an SD card module and an RFID antenna simultaneously. The devices that I'm using are the MFRC522 and the CATALEX SD Card Adapter. Both have SPI ...
1
vote
1answer
233 views

Multiple SPIs on one Arduino [SOLVED]

Setup I have 2 Arduinos... each has two 2.4 GHz nRF24L01+ transceivers (so in total 4). Per Arduino, one is only for transmitting, while the other is for receiving (to prevent the need for switching ...
0
votes
1answer
3k views

What is the maximum SPI speed for a slave Uno/clone?

I have a Rapsberry Pi master sending SPI requests to an Uno Chinese clone slave : I send 16 characters to the Arduino, which answers 16 others characters. What I send is not important, it's the ...
0
votes
1answer
187 views

MCP23S17 library crashes

I have a rather voluminous sketch with a heap of source and header files. Now I'm facing the problem, that controlling the MCP23S17 on my board fails in different ways within this sketch. This is ...
1
vote
1answer
160 views

SPI Arduino communication

I want two Arduino cards to communicate with each other using SPI and move the servo motor with potentiometer as a result. I've done the pre-burning led or the led burning led on the SPI, I am waiting ...
0
votes
3answers
356 views

Arduino as Slave | SPI | Answers too late

I hope you can help me :) I am communicating between Raspberry Pi 3 and Arduino Uno with SPI. I am using the Arduino as slave and it works pretty fine. The only problem that i have, is the following: ...
0
votes
1answer
470 views

SPI MOSI receive error

I have a master and a slave (both are arduino UNO) connected through SPI connected. I want to transmit a character to the slave and receive true or false to the master. The transmission is working ...
2
votes
3answers
623 views

How can I get additional Slave Select pins?

I have a project where I want to connect a number of SPI devices, and I'm running out of Slave Select pins (SPI) on the Arduino. So I thought that I could use something like an MCP23S17 to get ...
1
vote
0answers
72 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 ...
2
votes
2answers
1k views

More than 4 MCP23S17 on 1 SPI bus

I would like to use 7 MCP23S17 as output expanders on one SPI bus. Every IC has its own address from 0 to 6. The first MCP23S17 can be written with no problem. The second chip did not work properly. ...
0
votes
1answer
267 views

Incorrect data being received on RX of NRF24L01P

I am running a setup of two NRF24L01P's on homemade code where the TX sends an analog signal fed through a standard pot, and the RX simply prints out the signal. But the RX seems to be getting ...
0
votes
1answer
437 views

How can I use the NRF24L01 modules without a library?

The datasheet is too intimidating for me, and I dont want to use the libraries available. Hence, I am looking for some clarity on this matter.
0
votes
1answer
735 views

RadioHead Library custom configuration for RFM96 LoRa

I have a pair of Adafruit RFM96W LoRa Transceiver Breakouts and want to use them with the RadioHead library. My pair of radios works if I use the example sketches from the adafruit tutorial, but I ...
0
votes
2answers
514 views

Optimizing ext. SPI ADC for speed and verify the speed

So I have a project where I will be using an Arduino Leonardo and an external ADC (AD7980) to run a 16-bit (18bit) conversion and transmit it to the Arduino and then out on USB as fast as possible. ...
0
votes
1answer
117 views

Interfacing with SPI

I am attempting to program an Arduino to interface with a DAC, specifically the AD7390 made by Analog Devices. I have tried using the SPI library as a means of realising the interface but am confused ...
1
vote
1answer
875 views

Output frequency from an SPI DAC (MCP4922) is lower than expected

I'm using a 2-channel, 12-bit DAC (MCP4922, datasheet) with an Arduino Uno, using the library written for it here. With the clock divider set to 2, I should have the SPI clock frequency at 8MHz. If ...
0
votes
1answer
78 views

2.8 Touchscreen does not work with Proto Screw Shield

I am using the Arduino Mega and the 2.8 touch screen by Adafruit, and I can't get the screen to work on my Proto R3 Screw Shield Here are the tools I am using: 2.8 inch touch screen Proto R3 Screw ...
1
vote
1answer
579 views

Using the SD library with the ESP8266 DevKit

The situation is as follows, I've connected a SPI TFT screen to the ESP8266 DevKit, set my own MISO,MOSI, CD, SCK pins and it works fine, wanted to do the same for using the SD card reader, but then 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 ...
0
votes
2answers
550 views

How to flash hex files from a micro SD card to an Arduino Nano using an SD card module?

I want to flash a hex file stored in a micro SD card into an Arduino [Uno/Nano]. So far I can read and write to the SD card using Arduino. Without modifying the bootloader, is it possible to flash ...
0
votes
3answers
771 views

2.4Mhz clock for 3-wire SPI using Arduino Mega 2560

I am trying to develop an Arduino sketch for ADS8320 ADC IC, which is 3-wire SPI. I need a 2.4MHz serial clock for the SPI interface. I tried the code below, but I don't know how to generate clock ...
1
vote
1answer
1k views

Use SPI and I2C in the same circuit (ATtiny85/84)

There is a previous question about this same topic here, but it does not answer my question. I want to use a generic I2C OLED 128x64 px display and an SPI RF24 radio in the same sketch. I know that ...
2
votes
1answer
683 views

ATmega328P SPI Slave

I was scrolling through the ATmega328P datasheet when I came across a rather fascinating statement about the way in which the data part of the SPI interface is buffered. I can't seem to understand why ...
0
votes
0answers
245 views

Are (how much are) interupts interfering I2C or SPI communication?

I am thinking over an autonomous rover. One of the features/components of the rover will be ability to know how fast is the rover moving and what distance did it travel. I would like to use ...
0
votes
1answer
162 views

Why is the SPI response mis-ordered?

I have a Raspberry Pi and an Arduino Micro. The two are connected by a SPI bus, the RPi is the master; the Arduino the slave. I need to send 5 bytes to the Arduino and get 5 bytes as an answer. The ...
1
vote
0answers
399 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 ...
0
votes
2answers
163 views

Multiple SPI reads slows down read time dramatically

I have a two channel 24bit ADC(LTC2402- http://cds.linear.com/docs/en/datasheet/24012f.pdf) that I am communicating with via Arduino Leonardo(Leonardo because it was free!). If I attempt to do ...
0
votes
2answers
2k views

Transfer 10-bit via Arduino-to-Arduino SPI protocol

The task I need to accomplish is as follows: I have an analog/digital converter that sends out a 10-bit signal. This signal needs to be transferred to an Arduino Uno using the SPI protocol. Because ...
0
votes
1answer
62 views

Mega SPI communication changing between setup and loop

I am attempting to use an arduino MEGA 2560 to control a digital potentiometer (AD5206), but I am getting some strange behavior. I have attached the CLK and MOSI pins (52 and 51, respectively) to an ...
2
votes
1answer
515 views

Controlling I2C slave on Arduino with Python

Typically, when I connect my Arduino to a slave device through I2C or SPI, I'll control the slave using instructions coded in the firmware. The output data will be then printed to the Serial port and ...
2
votes
1answer
483 views

SPI Problem with K-Thermocouple and Potentiometer?

I have a setup where the Arduino reads input from the k-thermocouple and uses that info to regultate the an output voltage through a potentiometer. I know the potentiometer is not faulty because able ...
0
votes
1answer
4k views

Multiple 3-wire SPI sensor interfacing with Arduino

I want to connect 4 MAX6675 thermocouple to Arduino. MAX 6675 description. It comes with its own Arduino library. library link. I tested the example code for one sensor and it works perfectly. ...
4
votes
3answers
742 views

Crash when datalogging MPU-6050 to SD card

On an Arduino Pro Mini, I'm using Jeff Rowberg's stuff in i2cdevlib to read from the MPU6050, and using SdFat to write data to an SD card. Each part in isolation is fine, but when both DAQ and logging ...
1
vote
1answer
416 views

Slave SPI does not work

I am trying to use both an SRAM (23LC1024) and SD card reader on an SPI bus. My connections (for SPI): Arduino pin 11 (MOSI) -> SRAM pin 5 (SI/SIO0) Arduino pin 12 (MISO) -> SRAM pin 2 (SO/SIO1) ...
1
vote
2answers
2k views

Which library to use for 23LC1024 SRAM 1 Mbit

I noticed there are quite some libraries for the 23LC1024 SRAM 1 Mbit memory: SpiRam Extended library SpiRam library Direct SPI ? I tried 1 and 3 so far. What I noticed was that to read 1 byte took ...
2
votes
1answer
229 views

Adding slave device to Arduino Uno-SPI | Configuring pins

I recently started an oled project. I use a small "128X64 OLED LCD LED Display Module" and I control it using SPI protocol(with my Arduino). It is the only device connected to the microcontroller. ...
1
vote
0answers
373 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, ...
2
votes
0answers
455 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
509 views

Master doesn't receive the correct values in a master/slave SPI link

I've been struggling for 3 weeks looking for a solution to my problem concerning SPI communication. So, I need to establish a SPI communication between two Arduino devices: for instance, the master ...
-1
votes
1answer
395 views

SPI.H library to control APA102

I am trying to run a strip of APA102 addressable LED's using a Mini pro. The same strip I can run using a raspberry pi using SPI so I know the Strip works and what data I need to send to get it ...
1
vote
1answer
2k views

Global memory reduction when using SPI/SD

I want to use an SD card and when including the library both SPI.h and SD.h are included. Also later I want to use an external SRAM chip (probably using SPI.h as well). However, without the SRAM chip ...
0
votes
1answer
4k views

The working of a MFRC522 and its Interface protocols?

I've actually messed up and posted into the stackoverflow site, even though I'm probably not meant to. I've been given this datasheet, but even though it does explain somewhat how each host interfaces ...
1
vote
2answers
937 views

MISO pin issue in SPI

I have interfaced sd card and ADS1262 (ADC module) with Arduino mega board and sharing the SPI control pin i.e. SCK, MISO and MOSI. I have found that sd card is not initialized and ADS1262 is giving ...
-1
votes
1answer
2k views

MPU-9250 IMU on SPI, external sensor or magnetometer using I2C master

I'm trying (for sport...) to use an MPU-9250 in SPI mode as it should be faster, and wasn't able to talk to the embedded magnetometer in my code. I've gone through the documentation (RM-MPU-9250A-00 ...
0
votes
0answers
49 views

Will an in-circuit programmer mess up my board?

I am designing a circuit board that will contain, among other things, an ATtiny85 and an NRF24L01 module. I would also like to use an SOIC-8 ATtiny variant. In order to program this chip I will then ...
1
vote
1answer
444 views

Can regular Arduino pins be used during SPI?

I have a circuit in which I'm using an Arduino Pro Mini to interface with an RF69 radio via SPI. The SCK pin on the Pro Mini is pin 13, which also happens to be the LED pin. Is it possible to write ...
3
votes
2answers
1k views

M0 pro: SPI communication, code works on Uno, but not in M0. Using ICSP port

I am trying to establish a communication between a sensor and a M0 -pro using SPI. The code : #include <SPI.h> unsigned int result = 0; void readAngle(); void setup() { ...
0
votes
1answer
4k 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 ...
0
votes
1answer
408 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 ...