HELP...Ghostbusters proton pack
bullwinkle777
Posts: 3
Hello everyone,
I need some help. I'm new to the Propeller chip and programming. I'm trying to program the lights for a buddys Proton Pack. A few years ago I did the lights and sound fx for it using a 555 and a 4017 for the lights and a small sound chip for all the fx, but I'm wanting lower the amount of batterys he has to use, plus the propeller is much more cooler! It uses less power and you have more control over the project. You can see it on YouTube if you search "brettfields", it's labeled "My ghostbusters proton pack with lights and sound" so you can have an idea as to what I'm trying to do.
I have the code writen, but I have a feeling that its too long and a bit messy because it keeps freezing up on me. It will start back up on it's own, but I know that it shouln't be doing that.
I was hoping that someone here could give me a hand on cleaning it up. I'm new to this and don't know what I need to do.
I have attached the file if anyone has the time to help me out. I would be forever thankful. I would also like for the first part of "Routine_3" to be interupted when the button is pressed. Right now it finishes it's cycle before changing and I have no idea how to get it to do that.
Thank you again!!!
I need some help. I'm new to the Propeller chip and programming. I'm trying to program the lights for a buddys Proton Pack. A few years ago I did the lights and sound fx for it using a 555 and a 4017 for the lights and a small sound chip for all the fx, but I'm wanting lower the amount of batterys he has to use, plus the propeller is much more cooler! It uses less power and you have more control over the project. You can see it on YouTube if you search "brettfields", it's labeled "My ghostbusters proton pack with lights and sound" so you can have an idea as to what I'm trying to do.
I have the code writen, but I have a feeling that its too long and a bit messy because it keeps freezing up on me. It will start back up on it's own, but I know that it shouln't be doing that.
I was hoping that someone here could give me a hand on cleaning it up. I'm new to this and don't know what I need to do.
I have attached the file if anyone has the time to help me out. I would be forever thankful. I would also like for the first part of "Routine_3" to be interupted when the button is pressed. Right now it finishes it's cycle before changing and I have no idea how to get it to do that.
Thank you again!!!
Comments
below is the code how I would do it
if everything is cleaned up it looks like this
best regards
Stefan
You might also take a look at Kye's LED object as it has a few more features you could probably take advantage of for this project.
How about posting a picture of your project? Here's mine. I haven't added the LEDs yet. (Shame on me)
Jeff
way cool design ! If you aren't a puristic retro-man how about adding sound?
Especially a voice in robotic style saying "cage-energy down at 10% breakdown in 30 seconds"
or "he slimed me!" or any other famous sentence from the film (don't remember them. 1985 is too long ago)
best regards
Stefan
P.S.: Edit:OMG these guys spoke a detailed description of the proton-pack into a STARTREK replicator beamed it back through time into history
and voila: there it is the original proton-pack. http://www.youtube.com/watch?v=0Mzs023Lcbw
I wasn't in a hurry to get the audio done as it needs to be uncomfortably loud where this prop is used. (An outdoor parade). I've got the .wav file of the proton pack startup. If I can find a way to get it loud enough to "feel real" and still walk the parade route, it'll be added by next year.
Jeff
I do a lot of LED lighting control for high-end projects built by Hollywood FX and creature creator, Steve Wang. Have a look in these threads
-- http://forums.parallax.com/showthread.php?126553-Propeller-Powered-Starcraft-II-Marine
-- http://forums.parallax.com/showthread.php?134092-Hollywood-Fun-With-Propeller-powered-LEDs
-- http://forums.parallax.com/showthread.php?142149-Big-Hollywood-Fun-with-LEDs
What I tend to do is use a PWM controller for so I can have brightness levels (Steve likes undulating lights). The main loop launches the animations I want to run and then blends them together as required. We do the blending so that if we want to mix two animations on the same set of lights we can (for example, lightning simulation running over the top of a normal undulating pattern). I've attached fairly simple demo (will run on a Demo or QuickStart board) to show you the structure I use in my LED animation programs.
I found one problem....I'm an idiot....I uploaded the wrong file, I forgot to save the one I was working on before I uploaded it so it uploaded an older file.
I did make a few chnges that Stefan said need done, Thanks!!!
And JonnyMac, I think I'll use you code for the 4 red leds, Thanks!!!!
Here is link to the pack I did the lights and sounds for.
http://www.youtube.com/watch?v=imCLmomCoqw
Here is right code....
Thanks again guys!!!!!
BTW... you don't need such big stacks as your routines do not call others -- 16 longs for each will be plenty.
Another tip: When multiplying or dividing by powers of two (2, 4, 8, 16, etc.) using shift operators is faster/more efficient. Instead of:
...I would do this:
I'm just learning this coding stuff, I always just used hardware to get things to do what wanted. This is much more fun and uses less space!
Thank you to everyone that help!