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
41 views

3 pin ethernet module?

So basically I'm working on a project that uses an Atmega328 like on the Arduino Uno. I need to receive both DMX (with max485) and E131 (Not both at the same time, I'll decide which with a boolean in ...
Randomaker's user avatar
1 vote
0 answers
142 views

Programming multiple arduino at once

I actually made a prototype with multiplexing Chip select pin on Arduino, which connects to RESET pin of target board to program. When I am connecting one target board at once I am able to program it ...
Robot's user avatar
  • 49
3 votes
0 answers
521 views

SPI register read returns 0x00 or 0xff

I am trying to interface a Arduino Uno with an ASM330LHH using SPI. Whenever I try to read any register, I either get 0xff or 0x00 on the serial monitor The code I am using: #include <SPI.h> #...
InputBlackBoxOutput's user avatar
1 vote
0 answers
31 views

Uno Wifi Rev2 - sending program via WIFI [duplicate]

My new Uno wifi rev2 just arrived and I have one problem. At the beggining I connected my board via USB and tested with example blink program from WifiNiNA and It worked fine. When program is runned ...
voik3's user avatar
  • 11
2 votes
0 answers
253 views

Communication between two slaves via single SPI bus

I am trying to control both RC522 and lcd st7920 (128x64) via a single SPI bus on the NodeMCU esp8266. I am using Arduino core for my esp8266. Now in this portion of the code, I only want to display ...
theMubashir's user avatar
1 vote
0 answers
81 views

Receiving half the value of Reference Voltage in AD7705?

I have a doubt in the AD7705 library AD7705 Library Link when I am declaring a reference voltage of 5 V and giving a reference voltage of 5 V to IN1+. On the serial monitor, I can see ADC conversion ...
anigam's user avatar
  • 21
1 vote
1 answer
44 views

AMIS30543 | Data-Sheet understanding Status register

I was reading the data Sheet of AMIS-30543 stepper motor driver and I was not able to understand how to combine the result of the Micro step position status register MSP[8:0]. I know that its a 9 bit ...
Lawliet's user avatar
  • 183
1 vote
2 answers
223 views

Using LM70 temperature sensor with Arduino

