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

DMA not working between Arduino DUE and ethernet shiled (W5500)

I have a little project which consists of taking every impulsions from an encoder and sending them through UDP. The encoder delivers 16384 signals (ACP) for 1 turn and 1 signal (ARP) every turn (to ...
2
votes
0answers
44 views

SPI Arduino slave not recieving data correctly

Using an STM32L476RG Nucleo microcontroller board as the SPI master and an Arduino mega as a slave with pin 52 for SCLK, pin 53 for SS and pin 51 for MOSI on the Arduino. There is no issue with the ...
0
votes
1answer
20 views

Arduino recieve sensor data from other arduino SPI

I have Arduino Uno (sender) and Arduino Uno Wifi rev 2 (receiver). I want to send the ping value to the other one via serial - jumper wires. Arduino Uno is using the newping example, and I want the ...
1
vote
1answer
27 views

WDT ISR not called when SPI ST7789 module initiated

Using the .init function for the ST7789 TFT screen prevents my WDT ISR from firing. What explains this behaviour, and is there something I can do? Any other timer ISR I could use instead? #include <...
2
votes
0answers
16 views

nRF24L01 +pa +lna link does not communicate

I’m trying to create a link between two nRF24L01 units. Each nRF24L01+-based module (purchased) is connected to Arduino Nano on a custom-designed PCB. The printed wiring is per the hardware ...
1
vote
0answers
26 views

Raspberry Pi with multiple arduinos using spi

I want to use Raspberry Pi as an aggregator & distributor of messages originating from or destined for a flight simulation program. I'd like to use arduinos connected via spi as specific hardware ...
1
vote
1answer
33 views

SPI read while writing?

I'm working on a driver for an SPI device that returns some data (device status) while the command byte is still being written. Is there a way to read this status data using standard Arduino APIs or ...
0
votes
1answer
34 views

Is it possible to write data to a fat file system on SPI flash using an arduino?

I have an SPI flash based mp3 module and was wondering whether its possible to write to the flash chip using a microcontroller(arduino). the IC supports FAT16/FAT32 file systems. I have researched ...
1
vote
0answers
48 views

I2C and SPI connection in the same-time [closed]

I want to make code between to devices , the communication between the I2C master to master , but in the sometime the one of the connect with other device SPI bus master to slave . how it work?
0
votes
0answers
31 views

Arduino Master SPI MISO Receive Data

I'm trying to interface an Arduino Mega with an AD7714 ADC. This ADC requires a command to be sent to the communications register (in my case 0x5C) in order to begin a read from the data register. My ...
3
votes
0answers
64 views

Black screen when using higher SPI-speed for RA8857 LCD-controller

I'm using an Arduino Due that talks via SPI to an LCD (800x480) with the RA8875 controller chip. The most recent datasheet I could find is: RA8875 datasheet. Everything works as expected when using ...
1
vote
0answers
42 views

WiFiNINA communication via SPI on the Nano 33 IoT

I am trying to understand how the WiFiNINA Lib is working on the Nano 33 IoT device. On the mentioned board the SAMD21G is connected to the ublox wifi module via SPI and I am studying how they ...
0
votes
0answers
30 views

25Q128 flash and garbage data over SPI

I have a logic analyzer coming in the mail, but thought I might ask for help here first. I soldered the 25Q128 flash onto an adapter and wired it up to an Arduino UNO clone as you can see in the ...
1
vote
0answers
39 views

Overlapping text problem with TFT SPI 1.3" ST7789 display [closed]

I have a problem with my ST7789. My display just piles up when I show the current time, or showing some variable value that changes.
1
vote
0answers
67 views

'class Adafruit_SPIDevice' has no member named 'endTransaction'

So what I have done is followed all of the instructions in the following link: https://learn.adafruit.com/adafruit-pygamer/setup and have managed to get all the way up to https://learn.adafruit.com/...
1
vote
0answers
118 views

Getting Trouble in multiple ST7789 SPI LCDs (without CS) with ESP32

I am developing a product in which i have to use 5 LCDs. The LCD i am using does not contain CS pin. SO i had to use MUX for muxing of complete SPI bus from one LCD to other. But the issue i am facing ...
0
votes
0answers
125 views

python spidev receive data from Arduino

I am trying to communicate between Arduino and raspberry pi over SPI. I am using spidev in python and sending data to Arduino using xfer2. But I do not have an idea of how to receive bytes from ...
1
vote
1answer
40 views

Updating SPI transfer16 to create Transfer24

It might be a bit out there, but for a project that I am working on, my word size default is 24bits (3x8-bit), of which the first 8-bits are data and the next 16-bits are data. I would like to ...
1
vote
1answer
73 views

seeeduino can-bus shield v2: can't read can bus and write on SD card

I'm using a seeeduino V4.0 and a CAN-BUS shield v2.0 with industrial grade SD card. I'm using the default library given by the wiki of seeed. I've simulate a can bus with two mcp2515. I can read it ...
1
vote
1answer
31 views

Is it possible for Arduino as ISP board to flash an ISP master board?

I have a setup of 2 Arduino Leonardo boards. Let's refer to them as Board A and Board B. Board A is a master SPI board that is constantly communicating via SPI to an array of sensors. At some point, ...
0
votes
0answers
75 views

Max. external ADC speed with ESP32 (SPI or I2C)?

What is the maximum speed for external ADC I can expect to get with ESP32? I'm planning to have 16-bit ADC connected to I2C or SPI whichever gives more speed. How that information is calculated from ...
0
votes
1answer
48 views

How to set SPI speed for ATmega1284P?

I am using MightyCore and platformio. My config file looks like this My fuses are set as: E:FD H:D6 L:8F I have controller running at 16 MHz and SCK frequency is 8 MHz. My display is showing white ...
0
votes
0answers
283 views

Read & write on Winbond SPI flash using Arduino UNO

Recently I have brought a original UNO for modifying and flashing various types of bios. I had a dedicated one click bios programmer which was very expensive but few days ago it failed. So I thought ...
0
votes
1answer
40 views

Multiple peripherals using SPI with a Mega

I am using a Mega 2560 and 2 x AD9833 programmable waveform generators. The AD9833's use a SPI protocol and I have used vwlowen's code as a jumping off point (I'm not usng the display just the ...
0
votes
1answer
54 views

nRF24l01+ Problems. Data is being recieved as 0

I am trying to transmit the values of three potentiometers via the nRF24L01+ (w/antenna). I am using the regulator designed for the nRF24L01+, so I don't think I need to add a decoupling capacitor. I ...
0
votes
0answers
46 views

SPI Clock Signal not stable

I am probing the SPI Clock pin 13 with my analog discovery 2. Nothing else is connected. The clock signal is there but it rises over time. (see picture) Here is my code: #include <SPI.h> void ...
1
vote
0answers
57 views

Problems with I2C on an Attiny84 [closed]

I am attempting to write an I2C to SPI bridge using an attiny84. The problem that I am running into is that the I2C seems to start and stop working intermittently. Sometimes my interrupt functions ...
4
votes
1answer
96 views

SPI between Master arduino and Slave arduino

How can I send the string from Slave SPI to Master SPI? I want to write code in Bare Metal. The problem which I am facing is I can't make out what will be my blocking function in Master SPI code when ...
1
vote
0answers
76 views

Arduino uno + usb host shield: SPI test failing

I purchased a usb host shield that looks like a clone of the circuits@home shield (IE not a sparkfun shield) and am having the following error when I try to run board_qc from the usb host shield 2.0 ...
1
vote
3answers
142 views

Is it necessary to set a function with always_inline attribution when the function would work maybe once?

I'm going through a library for the ILI9488 running by SPI and want to copy this library in my version. In the beginning of the source file, there's a guard for the SPI_HAS_TRANSACTION that if the ...
2
votes
3answers
518 views

When is SPI.beginTransaction required?

I have been gradually converting many devices from i2c to spi for various reasons. I noticed in tutorials like this from arduino.cc that SPI.beginTransaction is explicitly called out. Then they link ...
2
votes
1answer
45 views

What are a few good ways to connect multiple I2C busses?

I have an issue with a project. I have a backplane with an Atmega328P based microcontroller controlling an I2C bus with multiple peripheral devices. One such peripheral is a removable card with ...
0
votes
1answer
74 views

2 SPI Slaves with 2 different SPI modes on one Arduino Mega

I am working on a project where I read 8 MAX31856 thermocouple sensors using the Adafruit Library. This works just fine and prints the read outs to serial. I want to also save the readings to a ...
1
vote
0answers
35 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 ...
1
vote
0answers
70 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 ...
3
votes
0answers
97 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> #...
1
vote
0answers
23 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 ...
2
votes
0answers
50 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
39 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
29 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
15 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
45 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
83 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
38 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
47 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 ...
1
vote
1answer
54 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
84 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
112 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
48 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
603 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
2 3 4 5
9