Star Trek into Darkness: Klingon heavy disruptor [electronic help needed!]

No the Cree/internal led (whichever I choose) keeps 'breathing' at the moment. Also, like this?

void setup()
{
pinMode(button,INPUT_PULLUP);
pinMode(button, INPUT);
analogWrite(cree, 0);
}

??

- - - Updated - - -

Oh my god... that 10K resistor that propmaster used, seems to work. Give me a moment!
 
No the Cree/internal led (whichever I choose) keeps 'breathing' at the moment. Also, like this?

void setup()
{
pinMode(button,INPUT_PULLUP);
pinMode(button, INPUT);
analogWrite(cree, 0);
}

??

- - - Updated - - -

Oh my god... that 10K resistor that propmaster used, seems to work. Give me a moment!

Yeah...I think PULLUP should be after pinMode(INPUT) instead of before...not sure what exactly is in those macros. The external resistor is exactly the same idea; basically is a trade-off whether you trust your soldering or your coding more!
 
IT WORKS. IT WORKS PERFECTLY! I'm uploading a video as we speak. THANK YOU SO MUUUUUCH.. o hman just in time for this weekend! :D

I'm going to blow them away. Hopefully
 
YOO HOO!!!

I moved the pinMode(button,INPUT_PULLUP); statement as well and it worked here as well.
I modified my code to reflect this change.

Can't wait to see the video!!

Nice going.
 
Last edited:

Here it is. Working and all! I love you guys so much for this. For a while I thought I had failed and was an utter *******. But thanks to you it works and I didn't screw up as much as I thought I did. Thanks!
 
Last edited by a moderator:
Niiiice.

Remember, you can tweak how long the fade takes by changing the delay() statements in the loop.

The one quibble I have is that the fade is non-linear -- but actually, the way it is should give a better tail. Basically, you'll see almost no change over the first 20-30% of the fade, and then the LED will still be visibly on all the way down to the last couple of loops.

Incidentally, the loop debounces the button; since the Arduino is locked up doing the fade loop, it doesn't care what the button gets up to during that interval.

Just saw the video, and that looks durn near perfect for the rate and fade curve. congrats!
 
Congratulations :) . It looks and works just PERFECTLY ;) . In my opinion the fade is just right, don't change anything. A hint about diffusing the light , with lightsabers with a single mounted led like yours we use clear cellophane wrapping , it is the stuff they use to wrap flowers, a few layers will diffuse the light to the sides of the cannon and get more light up the barrel . Just a hint from an old fart like me :darnkids

1 last thing , how warm/hot does the led star get ?
 
Not very hot. I'll check tomorrow. But seeing as it's only on for a few seconds, I figured it doesn't get the time to heat up. But I'll check anyway.


Sent from my iPhone using Tapatalk
 
Not very hot. I'll check tomorrow. But seeing as it's only on for a few seconds, I figured it doesn't get the time to heat up. But I'll check anyway.


Sent from my iPhone using Tapatalk

try the 1 blast/fade cycle ,, feel it, then 2 cycles and so on till it gets very warm to the touch at that point, you have demoed it enough or your arm is tired of holding it up . Anyway an excellent job, I humbly bow to your sculpting abilities ;) .
 
There's not much sculpting going on there though. If it did, it may have looked a bit better.


Sent from my iPhone using Tapatalk
 
try the 1 blast/fade cycle ,, feel it, then 2 cycles and so on till it gets very warm to the touch at that point, you have demoed it enough or your arm is tired of holding it up . Anyway an excellent job, I humbly bow to your sculpting abilities ;) .

hah, it's no use. After it fades out, the temperature is already going down. I've been pushing the button 20 times non stop and the temperature barely rises.
 
DxsS2bul.jpg


Here's a pic of me on stage. I won 'best individual in movies & sci-fi'. Hell yeah!
 
Back
Top