Hi folks, it's my first thread in this forum.
Version 1.
I'm in a phase of my construction when it stop up. This circuit using Arduino Nano USB, 2 green LED, 2 red LED, all 3W, 700mA, red 2,5V, green 3,5V Vcc. It's a pilot strobe flasher for UVA/Drone using. When power on, green led 1 & 2 flash approx. 200mS, one by one. This repeat each 3 sec. 4 sec. after power on, red led 3 & 42 flash approx 200mS. 200mS ON, give a strong light effect, like strobe. By this delay, green led flash each 3 sec, while red flash each 4. sec.
This url link is my first diagram:
http://schematics.com/project/flash-light-arduino-buck-per-181015-1-22344/
(see diagram uploaded) .
Version 2:
When thinking about each grams in weight count, and will decrease flight time, something has to be done. I skip the MOSFET array IC, I change step down converter (to adaptive correct voltage for LED's), to PWN 700mA constant drivers for LED. This drivers are quite best in use, when it comes to constant current flow, because of this 3W led change it's properties when heated, moisture etc. Driver provides a constant current drive @ 700mA. QUESTION are so, how to controlling PWM frequency to provide 2.5 volts and 3.5 volts to LED's?
I need help both to Arduino wiring diagram (see Annex No. 2, one attempt with the approach of schematic wiring) and reprogram my Sketchup. Uploading my Sketchup as it is today, but must be changed to charts ver. 2.
PWM LED driver: http://www.ebay.co.uk/itm/121812186146?_trksid=p2057872.m2749.l2649&ssPageName=STRK:MEBIDX:IT
3W LED type: http://www.ebay.co.uk/itm/261648843386?_trksid=p2057872.m2749.l2649&ssPageName=STRK:MEBIDX:IT
Connectors:
Please help me!
Ver. 1.0

Ver 2.0

Arduino Sketchup for ver 1.0
Version 1.
I'm in a phase of my construction when it stop up. This circuit using Arduino Nano USB, 2 green LED, 2 red LED, all 3W, 700mA, red 2,5V, green 3,5V Vcc. It's a pilot strobe flasher for UVA/Drone using. When power on, green led 1 & 2 flash approx. 200mS, one by one. This repeat each 3 sec. 4 sec. after power on, red led 3 & 42 flash approx 200mS. 200mS ON, give a strong light effect, like strobe. By this delay, green led flash each 3 sec, while red flash each 4. sec.
This url link is my first diagram:
http://schematics.com/project/flash-light-arduino-buck-per-181015-1-22344/
(see diagram uploaded) .
Version 2:
When thinking about each grams in weight count, and will decrease flight time, something has to be done. I skip the MOSFET array IC, I change step down converter (to adaptive correct voltage for LED's), to PWN 700mA constant drivers for LED. This drivers are quite best in use, when it comes to constant current flow, because of this 3W led change it's properties when heated, moisture etc. Driver provides a constant current drive @ 700mA. QUESTION are so, how to controlling PWM frequency to provide 2.5 volts and 3.5 volts to LED's?
I need help both to Arduino wiring diagram (see Annex No. 2, one attempt with the approach of schematic wiring) and reprogram my Sketchup. Uploading my Sketchup as it is today, but must be changed to charts ver. 2.
PWM LED driver: http://www.ebay.co.uk/itm/121812186146?_trksid=p2057872.m2749.l2649&ssPageName=STRK:MEBIDX:IT
3W LED type: http://www.ebay.co.uk/itm/261648843386?_trksid=p2057872.m2749.l2649&ssPageName=STRK:MEBIDX:IT
Connectors:

Please help me!
Ver. 1.0

Ver 2.0

Arduino Sketchup for ver 1.0
Code:
const int ledPin1 = 13; // Set pin's in use :
const int ledPin2 = 12;
const int ledPin3 = 11;
const int ledPin4 = 10;
// Variables will change :
int ledState1 = LOW; //
int ledState2 = LOW;
int ledState3 = LOW; // ledState used to set the LED LED STATUS :
int ledState4 = LOW;
long previousMillis = 0; // will store last time LED was updated :
long count = 0;
long interval = 95; // interval at which to blink (milliseconds) lower faster blinks :
void setup() {
// set the digital pin as output :
pinMode(ledPin1, OUTPUT);
pinMode(ledPin2, OUTPUT);
pinMode(ledPin3, OUTPUT);
pinMode(ledPin4, OUTPUT);
}
void loop()
{
do
{
unsigned long currentMillis = millis();
if (currentMillis - previousMillis > interval) {
// save the last time you blinked the LED
previousMillis = currentMillis;
// if the LED is off turn it on and vice-versa :
if (ledState1 == LOW ) {
ledState1 = HIGH;
ledState2 = LOW;
}
else {
ledState1 = LOW;
ledState2 = HIGH;
count++;
// set the LED with the ledState of the variable :
}
digitalWrite(ledPin1, ledState1);
digitalWrite(ledPin2, ledState2);
}
} while (count < 2); //sets how many blinke :
ledState2 = LOW;
digitalWrite(ledPin2, ledState2);
count = 0;
//=========================================================
delay(1000); // PAUSE and sets the time beteewen set green and read
//=========================================================
do
{
unsigned long currentMillis = millis();
if (currentMillis - previousMillis > interval) {
// save the last time you blinked the LED
previousMillis = currentMillis;
// if the LED is off turn it on and vice-versa:
if (ledState3 == LOW) {
ledState3 = HIGH;
ledState4 = LOW;
}
else {
ledState3 = LOW;
ledState4 = HIGH;
count++;
// set the LED with the ledState of the variable:
}
digitalWrite(ledPin3, ledState3);
digitalWrite(ledPin4, ledState4);
}
} while (count < 2);
ledState4 = LOW;
digitalWrite(ledPin4, ledState4);
count = 0;
//=========================================================
delay(1400); //sets the time beteewn set green and read
//=========================================================
}