Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: whatkindofausernameisthis on February 04, 2012, 06:50:03 pm

Title: Nspire audio?
Post by: whatkindofausernameisthis on February 04, 2012, 06:50:03 pm
I haven't had any experience with the Nspire USB protocol, so I would like to ask the community this: would it be possible to use this (http://www.amazon.com/GE-95554-Stereo-Adapter-3-5mm/dp/B0022NHQ9Q (http://www.amazon.com/GE-95554-Stereo-Adapter-3-5mm/dp/B0022NHQ9Q)) or something like it to allow the Nspire to play audio?

-----
Edit: New thought. What about something like this (www.google.com/search?q=usb+mini+to+usb+a+female&tbm=shop (http://www.google.com/search?q=usb+mini+to+usb+a+female&tbm=shop)) for flash drives?
Title: Re: Nspire audio?
Post by: Juju on February 04, 2012, 07:12:05 pm
That would probably be feasible with Ndless, if someone figures out the USB protocol.
Title: Re: Nspire audio?
Post by: jwalker on February 04, 2012, 07:24:44 pm
i have been thinking about a way to make music but i want to use the dock port, it would be cool to have flash drive capabilities tho...
Title: Re: Nspire audio?
Post by: TheNlightenedOne on March 10, 2012, 06:04:25 pm
About the flash drive idea: it was done on the TI-84 series with usb8x. Which makes it, in my mind, quite feasible.
Title: Re: Nspire audio?
Post by: willrandship on March 10, 2012, 07:25:38 pm
only problem is that we have no idea how to interface the USB module on the nspire. The 84+ USB module is well documented, but we know next to nothing about how to work the nspire's.
Title: Re: Nspire audio?
Post by: Keoni29 on March 26, 2012, 05:03:02 pm
only problem is that we have no idea how to interface the USB module on the nspire. The 84+ USB module is well documented, but we know next to nothing about how to work the nspire's.
Well... get a screwdriver and go check it out! It probably has an usb driver chip, so sound trough usb is gonna be close to impossible. IO via the docking port has been done before, so I think you should focus on that.
Title: Re: Nspire audio?
Post by: DJ Omnimaga on March 26, 2012, 05:21:54 pm
Well the thing is... even if the 84+ one is well documented, even after 8 years there are still things we are unable or have an hard time to achieve (such as reliable multiplayer) on its USB. For the Nspire, don't expect any bigger achievements than the 84+ until 2015 or something.

Besides, for the Nspire it appears to be locked down tightly, even more than what allows ASM code to be ran (Ndless).
Title: Re: Nspire audio?
Post by: ExtendeD on March 29, 2012, 02:23:43 am
I worked lately on the USB interface. The TI-Nspire OS is based on the FreeBSD USB stack, so porting BSD drivers should eventually be possible. My first tests on real HW look promising :)
Title: Re: Nspire audio?
Post by: Jim Bauwens on March 29, 2012, 02:39:24 am
Nice!!
Title: Re: Nspire audio?
Post by: DJ Omnimaga on March 29, 2012, 04:06:07 am
Wow nice to hear ExtendedD. I assume usb coding will be still hard, though, right? It still seems to be a major hassle for most people on the 84+, for example GlassOS by AHelper.
Title: Re: Nspire audio?
Post by: ExtendeD on March 29, 2012, 05:46:16 am
Of you course you'll need to have a good understanding of the USB concepts, but FreeBSD's USBDI API is well documented and there are many existing drivers that can be taken as examples.
Title: Re: Nspire audio?
Post by: Adriweb on March 29, 2012, 11:37:47 am
nice work :)
Title: Re: Nspire audio?
Post by: ExtendeD on March 31, 2012, 01:34:00 pm
And here is an early preview of the USB support: http://ndlessly.wordpress.com/2012/03/31/usb-hacking/
Title: Re: Nspire audio?
Post by: Jim Bauwens on March 31, 2012, 01:44:43 pm
Awesome!!
Title: Re: Nspire audio?
Post by: DJ Omnimaga on March 31, 2012, 02:42:48 pm
That is great ExtendeD. Good job :D

Question, though: will Nspire audio also sound like the VHS tape in the movie The Ring? TI-84+/Casio music sound got that kind of static too (unless chiptune based rather than wav)

http://djomni.57o9.org/prizmlaportedusoleil.mp3
Title: Re: Nspire audio?
Post by: calc84maniac on March 31, 2012, 02:45:49 pm
Since I guess the main solution for USB audio would be to connect a small USB sound card that outputs to a 3.5mm jack, I doubt there would be any quality issues.
Title: Re: Nspire audio?
Post by: MasterGeek on June 14, 2012, 06:53:32 pm
Maybe it would be possible to just send analog signals directly to some sort of speaker? like a laptop USB speaker.
Maybe it would be possible to make a custom sound device using an ardino?
Title: Re: Nspire audio?
Post by: renatose on June 14, 2012, 07:25:05 pm
Next month I'll start trying it by serial->arduino->old computer internal speaker then I'll post here some results.
And since I don't have experience with C on the nspire I'll use the Lua print() function to send the tunes in some format, the sound is going to be monophonic which would be enough to have some sound in GB games.
Title: Re: Nspire audio?
Post by: Levak on June 14, 2012, 07:33:30 pm
I'll use the Lua print() function to send the tunes in some format, the sound is going to be monophonic which would be enough to have some sound in GB games.

