Search results

  1. D

    Introducing delay to mixer (custom DAC)

    Thanks a lot @h4yn0nnym0u5e for your response and sorry if I confuse others. I thought indeed that FXs where based on the internal audio processor of the audio shield, because I tried one of them quickly once on my DAC and didn’t work. Now I know it was poor coding on my side. My need for a...
  2. D

    Introducing delay to mixer (custom DAC)

    Hi! I need to introduce a short delay to an audio channel streaming to a I2S DAC. I see there is a delay fx in the audio library, but like other effects I‘m afraid it only works with the SGTL5000 Audio Shield, right? My DAC is a custom AKM. Could anyone hold me a hand to achieve this with the...
  3. D

    MTP file dates

    Very nice @WMXZ. My program compiles now without any warnings and SD.h (@h4yn0nnym0u5e code) is unaffected. All tip-top :) Bless you. I wonder if you guys ever play or open files directly from the Teensy/SD card via MTP, or rather always copy them to a local drive before. File transfers are...
  4. D

    MTP file dates

    I use actually SD.h to record WAV files, which I retrieve later via MTP. With the latest updated git I get again some errors, as follows. I attach the full code at the end, sorry it's a bit long. ERRORS In file included from /usr/share/arduino/hardware/teensy/avr/libraries/Audio/MTP.h:37...
  5. D

    MTP file dates

    It Works! Amazing. It shows now modification date :) Creation date is empty, but I think that might be a linux limitation. When compiling the code though I get some new errors, which didn't appear before. I confirmed they are new by reverting to the previous version, which I thankfully backed-up...
  6. D

    MTP file dates

    That would be amazing WMXZ! For me it is very important and the archiving of all my field recordings 🙏 The code works otherwise like a charm. Count on me for any check-ups needed, whenever if you feel like digging into it.
  7. D

    MTP file dates

    Hi everyone, I'm using the following code to view files from a Teensy 4's SD card into my computer, via USB and MTP. It works great, but for some reason it doesn't show the files' creation or modification date on the file browser. I'm using linux and 'simple-mtfs' or other tools to mount the...
  8. D

    Teensy 4.1 microSD socket type

    Here is the working code, only for SDIO. Probably not perfect, but it works. I commented out some serial prints that were putting the Teensy into a loop and libmtp was freezing unless the Serial Monitor in Teensyduino was open. It works super fast, tested in Linux (simple-mtfs) and MacOS...
  9. D

    Teensy 4.1 microSD socket type

    Ok. It was a bit nightmarish but MTP seems to work very well now. Using libmtp (instead of gvfs-mtp) to mount it as folder with simple-mtpfs, over Nemo or Nautilus WAV files preview in real time directly. Quite impressive. The code in use is WMXZ's mpt-basic, simplified to work only with the...
  10. D

    Teensy 4.1 microSD socket type

    I noticed that at max CPU speed (600MHz) transfers become stable, I had the T4 at 150MHz before. In linux Dolphin seems the only filebrowser to deal fine with MTP files using gvfs, each time you open a file it will copy it to a cache folder before playing it. I'm trying fuse libraries now, also...
  11. D

    Teensy 4.1 microSD socket type

    I've been trying to transfer WAV files from an SD card via SDIO (T4) and USB, but it is extremely slow. It doesn't even copy a whole 2MB file before it freezes. Is this a normal behavior and meant only for small files? I'm using WMXZ library, but KurtE lags the same. Reading on linux using the...
  12. D

    Teensy 4.1 microSD socket type

    Thank you for the answer Paul. An alternative for me would be leaving the SD card permanently attached to the board inside the enclosure and grab the audio files via USB Mass Storage. But I don't want to lose the USB Audio function. Is it possible for instance to program the Teensy as USB Audio...
  13. D

    Teensy 4.1 microSD socket type

    Hi everyone, I just realised that the latest T4.1 comes with a new SD card socket, as mentioned for example here. Is the newer socket of the push-pull type, like the old one? Or is it perhaps (hopefully) pull-pull? I'd like to use the board inside a thick enclosure and a pull-pull socket would...
  14. D

    i2s bluetooth transmitter

    I'm very sorry @MarkT, I didn't realize that the instructions were very clear on that page. The device simply takes the strongest signal when pair is pressed :) clever and just how I imagined/wanted it. The module is too big though–that's why I was fleeing a bit over it. I'm looking for a...
  15. D

    i2s bluetooth transmitter

    Hi all, I've been thinking for a while to hook up an I2S Bluetooth transmitter module to the T4, if there are any, to send audio to some Bluetooth receiver (headphones, speakers). The only module I've found so far is this one: Tinysineaudio TSA5001 Does anybody know if the module will work...
  16. D

    LED PWM without resistor

    Thank you @sndsgd, I'll take a deeper eye into neopixels but now I want to keep it really simple and I'm struggling with the code. I need some 'delays' because otherwise blinking goes too fast. I want the LED combination to stay ON for a while if the peak goes a higher step, but the delay...
  17. D

    LED PWM without resistor

    For the record. I managed a simple VUmeter with the mentioned 3-pin common anode red/green LED. Each pin connected to an analog pin output of the T4, with series resistor. Red-led with series 2K, green-led with 200ohm. Total current across the anode measures around 7mA, not sure why, neither if...
  18. D

    LED PWM without resistor

    Amazing. Thank you Paul. Checking my boxes I found some 3-pin red/green in 3mm. But they are common anode. Can I use them with PWM intensity control (analogWrite) anyways? I‘m thinking I could connect it to three outputs in the Teensy, with the anode always set to HIGH and the red/green set to...
  19. D

    LED PWM without resistor

    Thanks MarkT to clarify that! I didn‘t know about neopixels, very interesting. I‘m looking for something in the traditional LED format though, it‘s easier to mount for me and smaller. Ideally in 3mm, but all RGB‘s in traditional ‚light bulb’ format I’ve found are 5mm 4-pin 🧐. The idea is to...
  20. D

    LED PWM without resistor

    Hello, I noticed that it is possible to control the intensity of a LED using PWM: https://www.pjrc.com/teensy/tutorial2.html Is it safe to power an LED without resistor if intensity is set to low? Or this could eventually burn anyways the LED, consume more power than its equivalent brightness...
  21. D

    Teensy 4.0 SDIO CLK (intermittent)

    I just placed a 1000uF decoupling cap at the 5V Teensy VIN and voilà, the tikitik is gone :) Long time with this problem, asking is needed sometimes to get clues and organize thoughts.
  22. D

    Teensy 4.0 SDIO CLK (intermittent)

    Welcome @defragster ! I recorded the noise and it sounds like some CPU writing activity. Likely generated by the SD card itself as you suggest? (if you have a minute, please check this mp3). I tried enlarging the flex cable and moving the card around to different locations, but it makes no...
  23. D

    Teensy 4.0 SDIO CLK (intermittent)

    That's a clue! Maybe it is just EMI from the 24MS/s clock polluting by nearby analog circuits, but it doesn't make much sense that it does so 'in intervals'. I assume EMI should be constant. Also the clock speed doesn't change with changes in buffer size, right. Then why would the rate of the...
  24. D

    Teensy 4.0 SDIO CLK (intermittent)

    Thanks for the lights @h4yn0nnym0u5e ! At the moment I cannot share the system diagrams and details, but I will as soon as I can! For now just another question. As I increase the buffer size the tik-tik-tik increases in speed. Shouldn't it be the other way around, if writes are happening less...
  25. D

    Teensy 4.0 SDIO CLK (intermittent)

    Thank you for the info @h4yn0nnym0u5e. I listen with attention because moving to the 4.1 I would need to make quite dramatic changes to my chassis concept and PCB layout. Would it help/work if I install a separate 3.3V VREG for the SD Card, instead of using the 3.3V provided by the SDIO pin...
  26. D

    Teensy 4.0 SDIO CLK (intermittent)

    Thanks Paul! I thought I had a T4.1 but it doesn't start.. now I remember I fried it some time ago :/ It's a good advice, I'll need some time to get another one and fit it somehow for a test at least. You made me think that it might be a software related issue as well. Now I realised that the...
  27. D

    Teensy 4.0 SDIO CLK (intermittent)

    Hello, I added a socket, flex cable and SD card socket to the Teensy 4.0, to record audio files. Normally I'd have used the Teensy 4.1, but it is unfortunately too big for my PCB. Problem is that every ~second I get an interruption, like a tik-tik-tik sound, only while recording. I traced it...
  28. D

    Yet Another File Player (and recorder)

    Hi, I'm trying to adjust the volume while playing a WAV using AudioPlayWAVstereo, but ain't working for me. AudioPlayWAVstereo is routed to a mixer and the mixer to a I2S output. Volume set by a pot and float on mixerX.gain(0, 2*vol);. Strange enough it works for AudioRecordWAVstereo, but not...
  29. D

    PT8211 Oversampling deprecated? :s

    Thanks a lot, a lapsus made me think uncommenting also meant deleting the # symbol :s It works fine, using it with a TDA1387 after changing the corresponding line on the .cpp file.
  30. D

    PT8211 Oversampling deprecated? :s

    When I activate Oversampling on output_pt8211_2.h and compile I get the following error: 'define' does not name a type define AUDIO_PT8211_OVERSAMPLING All I did was uncommenting the lines: define AUDIO_PT8211_OVERSAMPLING & define AUDIO_PT8211_INTERPOLATION_LINEAR Any idea what might be...
  31. D

    Yet Another File Player (and recorder)

    Thanks you @h4yn0nnym0u5e. I couldn't find out how to adapt your code to mine honestly, but found an old sketch a friend made some time ago for multifile recording using an eeprom function. Hard for me to fully understand it but it works, just PM me anyone interested on it; I don't post it here...
  32. D

    Yet Another File Player (and recorder)

    Can I ask for suggestions on how to record multiple files in a row, pretty much the way audio recorders work? The current way Record.ino works replaces the recorded file each time you record. I need it to record a new file each time pressing the record button, with a differently numbered...
  33. D

    Teensy-WavePlayer extended library

    Thanks a lot, your library definitely goes in the right direction. I tried recording and it works.
  34. D

    Teensy-WavePlayer extended library

    I'm trying to record stereo WAV audio on the Teensy 4 using Frank Boesing's WavePlayer extended library. When compiling Arduino IDE does not recognise 'AudioRecordWav' as a type, even though the library is in the /Arduino/Libraries folder. I've also tried including the library's keywords.txt...
  35. D

    I2S ADC Input Data Troubleshooting

    Hi all,, How can I know if the Teensy (4.0) is effectively receiving I2S data from an ADC? I made a PCB where all connections from the Teensy to an AK5381 ADC are made: MCLK(pin23), LRCLK(20), BCLK(21) and DATAIN (pin8). I measured all signals with an oscilloscope and all of them seem...
  36. D

    Ak4384 dac i2s

    Hey Paul and everyone, So this DAC works, but I get rushes of noise that I've tried everything to solve. Resistors of many magnitudes (below 470R) across the I2S lines, all decoupled as per datasheet. Same happens with another DAC so it not specific to this one. I tried also lowering the...
  37. D

    Ak4384 dac i2s

    Thank you for your time Paul. It was quite a revelation for me that 'parallel' meant only pins L and H. I tried already in a few occasions what you mention, following the datasheet as well. The signal seems to be there behind a lot of noise and the power up process seems tricky. PDN pin has to...
  38. D

    TDA1387 I2S oversampling

    I'm using some TDA1387 chips in parallel with the Teensy 3.6 since some time. The sound is very good, this chip as many other NOS DACs is known for its soundstage and natural sounding, but lack of detail can be a bit problematic to be. I've been wondering for some time if oversampling would...
  39. D

    Ak4384 dac i2s

    Thank you. Sounds like I would need to wire pin8 (DIF0) to a digital pin in the teensy and write the code to set the mode, but I have no experience on that. Is there any copy paste from code from a similar device I could do? Or any reference to start with? Or better forget about it? In any case...
  40. D

    Ak4384 dac i2s

    Hi all, I've got this chip AK4384 while disassembling an old Tascam interface. I placed it on an adapter and connected everything I could, but it doesn't work. I think it is not set to I2S mode. The data sheet says pin8 (DIF0) should be high, also DIF1. But there is no DIF1 pin. So I guess the...
  41. D

    USB Audio samplerates added

    I know that @FrankB got a bit tired of this subject but having 48.000kHz via USB would be really useful (with Teensy 3 also). When using the Teensy as a USB device in any the DAW, the whole project has to be limited to 41.1kHz just because of the Teensy. Meaning that if most other files are in...
  42. D

    Teensy 4. USB host port as device port (clone).

    Thanks a lot for the advice @liudr. I tried removing a microUSB connector today with a heatgun and it took me 2 seconds to take it out flawlessly. Wish I had done before that way with the T4, but next time ;)
  43. D

    Teensy 4. USB host port as device port (clone).

    Teensy 4 back to life. Man that was tough.
  44. D

    Teensy 4. USB host port as device port (clone).

    Thanks a lot for your answer @liudr! I didn't know those adapters existed :) Very practical. The space where I'm trying to fit the T4 is very tight, not even the USB connector as it is now–a little bit to the outside–fits. So I was planning to remove the connector anyways and use the pads...
  45. D

    Teensy 4. USB host port as device port (clone).

    Hi, Is there an easy way to turn the T4's USB Host port into a clone of the main USB (Device) port? I need to solder an external USB connector to the T4 but now I realise that D+/D- pads on the back are for the secondary USB port, differently from other Teensy models. There are no terminals to...
  46. D

    "Glitches" I2S Teensy 4.0 > DAC (flat wave)

    Small update: - Glitches also occur when playing 16bit WAV files. - I tried a Macbook Air 2012 with OSX 10.14 and now a MacBook Pro 2015 OSX 10.13. Both present the same problem. DAWs tend to be more prone to it. How complex is it to disable the underrun condition temporarily Paul? I'm all for...
  47. D

    "Glitches" I2S Teensy 4.0 > DAC (flat wave)

    I tried it Paul. Lowering the USB speed to 12Mbit/s seems to help a bit, but the glitches are still there. I verified that speed is now 12Mbit/s in the Mac System Report –which only became effective after reseting the Teensy with the hold button. They happen with any sound source I've tried in...
  48. D

    "Glitches" I2S Teensy 4.0 > DAC (flat wave)

    Hi Paul! Thanks for your interest. Operating system is OSX (10.14). Software transmitting is OSX audio engine as well. Strange enough with T3.6 there's no problem, but I can make tests with other software engines (ie. Ardour or Audition) or simply Windows and report again.
  49. D

    "Glitches" I2S Teensy 4.0 > DAC (flat wave)

    Thank you for answering MarkT! I'm sorry for omitting the code. Here it goes, actually very simple but I also suspect a software problem. #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> // GUItool: begin automatically generated code AudioInputUSB...
  50. D

    "Glitches" I2S Teensy 4.0 > DAC (flat wave)

    Hi All, I've been dealing with this problem in the last 3 days. Teensy 4 connected to a DIY DAC based on TDA1387. Only BCKL, LRCLK and DOUT connected, no MCLCK is needed by it. When listening, a very annoying "click" is heard every 10sec. aprox. out of the DAC. Sometimes it can play for a...
Back
Top