Show Posts
|
|
Pages: [1] 2
|
|
3
|
Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why?
|
on: February 11, 2013, 10:04:51 pm
|
Thanks for the help first of all! I know it can be a pain sometimes but I have corrected the coded/wiring and am pretty happy how this came out. This way it goes through the letters then turns it all on one letter at a time holds for a second then takes each letter down one at a time and then rinse and repeats. Any other tips for this? int ledI = 13; int ledL = 12; int ledO = 11; int ledV = 10; int ledE = 9; int ledY = 8; int ledo = 7; int ledU = 6;
void setup() { pinMode(ledI, OUTPUT); pinMode(ledL, OUTPUT); pinMode(ledO, OUTPUT); pinMode(ledV, OUTPUT); pinMode(ledE, OUTPUT); pinMode(ledY, OUTPUT); pinMode(ledo, OUTPUT); pinMode(ledU, OUTPUT); }
// the loop routine runs over and over again forever: void loop() { delay(1000); digitalWrite(ledI, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledI, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledL, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledL, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledO, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledO, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledV, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledV, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledE, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledE, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledY, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledY, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledo, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledo, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledU, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledU, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledI, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledL, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledO, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledV, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledE, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledY, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledo, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledU, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledI, LOW); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledL, LOW); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledO, LOW); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledV, LOW); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledE, LOW); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledY, LOW); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledo, LOW); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(ledU, LOW); // turn the LED on (HIGH is the voltage level) delay(500); }
|
|
|
|
|
7
|
Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why?
|
on: February 11, 2013, 08:49:57 pm
|
Retro I deleted all delays and it blinked for a tiny fraction of a second but was almost unnoticeable so I deleted the delay after the low and it blinks left to right really fast which is not what I want. Thoughts? int ledI = 13; int ledL = 12; int ledO = 11; int ledV = 10; int ledE = 9; int ledY = 8; int ledo = 7; int ledU = 6;
void setup() { pinMode(ledI, OUTPUT); pinMode(ledL, OUTPUT); pinMode(ledO, OUTPUT); pinMode(ledV, OUTPUT); pinMode(ledE, OUTPUT); pinMode(ledY, OUTPUT); pinMode(ledo, OUTPUT); pinMode(ledU, OUTPUT); }
// the loop routine runs over and over again forever: void loop() { delay(1000); digitalWrite(ledI, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledI, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledL, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledL, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledO, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledO, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledV, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledV, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledE, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledE, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledY, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledY, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledo, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledo, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledU, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(ledU, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second digitalWrite(ledI, HIGH); // turn the LED on (HIGH is the voltage level) delay(50); digitalWrite(ledI, LOW); // turn the LED off by making the voltage LOW digitalWrite(ledL, HIGH); // turn the LED on (HIGH is the voltage level) delay(50); digitalWrite(ledL, LOW); // turn the LED off by making the voltage LOW digitalWrite(ledO, HIGH); // turn the LED on (HIGH is the voltage level) delay(50); digitalWrite(ledO, LOW); // turn the LED off by making the voltage LOW
digitalWrite(ledV, HIGH); // turn the LED on (HIGH is the voltage level) delay(50); digitalWrite(ledV, LOW); // turn the LED off by making the voltage LOW
digitalWrite(ledE, HIGH); // turn the LED on (HIGH is the voltage level) delay(50); digitalWrite(ledE, LOW); // turn the LED off by making the voltage LOW digitalWrite(ledY, HIGH); // turn the LED on (HIGH is the voltage level) delay(50); digitalWrite(ledY, LOW); // turn the LED off by making the voltage LOW digitalWrite(ledo, HIGH); // turn the LED on (HIGH is the voltage level) delay(50); digitalWrite(ledo, LOW); // turn the LED off by making the voltage LOW digitalWrite(ledU, HIGH); // turn the LED on (HIGH is the voltage level) delay(50); digitalWrite(ledU, LOW); // turn the LED off by making the voltage LOW delay(1000); }
|
|
|
|
|
9
|
Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why?
|
on: February 11, 2013, 08:23:55 pm
|
Hey the delay is just the default blink I was going to slim it down but was halted in the code development! My wife would fall asleep LOL The last two lines is what I was having issues with. Dunno why I didn't copy them in first! int ledI = 13; int ledL = 12; int ledO = 11; int ledV = 10; int ledE = 9; int ledY = 8; int ledo = 7; int ledU = 6;
void setup() { pinMode(ledI, OUTPUT); pinMode(ledL, OUTPUT); pinMode(ledO, OUTPUT); pinMode(ledV, OUTPUT); pinMode(ledE, OUTPUT); pinMode(ledY, OUTPUT); pinMode(ledo, OUTPUT); pinMode(ledU, OUTPUT); }
// the loop routine runs over and over again forever: void loop() { delay(100); digitalWrite(ledI, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(ledI, LOW); // turn the LED off by making the voltage LOW delay(3000); // wait for a second digitalWrite(ledL, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(ledL, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledO, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledO, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledV, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledV, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledE, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledE, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledY, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledY, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledo, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledo, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledU, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledU, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledI, ledL, ledO, ledV, ledE, ledY, ledo, ledU, HIGH); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledI, ledL, ledO, ledV, ledE, ledY, ledo, ledU, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }
|
|
|
|
|
11
|
Using Arduino / Project Guidance / Can't write multiple pins HIGH why?
|
on: February 11, 2013, 07:32:55 pm
|
Here is my code: int ledI = 13; int ledL = 12; int ledO = 11; int ledV = 10; int ledE = 9; int ledY = 8; int ledo = 7; int ledU = 6;
void setup() { pinMode(ledI, OUTPUT); pinMode(ledL, OUTPUT); pinMode(ledO, OUTPUT); pinMode(ledV, OUTPUT); pinMode(ledE, OUTPUT); pinMode(ledY, OUTPUT); pinMode(ledo, OUTPUT); pinMode(ledU, OUTPUT); }
// the loop routine runs over and over again forever: void loop() { delay(100); digitalWrite(ledI, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(ledI, LOW); // turn the LED off by making the voltage LOW delay(3000); // wait for a second digitalWrite(ledL, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(ledL, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledO, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledO, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledV, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledV, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledE, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledE, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledY, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledY, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledo, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledo, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second digitalWrite(ledU, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for a second digitalWrite(ledU, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } I then wanted the led I, L, O, V, E, Y, o, U to write high and tried to use digitalWrite but it errored on me. What should I use in its place? Thanks
|
|
|
|
|
12
|
Using Arduino / General Electronics / Re: Need help populating Arduino r3 proto shield.
|
on: November 20, 2012, 07:36:35 am
|
|
James,
So it looks like I can continue on with my proto board bootloader installation shield to burn the bootloader but in order to install a program on the new chips I still have to remove the ATmega from the Arduino.
Could you steer me in a direction of reading about how to program any chip without an arduino platform?
Lance
|
|
|
|
|
15
|
Using Arduino / General Electronics / Re: Need help populating Arduino r3 proto shield.
|
on: November 19, 2012, 08:20:35 pm
|
|
James,
I purchased about five ATmega328's that has a blank bootloader. Then I wanted to avoid pulling the arduino's ATmega out to program the chips 1-5. Figured I would create this shield to burn the bootloader as well as burn the program I wanted to use that chip(1-5) for. I.E. the 4x4 cube present, or the relay box I have. I guess what I have created is JUST the bootloader shield NOT a full on programming shield.
Lance
|
|
|
|
|