You'll have to stay in 3.0.2 or 3.0.1 since 3.1 removed the print() in Lua
Title: Re: Nspire audio?
Post by: cyanophycean314 on June 14, 2012, 09:13:44 pm
Wasn't there a fixprint program by ndless for OS 3.1?
Title: Re: Nspire audio?
Post by: TheNlightenedOne on June 14, 2012, 09:58:26 pm
Yes, but iirc it didn't survive a reboot, because it hot-patched the OS in RAM.
Title: Re: Nspire audio?
Post by: calc84maniac on June 15, 2012, 12:15:29 am
Yes, but iirc it didn't survive a reboot, because it hot-patched the OS in RAM.
Newer Ndless versions have a startup feature, so you can set programs to run upon OS startup.
Title: Re: Nspire audio?
Post by: Levak on June 15, 2012, 09:02:24 am
Wasn't there a fixprint program by ndless for OS 3.1?
Sure : http://tiplanet.org/forum/archives_voir.php?id=4227
But it's useless to have that+Ndless+3.1 when you can have it in 3.0.1 or 3.0.2 and when you can't use the 3.2 SDK.
Title: Re: Nspire audio?
Post by: renatose on June 15, 2012, 09:38:24 am
Wasn't there a fixprint program by ndless for OS 3.1?
Sure : http://tiplanet.org/forum/archives_voir.php?id=4227
But it's useless to have that+Ndless+3.1 when you can have it in 3.0.1 or 3.0.2 and when you can't use the 3.2 SDK.
anyway I'll use that fix in OS 3.1 if that doens't work I'll go back to 3.0.2.
Title: Re: Nspire audio?
Post by: MasterGeek on June 26, 2012, 08:36:58 pm
what about using the USB port on the Nspire to connect to the ardino?
Title: Re: Nspire audio?
Post by: renatose on June 26, 2012, 09:13:45 pm
what about using the USB port on the Nspire to connect to the ardino?

That's something that I won't even try at least in the short term.
Title: Re: Nspire audio?
Post by: Keoni29 on June 27, 2012, 04:11:02 am
Custom sound device? I made a DAC for the TI84+, so I might be able to design one for the Nspire platform. The main problem is that I know very little about the Nspire and I don't have one, so some of you guys will have to do the coding and provide me with a signal which the control logic must interpret.

Edit: http://ourl.ca/16139/308321
Title: Re: Nspire audio?
Post by: calc84maniac on June 27, 2012, 08:43:26 pm
It would be much better to work with the USB audio specifications, so you could actually work with most retail sound devices.
Title: Re: Nspire audio?
Post by: DJ Omnimaga on June 27, 2012, 08:52:14 pm
The only concern I have if Nspire audio is possible is that it might not have a much higher audience than 8x audio, because it's not everywhere that you easily find USB headphones, since every store expects you to need 3.5mm standard headphones. Of course USB speakers can work I guess, if the calc can power them enough or if they have to be plugged in the wall too.
Title: Re: Nspire audio?
Post by: calc84maniac on June 27, 2012, 09:48:23 pm
This is the kind of thing I was talking about (I bought one of these myself to eventually try to use with calcs): http://goo.gl/y2CHS (http://goo.gl/y2CHS)
Title: Re: Nspire audio?
Post by: Keoni29 on June 28, 2012, 06:07:18 am
This is the kind of thing I was talking about (I bought one of these myself to eventually try to use with calcs): http://goo.gl/y2CHS (http://goo.gl/y2CHS)
Yeah that's awesome! But you need a converter for that to small usb isn't it? I got one of these: http://www.ebay.co.uk/itm/USB-A-Female-to-A-Female-Converter-Adapter-Connector-/110674703840?pt=UK_Computing_USB_Cables&hash=item19c4b9f5e0
I use it to "combine" usb cables/devices without having to buy an adapter for every kind of device.
Title: Re: Nspire audio?
Post by: ExtendeD on June 28, 2012, 04:08:20 pm
I've just bought one too, I'll have a try on the TI-Nspire.
Title: Re: Nspire audio?
Post by: LDStudios on October 05, 2013, 11:12:43 am
Looks nice. Hope you can get it to work out well  :)
Title: Re: Nspire audio?
Post by: DJ Omnimaga on October 05, 2013, 04:42:33 pm
Holy necropost batman! O.O

You might want to check the last post dates before posting, since this project was last updated in 2012. That said, I want to warn people once again that if they want to try audio on their calc, they have to make sure that they aren't accidentally touching the wrong pins on their serial dock connector, else this can permanently damage the calculator.