Search results

  1. S

    APA102 w/ 3V logic?

    Has anyone tried running APA102 LEDs at lower voltages? The datasheet doesn't seem to forbid supply voltages below 5V. But it does require VCC*0.7 for a high signal. And while 3.3V may not be enough for blue or white, I'm wondering if you had a 3.7V supply if that would be sufficient to...
  2. S

    Audio Library

    If this object is like all the others, then I think that comment is misleading. As I understand it, there is no left or right channel in the audio library. There are objects, and each object can have multiple inputs and multiple outputs, called channels. Each input or output from an object...
  3. S

    Audio Library

    I used the volume pot connection for the capacitor because it was just a convenient place to access the 3.3v and GND rails that seemed close enough to the pins to get the job done. And yes, I'm aware how wiring caps in series vs parallel works. The extra 47uF cap I stuck on the amp which did...
  4. S

    Audio Library

    Well, here's my project... Thought you guys would like to see it!
  5. S

    Audio Library

    I put a 47uF capacitor on the amp. I'm not sure if it helped. It may have reduced the noise by half. Hard to tell. Adding a second to it definitely didn't help. Adding a 47uF to the 3.3V power rail on the Teensy via the pins for the volume pot also didn't help. I have yet to try one...
  6. S

    Audio Library

    All I have is the teensy mounted on the audio module, an ultrasonic distance sensor connected to a couple pins, a TLC59711 led module connected to a couple pins, and the amplifier connected to the line out. The power connections for all four devices, both ground and 5V, are connected at the...
  7. S

    Audio Library

    Hm, I just tried connecting headphones and I don't get any of the SD card noise. I suppose it's time to try adding that capacitor to the amplifier module.
  8. S

    Audio Library

    Good idea. That would use less CPU and ram than the mixer.
  9. S

    Audio Library

    There is one issue I'm still having. I'm not sure if it's the cheap 3W amplifier I'm using which is at fault or the audio module itself, but when I have no audio playing and I read the filenames from the directory, I can hear the data transfer going on. It's not particularly quiet. I'd say 5%...
  10. S

    Audio Library

    You know this library was confusing as hell to me when I first started using it, but I think I understand now how the whole chaining objects together thing works now. I like it, makes a lot of sense. And I was able to add that volume control I wanted, because it turns out the mixer object has...
  11. S

    Audio Library

    I asked about this a long time ago, but I noticed the volume control doesn't work for the line-out. There was talk about implementing it for that. Did that ever get done? Or is there a way to adjust the volume by adding a mixer or something?
  12. S

    Audio Library

    Well, it seems like it was a memory leak caused by opening all those files and then never closing them again. I blame the confusing way C frees memory... or doesn't. As you can see here they never free the entry object: http://arduino.cc/en/Reference/FileRewindDirectory But I think what's...
  13. S

    Audio Library

    Well, it doesn't seem to be the call to wav.play() that's doing it. I added another debug line after the for loop and before and after the reenabling of the audio interrrupt, and neither of those prints. So the crash is in the for loop. And it seems to be a memory leak... I used the...
  14. S

    Audio Library

    I'm having an issue with random playback of wave files. The board seems to crash occasionally, even though the last file it displays on the serial monitor is in range. And it's never on the same file. AudioNoInterrupts(); root = SD.open("/"); root.rewindDirectory()...
  15. S

    Audio Library

    This works well enough for this project: if (wav.play("vigo002.wav")) { // Attempt to play file. // File was found, and we're reading the file header. while (!wav.isPlaying()) {} // Wait for the header to be read and playback to begin. But it's not a great solution...
  16. S

    Audio Library

    Oh, and I just checked, and the state info is private, so I can't just access that directly without modifying the library.
  17. S

    Audio Library

    I've found a bug in the audio library. I wanted to trigger a wav file when a particular input was received, and that bit works, but the code wasn't waiting for the wav file to finish playing before checking to see if it should trigger again. The problem seems to be that wav.isplaying()...
  18. S

    Audio Library

    Actually I just found Audiostream. I thought I remembered it being part of the Teensy code and checked the hardware directory and it's in there. I guess it makes sense for it to be there if it has Teensy specific code (I assume it does stuff with DMA?), but at the same time, it seems like a...
  19. S

    Audio Library

    I'm lost. Where the heck is audiostream.h? It's referenced by several files but it doesn't seem to be in the library directory, or on the github page. Where are the audioconnections and audiomemory functions? I'm trying to figure out how to calculate how much memory to allocate instead of...
  20. S

    Audio Library

    I like that you've named the audio input and output objects audioInput and audioOutput. I think it makes it easier to understand that the user can change the object type, and what the connection object initialization is actually doing than naming them after the object type.
  21. S

    Audio Library

    Dude, no need to take offense over a minor critique of a single line of code that amounts to a division. I just thought it was a really odd choice to divide by a floating point number to get 30 elements when 32 seemed like the more logical and simple way to go. If you did it because bar...
  22. S

    Audio Library

    Paul what the hell were you thinking? :) void loop() { if(fps>24) { // for best effect make your terminal/monitor a minimum of 62 chars wide and as high as you can. Serial.println(); fps=0; uint8_t leftPeak=peak_L.Dpp()/2184.5321; // 65536 / 2184.5321 ~ 30...
  23. S

    Audio Library

    I'd prefer it default to that. I can't think of any reason to have it default to 3.3v when using the audio library. But as long as we can set it, I'm good. I do have a question about how we should go about using it though. I noticed in the datasheet it says the max output load current is...
  24. S

    Audio Library

    Of course you may be able to get away with a much higher voltage on your line out than "consumer level": http://electronics.stackexchange.com/questions/76010/what-is-the-typical-max-voltage-for-sound-card-line-in I guess the only way to be sure is to test with your particular amp or recording...
  25. S

    Audio Library

    The advantage is if you're not using Vin then you bypass the chip's onboard 3.3v regulator and if there's noise in your 3.3v supply then it could impact the quality of your audio. Also, 1.2v is very close to the .894v standard for line level on consumer audio, so you can avoid using a voltage...
  26. S

    Audio Library

    Hey Paul, do you use Eagle? If so, could you share the lib for the Hirose DM3D-SF MicroSD slot you're using on the audio module? I'm making a board that utilizes the DAC which I'd like to socket the Teensy into, and the Hirose is cheaper than the Molex one I've been using.
  27. S

    Audio Library

    I concur...
  28. S

    Audio Library

    I noticed there are constants for the block size in the library though. So while variable or mixed block size may by out of the scope, what about using a much smaller fixed block size for everything? Is that supported? And what would selecting a smaller block size affect? The SD card read...
  29. S

    Capacitive sensing

    In my case I want to detect when a user has touched the project enclosure to change modes and/or mute the device depending on if they maintain contact for a second or touch it briefly. I foresee a problem though in that the user will be touching the device when they turn it on. If the...
  30. S

    Audio Library

    Paul: I thought any pin of the Teensy could source up to 9mA? (actually I think the absolute max is quite a bit higher, but 9mA max seems to be the recommended max from the datasheet) Is the DAC pin different? I intend to make a shield soon for my own use which uses the DAC for audio output...
  31. S

    Audio Library

    The DAC isn't capable of driving a speaker by itself. If you try, you may damage the chip. You need to connect an amplifier to it. To connect an amplifier, one wire on your input to the amplifier goes to ground, and the other goes to the DAC. Preferably through a small resistor (390 ohm...
  32. S

    Audio Library

    What constitutes a "proper" line out? These days, a line out and a headphone jack are virtually interchangeable. According to the codec's data sheet, the headphone jack on the audio shield could have functioned as one if Paul added a couple capacitors. Also, I'm pretty sure on any PC out...
  33. S

    Audio Library

    I've discovered another bug. Volume control does not seem to work on the line out: audioShield.enable(); audioShield.unmuteLineout(); audioShield.volume(5); I tried unmuting the line out before and after changing the volume and in neither case did it have any effect.
  34. S

    Audio Library

    Any luck with those pops? Or the problem I'm having with the filter?
  35. S

    Audio Library

    Oh I forgot to mention, with the above filter code in place I no longer get any output on my line out. Only the headphones work.
  36. S

    Audio Library

    Okay, so here's that simple test code again that used the numbered wav files, but this time with the filtering stuff I can't get to work in there. The comments explain the strange behavior I get with different setups: #include <SPI.h> #include <Audio.h> #include <Wire.h> #include <SD.h> //...
  37. S

    Audio Library

    With a complex filter setup, like if you were making a synth or an S3M player, is it even possible to know for certain that you've seen the worst case though? And why do we allocate the memory in advance instead of the library automatically allocating it as needed?
  38. S

    Audio Library

    I'm having a new issue. I'm trying to get a high pass filter working, but something's not right. Here's my setup code: int HPF[8]; // Create the Audio components. These should be created in the order data flows, inputs/sources -> processing -> outputs AudioPlaySDcardWAV wav...
  39. S

    Audio Library

    I want to implement this high pass filter, but this is bugging the hell out of me: AudioMemory(12); I get that it allocates 12 copies of this structure: typedef struct audio_block_struct { unsigned char ref_count; unsigned char memory_pool_index; int16_t data[AUDIO_BLOCK_SAMPLES]; }...
  40. S

    Audio Library

    I emailed you a wav which doesn't have the extra silence at the end.
  41. S

    Audio Library

    I should mention that the reason I'm looking into filtering is because I've got small speakers connected to the Teensy and if I don't filter out the low frequencies they sound horrible when you crank the volume up. And while being able to design any filter is nice, it would be great if there...
  42. S

    Audio Library

    Perhaps this will shed some light on it? http://www.ti.com/lit/an/slaa447/slaa447.pdf
  43. S

    Audio Library

    Hey Paul, how's this app for calculating filters? http://www.ti.com/tool/coefficient-calc#descriptionArea I don't understand all the parameters, but I clicked enable on no. 1, set type to high pass, butterworth 2, fc = 200, gain I set to 0 cause it doesn't seem to change anything, and BW...
  44. S

    Audio Library

    Paul: The fix seems to work great, thanks!
  45. S

    Audio Library

    Email it is then!
  46. S

    Audio Library

    Still fails. Here's the simplified code. I'll PM you a link to the sound files. #include <SPI.h> #include <Audio.h> #include <Wire.h> #include <SD.h> // Audio: // Create the Audio components. These should be created in the order data flows, inputs/sources -> processing -> outputs...
  47. S

    Audio Library

    I'll post some simplified code for you shortly. Testing now to see if it still fails.
  48. S

    Audio Library

    Argh! I've disabled both LEDs and motor speed control now. I'm doing no PWM and acessing nothing, just running a state loop that waits a specified period of time and then tells the board to play the next song, and it's still failing to start the next song after the 5th one.
  49. S

    Audio Library

    I removed SD.begin() and put a wav.stop() before each wav.play() but I'm still losing my audio. No idea what's causing this but I wonder if it has something to do with the change to the LED code. I guess I'll disable that and see if the problem goes away.
  50. S

    Audio Library

    Well this isn't good, I put SD.begin(10); before each call to wav.play() and it's still doing the same thing. It plays 4 or 5 files and then craps out. I assume calling wav.play() with the same object uses single sound channel so I don't need to stop it before playing the next file. It was...
Back
Top