Pages: [1]   Go Down
Author Topic: 5 PWM's on, but nothing  (Read 301 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i am using PWM on pins 3, 5, 6, 9, and 10 to control transistors that turn on the ground to my layers on my 5x5x5 LED cube. when i use analogWrite(pin, 255) for all of the 5 PWM pins that i am using, it gives me nothing. its like it cannot use 5 PWM pins at the same time. i have no problem when i have 4 of the pins set to 255 at the same time, but 5 gives me issues. like the LEDs simply do not turn on at all. i think i see a little ghosting when this happens,too, but it is not bright like it is supposed to be. what is wrong? is it something wrong with my setup? any help is appreciated! thanks!
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i now have no clue what is going on. i am at a complete loss. i plugged the arduino into a 1.5amp usb port. then everything turn on and the code worked perfectly, but there was an insane amount of ghosting. what is up? i am powering the LEDs from a 5v wall wart and i am using resistors to limit it to 3v. why is the arduino's power affecting the transistors(which is turning the LEDs on and off)?
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok, so the ghosting only occurs when LEDs are not on and is proportional to how many and how bright those LEDs are. when i have 2 layers on at full brightness there is no ghosting on the layers that are off. when i have 1 layer of LEDs on at a low brightness, there is a ton of ghosting. how bad the ghosting is is absolutely proportional to how many LEDs are on and how bright they are. both brightness and amount of LEDs on are factors in how much ghosting there is. and now when i plug this into a regular(500ma) usb port, it barely lights up. i am starting to think this has nothing to do with code. i think it is a hardware issue.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sorry to like completely spam this, but i keep finding new information. now i have noticed that while the ghosting is REALLY bad, it is easy to get disappear. only one layer of LEDs at full brightness and it is gone. but one layer a half brightness and it is still really bad. again, i am sorry to keep posting, i am just trying to post the most recent and up to date info i have. i would really appreciate some help, but i may need to move this to another section now that i think this has nothing to do with the code. should i move it?
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, don't do that. You are in danger of being banned for spamming, I wouldn't add cross-posting to the list.

Read this before posting a programming question

I suggest posting your code, a schematic, and possibly a photo.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If it turns out to be hardware, I can move the thread.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sorry for all of this. i am sorry for spamming, i did not know it would be a problem since i am the one who started the thread. it turned out to be because the arduino was not properly grounded. i connected the ground of the arduino to the ground from the wall wart and it fixed the problem. guess it could not sink enough current into a normal usb port. or whatever; i am not really sure. again, i am sorry. i was not aware i could get banned for spamming my own thread.

edit: also, should i just delete this thread? it was a stupid mistake and i fixed it on my own. but it may help somebody else down the road having the same issue i was. just a thought.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Leave it, thanks. It may help other people in the future. smiley
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok. will do.
Logged

Pages: [1]   Go Up
Jump to: