chilloutdocdoc wrote:They're charlie-plexed, only one of them is ever on at a time, I recall him in chat saying he was running them at less than 20mA each.
You can have more than one on at a time with charlie-plexing - at least 7 that I can see...?
You are correct I could have 7 on at one time. However the firmware is written that only one is ever on at one time.. Plus as Josh stated I didn't have 51Ohm resistors so I originally used 100Ohm which left the LED's running at 9.5ma.. and still plenty bright enough..
wwwgator - If you look at the firmware it tells you what pins are that I used and the order that they fire.. So below the first LED to fire would be Pin3 to Pin13.. If you follow the colored diagram it's exactly how i wired it.. and once you kind of look at how it's done it's really kind of easy.
;1 = RA4 (Pin3)
;2 = RA0 (Pin13)
;3 = RA1 (Pin12)
;4 = RA2 (Pin11)
;5 = RC0 (Pin10)
;6 = RC1 (Pin9)
;7 = RC2 (Pin8)
;8 = RC3 (Pin7)
;
;1-2 Done;1-3 Done;1-4 Done;1-5 Done;1-6 Done;1-7 Done;1-8 Done
;2-3 Done;2-4 Done;2-5 Done;2-6 Done;2-7 Done;2-8 Done
;3-4 Done;3-5 Done;3-6 Done;3-7 Done;3-8 Done
;4-5 Done;4-6 Done;4-7 Done;4-8 Done
;5-6 Done;5-7 Done;5-8 Done
;6-7 Done;6-8 Done
;7-8 Done
Great job. I am impressed. I'm thinking, maybe next year I will make some. This year budget is already spent, and then some.
Really nice job.
Oh and thanks for the video. That really shows how well it works.
chelmuth wrote:IIdeally I'd like to get it to a point where there are a few configurable options in the firmware such as setting a flag for maybe a "dimming tail" or other ideas. I'd like some input on the software and if possible some help with the code. I'm 1 week into learning assembly, so I know I've got a ways to go.
Corey:
And I absolutely stink at ASM, so I can't be of much help to you there.
I've just spent some time at YT and V looking at videos of snowfall tubes and what I find different about yours is that you're lighting only one pair of LEDs at a time, while most of the others light a larger swath of LEDs.
Also, other tubes seem to ramp-up to full on and then ramp down to off the swaths as they descend; is this the "dimming tail" you mentioned above?
Lastly, yours seem to be rather slow compared to others that are out there.
I think I'd want to build these as only 12- or 14-inches long ... would there be a provision to have a shorter length?
Thanks so much for taking the time and energy to work on this.
\dmc
Just a change in the delay routing could make it faster.. currently i have it set to decay so that it falls slower as it gets lower. I had a discussion yesterday that someone thought it should go faster.. I could probably put a setting in there that if you put a 1 in before compiling it would speed up or a 0 would make it slow.. those are kind of the configurable options i was looking for having.. If you wanted shorter yeah you could make it shorter length.... just use less pins and remove the un-used pins from the code..also this was my first attempt and I could probably make it about 5" shorter just by having the LED's closer together also.. It's completely possible. I had just planned on around 24" as I was going to cut the tubes mentioned earlier in half (4') or quarters (8').. Yes the dimming tail was what i was refering to as far as the ramp-up you mention. That would require a re-write of the code that I'm not quite up to that skill level yet. It needs to have some sort of software PWM implemented and I have yet to find a good example that I've been able to hack apart and put into that and I'm not completely comfortable with the interrupt routines which would be required. Which is why i was hoping someone with a little more coding experience could help with. I was just laying the ground work and idea for innexpensive tubes. Currently they should be less than 10$ per tube.. yes they require some work but that's the fun part.
