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.

learn more… | top users | synonyms

0
votes
2answers
21 views

Arduino nano & pro micro SPI simple communication

I'm working with Arduino boards with AVR C coding to perform simple SPI communication from master for simple blink application on slave side. They don't work, the TX function on the master side doesn'...
3
votes
0answers
30 views

Arduino UNO with NRF24l01 + touch screen

I have an Arduino UNO, a NRF24L01 as receiver (receive data from elsewhere), and this touch screen from Adafruit for display and control. The Adafruit TFT is a shield so it fits the UNO perfectly. ...
1
vote
0answers
12 views

How can I transfer multiple frames from the Arducam's fifo buffer to file without zero padding?

I've been unable to resolve a coding problem I've been having with the Arducam Mini 2MP and I was hoping someone might be willing to give me some pointers or clear up any apparent misconceptions I've ...
2
votes
0answers
26 views

Connecting Saleae Logic 8 to MISO (pin 12) on Uno 3 w/ NRF24L01+ halts program

I have an NRF24L01+ with the base module (regulates voltage) connected to an Arduino Uno 3. I'm using the tmrh20 NRF24 library and am running one of the example programs. I'm trying to sniff the SPI ...
2
votes
0answers
19 views

Attempt stacking 'CAN-BUS' and 'USB Host' Shields on Mega 2560

I've run into a case of 'In theory it works, but in reality'.... I'm using the CAN-BUS Shield V1.2 from Seeed studio. Many things are written in broken english, so I'm starting to wonder if I can ...
1
vote
1answer
40 views

While condition with & bitwise of PINx read

