FX-Sabers.com

Ahch-To: Instructional Section related to constructing your own Lightsaber => Open Source Sound Cards => Topic started by: profezzorn on February 25, 2017, 02:03:19 PM

Title: Announcing TeensySaber V2
Post by: profezzorn on February 25, 2017, 02:03:19 PM
TeensySaber V2 is officially here:

(https://www.fx-sabers.com/forum/proxy.php?request=http%3A%2F%2Ffredrik.hubbe.net%2Flightsaber%2Fv2%2FTeensySaberV2.2.jpg&hash=26cea5163b666ffcc79146d6f50c4bbd72e1ed07) (http://fredrik.hubbe.net/lightsaber/v2/)

It is completely open-source and runs the same software as TeensySaber V1, the differences are:


Of course, all the previous features are still there:

More information here: Teensy Saber Electronics V2 (http://fredrik.hubbe.net/lightsaber/v2/)

I'm currently in the process of trying to figure out how to make a bunch of these for people to buy, stay tuned.
However, all files and instructions needed for someone to make their own is provided at the above link.
Title: Re: Announcing TeensySaber V2
Post by: Sethski on February 26, 2017, 07:40:52 PM
Great to see ongoing progress and thanks for sharing. Defo be interested in one or more if/when you're able to get some made and up for sale (really excited with where this is at and the potential for this, esp reading Thexter's "smooth swing interpolation with pitch-shifted hums" thread the other day).
Title: Re: Announcing TeensySaber V2
Post by: jbkuma on February 27, 2017, 07:21:21 AM
Congratulations, it's a really nice looking board.
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on April 11, 2017, 08:02:35 PM
I have now open-sourced the test rig (http://fredrik.hubbe.net/lightsaber/v2/test_rig.html) for the TeensySaber, not sure if it will be useful to anybody, but here it is anyways.
Title: Re: Announcing TeensySaber V2
Post by: thatguyer on April 12, 2017, 07:57:12 PM
Very nice. It's so compact, which is great when you're trying to cram it all into a metal tube!

I wonder if I could make a version of my 16-channel LED controller that would connect neatly to your board. It needs four pins: VCC, GND, SDA, SCL.  My board consists of a PCA9685 16-channel PWM IC, with a high-power MOSFET attached to each drain. (The version below also has a 9-DOF motion sensor, but it wouldn't be needed).

(https://www.fx-sabers.com/forum/proxy.php?request=http%3A%2F%2Fwww.cs.tufts.edu%2F%7Esguyer%2Fled-controller.jpg&hash=5387d8fff813118708ff5847558d1fa7849bf46d)
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on April 13, 2017, 12:21:30 AM
Nifty, but wouldn't a 16-segment string blade have a lot of loss in brightness from all those wires?
Title: Re: Announcing TeensySaber V2
Post by: thatguyer on April 16, 2017, 05:16:34 PM
Nifty, but wouldn't a 16-segment string blade have a lot of loss in brightness from all those wires?

It's certainly a consideration for strings of LEDs. I made one with 10 segments, using very thin kynar wire, but I'm sure it reduces the light output. In addition, the resistance of the thin wire itself limits brightness. Since then I've been experimenting with COB LED blades, which are insanely bright. I form the COB strips into triangles, which leaves a hollow down the middle for wires.
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on April 19, 2017, 10:39:42 PM
I've put up the plans for TeensySaber version 2.3.
It's basically the same as version 2.2, but with a few simplifications and a better stencil.
All sources available here: Teensy Saber Electronics V2 (http://fredrik.hubbe.net/lightsaber/v2/boardv2.3.html)
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on May 27, 2017, 02:43:36 PM
These are now available to buy: TeensySaber V2 for sale (https://www.fx-sabers.com/forum/index.php?topic=51864.0)
Inventory is limited, but more will be available shortly.
Title: Re: Announcing TeensySaber V2
Post by: Ben Starkiller on July 03, 2017, 05:08:26 PM
Was looking at your KiCAD files. Do you have the library files?
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on July 03, 2017, 05:32:11 PM
Was looking at your KiCAD files. Do you have the library files?

I thought I included them in the zip file?
If not, please let me know what is missing and I'll make sure to include them.
Title: Re: Announcing TeensySaber V2
Post by: Ben Starkiller on July 04, 2017, 09:52:58 AM
Was looking at your KiCAD files. Do you have the library files?

I thought I included them in the zip file?
If not, please let me know what is missing and I'll make sure to include them.

You have the pcb footprints but not the .lib files for the schematic view.

Here is what it looks like for me.

(https://www.fx-sabers.com/forum/proxy.php?request=http%3A%2F%2Fi63.tinypic.com%2Fs474ew.png&hash=8d6a200ac9ea9854f760034e752ac38579c913e2)

The library files are much faster/easier to make so at least the footprints are there.
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on July 04, 2017, 11:00:14 AM
Ok, I've updated the tar file with one that contains everything you need (hopefully)
I'm not currently at home, so I can't actually run kicad and test it myself.
Please let me know if anything else is missing.

If you don't mind me asking: Are you doing anything interesting with the kicad files, or just curious?
Title: Re: Announcing TeensySaber V2
Post by: Ben Starkiller on July 04, 2017, 03:47:47 PM
Ok, I've updated the tar file with one that contains everything you need (hopefully)
I'm not currently at home, so I can't actually run kicad and test it myself.
Please let me know if anything else is missing.

If you don't mind me asking: Are you doing anything interesting with the kicad files, or just curious?

Missing the TPS61200, Inductor, and Teensy in the library but everything else populates now. I just used a generic inductor symbol and I'm not using the Teensy anyway.

Trying to make a single board solution with battery charging circuit (TP4056). Might look at making it run off either 1 or 2 cell battery packs with the TP5100, and swapping the booster for a buck-boost. Maybe change out the AMP for an I2S amp Also I plan to use RGBW LED modules (or modules with 4 LEDs) in all my lightsabers so want it set for 4 FETs.

I'm also looking at the ESP32 as it looks pretty nice as it has what you would expect, SPI, I2C, I2S, SDIO, but also has wifi and bluetooth LE. Which could allow wireless updates and controlling, configuring through a phone. Not experienced enough as a programmer yet so looked at your design for a proven approach.

Why do you power the Teensy with the 5v booster instead of directly from the battery?
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on July 04, 2017, 06:16:24 PM
Ok, I've updated the tar file with one that contains everything you need (hopefully)
I'm not currently at home, so I can't actually run kicad and test it myself.
Please let me know if anything else is missing.

If you don't mind me asking: Are you doing anything interesting with the kicad files, or just curious?

Missing the TPS61200, Inductor, and Teensy in the library but everything else populates now. I just used a generic inductor symbol and I'm not using the Teensy anyway.

I'll add the missing pieces after my vacation is over.

Quote
Trying to make a single board solution with battery charging circuit (TP4056). Might look at making it run off either 1 or 2 cell battery packs with the TP5100, and swapping the booster for a buck-boost. Maybe change out the AMP for an I2S amp Also I plan to use RGBW LED modules (or modules with 4 LEDs) in all my lightsabers so want it set for 4 FETs.

TeensySaber V2 can handle RGBW if you populate one of the FETs on the bottom. (OR, if you use a PEX)
I2S amp might be pretty cool, and might give better sound quality. 2-cell battery packs really only makes
sense if you have a constant-current power supply I think, otherwise you're just going to waste a lot of power in resistors.

Quote
I'm also looking at the ESP32 as it looks pretty nice as it has what you would expect, SPI, I2C, I2S, SDIO, but also has wifi and bluetooth LE. Which could allow wireless updates and controlling, configuring through a phone. Not experienced enough as a programmer yet so looked at your design for a proven approach.

That would be pretty cool. Are you intending to build on the TeensySaber code base? I might be able to help out with some of the software stuff if the thing you're interested.

Quote
Why do you power the Teensy with the 5v booster instead of directly from the battery?

Combination of paranoia and not knowing better.
I don't actually know what the tolerances of the teensy is, but the input power can be REALLY noisy when PWM:ing some big LEDs, so boosting it to 5v and then running it through the 3.3v regulator feels like a reasonable safety-precaution. It's entirely possible that none of that is needed though.

I've been thinking of replacing the booster with another chip that automatically switches between buck and boost and can handle inputs up to 16 volts, which would be kind of cool as anything up to 4 cells would just work. However, as I said before; without a constant-current drive system, dual-battery setups aren't that great.
Title: Re: Announcing TeensySaber V2
Post by: Ben Starkiller on July 04, 2017, 09:46:10 PM
Quote from: profezzorn

I2S amp might be pretty cool, and might give better sound quality. 2-cell battery packs really only makes
sense if you have a constant-current power supply I think, otherwise you're just going to waste a lot of power in resistors.

There are a few, LED2001 (http://www.st.com/content/ccc/resource/technical/document/datasheet/37/ed/f7/77/d7/ed/4e/84/DM00079085.pdf/files/DM00079085.pdf/jcr:content/translations/en.DM00079085.pdf), LT3476 (https://cds.linear.com/docs/en/datasheet/3476fb.pdf)(Quad channel, VIN=2.8-16v), or even multiple AMC7135.  The first two will require inductors. I want to find some 1A constant current ones like the AMC7135 that can handle the 3W LEDs with no resistors required at all that will also reduce component count on the PCB.


Quote

[on the ESP32] That would be pretty cool. Are you intending to build on the TeensySaber code base? I might be able to help out with some of the software stuff if the thing you're interested.

I was thinking about it or looking through the other code bases(LightsaberOS,FX-SaberOS). I like your pick of IMU better than the MPU6050.

Quote
I've been thinking of replacing the booster with another chip that automatically switches between buck and boost and can handle inputs up to 16 volts, which would be kind of cool as anything up to 4 cells would just work. However, as I said before; without a constant-current drive system, dual-battery setups aren't that great.

Well if you do go down that route later look at the LTC3114 (http://www.linear.com/solutions/7368) or look at this ULDO 3A LP3963 (http://www.ti.com/lit/ds/symlink/lp3966.pdf) set to 3.3v. The I2S amp I was looking at is the MAX98357A (https://datasheets.maximintegrated.com/en/ds/MAX98357A-MAX98357B.pdf).
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on July 04, 2017, 10:40:06 PM
Well if you do go down that route later look at the LTC3114 (http://www.linear.com/solutions/7368) or look at this ULDO 3A LP3963 (http://www.ti.com/lit/ds/symlink/lp3966.pdf) set to 3.3v. The I2S amp I was looking at is the MAX98357A (https://datasheets.maximintegrated.com/en/ds/MAX98357A-MAX98357B.pdf).

With that amplifier (or any class D amplifier), you still need a 5v rail to feed the amplifier, or it's going to be pretty quiet.
Title: Re: Announcing TeensySaber V2
Post by: Ben Starkiller on July 05, 2017, 12:20:51 PM
Then the 5v buck-boost for the amp and the 3.3v LDO for the MCU/IMU/FTDI it is. Checked the datasheets and it seems the AMP puts out below 1.4w at a VIN of 3.6v so 3.3v could be around 1w half the max power of the better speakers.

Oh and I might go with a STM32F1/F4 and FTDI interface as the Teensy's setup of using a separate MCU for programing makes it harder and more expensive as one with the bootloader is needed from PJRC (https://www.pjrc.com/store/ic_mkl02.html). Also the STM32 IC's are cheaper than the MK20DX256VLH7. Also demo boards of the STM32F1/F4 are cheaper than a Teensy 3.1/3.2 so testing will be cheaper.

I just came across a very interesting AMP that you should consider. The TI TPA2015 (http://www.ti.com/lit/ds/symlink/tpa2015d1.pdf). It has a built in 5v booster specifically for using directly from a battery. Look at the inexpensive SRN2512-2R2M inductor to use with it. You could then run the Teensy directly from the battery. This would eliminate your 5v booster and would improve overall efficiency.

Also have you seen this? May the Fourth with a Special Announcement | Artekit (https://www.artekit.eu/may-the-fourth/)
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on July 05, 2017, 03:58:20 PM
Then the 5v buck-boost for the amp and the 3.3v LDO for the MCU/IMU/FTDI it is. Checked the datasheets and it seems the AMP puts out below 1.4w at a VIN of 3.6v so 3.3v could be around 1w half the max power of the better speakers.

Just remember that watts are (roughly) proportional to the square of the voltage...

Quote
Oh and I might go with a STM32F1/F4 and FTDI interface as the Teensy's setup of using a separate MCU for programing makes it harder and more expensive as one with the bootloader is needed from PJRC (https://www.pjrc.com/store/ic_mkl02.html). Also the STM32 IC's are cheaper than the MK20DX256VLH7. Also demo boards of the STM32F1/F4 are cheaper than a Teensy 3.1/3.2 so testing will be cheaper.

The reason I have stuck with teensy so far is that I don't have to worry about building and maintaining the client software. Paul does that.

Quote
I just came across a very interesting AMP that you should consider. The TI TPA2015 (http://www.ti.com/lit/ds/symlink/tpa2015d1.pdf). It has a built in 5v booster specifically for using directly from a battery. Look at the inexpensive SRN2512-2R2M inductor to use with it. You could then run the Teensy directly from the battery. This would eliminate your 5v booster and would improve overall efficiency.
Yeah, that might be a good option for the future.

Quote
Also have you seen this? May the Fourth with a Special Announcement | Artekit (https://www.artekit.eu/may-the-fourth/)
I had not seen that. Looks pretty nice, but seems to be missing a gyroscope. Also, it seems that the LED drivers seem to weak to handle some of the stuff I like to do. (Like cutting the power to a neopixel strip.)
Title: Re: Announcing TeensySaber V2
Post by: prezenmod on July 28, 2017, 08:48:00 AM
I have now open-sourced the test rig for the TeensySaber, not sure if it will be useful to anybody, but here it is anyways. Kitchen Lola (https://kitchenlola.com/best-drip-coffee-maker/)

Actually it has been very useful to me Thanks. I'll post here once I'm finished. I think ZIP format is the best for the KiCad files. File manager did not recognize it at first.
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on July 28, 2017, 09:59:11 AM
I have now open-sourced the test rig for the TeensySaber, not sure if it will be useful to anybody, but here it is anyways.

Actually it has been very useful to me Thanks. I'll post here once I'm finished. I think ZIP format is the best for the KiCad files. File manager did not recognize it at first.

Now I'm curious: Post what exactly?
Title: Re: Announcing TeensySaber V2
Post by: prezenmod on July 28, 2017, 01:07:25 PM
My finished board. Don't worry it's only mine and I'm not selling it or anything like that. I'll post on my own thread then.
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on July 28, 2017, 02:15:33 PM
My finished board. Don't worry it's only mine and I'm not selling it or anything like that. I'll post on my own thread then.

Feel free to post here if you like.
And I'd be super-happy if you did sell them. (Then maybe I wouldn't have to.)
I take open-source seriously, and I love to see spin-offs and competition.
Let me know if there is anything I can do to help. :)
Title: Re: Announcing TeensySaber V2
Post by: Jessevdg on March 20, 2018, 05:05:59 AM
Is it also possible to use a WS2812B led strip
Title: Re: Announcing TeensySaber V2
Post by: profezzorn on March 20, 2018, 08:42:23 AM
Is it also possible to use a WS2812B led strip

Yes.