Page 15 of 25

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 26th, 2018, 3:03 pm
by CountDeMonet
It doesn't look like you have soldered the headers to the arduino. That could be one of the issues here. Anywhere in the circuit you could have missed connections because of that. I would get those soldered first then try it again. Other than that all of the wiring looks good to me

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 26th, 2018, 3:21 pm
by Obrion31
Sounds good. I’ll try and get that soldered up and see what happens.

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 26th, 2018, 4:04 pm
by Octafternoon
that light should be green that’s a ground issue check your jewel

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 26th, 2018, 4:09 pm
by Obrion31
The light on the actual nano board? Before even hooking anything up it’s all ready that colour.

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 26th, 2018, 5:20 pm
by Octafternoon
On my nano it’s green and when I get a red led it tells me something has crossed and grounded out

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 26th, 2018, 5:29 pm
by Octafternoon
It’s hard to tell but almost looks like from your picture that Din and power are switched going to your jewel it looks like your red wire is in the middle

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 26th, 2018, 7:06 pm
by Obrion31
Yes, the wires aren’t properly colour coded. Orange is acting as the positive, red is negative, and brown is the data signal. It’s just the way the ribbon cable ended up. These are the Led’s I went with: https://www.adafruit.com/product/1312

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 26th, 2018, 9:00 pm
by Veeb0rg
The led on my nano is also red and everything works fine.

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 27th, 2018, 10:18 am
by Obrion31
Hey everyone, I soldered my connections to the board and plugged it in this morning and everything is working now. I'll try to upload a photo once I have it installed in my son's pack.

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 27th, 2018, 12:16 pm
by CountDeMonet
Glad to hear you got it sorted. I usually have one arduino with the headers for prototyping. Since they come in a 3 pack I determine if I'll use the board directly or use connectors later on one of the other boards.

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 29th, 2018, 6:36 am
by Octafternoon
Hey count I seem to have a problem with the code . Do the cyclotron lights go into a different sequence if a LED is out? There doing a all fade in and out when gameled is true and standard is false here is a video https://youtu.be/ZEiWaF1fLFg

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 29th, 2018, 7:46 am
by CountDeMonet
That is extremely odd. What does it do if you change

useGameCyclotronEffect =false;

If an led goes out I would expect everything else in the chain to fail. The lights look like they are being commanded to do that. Which ino did you flash the Arduino with

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 29th, 2018, 8:31 am
by CountDeMonet
One more question. What did you use for the cyclotron lights? Are those individual neopixels or the 7 led neopixels jewels. If you used individuals then you will need to modify the code a little to change the led locations.

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 29th, 2018, 9:01 am
by Octafternoon
Individual NeoPixel not sure what you mean by flash? The only thing I changed was led numbers in the code. On the neo stick a light went out so I changed it to skip 2 leds in it if that makes sense. When I set it to false it’s a slower fade of only red no yellow

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 29th, 2018, 9:47 am
by Octafternoon
Original
const int c1Start = 16;
const int c1End = 22;
const int c2Start = 23;
const int c2End = 29;
const int c3Start = 30;
const int c3End = 36;
const int c4Start = 37;
const int c4End = 43;
const int ventStart = 44;
const int ventEnd = 47;
What I changed
const int c1Start = 15
const int c1End = 21
const int c2Start = 22
const int c2End = 28
const int c3Start = 29
const int c3End = 35
const int c4Start = 36
const int c4End = 42
const int ventStart = 443
const int ventEnd = 48

I only changed this to skip the broken led so all the cyclotron lights would work if I didn’t all lit up except the bottom right or the last led

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 29th, 2018, 10:31 am
by Octafternoon
Oh Adafruit 16mb trigger fxsound board was/ogg

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 29th, 2018, 11:20 am
by CountDeMonet
When you upload the code to the Arduino that's called flashing.

Those numbers are led indexes in the chain. What is happening is that all 4 of your LEDs in the cyclotron are basically showing the 1 animation. Assuming you have them wired after the stick I think the indexes should look like this

const int c1Start = 16;
const int c1End = 16;
const int c2Start = 17;
const int c2End = 17;
const int c3Start = 18;
const int c3End = 18;
const int c4Start = 19;
const int c4End = 19;
const int ventStart = 20;
const int ventEnd = 23;

They may be 1 off. I don't have the ability to test right now

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 29th, 2018, 1:04 pm
by Octafternoon
Ok I’ll try switching around those numbers and see what happens thanks man

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 30th, 2018, 7:37 am
by Octafternoon
working great now original you had it offset by 1 but since i had a led light out on the neopixel stick just backed those numbers by one and works great
const int c1Start = 15;
const int c1End = 15;
const int c2Start = 16;
const int c2End = 16;
const int c3Start = 17;
const int c3End = 17;
const int c4Start = 18;
const int c4End = 18;
const int ventStart = 19;
const int ventEnd = 22;
thanks so much

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: September 30th, 2018, 1:12 pm
by CountDeMonet
Cool. Glad you got it working!

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 3rd, 2018, 1:08 am
by TheLegendOfMart
I made my own Arduino code and I want to reduce the amount of wires coming from the bar graph which is 13.

I saw the Sparkfun Extender in your code and I want to make sure it is as simple as I think it is going to be.

My animations are based on milis and each led has its own pin. Assuming it is configured correctly in the header all i would have to do is change digitalWrite(1, HIGH) to io.digitalWrite(SX1509_BAR_01, HIGH); ???

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 3rd, 2018, 5:44 am
by CountDeMonet
My animations are coded the same way. It really is that easy.

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 3rd, 2018, 5:55 am
by TheLegendOfMart
Brilliant thank you!

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 7th, 2018, 10:44 am
by Coover5
I have a complete pack built by Vincenzo330 which I'm very content with but there is one change i'd love to make. I'd love to add a flashbulb to cover my barrel lights. The pack was built in 2012 and the only option then was for real flashbulbs and I knew the glass wouldn't make it. I was hoping to find 3D plans that include replicating a flashbulb but I haven't seen any (or I missed the part in the many parts that make up the wand) Are there any plans that include the flashbulb?

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 12th, 2018, 2:41 pm
by Shiroppi
@CountDeMonet , im using your code for upcoming foam pack and wondering if is it possible to add a relay module for vent ?

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 12th, 2018, 3:05 pm
by CountDeMonet
Sure you can easily do that. There are still empty pins on the nano if you are using that and a relay only takes one pin from the arduino. Then you could easily add a new check in the loop to see if venting is true and if it is just digitalWriting high and low to the relay pin to do whatever you want. Pretty simple actually.

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 12th, 2018, 3:23 pm
by Shiroppi
for someone who cant code at all , mind giving a little help ? xD

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 12th, 2018, 3:45 pm
by CountDeMonet
Its a little coding in the blind but there is not much to it. Basically you need to define what pin will be used. 13 is still available so at the top of the file where all of the pins are being defined add one for the vent

bool isRelayVenting = false; // remember what state the relay is in
const int VENT_RELAY = 13; // pin on the arduino relay is connected to

Then you have to tell the arduino what to do with that pin. This happens in the Setup() function and you would just add the following two lines anywhere in there

pinMode(VENT_RELAY, OUTPUT);
digitalWrite(VENT_RELAY, HIGH);

This configures the pin for talking to the relay and then turns the relay off. Note: some relays use logic low for activation so for this demo let's set to high to turn the relay off. Then at the bottom of the Loop() function you could add something like this

if( venting == true && isRelayVenting == false ){
digitalWrite(VENT_RELAY, LOW);
isRelayVenting = true;
}else if ( venting == false && isRelayVenting == true ){
digitalWrite(VENT_RELAY, HIGH);
isRelayVenting = false;
}

I am pretty sure that is all that there would be to it but I don't have a relay to test.

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 12th, 2018, 3:55 pm
by Shiroppi
many thanks ! i will let u know when i tried it .

Re: 3D printed Neutrino Wand and Proton Pack with Arduino lights and sounds

Posted: October 13th, 2018, 1:31 am
by NotSabbat
Ha! exactly what I need for my build as well :D