I am trying to create a communication between arduinos with NRF24 modules and IR Infrared Obstacle Avoidance Sensors, I have communication between the two arduinos,
I am trying to create a communication between arduinos with NRF24 modules and IR Infrared Obstacle Avoidance Sensors, I have communication between the two arduinos, but I cannot code the part with the IR Infrared Obstacle Avoidance Sensor Module to turn on and off a led when the sensor detects the present of an object.
Here is the code that I have: I have the transmitter and the receiver code below
Transmitter #include
Serial.println(data); } }
if (radio.available() && digitalRead(7)==0) { radio.read(&data, sizeof(data));
Serial.println(data); digitalWrite(4,HIGH); digitalWrite(4,LOW); }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started