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
0 answers
269 views

OSCOKIRQ failed to assert with USB HOST and SD card

I am having an issue using a MAX 3421 EE based Arduino USB Host shield and an SD card shield. From my understanding, they should both function as long as they are using different CS/SS pins and only ...
Abe Zukor's user avatar
2 votes
0 answers
362 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 ...
DEMPEROR's user avatar
0 votes
1 answer
702 views

Send Strings via SPI both ways using two Arduino UNOs(Master to Slave & Slave to Master)

I need to create a two way String exchanger via SPI with two Arduino UNOs. Strings and their lengths are independent variables of the main loop and they can change with every iteration. I need both of ...
Ekin Karadağ's user avatar
1 vote
0 answers
364 views

Can't use MEGA as Transmitter and UNO as Receiver nRF24L01

I have a project with 7 May Deadline, i really need help on this. Here is the problem, I need to use my Arduino MEGA 2560 as transmitter and Ardino UNO(CH340G) as receiver. I can use uno as ...
Ahmet Yusuf Yahşi's user avatar
1 vote
0 answers
264 views

Digital Potentiometer (TPL0501) Control Issues

I'm using SPI library in my code for controlling a digital potentiometer (TPL0501) with Arduino Mega. The code I have is: #include <SPI.h> byte address = 0x80; const int CS = 53; int SCLK = ...
George's user avatar
  • 11
1 vote
0 answers
697 views

Trying to use an Arduino Uno together with an ISM330DLC communicating through SPI

I am trying to get a MEMS-module (ISM330DLC) to work together with an Arduino Uno but I can't get it to work. I am using the ism330dlc drivers. ISM330dlc Drivers: https://github.com/...
NicThe's user avatar
  • 11
2 votes
1 answer
317 views

Adafruit Feather 32u4 BLE compatible with Software SPI?

Let me preface by saying that I am not super experienced with electronics. I have an Adafruit Feather 32u4 that is using Hardware SPI to communicate over Bluetooth. Unfortunately, I'm also hoping to ...
Kenzie's user avatar
  • 21
0 votes
1 answer
352 views

Problem with SPI when using rf24 NRF24L01 transceiver with LED matrix MD_MAX72xx

I am currently using Arduino Mega to use a LED matrix and a NRF24L01 transceiver. for LED matrix, I use MD_MAX72xx library. While for the transceiver I use the RF24 library. I am already able to ...
weyhei's user avatar
  • 105
-1 votes
3 answers
680 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 ...
Victor Casado's user avatar
1 vote
0 answers
98 views

Need help with DAC to show more than one output with SPI (stuck and need help please)