I was looking into ATmega32u4 datasheet to configure the SPI, and there is initialization snippet for data transmission. void SPI_MasterTransmit(char cData) { /* Start transmission */ SPDR = cData; /*...
1
vote
2answers
68 views

Unable to interface AD7705 (SPI) with Arduino

Code as shown below, I am unable to get the 16 bit data. Can someone help me identify my mistake? byte spiTransfer(volatile byte data) { SPDR = data; while (!(SPSR & _BV(SPIF))); ...
0
votes
0answers
13 views

Iqs316 proximity sensors using with Arduino?

Does anyone know how to use the iqs316 touch sensor using for Arduino? I only found the setup code for pic18. I don't know how to setup the iqs316 in Arduino. Please share with me if you know.
0
votes
1answer
21 views

Arduino SPI Communication with H3LIS100DL accelerometer

I'm having trouble getting information off the accelerometer I'm trying to use. What code should I use to read the X,Y, and Z axis? I've read the data sheet but I don't have any experience with SPI ...
1
vote
2answers
66 views

Controlling a capacitive touch screen that doesn't have I2C/SPI

I have been searching for cheap slim 3" 16:9 capacitive touch screens for a while now. But I couldn't find any that had an I2C or SPI interface. The cheap displays always have these ribbon cables with ...
0
votes
1answer
36 views

Reading an MCP23S17 I/O expander port with the Arduino SPI library

I am trying to read an MCP23S17 I/O expander port B with the Arduino SPI library. The following example is simple as possible, and I still can not get it to work. The setup is an MCP23S17 I/O ...
0
votes
0answers
42 views

Arduino Due SPI will not loop

Help please I am trying to connect an Arduino Due via a SPI bus to a MAXIM31855 thermocouple sensing chip. I am using Arduino IDE version 1.6.11. The problem I am having is that the code will only ...
0
votes
1answer
19 views

Can MP3 be sent to SPI of Adafruit Music Maker Arduino shield instead of from its SD card?

Can uncompressed MP3 audio data be sent from Arduino board, by SPI, to Adafruit Music Maker shield instead of from the SD card on the Music Maker? Instead of using SD card on Music Maker board, I ...
3
votes
2answers
106 views

How to increase SD card write speed in arduino

I'm creating a data-logger system which logs data in SD card at a high speed of about 20000-30000 bytes per second. But the SD library in arduino currently writes data at about 4500-5000 bytes per ...
1
vote
2answers
28 views

Delaying pushbutton input to microcontroller while it's busy processing I/O

I am trying to create my own home automation using Arduino. I am using shift register for reading input(via push buttons) and writing output to led's. I am using SPI interface to communicate with ...
0
votes
1answer
55 views

SPI MCP23S08 to arduino strange stop/start behaviour

I have built an Arduino minimal breadboard circuit to test some parts I recently bought and I successfully managed to get the I2C MCP23008 working perfectly with LEDs and an LCD display. However I ...
0
votes
1answer
33 views

Can I read/write to MX25L8006E flash memory using Arduino?

Is it possible? I read this but as I'm a total noob on electronics (I'm mainly into programming in C and asm) I want to hear your opinion anyway. I have Arduino UNO with a breadboard and a bunch of ...
0
votes
2answers
21 views

Arduino SPI - MOSI not writing any data but clock works

I am trying to iterate over an int array and writing those values to a chip. Here is my code. #include <SPI.h> int sine[] = {0x7fc ,0x868 ,0x8d4 ,0x93c ,0x9a8 ,0xa10 ,0xa78 ,0xadc ,0xb3c ,...
4
votes
1answer
203 views

ATMEGA328 SPI MCP2515 - SPI communication freezes at certain point

I got 2 boards with an ATMEGA328 microcontroller and MCP2515 CAN Controller and I'm trying to get them communicate with each other. To shortcut the programming a little bit I'm using the Sparkfun ...
0
votes
1answer
69 views

Sparkfun Can-Bus Shield Example not Working

I recently bought a Sparkfun Can-Bus Shield (https://www.sparkfun.com/products/13262) and tried the SparkFun_CAN_Demo from here but the program only prints "CAN-Bus Demo" and then does nothing even ...
0
votes
1answer
57 views

Necessary to drive RESET pins on slaves?

I have an 8 line bus for driving various chips that looks like this: CLK MOSI MISO SS SS2 SS3 5V RESET Do I really need a RESET line? Or are most chips ok with just having their RESET pin set when ...
0
votes
1answer
98 views

Code example SPI multiple slaves Arduino DUE

I'm trying to get 2 devices (camera and sd card)to work on the SPI interface with an Arduino DUE. I'm having trouble finding example code online showing how to communicate with multiple slaves on the ...
1
vote
3answers
114 views

How to include <SPI.h> outside the .ino file

As I understand, Arduino IDE considers two paths for the libraries: first, "C:\Program Files\Arduino\libraries" and second, the "libraries" folder next to the schetchbook. I have a ...
0
votes
0answers
48 views

How to increase the Sampling Rate of Arduino and Storing it to SD Card for High Speed Data Logging

I'm trying to build a Data Logger for our FSAE Car which logs both data Coming from CAN Bus of the Vehicle and from Analog Channels of the Arduino. Although I tried to log Analog Values first and ...
1
vote
0answers
61 views

Serial clock for SPI

I'm trying to configure my ADC(LM98725) registers through Arduino UNO via SPI but I'm facing a small problem, it would be great if somebody help me out. I have to configure my 16 bit ADC registers ...
0
votes
1answer
56 views

Arduino Mega different SPI Pins

I am working on a project that uses Arduino and Water Level Sensor MS5540C sensor that uses SPI to communicate with Arduino. When I use Arduino UNO, it was working like a charm using pins 11, 12 and ...
0
votes
0answers
156 views

Wiring for Arduino mega to PN532 Board when using NDEF Library

I have been trying to get the simple example code for reading and writing to RFID tags to work from NDEF and PN532 library but I cant get the board to be recognized. I have gotten the board to read a ...
5
votes
1answer
109 views

Syncing/taking external clock for SPI on Arduino Due

I have an Arduino Due with a SAM3X8E chip and am trying to read SPI data from an external source that is communicating in SPI. I was able to get data by identifying specific bytes that are identifiers ...
0
votes
1answer
237 views

BMP280 sensor not initializing

I am successfully used the BMP280 sensor via SPI connection with an Arduino Uno R3 board. Trying to run the same code with the same setup on an Arduino Ethernet however has produced the problem that ...
1
vote
2answers
122 views

Atmega328P - SCK pin

I am using Atmega328p with arduino bootloader in a project. There happens to be an LED connected on SCK pin. During Start (or restarts), the LED appears to flicker a couple of times (3 times to be ...
1
vote
2answers
155 views

STPM10 using Arduino SPI communication

I am working with STPM10 energy metering chip (evaluation board) and I want to read the data from 8 internal registers of the chip each containing 32 bits. The datasheet of the STPM10 chip ...
0
votes
2answers
76 views

Driving Numerous Chips from 2 Separate SPI Connectors w/ Arduino Micro

I want to drive numerous chips (L9823, TLC5925, ADG1414, MCP23S08) from an Arduino Micro as well as read input from analog pins connected to momentary buttons, toggles, potentiometers and such. The ...
0
votes
3answers
454 views

How to read data using Arduino SPI

in the datasheet, it's stated that I should apply 32 serial clocks to get the 32 bits of data. How can I program this is Arduino?
0
votes
0answers
398 views

Arduino/ESP8266 no SPI data coming from MCP3008

I'm using an ESP8266 (NodeMCU Dev Kit v1) to read analog data via an MCP3008 ADC chip. However I'm receiving only zeros when I know non-zero data should be present. I'm using the following code, ...
1
vote
0answers
144 views

ESP8266 pin multiplexing possible?

I am trying to use Adafruit's ESP8266 implementation for a project of mine, which makes use of a bunch of sensors. The problem I have is the limited amount of pins available from ESP8266: 2 pins are ...
0
votes
2answers
431 views

How can one use the SPI hardware on the Arduino Nano?

I recently prototyped and programmed a system that used some SPI sensors on an Arduino Uno. I wanted to get the size down a bit, so I was thinking I might buy an Arduino Nano and re-wire my system ...
3
votes
3answers
478 views

Are there any detail examples of Si4463

Recently, I bought two Si4463 chips, but I don't know how to use them. It seems complex. I'd like to know if there are any examples of an Si4463 used with an Arduino?
1
vote
0answers
37 views

ADXL345 with SPI 4-wire interface returns -1, -1, -1

I've been trying to read values from my ADXL345 accelerometer breakout board with an SPI 4-wire interface. I have successfully used it with an I2C interface but I really need the extra speed. I ...
1
vote
1answer
116 views

Using a SPI based ADC (ADE7912) with Arduino

I'm trying to use Analog Devices' isolated adc ADE7912 to build a native product for voltage and current sensing, using arduino as a microcontroller. The IC communicates with arduino using SPI (and ...
2
votes
1answer
102 views

Why is the nRF24L01 not working with Arduino Esplora?

I am working on a remote control car from an Arduino Esplora board and the Mega 2650 Board. My problem lies with the Esplora board as the nRF does not transmit like it is supposed to or does not even ...
0
votes
2answers
81 views

How to approach an complex Arduino Uno project (Serial, SPI, Ethernet) in pure C, without libraries?

I have a college assignment where I need to get serial output, the Ethernet shield and SPI communication with other boards to work. We are not allowed to use any existing libraries, though we can use ...
1
vote
2answers
51 views

Convert library from using bitbanging to hardware SPI

I'm using a MCP3008 8ch 10bit ADC to expand the Analog Inputs for the project I'm working on. The only library I can find for it is here the library is ported from Adafruit's Raspberry Pi library here....
1
vote
2answers
32 views

What is the equivalent of this old SPI code using the current SPI library?

I see some old library code that initializes SPI this way: SPI.begin(); SPI.setClockDivider(2); It does not use beginTransaction/endTransaction blocks, and setClockDivider is now deprecated....
-1
votes
1answer
74 views

ATMEL SAMD11 SPI (Slave) With Arduino (Master)

I am trying to get my Atmel SAMD11 XPLAINED PRO and arduino to talk to each other using SPI. I have set up the arduino as the master, with the SAMD11 as the slave. On the ATMEL, I have the following ...
3
votes
1answer
68 views

Why isn't there bus contention on the MISO line during SPI-based programming?

Consider this image from sparkfun: Let's say I have this setup, a master and n slaves, plus a programmer connected to the SPI lines. When I program the master (Arduino), the Arduino is reset. This ...
0
votes
2answers
49 views

Are there any constants for default SPI port pins defined?

I'm writing a library which controls a device using SPI bus. For the communication I need to manually toggle the chip select pin. On most Arduinos SS pin is on D10, but there are also other models ...
0
votes
1answer
133 views

Arduino UNO and SPI eeprom (AT93C46D)

I'm trying to write to and read from an AT93C46D eeprom using an Arduino UNO but for some reason the output I'm getting is not what I expect. The eeprom has a data structure of 128 words of 8 bits ...
0
votes
1answer
68 views

Can I use IO10 as digital IO while using SPI interface?

If my arduino is the master device in a SPI network, hence not using the slave select SS pin, can I use the same pin as IO10? I am actually using an Intel Galileo, with the same pinout as an Arduino ...
0
votes
1answer
63 views

Can I use the TLC5940 LED Driver if I'm already using other SPI devices on my Arduino mega?

The way I understand SPI is that 3 wires are shared (MOSI, MISO, & SCHK). The slave select is pulled high when you want to write to a specific device. The 3 shared wires can be daisy chained. The ...
4
votes
2answers
362 views

SPI with a level converter in the other end of connection

I have an Arduino MEGA hooked up with a NRF24L01, and working nicely, talking with another Arduino Uno. It works as described, power supply to 3.3V, and SPI lines (MISO,MOSI,CLK) connected directly to ...