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
0
votes
0answers
32 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
18 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
36 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
23 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
26 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
52 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 ...
0
votes
1answer
24 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
61 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
25 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
30 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
65 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
20 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
23 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
27 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
31 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
45 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
24 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
33 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
62 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 ...
0
votes
1answer
22 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
27 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
16 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
51 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
36 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
34 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
208 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
94 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
62 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
49 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&...
0
votes
1answer
47 views

Set SPI MOSI pin to idle low on a Due?

I have an SPI slave connected to Due. I send the SPI slave into sleep mode. During sleep, I need to pull all pins low, including MOSI. What's the best way to pull the SPI-4 pin low on a Due? Here's a ...
0
votes
0answers
131 views

I2C and SPI using sensor and Oled display

Im currently working on a project which displays vital signs such as pulse and oxygen on my display. Now, my sensor is connected through I2C while my OLED runs through SPI. Im trying to display the ...
0
votes
2answers
144 views

multiple RC522 RFID on arduino yun

I was trying for one month to make multiple RC522 rfid readers work together on SPI on an arduino yun, one works fine, but if I plug 4, each with a specific slave select, only one, sometimes 2, ...
0
votes
0answers
48 views

adafruit rfm95w and sd card

I am looking to use the adafruit rfm95w(https://www.adafruit.com/product/3231) on top of the adafruit huzzah esp8266(https://learn.adafruit.com/adafruit-fea ... 6/overview) and an SPI sd card breakout....
0
votes
0answers
30 views

Accessing Serpente R2 SPI Flash as FAT filesystem

CircuitPython has the ability to access the Serpente R2's SPI Flash chip as a FAT file system. I can't figure out how to configure the Adafruit SPIFlash library to work for this board. The file I have ...
0
votes
1answer
45 views

SPI command versus data?

I have bough an LCD screen display TFT Touch Screen Board For Arduino UNO R3. Aand the following commands are given to me for the initialization: write_SPI_commond(0xFF); write_SPI_commond(0xFF); ...
0
votes
1answer
50 views

Extra `eecfbba=.@aa` file in sd card

I am doing a project, and I need an SD card. Everything worked well, but after a while when I read the SD card from my PC(Windows 10 64 bit, Intel Core), I found a file called eecfbba=.@aa. It's so ...
1
vote
0answers
49 views

Topic: How to draw a circle on LCD128x64?

I want to know what's the default or recommended arithmetic to draw a circle on the LCD128x64 using ST7920 driver. I've done the following functions: drawing a pixel at any point on the LCD sending ...
0
votes
1answer
255 views

Can the ESP-1 use SPI to communicate with sensors?

I wonder if I can use SPI to communicate between ESP-1 ESP8266 module and SPI sensors and other slaves. If so, do I need to install a library?
0
votes
1answer
125 views

Multiple variant.cpp entries for same physical pin

Some variant.cpp files have more than one entry that points to the same physical pin. For example (from Arduino Zero's file): // 14..19 - Analog pins // -------------------- { PORTA, 2, PIO_ANALOG, ...
0
votes
1answer
171 views

SD Library function doesnt work while using second SPI port with ESP32

i work on a group project with an ESP32. We have a lcd display and a sd card connected via the two SPI ports of the ESP32. The card gets initialized with no problem using this code: bool ...
0
votes
0answers
23 views

how to wrire into the contents of the registers in ADMV1013 up converter using arduino Due?

There are nine registers inside and the contents of the registers can be changed to perform several operations. The link of the data-sheet is given here(Page 26). The write cycle sampling must be ...
0
votes
1answer
147 views

Arduino Zero to Arduino Zero SPI configuration

I am in the planning stage of chaning two ATSAMD21 with a Zero or Nano 33 bootloade r in a SPI connection. The rational for this is that i am in need of 30 pin GPIO expansion and using 2 mcp23s17 ...
0
votes
0answers
112 views

SPI communication with Arduino and PGA411-Q1 resolver sensor

I have been trying to implement SPI communication between an Arduino board and a PGA411-Q1 resolver sensor board. I have set up the Arduino SPI settings as indicated on the resolver sensor's datasheet ...
0
votes
2answers
286 views

ESP32-CAM not reading BME680

I am trying to read BME680 on ESP32-CAM with following code : (Before trying BME680, I have suscessfully connected BME280 to ESP32-CAM over S/W SPI) #include <Wire.h> #include <SPI.h> #...
1
vote
1answer
793 views

What pins can be used for chip select (CS, CC) on the Arduino nano every?

I’ve checked the nano’s tech specs but I can’t seem to find any information regarding it. I’ve tried setting it to pin 26 (digital output)
0
votes
1answer
50 views

How fast should I be able to write to AT45DB321D flash memory?

I checked the AT45DB321D datasheet and it says it operates at either 66 MHz oder 33 MHz. Both of these speeds are higher than what an Arduino Nano supports (my google fu fails me here, but according ...
0
votes
1answer
94 views

SD writing problem

I have an Arduino code for logging sensor data, time and date. Then I store all the data in the SD card and then I will send the sensor value to another node by using Lora. but I can't write the data ...
0
votes
1answer
46 views

can I program a nano over SPI with another nano?

I'm fairly new to arduino, but I want to program a nano over SPI to skip the bootloader. I know I can program the nano with an uno as a programmer to do this, but I don't have an uno, but I do have a ...
0
votes
0answers
78 views

RadioHead Library and SPI Device (MAX7219) not working together

I am trying to use the RadioHead Library (receiving a 433Mhz Signal) and an LED Matrix (Max7219 via SPI) on the same Arduino Leonardo. Now either one works fine when only it is connecting. But when ...
0
votes
1answer
28 views

When does interrupt get fired

When does the ISR mapped to SPI_STC_vect (SPI transmission complete) get fired? Does it fire after a byte has been received (eight clock cycles) of when the slave select changes back to high to ...

1
2 3 4 5
8