All Questions
Tagged with arduino-mega spi
54 questions
1
vote
0
answers
439
views
Arduino (Mega 2560) Ethernet Shield 2 (W5500) - Can't connect
I'm having issues connecting to my arduino mega via ethernet. Its a very basic start to the code just to get the network side up and running, them im going to add in what I actually want it to do. For ...
1
vote
0
answers
95
views
How to create 2 individual daisy chains using the MAX7219 Module and Mega2560
I am using MAX7219 8 digit 7 segment displays with Arduino Mega2560. Now, I have to physically space out the displays far from each other. Hence, after a certain distance the displays on the far end ...
1
vote
0
answers
204
views
Error with Mega2560 via SPI
I tried the following code to communicate via SPI with MPU9250 and Mega2560 But I got the following error:
Error initializing communication with IMU
Why I got this error?
/*
* Brian R Taylor
* brian....
0
votes
1
answer
1k
views
Funduino USB Host Shield problems
I'm currently working on connecting a Funduino version of usb host shield onto an arduino mega board. But the serial output shows "osc did not start", which means the board can't find the ...
1
vote
1
answer
209
views
Communicate with Sparkfun CAN Bus Shied [closed]
i have a Arduino Mega 2560 R3 and a Sparkfun CAN Bus Shied. Im using the SparkFun_CAN-Bus_Arduino_Library-master. I want to communicate over SPI (they have diffrent SPI pins), so i had to change it in ...
4
votes
1
answer
497
views
Arduino Array Scope with SPI
when I try the following code the SPI works correctly (see oscilloscope plot)
#include <SPI.h>
void setup() {
SPI.begin();
}
void loop() {
SPI.beginTransaction(SPISettings(100000, MSBFIRST,...
1
vote
0
answers
149
views
Reading a flash ROM chip (M45PE20) through SPI with an ATMEGA 2560 -- output only FF's
I'm trying to communicate through SPI to a Flash ROM chip (M45PE20) with an ATMEGA 2560. I'm looking to read the data off the chip, but the output I'm getting is nothing but FF's. I've checked my ...
2
votes
0
answers
142
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 ...
1
vote
0
answers
353
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 ...
0
votes
1
answer
647
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 ...
1
vote
2
answers
293
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
2
answers
90
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
...
5
votes
1
answer
12k
views
Wrong documentation for Mega2560 SPI Pins?
This page https://store.arduino.cc/usa/mega-2560-r3 contains an image under the Documentation section which shows digital pins 10 to 13 with labels SS, MOSI, MISO, and SCK.
EDIT: The documentation ...
1
vote
0
answers
262
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
1
answer
95
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 ...