Receiver Source Code Hand .Ino
Receiver Source Code Hand .Ino
#include <Servo.h> //the library which helps us to control the servo motor
#include <SPI.h> //the communication interface with the modem
#include "RF24.h" //the library which helps us to control the radio modem
const uint64_t pipe = 0xE8E8F0F0E1LL; //the address of the modem,that will receive
data from the Arduino.
int msg[5];
void setup(){
void loop(){
if(radio.available()){
bool done = false;
while (!done){
done = radio.read(msg, sizeof(msg));
myServo1.write(msg[2]); //A1
myServo2.write(msg[4]); //A2
myServo3.write(msg[3]); //A3
myServo4.write(msg[1]); //A4
myServo5.write(msg[0]); //A5
}
}
}