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
0answers
31 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 ...
0
votes
0answers
35 views

CMOS returns unexpected result via SPI

I'm trying to set up SPI in order to interact with a CMOS flash, the MX25L6405DMI-12G to be exact. As a test I'm trying to read the identifier (RDID) which should return 3 fixed bytes. Currently the ...
1
vote
0answers
23 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 ...
1
vote
1answer
12 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 ...
0
votes
1answer
39 views

Code hangs with SPI, and OLED labraries (Possible conflict between Adafruit SSD1306 and hardware SPI libraries)

I have an issue with using two libraries together, namely SPI.h that is installed together with an Arduino and Adafruit_SSD1306.h. My code was getting stuck so I stripped it down to the bare minimum ...
1
vote
2answers
49 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 ...
3
votes
2answers
31 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 ...
1
vote
0answers
22 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 ...
0
votes
1answer
20 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 ...
0
votes
1answer
40 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 ...
-1
votes
2answers
34 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 ...
1
vote
1answer
35 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 ...
3
votes
1answer
142 views

Wrong documentation for Mega2560 SPI Pins?

This page https://store.arduino.cc/usa/mega-2560-r3 contains the following image under the Documentation section. It shows digital pins 10 to 13 with labels SS, MOSI, MISO, and SCK. However, this ...
1
vote
2answers
28 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 ...
0
votes
0answers
30 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 ...
1
vote
0answers
18 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 ...
0
votes
1answer
38 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)....
0
votes
1answer
43 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 ...
1
vote
0answers
35 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 ...
0
votes
1answer
43 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) ...
0
votes
0answers
52 views

Problem with SD Module on TFT LCD

I am trying to use the micro SD card module on the 1.8 inch TFT display as shown in the photo. However, I am not able to make it work. The display module is 5/3.3 volt tolerant. The display works fine ...
0
votes
0answers
59 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 ...
0
votes
0answers
48 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 --- ...
0
votes
2answers
40 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 ...
0
votes
0answers
24 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 ...
0
votes
1answer
35 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 ...
0
votes
0answers
56 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 ...
1
vote
1answer
94 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
77 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
27 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
41 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 ...
0
votes
1answer
99 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 ...
0
votes
1answer
25 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 ...
0
votes
1answer
26 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
1answer
32 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 ...
0
votes
2answers
39 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 ...
1
vote
1answer
49 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 ...
0
votes
0answers
26 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
37 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
69 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 ...
1
vote
1answer
39 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
35 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
19 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
52 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
52 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 ...
2
votes
0answers
43 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 ...
0
votes
1answer
336 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
145 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
71 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 ...
0
votes
1answer
53 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&...

1
2 3 4 5
9