Go Down

Topic: Programming of Arduino Uno in slave mode (Read 5023 times) previous topic - next topic


Hello. In my application I have selected Arduino Due to transfer data (24-bit) to slave device named LMX2595. So, for experimental purpose I want to configure Arduino Due in Master mode and Arduino Uno in Slave mode. I have written the code for master which is below and now at the slave side I just want to see the data in serial monitor.

Can anyone help me with the code at the slave side just to display data in serial monitor.

Master code :

#include <SPI.h>

SPISettings mySettting(125000, MSBFIRST, SPI_MODE0);
const uint8_t ss = 10;

void setup() {
  pinMode(ss, OUTPUT);


  digitalWrite(ss, LOW);
  digitalWrite(ss, HIGH);

void loop() {

Any help will be greatly appreciated.



Read this tutorial, especially the chapter 'Sending and receiving data'
A force d'essayer on finit par réussir... Donc, plus ça rate, plus on a de chances que ça marche (proverbe Sharduinok).

Go Up