I want to take 2 different outputs from my DAC from void setDacOutput function (and it should be switching with/like the timer for both outputs. One output of 2.9375V for 0.9ms from ISR if statement ...
Muhammad Uzair Arif's user avatar
1 vote
0 answers
237 views

More than 3 SPI devices read by a single arduino

I've been working on a project that involves SSI Rotary Encoders from CUI. They are being read through the SPI interface, and I am bit-shifting appropriately to account for the differences between SSI ...
Alexander Smith's user avatar
0 votes
1 answer
1k 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(...
howdyrichard's user avatar
0 votes
1 answer
132 views

NeoICSerial and SPI on the Uno - pin 10

The NeoICSerial documentation contains a table that states for the Uno: Transmit: 9 Receive: 8 PWM Unusable: 10 Pin 8 and 9 are used for the serial connection. Pin 10 is part of the pins for the SPI ...
Christian Lindig's user avatar
1 vote
3 answers
704 views

Is it possible to connect many (20+) SPI sensors to an Arduino Mega?

I am making a system for measuring whether or not there is vacuum present in big steel containers. They are located up to 100 meters from the control cabinet. The question is, how many SPI sensors ...
Vincent Vega's user avatar
0 votes
1 answer
2k views

Reading ADS1232 with Arduino

I'm a newbie and I'm trying to read an ADS1232 with an Arduino for a Weight Scale Project. I read data through the SPI interface, but i don't receive the result. #include <SPI.h> #define ...
Thanh Van's user avatar
3 votes
1 answer
745 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 ...
DatuPuti's user avatar
  • 151
2 votes
3 answers
8k 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/...
suu's user avatar
  • 85
1 vote
0 answers
428 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 ...
Simon van den Berg's user avatar
1 vote
3 answers
2k views

SPI Wiring Confusion

I am currently trying to learn about SPI and how it works on the Arduino. I want to wire a MAX7219 chip to it to drive an 8x8 LED matrix with. Normally, I would assume the wiring from Arduino to ...
omniverseal's user avatar
2 votes
0 answers
549 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 ...
Tulio F. Polachini's user avatar
1 vote
0 answers
459 views

WaveShare EPaper Display and Adafruit HUZZAH32 ESP32 Feather Board

I'm trying to understand how I could use WaveShare EPaper Display with Adafruit HUZZAH32 ESP32 Feather Board. With these connections SDI/SCK -> MOSI SCK/SCLK -> SCK CS -> 15 DC -> 33 RST/...
juanpablo's user avatar
  • 111
-1 votes
1 answer
2k views

How to read Output data from SPI connector using Arduino Uno?

I am having main controller circuit board that give the data such as ("HAI", "HELLO") to 5 pin SPI Connector mounted on the same board. In that 5 pin SPI connector I could connect separate circuit ...
Abdulvakaf K's user avatar
2 votes
1 answer
501 views

SPI Connections to DAC [closed]

I'm hoping to construct a feedback loop for a laser using an Chipkit UC32 and an analog-digitial converter ( the one of I have is an AD5780 evaluation board). I've been reading through Digilint's SPI ...
Andrew Hardy's user avatar
0 votes
3 answers
682 views

Can Serial be safely used in an SPI interrupt routine

I have anecdotal experience that using Serial.print inside a slave's SPI interrupt routine (ISR) causes issues with transmission. It also seems that interrupts may be called more than once before the ...
qwr's user avatar
  • 159
1 vote
0 answers
946 views

Arduino Mega and ADS1256 board

I found code for a Teensy board and now I added just digitalwriteFast library to code and changed port to SPI for Arduino Mega. And now I get just one number out: #include <SPI.h> #include <...
Matej Oder's user avatar
0 votes
1 answer
62 views

Lines not pulsed fast enough (?))

Should this code pulse the PB3 and PB4 pins (MOSI and MISO of an Arduino Uno) at 2ms interval ? #include <avr/io.h> int main(void) { // for (byte i = 0; i < 32; i++) // pinMode(i, ...
kellogs's user avatar
  • 127
0 votes
1 answer
117 views

noisy output lines when waking up from a sleep

Using code similar to these examples from AVR https://www.microchip.com/webdoc/AVRLibcReferenceManual/group__avr__sleep.html my program causes my Adafruit Feather 32u4 to often sleep. When the ...
H2ONaCl's user avatar
  • 193
1 vote
2 answers
2k 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 ...
Peter Varo's user avatar
-1 votes
1 answer
3k views

Want to display an image from SD card to ILI9486 LCD display

I am completely new to Arduino. I have been given a side project to display a image from SD card to display. LCD used is ILI9486 which has a SD card slot at the back of the display module. I have ...
KCI's user avatar
  • 1
-1 votes
1 answer
1k views

esp32 spi library, how read a mcp23s08 register

thanks for any help I need to read a gpio expander mcp23s08 set as 8 bits input. my code write correctly (I believe) the setup register using SPI library, with the enclosed example modified. But I do ...
Angelo Gilin Maggiora's user avatar
3 votes
0 answers
2k 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 ...
Ross Hanna's user avatar
0 votes
1 answer
289 views

Using TFT with hardware SPI and speaker with tone()

I want to make a device with a TFT screen and a speaker that uses the builtin tone() function. However, according to the documentation, using tone() interferes with PWM on pins 3 and 11. On the ...
dthusian's user avatar
  • 103
1 vote
1 answer
483 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 ...
rithvikp's user avatar
0 votes
1 answer
2k views

Can SPI and serial.begin be used at the same time?

I have two modules where I want to control them through a single Arduino UNO. I guess Serial.begin(9600) uses serial port and UART. But Im not sure about SPI. Can I use SPI library hence the SPI ...
user1245's user avatar
  • 117
0 votes
1 answer
2k views

Triggering an SPI transfer with an interrupt in Arduino Due

I have a DDS that is controlled by an Arduino DUE, loop() waits for Serial commands and based on them calls one or another function that sets the DDS's frequency, phase, amplitude etc via SPI. In ...
shz's user avatar
  • 1
2 votes
0 answers
1k 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 ...
rf3t's user avatar
  • 21
1 vote
1 answer
789 views

Trouble configuring Arduino Due SPI to ADC

I am having trouble configuring Arduino Due SPI to an AD7490 ADC. Here is how I have the pins connected: +3.3V > 7490 pin 22 Vin +3.3V > 7490 Vref DUE CS (8) > 7490 pin 20 SS - slave select) DUE ...
Flux's user avatar
  • 21
