Show Posts
|
|
Pages: [1]
|
|
1
|
Using Arduino / LEDs and Multiplexing / is arduino uno r3 feasible enough to make a 8x8x8 led cube?
|
on: October 14, 2012, 10:24:47 pm
|
|
I've read some online post on shift registers and find out each shift resigster like 74HC164N controls 8 leds, while 3 pins are used on arduino uno. so if i build a 8x8x8 led cube, that would require a total of 72 pins to control them. in this case, i can only use up to 4 shift registers because arduino uno have to give 3 pins to each shiftregister. and 4X8 is only 32 ouputs.
|
|
|
|
|
2
|
Using Arduino / LEDs and Multiplexing / is arduino uno r3 feasible enough to make a 8x8x8 led cube?
|
on: October 14, 2012, 10:24:31 pm
|
|
I've read some online post on shift registers and find out each shift resigster like 74HC164N controls 8 leds, while 3 pins are used on arduino uno. so if i build a 8x8x8 led cube, that would require a total of 72 pins to control them. in this case, i can only use up to 4 shift registers because arduino uno have to give 3 pins to each shiftregister. and 4X8 is only 32 ouputs.
|
|
|
|
|
10
|
Using Arduino / Programming Questions / Re: how can i fix the following code?
|
on: October 07, 2012, 01:53:31 pm
|
|
int led1=13; int led2=12;
int led1state=HIGH; int led2state=LOW;
void setup() { pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); }
void loop() { digitalWrite(led1,led1state); delay(1000); digitalWrite(led1,led1state=LOW); delay(1000); if (led1state=LOW) { led2state=HIGH; digitalWrite(led2,led2state); }
}
here is the new code, i still don't know why it doesn't work.
|
|
|
|
|
11
|
Using Arduino / Programming Questions / how can i fix the following code?
|
on: October 07, 2012, 01:45:24 pm
|
|
int led1=13; int led2=12;
int led2state=LOW;
void setup() { pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); }
void loop() { digitalWrite(led1,HIGH); delay(1000); digitalWrite(led1,LOW); delay(1000); if (led1==LOW) {led2state==HIGH;} }
i am trying to write code that when one led is on the other becomes off, and vice versa.
|
|
|
|
|