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
1
vote
2answers
297 views

SPI - Apparently Random pulses on CS/SS line

I'm trying to figure out why my SPI device isn't responding as expected. So I hooked up my logic analyzer and am a bit confused by the results. I'm seeing what appears to be random pulses on the chip ...
-1
votes
1answer
765 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
2answers
1k views

Rfid reader and SD card shield won't work together

I recently encountered a problem that's been bugging me for days. I want to make a project using a RFID reader and log data on an SD card with an Arduino Nano, but apparently no matter what I do, I ...
0
votes
2answers
172 views

Unable to read data with 16 serial clock cycles

I am trying to read data from an AD7314 Temperature Sensor that is connected to an Arduino Uno and output that value onto 6 LEDs also connected to the Arduino Uno board. From the image below, the ...
1
vote
2answers
4k views

Serial communication between multiple devices (or Arduinos)

What I know from my search on the internet, for both SPI and I2C protocols, communication between multiple devices needs a master, which initiates the communication, and slaves, which respond to the ...
0
votes
1answer
511 views

Why does void loop() stop after some samples?

I am not getting any compile time error. After some samples of data void loop() stops executing. Please let know what the problem is. Below is my code. Thanks and regards Thippeswamy #include<SPI....
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 ,...
0
votes
1answer
2k views

SPI Temperature sensor interface with Arduino Uno

I want to interface with an AD7314 Temperature Sensor. I want to only read the temperature value from the sensor and output the value on to 8 LEDs connected to the Arduino. But so far I have not been ...
0
votes
2answers
4k views

Multiple devices on SPI

Whenever I use multiple devices on SPI, TFT Screen, and the BME280 breakout board from Adafruit, the Arduino fails to detect the devices. Code of the screen separately (works) // include the ...
1
vote
1answer
4k views

Arduino Nano + RC522 + w5500 Ethernet Module

has anyone had any experience wiring up an arduino nano with an RC522 RFID module and a W5500 ethernet module? i can get each of them to work individually, but i cannot get them to work together. i am ...
0
votes
0answers
370 views

Arduino SPI and I2C Combo [duplicate]

We are trying to communicate between 2 Arduino's (1 Nano and 1 Mega) and a Raspberry Pi. This communication works till we add an SPI Connection to our RFID Scanner (RC522). We ran into the problem ...
1
vote
1answer
883 views

Arduino Uno to Arduino Uno Word.doc file transfer

I have written a 2 sets of code for the transmitter and receiver section. I am trying to send a word document file from 1 arduino uno to the next arduino uno through serial TX and RX. The file is ...
1
vote
2answers
3k views

Confused between SPI and I2C for SSD1306 OLED

I recently got myself an SSD1306 OLED display: I haven't been able to successfully wire it to an Arduino (Mega 2560) however. I have been reading up on I2C and SPI and checked some libraries from ...
3
votes
2answers
1k views

Using SPI and 2 shift registers WITHOUT libraries

Arduino Mega 2560 board and SN74HC595 shift register(s). I'm working on a school assignment and having issues getting the shift register(s) working without using Arduino libraries. I know with the ...
0
votes
3answers
470 views

Unable to access SD Card when using GPS and MS5611 sensors

I'm trying to connect multiple sensors to an arduino and write the retrieved data in to a SD. When I test each module separately it works properly, but when I put everything together the SD card ...
1
vote
1answer
567 views

SD card fails to write when used with another SPI device

I have an ADXL355 accelerometer attached to an Adafruit Feather Adalogger. I can configure and read the sensor. I can also write binary values to the SD card. The problem occurs when I try to read ...
0
votes
0answers
86 views

Dataflash SPI Flash chip shared programming SPI pins

I have an ATTINY841 that is utilizing a Dataflash SPI flash chip (AT45DB011D). The SPI pins are connected to the same pins used for programming the ATTINY841. When I program the ATTINY841, I find ...
0
votes
1answer
53 views

Is it possible to use SPI on Redbot Mainboard?

My students use the Sparkfun RedBot Inventor's Kit for their final design projects. The documentation about this board isn't great. There are connectors to SPI pins (they are not soldered to headers, ...
0
votes
1answer
678 views

mcufriend SPI connection

Bought a cheap LCD form china (mcufriend, pictured below) and I cant understand which pin is which to use it with the SPI interface (starting to get worried that I can't use it), I've figured out this ...
1
vote
1answer
259 views

OLED on Hardware SPI, on DUE

I want to use an OLED with DUE. I plan to connect it via hardware SPI. The Due has a 3X2 pin connector labeled SPI. Is it here where i connect the SCK and MOSI? If indeed, i connect it here, then ...
0
votes
2answers
2k views

Arduino UNO + Ethernet Shield + LCD + RFID but RFID doesn't work

I've been working to a project that uses arduino for RFID but when connected to ethernet shield, the RFID seems to not read any card tapped to sensor but the LCD seems to do fine. Here's the code I ...
0
votes
2answers
728 views

How do I calculate sampling rate of external ADC?

I am wondering if someone could explain this to me. I want to calculate sampling rate of external ADC. I am using ADS8320 which has max sampling rate of 100kHz, with Arduino MEGA 2560. SPI divider is ...
0
votes
2answers
1k views

Switching between SPI Devices when one is an SD card

I'm using a USB Barcode scanner connected via a USB shield, I'm able to get the readings from the barcode using this example, After getting this readings, I'd like to save it to an SD card but the SD ...
0
votes
1answer
1k views

Arduino Nano + RFID RC522 + Ethernet shield W5100

I have this Arduino Nano, Ethernet shield W5100 and RC522 as card reader. They are sharing pins D13, D12, D11, D10 is SS pin for W5100 D8 is SS pin for RC522. Problem is with pin D12, like it doesn't ...
2
votes
1answer
207 views

ADXL345 becomes 0g when plugin MicroSD Adapter using SPI

Try SD SPI code and ADXL345 SPI code separately and both are fine. When merge the codes, ADXL345 reading okay (not plug in MicroSD Adapter). Pin should bo okay. Every time MicroSD is plugged (the ...
7
votes
3answers
800 views

Multiple SPI device

I want to connect Ethernet board (W5100 HR911105A) to Arduino Leonardo with SPI and I also want to connect SD reader. When I test these boards separately everything working. But when I connect them ...
0
votes
2answers
31 views

Powering via an I/O Line

I have an SPI 128x64 OLED display. Is it safe to power this display's VCC from a digital I/O pin? I would like to do this so I can connect it flush to my arduino's header, and so I can control the ...
2
votes
3answers
310 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
581 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
271 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
4k 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
216 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
189 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
375 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
576 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
687 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
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 ...
2
votes
2answers
2k 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
338 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
497 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
851 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 ...
1
vote
2answers
601 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
127 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
1k 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
89 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
676 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
191 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
703 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
894 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 ...

1 2 3
4
5
8