0 votes
3 answers
2k views

STM32 and NRF send & receive

This is my send and receive code in STM32 (blue board). But i can't send and receive data . why? I did use Enrf24.h . Enrf24 link: https://github.com/spirilis/Enrf24 send code is: #include <SPI.h&...
m-tech's user avatar
  • 103
0 votes
1 answer
105 views

Loops fail after ~5 minutes when making two API calls every 10 seconds using WiFi client

I am running into an issue with a loop call on an Arduino MKR1000. I have tried the solutions suggested in this question and it usually works for 5 minutes and then collapses. I am trying to make two ...
garson's user avatar
  • 149
3 votes
1 answer
666 views

Change operational mode of CAN transceiver

I have two MCP2515 stand-alone CAN controllers with SPI interface, two TJA1042 CAN transceivers and two Arduino Uno boards. As you may know TJA1042 have two operational modes: Sleep mode Normal mode. ...
mtp's user avatar
  • 31
0 votes
1 answer
270 views

USART, SPI or Bit-Bang for the continuous transfer of bytes without inserted extra bits

I have heard that The SPI hardware introduces a 9th, HIGH bit between bytes USART still uses start and stop bits when in synchronous mode Are both these statements true? Can I modify the built-in ...
Alexander M's user avatar
1 vote
1 answer
1k views

16 bit SPI on Arduino Due

I'm trying to control AD7091-8 using Arduino Due. This IC calls for 16 bit SPI R/W. I'd read that I can change the transmit and receive bits of Arduino DUE by changing a register (bits 4-7 of SPI_CSR)...
noobiejp's user avatar
  • 115
3 votes
1 answer
4k views

SPI.transfer(buffer, size) does not send data from buffer

I am having trouble getting SPI.transfer(buffer, size) to work as expected. Here is the code: // inslude the SPI library: #include <SPI.h> // set pin 10 as the slave select for the digital ...
balboa's user avatar
  • 135
1 vote
2 answers
3k views

send more than one byte at a time SPI Arduino

I have recently been trying to send integers via SPI between two arduino Uno's. I am using the first example of Nick Gammons tutorial, and trying to modify it to get a basic understanding of how to ...
Ross Hanna's user avatar
1 vote
1 answer
202 views

Looking for a waterproof SPI temperature sensor

In my current project I'm using a DS18B20, which seems to be the only temperature sensor to show up when googling for waterproof temperature sensor for an arduino. The sensor itself is fine, however, ...
Streamline's user avatar
0 votes
3 answers
5k views

SPI Digital Potentiometer not working on ESP32

I have an MCP4151 digital potentiometer chip. I have managed to get it to work using and Arduino Uno using the code below: #include <SPI.h> byte address = 0x00; int CS= 5; void setup() { ...
Christos Mitsis's user avatar
-3 votes
2 answers
256 views

What's wrong with my code

I use a mega as a master and a nano as a slave. Both should convey texts. However, I get the master always only the answer that I send. The text from the slave does not arrive. Master: #include <...
Dieter Tepe's user avatar
1 vote
1 answer
5k views

Interfacing with an SSI sensor?

I'm trying to interface with version RM08S of this rotary encoder using an Arduino Mega. The sensor supports a "Synchro serial interface (SSI), single ended" interface. I'm unfamiliar with this ...
Cerin's user avatar
  • 1,598
3 votes
2 answers
119 views

Stacking 3 of the same shields on top of each other and instructing them in sync

Context: I have an audio track separated into individual channels grouped by frequency and speaker location. I need to play all three of these channels simultaneously and perform instructions like ...
Edward's user avatar
  • 37
0 votes
1 answer
335 views

Difference in pinout (types?) Uno/Mega

As a hands-on guy, I've started my first ever Arduino project 5 hours ago with no prior knowledge about Arduinos (I have coding experience tho. included this in case I am missing something obvious to ...
sdieters's user avatar

1
3 4
5
6 7
10