DIY Teensy based lightsaber
Problems? Questions? Suggestions? Check out the fx-sabers online forum.
- lightsaber.ino won't compile
- If you haven't modified the program, this is probably my fault. Please contact me at the fx-sabers online forum and let me know what the problem is. You can try an older version while you wait for me to fix it.
- Can't program the teensy
- After you cut the VIN-VUSB pads, the teensy won't power up when you plug in an USB cable anymore, so you'll need to hook up enough of the circuit that you can power the teensy from a battery while programming it.
- If that doesn't help see the Teensy troubleshooting page.
- The serial monitor doesn't show anything
- Make sure you select Serial in the Tools > USB Type menu.
- Try the hello world tutorial.
- Try disabling audio and motion. (Add // in front of #define ENABLE_AUDIO and #define ENABLE_MOTION near the beginning of the file.)
- If you have a TeensySaber V2, make sure that BOARD_MAJOR is set to 2 in the beginning of the file.
- Serial monitor prints things out, but commands don't work
- In the serial monitor window, make sure that the line ending dropdown is set to "Newline".
- It turns off immediately when I turn it on
- The teensy probably thinks the battery is too low. Charge the battery, if the teensy still thinks it's too low, see the next tip.
- Also, teensysaber expects a touch button for the power button by default. Remember to change it to a regular button if you're not using a touch button
- Try "play somefile.wav" in the serial monitor
- The teensy prints out the wrong battery voltage
- In a teensy V1 setup, the a resistor is used to estimate the battery voltage.
The program assumes that this resistor is 23kOhm, if you chose another one you need to
update the program. Find the line that says float pullup = 23000; and update it
with your actual resistor value.
- Sound doesn't work
- Try the "beep" and "dir" commands from the serial monitor.
- If "beep" doesn't work, audio is not hooked up right.
- If "dir" doesn't work, the problem is reading the sd card.
- Can't read the sd card
- Check the connections.
- Try a differet sd card.
- Re-format the card. (as fat32)
- Try the "dir" command from the serial monitor.
- beep command works, but no sound when turning saber on
- Probably means that it can't find your sound font.
- The directory containing the sound font is specified by
the preset array. There are multiple preset arrays, and
which one is used is defined by the blades array.
- The "effects" command can tell you how many sounds were found.
- You can use "cd " to select a sound font indepently of what the
preset array says.
- LEDs don't turn on/off properly
- Reduce your blades array to only one entry to make sure you have the right blade driver.
- Check your connections.
- Check your connections again.
- Make sure the battery voltage is correct.
- Check that you're using a reasonable LED model for your blade driver.
- If you didn't use the same FETs that I did, make sure that the gate threshold voltage is less than 3 volts.
- Solder won't stick to male aviation connector
- Make sure it's the pin gets hot enough to melt the solder. (But not so hot that it melts the plastic that holds the pin.)
- Put a drop of solder in the hollow at the end of the pin.
Tin the end of the wire. (Keep the stripped part of the wire short.)
Heat up the pin and put the wire into the hollow part of the pin.
- If it still doesn't work, dip a Q-tip in liquid flux and apply to the pin and wire.
- Dirt and oil film can make soldering difficult, make sure the surfaces are clean.
- If all else fails, use a small file to rough up the surface of the pin.
This page has been accessed 112 times since
- Design by