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.
0
votes
0answers
13 views
SPI conflict with two shields - IOREF?
Update:
I've refactored the code to be very resilient to boards missing or not being able to talk to them. Then I tinkered with a bunch of pins and learned that it all comes down to the IOREF pin ...
0
votes
1answer
14 views
Understanding Nikon modified version of SPI
I am trying to use this library to connect a Nikon lens to a ardunio.
https://lainy.github.io/NikonLens/classlain_1_1t_nikon_lens.html
Im finding it very hard to understand the correct wiring.
...
-4
votes
0answers
22 views
How to communicate Two different Arduino using I2C? [on hold]
Actually i am using two arduino board.One arduino connects with RTC(in I2C)and other one connects with SD card (in SPI).Then how to communicate with each other using I2C communication. One of arduino ...
0
votes
0answers
14 views
How to make a 433 scanner by SI4463? [duplicate]
I want to make a 433 scanner like this . But , I just know how to use RH_RF24.h to control SI4463. Although there is a function about RSSI in RH_RH24.h . But it is not suitable for scanner . So ,I ...
0
votes
1answer
42 views
Does recieving data with SPI stop the main loop
I have a loop of code running on a Mega 2560 that is running at a certain speed that I get from an Arduino Uno. I have tried to talk with I2C but when I have received the data from I2C, the whole code ...
0
votes
1answer
27 views
Using SPI Interrupt causes two servos to lose functionality
My Arduino MEGA clone (ATMEGA 2650) reads SPI data as a slave using an interrupt.
There are also two servos that make an arm (shoulder and elbow).
When I comment out the line that attaches the SPI ...
1
vote
1answer
38 views
How do I use the Arduino Mega as a 16-bit SPI slave?
I have to interface an Arduino Mega as a slave with a SPI master running at 1 MHz SCK. The master will send and ask for two bytes in a single transaction. I tried using the following code for the Mega....
0
votes
1answer
30 views
Arduino bug when “myFile = SD.open” is inside loop()
My Arduino resets / bugs each time I put myFile = SD.open in loop().
In setup() it works fine.
I have a 20*4 LCD and a RTC in I2C, a SD card reader in SPI, and a fingerprint sensor.
Here is my code:...
0
votes
1answer
36 views
SPI Overflow in 328 slave with i2c sensor
I am working on creating sensor poller that is going to be polling multiple sensors and then, on request, provides its data to the master.
The master polls the slave (SPI) at 50hz and the slave is ...
0
votes
0answers
12 views
MKR1000 and AD9833
We're having problems with communication between an Arduino MKR1000 and AD9833 (waveform generator) over SPI. When we use an Arduino Uno, the SPI communication works fine, but the same code refuses to ...
1
vote
1answer
33 views
WaveHC Library Trouble
I posted this on the main Arduino forum, but no one has responded in 24 hours.
I'm trying to use the WaveHC library from Adafruit with a custom PCB. I am having trouble getting the SPI com to work ...
6
votes
1answer
87 views
Using SPI without driving MISO
I am developing an application where an Arduino Pro Mini communicates with a 12-bit ADC over SPI. The communication is one-way, meaning that the ADC will only send data back to the Arduino, not ...
0
votes
2answers
13 views
Atmega boot loading UART or SPI
I have an Atmega 328 chip and want to load the Arduino boot loader to the chip. I have planned to use a SPI protocol to do this, but I have read other posts saying that they have done similar using an ...
0
votes
1answer
24 views
NRF24L01+ unable to receive data
I have 2 Arduino UNO R3 nodes communicating using NRF24L01+ transceivers with the TMRh20 library.
Setup I have original as well as cheaper but 'compatible' arduinos. One of the nodes uses an original ...
0
votes
1answer
30 views
Explanantion of Addressing
I'm new Arduino user and I'm trying out a SPI protocol to interface a SRAM, specifically, the 23LCV512.
I have found the instructables steps to interface a SRAM using the SPI bus on an Arduino UNO ...
0
votes
0answers
34 views
Talking to ADS8698 (18-bit ADC) over SPI
I want to talk to an ADS8698 over SPI (see page 36 for details on their SPI implementation) using a Teensy 3.2. Right now I'm only getting zeros back and I feel like (perhaps wrongly) that I've ...
0
votes
2answers
34 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'...
4
votes
0answers
64 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
36 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
45 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
28 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
42 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
112 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
14 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
33 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
112 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
80 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
45 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
30 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
393 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
45 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
111 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
61 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
25 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
275 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
118 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
91 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
209 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
168 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
64 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
76 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
69 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
227 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
165 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
293 views
BMP280 sensor not initializing
I am successfully using the BMP280 sensor via SPI connection with an Arduino Uno R3 board. I'm trying to run the same code with the same setup on an Arduino Ethernet. However the sensor is not ...
1
vote
2answers
142 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
218 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
93 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
988 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
1answer
644 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, ...