I am trying to sense the temperature using the LM70 temperature sensor with an Arduino Mega. As you can see in the Datasheet, it uses the SPI protocol. I have made the following connections (VSSOP-8 ...
Fakiko's user avatar
  • 11
3 votes
2 answers
62 views

AMIS30543 - Library code | Order of pinDirection and pinOut

This piece of code was taken from AMIS30543- Arduino library, void init(uint8_t slaveSelectPin) { ssPin = slaveSelectPin; digitalWrite(ssPin, HIGH); pinMode(ssPin, OUTPUT); } Facts I know ...
Lawliet's user avatar
  • 183
1 vote
0 answers
168 views

Dual Channel Reading with 16 bit AD7705(SPI)

I want to read 2 separate voltage readings by AD7705 ADC and send the data to Arduino(Master). What is the correct program flow should I implement to get dual-channel operation working. How data will ...
anigam's user avatar
  • 21
1 vote
1 answer
228 views

ESP8266 with RTC DS1307 shield - WS2818B shield won't blink - I2C issue?

Dear Ladies and Gentlemen, I'd like to let a LED blink base on the time of the day. So I took Wemos D1 mini and a WS2818B shield and a RTC DS107 Shield for the before mentioned ESP8266 model. Based on ...
owi's user avatar
  • 11
0 votes
1 answer
427 views

External RAM (23LC1024) and external Flash (W25Q64JVSSIQ) with Sparkfun SAMD21

i'm trying to extend the capabilities of the Sparkfun SAMD21. My question is, which pins do I have to share? I mean, I understand that MISO, MOSI and SCK are shared, but CS connects each to a ...
Valentino Zaffrani's user avatar
0 votes
2 answers
698 views

Using ESP32 Cam internal RAM

I am new to the ESP32 series of boards.I powered up my ESP32 Cam board using the Vcc pin supplying about 7.4V using two 18650 batteries only to find out later that was a completely incorrect way to ...
AfiJaabb's user avatar
  • 219
1 vote
1 answer
134 views

My two slave SPI setup on arduino not working correctly

I am trying to connect a DPS310 and an ADXL345 to my Arduino using 4 wire SPI. When the individually tested (i.e. each has its own script), the output is correct, however when the scripts are combined ...
newt's user avatar
  • 25
5 votes
1 answer
10k views

Wrong documentation for Mega2560 SPI Pins?

This page https://store.arduino.cc/usa/mega-2560-r3 contains an image under the Documentation section which shows digital pins 10 to 13 with labels SS, MOSI, MISO, and SCK. EDIT: The documentation ...
Mark's user avatar
  • 197
1 vote
2 answers
106 views

Help me for interfacing Arduino with AMTP32M VOICE IC

i'm trying to get control an Aplus chip aMTP32M (stores audio samples) with Arduino . this amtp32m ic provide CPU SERIAL MODE its come with DATA and CLOCK pin.i try Spi mode with Amtp32m ic but its ...
Arun's user avatar
  • 31
1 vote
0 answers
74 views

SPI slave ISR not being called randomly

So I am trying to have a full-duplex high-speed(I'll be reducing the delay to microseconds once the below problem is solved) comm. between two Arduino Unos. Here is the code below: Master: volatile ...
paulplusx's user avatar
  • 171
1 vote
0 answers
154 views

How to set the data length for SPI communication in Arduino library?

How can I set the number of bits that need to be transferred in SPI communication from a Slave chip to Master MCU using Arduino SPI Library in a SPI transaction? Let us say I want to read 14-bits data ...
scico111's user avatar
  • 111
0 votes
1 answer
787 views

Connect one SD card to two devices

I have a system where an Arduino controls a DSLR camera for environmental monitoring. The Arduino can power on/off the camera and control the shutter (through the standard plug for a external shutter)....
Camilo Rada's user avatar
0 votes
1 answer
413 views

SPI transactions in Arduino

I have a task where I should do SPI transactions in interrupt mode. Means I have to handle data in IRQ handler (both for tx and rx bytes). How should I approach? I have a arduino board (2560) and a ...
ProPlayerMaxUltra's user avatar
1 vote
0 answers
352 views

ESP32 SPI communication with MCP3903 not working

I am trying to read out the Microchip MCP3903 six channel ADC using an ESP32 via SPI communication. The MCP3903 is powered with 5V and 3,3V and is connected with an external 3,57 MHz crystal. The ...
Simon R's user avatar
  • 11
0 votes
1 answer
616 views

Best strategy to parse 5 byte arrays to find a pattern

Ok here it goes, my first ever question posted to stackexchange! Please be gentle on me! I am using an Arduino UNO (at the moment, will move to a faster micro later - but still use an Arduino sketch) ...
Ryan's user avatar
  • 11
1 vote
0 answers
1k views

Reduce time between two consecutive SPI transfers on ESP32

I'm trying to drive an external DAC via SPI interface using ESP32 chip. But I cannot achieve the desired speed (>1M transfers/sec, each transfer consists of 16bits). The reason is not the SPI speed ...
Wjx's user avatar
  • 111
1 vote
1 answer
1k views

ST7735s 1.8" SPI 128x160 TFT Module - White Screen

I am having an issue in my 1.8" TFT LCD module with SPI interface in Arduino Nano. I keep seeing the white screen on my tft. I have made the following connections using Jumper cables: RST --- ...
Pradeep's user avatar
  • 11
0 votes
2 answers
72 views

dot matrix arduino turn off the intermittent led

I made a dot matrix that contain 10 row and 12 column , total 120 led. I want to turn on the leds like this picture but when I open ground 1 , 2 and pin 0 , 1 , 2 6 leds light together.what kind of ...
johnny003's user avatar
1 vote
0 answers
56 views

Arduino Due Master Programming

I am newbie. In my application Arduino Due is configured as Master and Arduino Uno as Slave. I need to transfer 24-bit Hexadecimal data of about 79-registers to slave device. At the slave end in ...
vamshi krishna's user avatar
0 votes
1 answer
139 views

SPI communications with an Yost Labs IMU [duplicate]

I am pairing an Arduino UNO with a Yost Labs 3-Space Sensor Nano, the user manual for said sensor can be found here and the user manual for the sensor family here (kinda confusing, Yost Lab's ...
hat_tr1ck's user avatar
0 votes
0 answers
301 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 ...
hat_tr1ck's user avatar
1 vote
1 answer
835 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 ...
LucasN's user avatar
  • 71
1 vote
2 answers
1k 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 ...
Tvr4's user avatar
  • 11
0 votes
1 answer
87 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 ...
Nicholas Johnson's user avatar
0 votes
1 answer
189 views

How to program ATmega4809 from Raspbeery GPIO

From this tutorial I'm able to nicely program an ATmega328 using SPI raspberry GPIO pins. However, when I try the same steps with ATmega4809, avrdude seems not having instructions and outputs the ...
Miguel's user avatar
  • 209
1 vote
1 answer
8k views

SPI Slave Programming for Arduino

In my application Arduino Due is configured as master and instead of the actual slave device I am making use of Arduino Uno as Slave.I will share the Master code which I have worked out. Can Anyone ...
vamshi krishna's user avatar
0 votes
1 answer
213 views

Possible to drive Waveshare E-ink without driver hat?

I bought and E-Ink display from waveshare and it came with such a “driver hat”: https://www.waveshare.com/wiki/E-Paper_Driver_HAT#Display_Config_Switch I am wondering what exactly is the role of this ...
Konstantin Schubert's user avatar
1 vote
1 answer
339 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(...
Swapnil Agrahari's user avatar
0 votes
1 answer
215 views

Arduino Due SPI clock pauses each octet

I'm trying to communicate with SPI slave using Arduino DUE as master. Device requires commands to be 32 bit wide, SPI mode 3. I've ran the minimum code (using Arduino IDE 1.8.12) to send some 32 bit ...
IceGlow's user avatar
  • 101
0 votes
2 answers
109 views

How to pass a changing value to a graphic display using Arduino?

I am using an EA DOGM132-5 graphic display, they also have provided a library for Arduino, so everything is nice and easy. The library has a function for easily passing a string to the LCD. void ...
Austris Balodis's user avatar
1 vote
1 answer
161 views

Arduino Atmega32U with nRF51 BLE by Adafruit limited to 5 second update rate?

Would like to ask for assistance with the code below. It's the Adafruit Bluefruit Atmega32U LE module with Adafruit's Arduino IDE example "heart-rate monitor" sketch. The code uses the hardware SPI ...
TommyS's user avatar
  • 71
1 vote
0 answers
117 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 ...
thehorse's user avatar
0 votes
1 answer
184 views

Backup an ATMEGA16

I have an ATMEGA16 lying around that was in an old robot I'd bought. It was in a socket, so I pulled it out and was thinking of using this page to use it with Arduino IDE. Is there a way for me to ...
Aditya Pratap Singh's user avatar
1 vote
1 answer
366 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 ...
Phillip J Fry's user avatar
1 vote
0 answers
49 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 ...
Desert Digital's user avatar
1 vote
0 answers
88 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?
elie saade's user avatar
1 vote
0 answers
68 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 ...
WilsonMCS's user avatar
0 votes
1 answer
568 views

ADXL345 gives wiring error in SPI mode

I get the following output from serial monitor when trying to use the ADXL345 with Arduino Uno in SPI mode (I2C mode works fine): CA Ooops, no ADXL345 detected ... Check your wiring! See photos for ...
daniel's user avatar
  • 185
2 votes
0 answers
163 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 ...
Mr Joseph's user avatar
2 votes
1 answer
2k 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 //...
blazingcannon's user avatar
1 vote
0 answers
248 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 ...
Barks's user avatar
  • 11
1 vote
0 answers
127 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 ...
TK noob's user avatar
  • 11
0 votes
1 answer
75 views

connected between 2 arduino

i want to connect SPI 2 arduino master and slave through the MUX , to write and read in external memory , when the master write in memory slave read . pls help . code to master #include <SPI.h&...
HAask's user avatar
  • 1

1 2
3
4 5
10