I've been following this thread for a long time, and am happy to see people still posting. Figured I would post my latest, since it's based on Jakesoft's OP. LED string blade is coming along, and I'm starting work on the hilt. The biggest progress I have made is the electronics. After doing some testing, and ordering parts (still need more parts...) here is what I did.I designed a board, and had it made. 1st try at this, and it shows. It works, and now I just need to solder IC sockets and connect wires. Nothing special, but not bad for a prototype.
I have been seeking full Arduino code for lightsaber. all I see all your file is random code and I couldn't understand how to put it together at all. this pic below is what connected right now without mos regulator. but I have step down dc to dc inverter. I have 5 file loaded to wt588d-u for 00h file for one line mode (001 lightsaberpulse.wav, 002 ltsaberswing05.wav, 003 ltsaberhit01.wav, 004 ltsaberon01.wav, 005 ltsaberoff01.wav). is there any way how I code Arduino for this design I have now? thanksrob http://forum.arduino.cc/index.php?topic=261980.105
Welcome!Your setup sounds very similar to what I used for my Mk. III saber. The only difference is that I used the 16-pin version of the WT588D. I did not experience the same issue you describe, however I seem to recall others saying they have. Maybe I just got lucky. What kind of battery are you using?
One possibility is that you have an EMI problem with the power to your ADXL335 where having the sound active is introducing noise and causing your readings to go crazy. To test this, try adjusting the volume of the sound to a really low number while monitoring your sensor and see if the readings level out. (use the SetVolume() function on the WT588DSoundPlayer). If the readings become stable at low volume, you may need to introduce a decoupling capacitor somewhere in your circuit to smooth out power delivery.
All your questions are answered if you are willing to research this site: https://github.com/Protonerd/FX-SaberOS
Hey, that's pretty cool. It's a brew-board for my original design! There was a guy "Canobi" who did something similar quite some time ago. (I'm not sure what happened to him or his inventions; we haven't heard from him in a long time.)Does your board assume 3-wire or 1-wire serial for the WT588D? What are you using for the software? It's exciting to see some new stuff.
Have any of you guys thought about how can smooth swing be implemented with Arduino?
A number of us have looked at various ways to do this with both hardware and software, but I don't think anyone has done it with an atmega328p based setup. It would also take some wizardry to do with the external sound chips we typically use. The best options revolve around using more advanced chips. There is some development being done currently on nRF52 based and ESP32 based saber boards. Nothing is currently publicly available for those yet though.