Simple Afterburner Effect For RC Plane with EDF
Quote from Matoo robot on 2024年7月8日, pm4:23i'm making a simple after burner effect for rc plane motorized with electric ducted fan (EDF) with arduino and leds strip
Project description
I build radio-controlled planes and for certain the engine is an electric turbine, the problem is that on real-size planes with turbine there are flames coming out of the reactor and not on my planes.
I therefore thought of making a system which imitates the flames at the exit of EDF with leds and an arduino.
To be more realistic the light intensity and or the color must change in function of the throttle.
It is necessary to connect the ESC and the arduino to the receiver with a Y, it is the ESC which supplies the power supply of the arduino and the leds, it is necessary to take care to respect the polarities.
At start-up the blue leds are on at 100% and decrease to about a third of the throttle then the lighting of the red leds increases to 100%
Here is the result in video (the in-flight video will follow when the weather is better)
Code
int changethrottle; int voltageledrouge; int voltageledbleue; void setup() { pinMode(5, INPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); Serial.begin(9600); } void loop() { changethrottle = pulseIn(5, HIGH, 25000); voltageledrouge=map(changethrottle, 1000, 2000, 0, 255); voltageledbleue=map(changethrottle, 2000, 1000, 0,255); if (changethrottle<1250) voltageledrouge=0; if (changethrottle>1500) voltageledbleue=0; analogWrite(3,voltageledrouge); analogWrite(4,voltageledbleue); delay(10); }
Downloadable files
wiring arduino
i'm making a simple after burner effect for rc plane motorized with electric ducted fan (EDF) with arduino and leds strip
Project description
I build radio-controlled planes and for certain the engine is an electric turbine, the problem is that on real-size planes with turbine there are flames coming out of the reactor and not on my planes.
I therefore thought of making a system which imitates the flames at the exit of EDF with leds and an arduino.
To be more realistic the light intensity and or the color must change in function of the throttle.
It is necessary to connect the ESC and the arduino to the receiver with a Y, it is the ESC which supplies the power supply of the arduino and the leds, it is necessary to take care to respect the polarities.
At start-up the blue leds are on at 100% and decrease to about a third of the throttle then the lighting of the red leds increases to 100%
Here is the result in video (the in-flight video will follow when the weather is better)
Code
int changethrottle;
int voltageledrouge;
int voltageledbleue;
void setup() {
pinMode(5, INPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
Serial.begin(9600);
}
void loop() {
changethrottle = pulseIn(5, HIGH, 25000);
voltageledrouge=map(changethrottle, 1000, 2000, 0, 255);
voltageledbleue=map(changethrottle, 2000, 1000, 0,255);
if (changethrottle<1250) voltageledrouge=0;
if (changethrottle>1500) voltageledbleue=0;
analogWrite(3,voltageledrouge);
analogWrite(4,voltageledbleue);
delay(10);
}
Downloadable files
wiring arduino