Using TNYLILI from TiniyCircuits and a few lines of code, you can easy make your own rc navigation lights.
https://learn.tinycircuits.com/Projects/RC-Aircraft-Navigation-Lights_Tutorial/
CODE:
int strobe1 = 1;
int Tstrobe = A0;
int red = 3;
void setup()
{
pinMode(Tstrobe, OUTPUT);
pinMode(strobe1, OUTPUT);
pinMode(red, OUTPUT);
}
void loop() {
//--------------------------------------
digitalWrite(strobe1, HIGH);
delay(60);
digitalWrite(strobe1, LOW);
delay(150);
digitalWrite(strobe1, HIGH);digitalWrite(Tstrobe, HIGH);
delay(60);
digitalWrite(strobe1, LOW);digitalWrite(Tstrobe, LOW);
delay(600);
//----------------------------------------
digitalWrite(red, LOW);
delay(60);
digitalWrite(red, HIGH);
delay(60);
digitalWrite(red, LOW);
delay(600);
}
https://learn.tinycircuits.com/Projects/RC-Aircraft-Navigation-Lights_Tutorial/
CODE:
int strobe1 = 1;
int Tstrobe = A0;
int red = 3;
void setup()
{
pinMode(Tstrobe, OUTPUT);
pinMode(strobe1, OUTPUT);
pinMode(red, OUTPUT);
}
void loop() {
//--------------------------------------
digitalWrite(strobe1, HIGH);
delay(60);
digitalWrite(strobe1, LOW);
delay(150);
digitalWrite(strobe1, HIGH);digitalWrite(Tstrobe, HIGH);
delay(60);
digitalWrite(strobe1, LOW);digitalWrite(Tstrobe, LOW);
delay(600);
//----------------------------------------
digitalWrite(red, LOW);
delay(60);
digitalWrite(red, HIGH);
delay(60);
digitalWrite(red, LOW);
delay(600);
}
- Kategorie
- RC Stíhačky
Komentáře