Advanced RC Controller with NRF24 Wireless Technology
Discover the future of remote control with our advanced RC Controller, built using state-of-the-art technology for precise and reliable performance. This versatile controller is perfect for hobbyists, educational projects, and enthusiasts looking to enhance their RC experiences.
Key Components:
Wireless Adapters: 2 x NRF24 wireless 3.3V adapters ensure seamless communication.
Microcontrollers: Powered by 2 x Arduino Nano boards for robust control and flexibility.
Additional Components: Includes 2 x 100uF capacitors, 4 x Female Header Pins (15 pins total), a 10K potentiometer, and perforated boards for custom configurations.
Transmitter Code:
// 1 Channel Transmitter | 1 Kanal Verici
// Input pin A5
#include
#include
#include
const uint64_t pipeOut = 000322; // Address for communication
RF24 radio(9, 10); // CE and CSN pin selection
struct Signal {
byte aux1;
byte aux3;
};
Signal data;
void ResetData() {
data.aux1 = 0;
data.aux3 = 0;
}
void setup() {
radio.begin();
radio.openWritingPipe(pipeOut);
radio.setChannel(100);
radio.setAutoAck(false);
radio.setDataRate(RF24_250KBPS);
radio.setPALevel(RF24_PA_MAX);
radio.stopListening();
ResetData();
}
int Border_Map(int val, int lower, int middle, int upper, bool reverse) {
val = constrain(val, lower, upper);
if (val < middle)
val = map(val, lower, middle, 0, 128);
else
val = map(val, middle, upper, 128, 255);
return (reverse ? 255 - val : val);
}
void loop() {
data.aux1 = Border_Map(analogRead(A5), 0, 512, 1023, true);
data.aux3 = digitalRead(7);
radio.write(&data, sizeof(Signal));
}
Receiver Code:
// 1 Channel Receiver | 1 Kanal Alıcı
// PWM output on pin D5
#include
#include
#include
#include
Servo ch5;
struct Signal {
byte aux1;
};
Signal data;
const uint64_t pipeIn = 000322;
RF24 radio(9, 10);
void ResetData() {
data.aux1 = 0;
}
void setup() {
ch5.attach(5);
ResetData();
radio.begin();
radio.openReadingPipe(1, pipeIn);
radio.setChannel(100);
radio.setAutoAck(false);
radio.setDataRate(RF24_250KBPS);
radio.setPALevel(RF24_PA_MAX);
radio.startListening();
}
unsigned long lastRecvTime = 0;
void recvData() {
while (radio.available()) {
radio.read(&data, sizeof(Signal));
lastRecvTime = millis();
}
}
void loop() {
recvData();
unsigned long now = millis();
if (now - lastRecvTime > 1000) {
ResetData();
}
int ch_width_5 = map(data.aux1, 0, 255, 1000, 2000);
ch5.writeMicroseconds(ch_width_5);
}
Features:
Wireless Control: Utilizes NRF24 wireless technology for stable and long-range communication.
Customizable Interfaces: Easily interface with external devices using flexible Arduino Nano microcontrollers.
Precise Control: Includes a 10K potentiometer for fine-tuning controls and 100uF capacitors for stable operation.
Robust Design: Designed with reliability in mind, featuring female header pins for secure connections and durable perforated boards.
Enhance your RC projects with our advanced controller, perfect for enthusiasts and engineers alike. Whether you're navigating hobbyist drones or implementing educational projects, our RC Controller ensures seamless control and unparalleled performance.
us today to learn more or place your order!