Skip to content

RC Plane remotecontrol and boardcomputer based on Arduino using Visual Studio

License

Notifications You must be signed in to change notification settings

ngfelixl/FreeRC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeRC

Welcome to the Arduino based remote flight controller FreeRC. This repo provides source code for an RC transmitter (with an Arduino, PS4 controller, Radio transmitter module) and for a receiver (Arduino, Radio receiver module, Servos, ...).

Hardware Requirements

Transmitter Receiver
Arduino AtMega 2560 11€ Arduino Nano 5€
USB Host Shield v2.0 8€ 4 Servo Motors (e.g. SG90) 8€
NRF24L01+ TX/RX 5€ NRF24L01+ TX/RX 5€
PS4 Controller 30€ LiPo Accu 20€
Adafruit 2.8" TFT LCD 13€ Turnigy Plush 18A, or similar 20€
LiIon Powerbank 15€ 3-Phase Brushless Motor 20€

Which makes a total of 160€ for the complete RC electronics. But you'll also need equipment for soldering and voltage and current measuring, a lots of wires, optionally an op-amp for plane voltage reading and an acc and/or gyro. Also a GPS module could be implemented in long future terms.

USB Host Shield modification

In order to use the LCDTFT Shield on top of the USB Host Shield rev 2.0, there are a few things to be done before. As both shields share the same pins (Digital 9 and 10) it make sense to change the USB Host shield pins. The tft shield occupies pins D5-D13, so the USB host shield can use e.g. D1 and D2. Therefore I rewired the SS (original D10) to D2 and the INT (originally D9) to D1. There have to be a few changes in the UsbCore.h file in the USB Host Shield Library. Go to line 43 and change it to

typedef MAX3421e<P2, P1> MAX3421E; // Official Arduinos (UNO, Duemilanove, Mega ...

Now your Usb Host Shield will work as well, if you rewired it correctly.

Installation

The *_nano.ino file is the logic for the Arduino Nano and the *_mega.ino file is the source code for controlling the Arduino AtMega 2560 (would work with some modifications with an Uno R3 as well, but there are too few pins for USB shield and Display). The pin configuration for the NRF24L01 modules looks as follows

Description Nano AtMega 2560
VCC 5V 5V
GND GND GND
SCK 13 52
MOSI 11 50
MISO 12 51
CE 7 53
CSN 8 49

Notice that the CE and CSN pins require just a digital pin, it doesn't matter which ones you are choosing. The configuration of an Uno R3 should be similar to the Nano one, but no guarantee for that.

The servo pin configuration is set to

Motor Roll-aileron left Roll-aileron right Pitch elevator Side rudder
2 3 4 5 6

3D Files

Here is an example of the 3D printed body

References

About

RC Plane remotecontrol and boardcomputer based on Arduino using Visual Studio

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages