Go Down

Topic: Arduino Lightsaber (Read 474200 times) previous topic - next topic

JakeSoft

#825
May 04, 2016, 01:53 am Last Edit: May 04, 2016, 01:54 am by JakeSoft
oh okay thank you for the confirmation lol. I'm assuming it's basically like the original one except with the one new  sensor?
Yes, the Mk. IV is very similar to the Mk. II wiring-wise, just with the ADXL335 X,Y,Z outputs wired to analog inputs on the Pro Mini or Nano.

MrLaTtEa

Yes, the Mk. IV is very similar to the Mk. II wiring-wise, just with the ADXL335 X,Y,Z outputs wired to analog inputs on the Pro Mini or Nano.
okay so now instead of it being one switch does the  ADXL335   XY and Z go wired into one port on pro mini,or multiple ports? And is the coding been modified to use this  sensor?  I'm really new to this whole experience and I'm trying to learn as much as I can. How did reading back-and-forth through this whole thread the past couple days. My daughter six birthday is coming up and she's been dying to build a light saber together.  I'm trying to find the most affordable way to make this build and to make it look and feel higher quality than just grabbing LEDs and plastic Pipe from  Home Depot.

JakeSoft

#827
May 04, 2016, 02:46 am Last Edit: May 04, 2016, 03:04 am by JakeSoft
I also prudently bought one myself and tested. It has 8M flash. Well, this is not tremendous, barely enough for 1 full sized sound font with hum-extension. With 16M it would be better I guess, and this also would give some motivation to try to reduce hum-extension and put some more effort into hum-relaunch.

On the very positive side this module is smaller than the SD-card version AND worked with my WIN10 first time right. Plug in, copy the files, attach to Arduino the same way as the SD-version, and voila it works (I have a simple sketch which just plays the sounds one after the other in the same order they are present on the whatever-is-used-to-store-them media). Actually - I was caught unprepared - it worked without any modification of the code...I though that I need to specify to the chipset whether it should play from SD or Flash, but it can actually device on its own (the WT5001 could not, that is why I mention).
I'm sad to report that mine seems to be defective. I uploaded some sound files and it seems to crash shortly after playback starts. It sounds like a big farting sound until playback ends. Really disappointing.

Scratch that. The batteries I'm using for testing must be getting low. Switched to drive my 5V regulator with 9V instead of 6 and suddenly it started working. This is going to be tricky. Seems to require more amps than the WT as those same batteries and regulator were driving that system just fine.

JakeSoft

okay so now instead of it being one switch does the  ADXL335   XY and Z go wired into one port on pro mini,or multiple ports?
It requires multiple pins: one for each axis. In reality, you could get a workable solution with only two of them, but I wired all three.

And is the coding been modified to use this  sensor?  
Oh my, yes. And it's hard to get right. The code to work with the ADXL335 doesn't even resemble the code for swing detection with the simple swing sensor.

I'm really new to this whole experience and I'm trying to learn as much as I can.
I've said this many times before, but I'll say it here again. If you are new, jumping right into accelerometer programming is a bit like jumping onto a motorcycle before you've learned to ride a bicycle. Get something simple working first, then build up from there. If you use the Universal Saber library that I posted some time ago in this thread then you'll find everything you need to make a saber with swing and clash sensors. All the low-level processing is done for you, you just have to put it together like building blocks.

My daughter six birthday is coming up and she's been dying to build a light saber together.  I'm trying to find the most affordable way to make this build and to make it look and feel higher quality than just grabbing LEDs and plastic Pipe from  Home Depot.
A noble cause. Best of luck. Share your results, we love seeing that stuff around here!

stinky1

Man its really confusing, there were like 8 versions before the one that is linked to.  I am using the
V7 when the author put in the code for color selection,  that one was perfect for me. 
Then they went to to version you have to put ahh what is that program,  JAVA on,  well I use win98
so who knows if that older version they stopped supporting would work with the newer type upload
and Language.
  The code looks very different in the current version,  I am glad I saved every version 1-8 of the
older one!!!
Actually now,  making the handle is gonna be hard.  All the parts are sold out at the Custom Saber shop.
I was gonna get an adapter and use a sink tube,  but think I might just use Iron Pipe and fittings lol!
Sink tube might be possible,  but I will have to find a metal collar to hold the blade and I can thread.
Think regular smooth 1" pipe fits inside the 1.25 kitchen sink.   Anyone who knows how to fit holder and
pipe and light together chime in please!

JakeSoft

#830
May 07, 2016, 11:03 pm Last Edit: May 08, 2016, 02:41 am by JakeSoft
Man its really confusing, there were like 8 versions before the one that is linked to.  I am using the
V7 when the author put in the code for color selection,  that one was perfect for me. 
Then they went to to version you have to put ahh what is that program,  JAVA on,  well I use win98
so who knows if that older version they stopped supporting would work with the newer type upload
and Language.
  The code looks very different in the current version,  I am glad I saved every version 1-8 of the
older one!!!
Versions of what? Are you talking about Lightsaber OS? If so, that's mostly discussed in this thread: (http://forum.arduino.cc/index.php?topic=361566.0).

JakeSoft

Here is a new drop of the Universal Saber library. It was few late nights, but I added support for the DFPlayer modules that Protonerd uses in his setup (Click here to see his thread). This module was also referenced previously in this thread in post #759.

It *should* work with the DIYino boards since that board houses the same chip-set. I haven't stress tested this in an actual saber, but it seems to work fine on my breadboard with the module that I have.

Usage of the new DFPlayerSoundPlayer class is damn near identical to the WT588DSoundPlayer that was added in the last drop of the library, which was kind of the point. Dispite that, I made sure to include an example sketch showing how to use the new class. Just open examples as usual from the Arduino IDE after you have installed the library.

Now you have two sound options that share a common interface. :-)


Canobi

Actually now,  making the handle is gonna be hard.  All the parts are sold out at the Custom Saber shop.
I was gonna get an adapter and use a sink tube,  but think I might just use Iron Pipe and fittings lol!
Sink tube might be possible,  but I will have to find a metal collar to hold the blade and I can thread.
Think regular smooth 1" pipe fits inside the 1.25 kitchen sink.   Anyone who knows how to fit holder and
pipe and light together chime in please!
I may be able to help you in that department but I only have materials for hilts that take 1" blades at the moment.

I have literally meters of 35mm OD 30mm ID UK sink tubing (ours is a wider diameter it seems) and have a couple of items I use as blade seats for it. The pipe reducers for the tubing work great as well as a specific brand of glue stick container which I've been diligently collecting (silver painted one seen top left in the pic below)



Both are a real tight "push fit" for polycarbonate blades, so in most cases, don't need blade retention screws. They've also been field tested in combat sabers I made for my kids a few years ago as Christmas presents (they still have to ask me to remove the blades even now)



I also have a few short lengths of alu stock tubing (working my way up to stainless) in diameters that work with the PVC sink tubing and came up with these lens holder assemblies:





Giant high volt PCB spacers made from nickel plated brass are the heatsink extension as it adds a nice bit of waight. Handily, they already have a hole running through the centre for passing the wires through (I use silicone wire for my LEDs as the coating is rated for temps upto 400°C and is far more flexible and less prone to snapping than standard wire) and the LED's star heatsink sits directly on top of that with a little heat transfer compound in between.


The tubing used for the lens housing is 22mm ID 25mm OD so the assembly can double as a blade stop for setting the seat depth. The seat itself I use in sections, or as the main body of the hilt which I then sleeve with increasing diameters of tubing to reach the desired hilt OD.

delta1

Hi, all. I used an Arduino Pro Mini 3.3V and a WT588d to create a custom sound board and LED controller for my lightsaber. I love this little board. Special thanks to SugarBombs for sharing his working code for the WT588d module! http://forum.arduino.cc/index.php?topic=227435.0 That really saved me some trouble.

Here are video and pics.


Core IC components: Arduino Pro Mini 3.3V, WT588d sound module, some small MOSFETs, and a 5V regulator.


Components mounted on some perf-board and inside the hilt.

And here is a video of it working:
http://youtu.be/3PacAFmnF_8

Update 1-29-2016:
If you are interested in building your own, please read this thread in its entirety before posting questions. You will find that it is a trove of useful information. Most common questions have already been answered.
Hello anyone, can somebody suggest me exactly what mosfets and 5V controller to use? I can't read the specs on the picture as they are too small.

Any help is appreciated, thank you in advance

JcBailey

Quote
Think regular smooth 1" pipe fits inside the 1.25 kitchen sink.   Anyone who knows how to fit holder and
pipe and light together chime in please!
Here is my latest saber project. It is not an Arduino( I just robbed some parts from a store bought saber) but, the basic hilt design should work. I used a 1.25" sink drain and soldered a 1.125" metal plug in the end. I made a module to hold the electronics out of 1" and 3/4" PVC. I will be drilling and tapping a hole to hold the emitter shroud and blade. I am waiting on some molding supplies so I can cast the grips and switch area.

Hope this helps and feel free to ask me questions.

Rusty1234

Hi there,

I'm new to this thread, but very impressed with progress shown. I'm trying to tag along, and have bought a WT588U-32 sound card with the USB uploader. However, when trying to upload the sound fonts the USB port fails to connect.

The card apparently has a WT55U02 USB uploader chip but Windows reports "it is most up-to-date" and I can't find an alternative driver anywhere.

Has anyone else encountered this issue? I'm on Windows 10 Pro, 64-bit.

R.

JakeSoft

Hi there,

I'm new to this thread, but very impressed with progress shown. I'm trying to tag along, and have bought a WT588U-32 sound card with the USB uploader. However, when trying to upload the sound fonts the USB port fails to connect.

The card apparently has a WT55U02 USB uploader chip but Windows reports "it is most up-to-date" and I can't find an alternative driver anywhere.

Has anyone else encountered this issue? I'm on Windows 10 Pro, 64-bit.

R.
I am curious about the answer to this. I use Windows 7, but I'm unsure if after I'm eventually forced to upgrade if I'll still be able to use these chips. Has anyone had success with Windows 10 and the WT588D?

Rusty1234

Thinking about it in the wee hours of the night, it might just be that the card is faulty. I'll wait to see if anyone chimes in before sending it back though.


R.

Protonerd

Here is my latest saber project. It is not an Arduino( I just robbed some parts from a store bought saber) but, the basic hilt design should work. I used a 1.25" sink drain and soldered a 1.125" metal plug in the end. I made a module to hold the electronics out of 1" and 3/4" PVC. I will be drilling and tapping a hole to hold the emitter shroud and blade. I am waiting on some molding supplies so I can cast the grips and switch area.

Hope this helps and feel free to ask me questions.
What kind of battery are you using it? From the pics it certainly looks broader than a18650.

Rusty1234

Hi there,

I'm new to this thread, but very impressed with progress shown. I'm trying to tag along, and have bought a WT588U-32 sound card with the USB uploader. However, when trying to upload the sound fonts the USB port fails to connect.

The card apparently has a WT55U02 USB uploader chip but Windows reports "it is most up-to-date" and I can't find an alternative driver anywhere.

Has anyone else encountered this issue? I'm on Windows 10 Pro, 64-bit.

R.
I also found this in the instructions:
"ISP download Online (WT588D download the content directly in the application environment), need keep WT588D module doesn't work, as pull low the RESET of WT88D to connect ground when download, or connect to P17 of WTU02, P17 at low level when download data, high level at ordinary times, thereby can reset the modules when downloadt."

Does this mean that when I am trying to upload the data via USB that I need to set the reset pin of the WT88D to LOW? I would have thought the USB method would do this automatically.

R.

Go Up