Search results

  1. T

    PCM5012 I2S DAC with Teensy 4.1

    It's been a while since I used the PCM5102 but I believe the VIN pin will power it, as it requires 5V.
  2. T

    T4.1 unresponsive after SD.begin when powered by Adafruit Powerboost 500 Basic

    I am trying to make a standalone device using a Teensy 4.1 powered via USB using an Adafruit Powerboost 500 Basic attached to 2x AA batteries. When I try to initialise the onboard SD card with this setup, the Teensy stops responding. When powered from a PC or USB wall charger using the same USB...
  3. T

    VS1053b audio codec - no audio output

    This works perfectly, thank you very much Paul! For anyone using the onboard SD reader on the T4.1, don't forget to switch the SCDS definition back to BUILTIN_SDCARD. Part of my issue may have been the file I was using for testing. It's a WAV file that plays fine on my Windows machine, and I...
  4. T

    VS1053b audio codec - no audio output

    I am trying to play audio from the Teensy 4.1's SD card with a VS1053b audio codec chip. I am using the library from Tobias van Dyk, who has ported the Adafruit library into a single sketch version for the T3.6 and T4.1 (super helpful, thanks Tobias!). The breakout board that I'm using is from...
  5. T

    VS1053 Adafruit library 'player_simple' example doesn't compile for Teensy 4.1

    You are correct, I'm now attempting to use this library which asks you to comment out any references to SREG if using a T4.1. The example in this new library does compile but I'm yet to get any audio out of the headphone jack - will post this in a separate topic though.
  6. T

    VS1053 Adafruit library 'player_simple' example doesn't compile for Teensy 4.1

    I'm trying to use the Adafruit_VS1053 library which is included with Teensyduino 1.56 on a Teensy 4.1. Unfortunately, the player_simple example does not compile, returning these errors: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_VS1053\Adafruit_VS1053.cpp: In member...
  7. T

    Compressed audio length, playback position, and seek

    For context: I am building an SD card audio player using a Teensy 4.1, sending audio over I2S to a PCM5102. I have been using Frank B's fantastic Audio Codec library to play MP3 and M4A files. Amazing as this library is, I am missing the ability to get the track length and position in...
  8. T

    Read ID3 tags from audio files

    Unfortunately MusicBee won't handle non-standard tags for AAC files so that puts paid to that idea, even if it is possible to shoe-horn ID3 tags into them: https://getmusicbee.com/forum/index.php?topic=36098.msg197564#msg197564 Worth a try though!
  9. T

    Read ID3 tags from audio files

    Yes it seems like ID3V2.4 is the update nobody really asked for. This is what I'm finding too... Great call on using *.aac instead - I'm syncing files using MusicBee so hopefully I can get some automatic conversion done on export. That would save many headaches!
  10. T

    Read ID3 tags from audio files

    Absolutely correct, it works like a charm now! #include <SD.h> #define SDCARD_CS_PIN BUILTIN_SDCARD SdFat sd; SdFile dir; File file; #include "SPI.h" char itemToOpen[256]; String title; String artist; String tracklen; void setup() { // put your setup code here, to run once...
  11. T

    Read ID3 tags from audio files

    You're a legend, thank you very much! We're definitely getting close. It works perfectly for the file that I was using to test, however it's not consistent with other files. This is pretty much identical, except there's a new function for clearing the Strings, opening and closing the file, and...
  12. T

    Read ID3 tags from audio files

    That would be amazing if you have a spare moment, thank you!
  13. T

    Read ID3 tags from audio files

    Perfect, all compiles with no issues! The next problem is actually retrieving the frame data. I've added some more debug Serial.prints and the whole thing appears to run all the way through. However, it returns "PE1" for the TIT2 title, and ends before finding TPE1. It's got me a little...
  14. T

    Read ID3 tags from audio files

    That makes sense! I've crowbarred the whole thing into an Arduino sketch by replacing all functions that the IDE didn't like (mostly log_ functions). The only thing I couldn't seem to replace is the encoding section: switch(encoding) { case 0x00: //log_v("Encoding is...
  15. T

    Read ID3 tags from audio files

    Yes, for a couple of decades now I think! But it seems to be easier to parse due to its tighter structure, so I've found a few projects that read V1 but not V2. I was confused by this which, on first glance, seems to stop the whole thing if it finds version 2? if (id3.version[0] == 2 ||...
  16. T

    Read ID3 tags from audio files

    Wow that's a lot, thank you! Certainly a way above my current knowledge level but I'll take some time to decipher it. Is this for ID3 V2 as well, or just V1?
  17. T

    Read ID3 tags from audio files

    I would like to read ID3 tags from audio files stored on an SD card, using a Teensy 4.1. My first go to is to try and find a handy library, but so far I've had no joy there. The ID3 official website lists a few C/C++ libraries, one of which (id3v2lib) might be light enough to work but it isn't...
  18. T

    Future audio file format support?

    Are there plans to support more than WAV files in the stock Audio library sometime soon? Personally I'm particularly interested in MP3 and AAC. I've been using Frank B's fantastic Audio codec library and deeply admired how it can decode a variety of audio formats with minimal implementation...
  19. T

    Make an audio plugin controller with teensy 3.6

    It's really down to the individual plugin. You might have some luck with the stock plugins in your DAW. It may be possible to manually map MIDI to and from plugin parameters in Ableton or FL Studio perhaps? You would have to set this up for each individual instance of the plugin though, and it...
  20. T

    PCM5012 I2S DAC with Teensy 4.1

    Update: in clearing down my breadboard and rewiring just the DAC to take a good photo of the setup, the DAC appears to now be stable again. (Perhaps leaving it to sleep overnight and think about its attitude helped...) The solutions were, as you both correctly surmised, wiring SCK to GND, and...
  21. T

    PCM5012 I2S DAC with Teensy 4.1

    I saw that advice too. Unfortunately no dice with this configuration either.
  22. T

    PCM5012 I2S DAC with Teensy 4.1

    ...Spoke too soon. It worked for a moment, but has reverted back to no output. I have tried: - 3.3V and 5V for power - sending SCK to GND or 23 on my T4.1 - driving the other pins on the back high or low according to JayShoe's findings a couple of years ago...
  23. T

    PCM5012 I2S DAC with Teensy 4.1

    Good shout, just gave it a try. Don't remember needing 5V before, though, from what I've read around the interwebs, the PCB has a voltage regulator so it's 3.3V and 5V safe. It seems to be solved now: while messing around further with the wiring, I tried the running power and ground jumpers...
  24. T

    PCM5012 I2S DAC with Teensy 4.1

    I'm trying to use the PCM5012, a cheap DAC from Aliexpress, for an audio project that's been in development for a while. The PCM5012 has been stable-ish in the past, but now I can't get any audio from the output jack. This is the same with two different modules. In between times, the only thing...
  25. T

    Building a custom effect controller using USB MIDI and the Teensy 4.0

    You're not the only one to spot the open nature of VirtualDJ - I've got a long-term goal to make various DJ controllers using Teensy MIDI and VirtualDJ! Here's a proof of concept I made a few years ago with a T3.2: https://vimeo.com/294060358
  26. T

    Modify the contents of a text file on an SD card

    This project was shifted to the back burner for a couple of weeks, only just a chance to get back to it - apologies for the delayed reply. You are absolutely correct, I've fixed that line and the output is now: ...and the file contains nothing when opened through Notepad on my PC. These are...
  27. T

    Modify the contents of a text file on an SD card

    As part of an audio project, I'm attempting modify the contents of text-based files on an SD card (M3U playlists in this case). My initial approach is to copy the contents of the file into a std::vector, erase the contents of the file, modify the vector, then write the contents of the vector...
  28. T

    SdFat_Usage example: datalog.bin output file contains garbage

    You are absolutely correct, I see the same result. Thank you very much for the clarification! This is another good solution that I may use later, thank you!
  29. T

    SdFat_Usage example: datalog.bin output file contains garbage

    I am familiarising myself with using an SD card on a Teensy 4.1, currently investigating reading and writing text to files. The SdFat_Usage example compiles and runs just fine, and appears to be very useful and informative. However, when opening the 'datalog.bin' file in Notepad on my PC, I find...
Back
Top