Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
MisterBotBreak
Published

How to Make a RC Controller

This project will show you how to make a RC Controller which communicates using 2.4GHz radio signal.

IntermediateFull instructions provided1 hour15,645
How to Make a RC Controller

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Joystick
×2
nRF24L01
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1
Machine Screw, M3
Machine Screw, M3
×1
9V battery (generic)
9V battery (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Schematics

Remote Control

Arduino Nano Support

Main part / RC Controller

Battery adapter

Code

Remote Control

Arduino
#include <SPI.h>
#include <Mirf.h>
#include <nRF24L01.h>
#include <MirfHardwareSpiDriver.h>

void setup() {
Serial.begin(9600);
Mirf.cePin = 3;
Mirf.csnPin = 4;
Mirf.spi = &MirfHardwareSpi;
Mirf.init();
Mirf.channel = 1;
Mirf.payload = sizeof(int) * 5;
Mirf.config();
Mirf.setTADDR((byte *) "dron1");


}

void loop() {
int valeurs[4];
valeurs[0] = analogRead(0);
valeurs[1] = analogRead(1);
valeurs[2] = analogRead(2);
valeurs[3] = analogRead(3);

Mirf.send((byte *) &valeurs);

if(Mirf.isSending()){
Serial.println("Values are sent");
}

delay(50);
}

Credits

MisterBotBreak
48 projects • 152 followers
I love electronics and cats :D !
Contact

Comments

Please log in or sign up to comment.