Loading...
  Show Posts
Pages: 1 [2] 3 4
16  Using Arduino / Project Guidance / Re: twinkle led's on: September 16, 2012, 03:42:16 pm
would this sketch be ok once i mod it ?
http://joesgizmos.wordpress.com/2012/07/06/twinkle-leds/


i'm getting in to multiplexing soon
17  Using Arduino / Project Guidance / twinkle led's on: September 16, 2012, 03:03:13 pm
hi all
i know the mega wich i have has got Digital I/O Pins   54 (of which 15 provide PWM output)
can i get all the 54 pins to twinkle an individual led like stars in the sky at night in a random pattern ??
or what would be the better alternative?
18  Using Arduino / Project Guidance / IRL520 schematic help for all led circuits on: July 17, 2012, 04:04:08 pm
hi all
is it safe for me to say that i should use this circuit for all power mosfets IRL520 and small transistors such as the 2N2222A
I know R1 is current limiting
but what about R2/R3
is this just for safe measure ??
cheers
marko
19  Using Arduino / Project Guidance / Re: what Semiconductor to use for 5 Amp max on: July 05, 2012, 06:14:24 pm
thanks i thought you would say this lol i got some and ordering more now thanks was using irf520's but 2  expensive for what i need
20  Using Arduino / Project Guidance / Re: Soldering wire issue (not "stick") on: July 05, 2012, 05:32:12 pm
try using a crimp ferrule on the and solder to that
21  Using Arduino / Programming Questions / Re: simultaneously turn on 2 led's on: July 05, 2012, 04:59:00 pm
this sketch works on my mega
can anyone see any errors with it ?

/*
  Blink
  Turns on an LED
  This example code is in the public domain.
 */

void setup() {               
  // initialize the digital pin as an output.
  // Pin 2/ has an LED connected on most Arduino boards:
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
}

void loop() {
  digitalWrite(2, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(2, LOW);    // set the LED off
  delay(0);              // wait for a second
 
   digitalWrite(3, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(3, LOW);    // set the LED off
  delay(0);              // wait for a second
 
   digitalWrite(4, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(4, LOW);    // set the LED off
  delay(0);              // wait for a second
 
   digitalWrite(5, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(5, LOW);    // set the LED off
  delay(0);              // wait for a second
 
   digitalWrite(6, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(6, LOW);    // set the LED off
  delay(100);    // wait for a second
 
   digitalWrite(7, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(7, LOW);    // set the LED off
  delay(100);
 
  digitalWrite(3, HIGH);     
  digitalWrite(6, HIGH);
  delay(50);
  digitalWrite(3, LOW);     
  digitalWrite(6, LOW);
delay(500);
  digitalWrite(4, HIGH);     
  digitalWrite(5, HIGH);
  delay(50);
  digitalWrite(4, LOW);     
  digitalWrite(5, LOW); 
 
     digitalWrite(4, HIGH);   
  delay(100);             
  digitalWrite(4, LOW);   
  delay(100);             
}
22  Using Arduino / Project Guidance / what Semiconductor to use for 5 Amp max on: July 05, 2012, 04:07:51 pm
hi all
what would be the best Semiconductor to use for 5 Amp max
it is only to fade in and out a 5 watt led
5 watts = 0.41 amp
the cheaper the better
thanks
marko
23  Using Arduino / Programming Questions / Re: simultaneously turn on 2 led's on: July 04, 2012, 06:25:30 pm
thats acceptable 125ns but where would i put the code in the sketch ?
24  Using Arduino / Programming Questions / Re: simultaneously turn on 2 led's on: July 04, 2012, 06:20:48 pm
i'm using a mega
so what you are saying is use another pin to connect to both led's ?
am i right
and what is the best transistor to use for 2 amps
25  Using Arduino / Programming Questions / Re: simultaneously turn on 2 led's on: July 04, 2012, 06:02:54 pm
i tried this but one led lights up befor the other but i want them simultaneously

 digitalWrite(3, HIGH);     
  digitalWrite(7, HIGH);
  delay(50);
  digitalWrite(3, LOW);     
  digitalWrite(7, LOW);
26  Using Arduino / Programming Questions / Re: simultaneously turn on 2 led's on: July 04, 2012, 05:44:36 pm
how do i digital write 2 pins ?
27  Using Arduino / Programming Questions / simultaneously turn on 2 led's on: July 04, 2012, 05:26:39 pm
hi all
i'm using this sketch to flash led's at the end of the sketch i would like to flash leds on pins 4 and 7 simultaneously can any one tell me if its possible and how to do it
thanks
marko


/*
  Blink
  Turns on an LED
  This example code is in the public domain.
 */

void setup() {               
  // initialize the digital pin as an output.
  // Pin 2/7 has an LED connected on most Arduino boards:
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
}

void loop() {
  digitalWrite(2, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(2, LOW);    // set the LED off
  delay(0);              // wait for a second
 
   digitalWrite(3, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(3, LOW);    // set the LED off
  delay(0);              // wait for a second
 
   digitalWrite(4, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(4, LOW);    // set the LED off
  delay(0);              // wait for a second
 
   digitalWrite(5, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(5, LOW);    // set the LED off
  delay(0);              // wait for a second
 
   digitalWrite(6, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(6, LOW);    // set the LED off
  delay(2000);              // wait for a second
   digitalWrite(7, HIGH);   // set the LED on
  delay(50);              // wait for a second
  digitalWrite(7, LOW);    // set the LED off
  delay(50);   
 
}
28  Using Arduino / Programming Questions / Re: looking for a sketch for Close encounters of the third kind on: June 24, 2012, 05:55:58 am
yes its just for the light sequence near the end
29  Using Arduino / Programming Questions / Re: looking for a sketch for Close encounters of the third kind on: June 23, 2012, 03:53:42 pm
could this be feesable ???
30  Using Arduino / Programming Questions / looking for a sketch for Close encounters of the third kind on: June 22, 2012, 05:29:18 pm
hi all

i'm looking for a sketch for Close encounters of the third kind or somthing of the same kind a basic sketch would do as i can modify it myself any help would be appreciated could this be feesable ???
i dont need sound just the light sequence

cheers all
marko
Pages: 1 [2] 3 4