Search results

  1. N

    Looking for circuit to use S/PDIF coax output

    With help from the fine folks here, I was able to get TOSLINK in/out to work with a teensy 4.1. It is a "man in the middle" between source and amp and can apply filters/effects to the audio. Works quite well.
  2. N

    Record while playing a stereo wav file

    OK, pulled all three files (source, recording-1, and recording-2) in Audacity. Reviewed each in detail, recording-1 was 1 one-hundredth of a second longer than the original wav file but the extra was "dead air" so apparently Audacity ignored that and when I inverted the source and merged the two...
  3. N

    Record while playing a stereo wav file

    Thanks VERY much for that info. I actually ran into [I believe it was you] informing someone else on another much earlier thread on how to "pause" the interrupts so you could setup for recording but I could not remember exactly how it was worded, spent an hour doing different forum searches to...
  4. N

    Record while playing a stereo wav file

    OK, did things. Move the startRecording( ) from before, to after startPaying( ). I also fetched the latest buffered-SD audio source from h4yn0nnym0u5e. Now when I do a fresh compile and load of code to the Teensy, the initial run produced an exact copy of the source wav file in size and...
  5. N

    Record while playing a stereo wav file

    OK, I was able to put together a program to play a stereo wav file from an SD card, record it back as a stereo wav to another file on that SD card while outputting the initial file to the line out (of either the PT8211 or audio shield) - swiped most from various example programs. So far so good...
  6. N

    Record while playing a stereo wav file

    Sorry if this is too obvious. I have searched the examples, forums, and some of the code libraries [could be just not seeing it] and am unable to find a complete, "simple" example of playing a stereo wav file from an SD card, running it through an effect, and recording it back to an SD card with...
  7. N

    Teensy 4.1: Implementing an embedded system on Teensy 4.1 for a custom designed PCB

    If all you are wanting to use is the IC for the Teensy, that would be a ARM Cortex-M7 at 600 MHz. You would likely have to go to the manufacturer's references for the type of information you are looking for.
  8. N

    Optocoupler Power Question

    Not your bad, just a knowledge/understanding deficit (of which I have plenty). Not sure about everyone else but I use optocouplers to electrically isolate one side of a circuit from the other, you could think a digital relay vs. a toggle switch. As an example, I played with coil guns a while...
  9. N

    Electric Desoldering Iron / Solder Sucker - Desoldering Pump

    I have had to use this a couple/few times since getting it and so far it has done the job very well. The one I got came with two hollow tips of difference sizes. So far the default, pre-installed tip has worked fine. It has removed all of the solder from board holes quite cleanly so far, it is...
  10. N

    Electric Desoldering Iron / Solder Sucker - Desoldering Pump

    Not sure if "everyone" already knew about these but I just found out about them earlier this year and WOW. Prior to getting this I used solder wick and a manual solder sucker pump. These tools still have their place but that place is a LOT smaller [for me] now. This is SO much better. I got a...
  11. N

    New Teensy 4.1 bricked - U4 chip overheats with USB

    Have you visually inspected the board under magnification to verify that the soldering looks good and no parts look cracked/burned? Read elsewhere where someone found a cracked cap (fortunately it was not critical) to the board. Maybe someone with more electronics/Teensy experience can recommend...
  12. N

    New(ish) Teensy Won't Connect

    You can go here to understand what the "blink" codes mean and can progress from there: https://www.pjrc.com/store/ic_mkl02_t4.html (near bottom of page). According to that information; 3 Blinks = Flash Chip Error, Missing or Incorrect ID. The flash memory chip did not respond to the JEDEC ID...
  13. N

    New Teensy 4.1 bricked - U4 chip overheats with USB

    Have you tried resetting it to factory? Does the factory reset run and does that revive it? Memory Wipe & LED Blink Restore Teensy 4.1 will fully erase its non-volatile memory and return the flash memory to a simple LED blink program if the program button is held between 13 to 17 seconds. The...
  14. N

    Teensy 4.1 w/PT8211 problems

    OK, just had time to check and the startup.c file at this location: "C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4" has this "code change": __attribute__((optimize("O2"))) // added 20230107 to resolve issue with audio.h and compiling in Arduino with "debug" optimization...
  15. N

    Teensy 4.1 w/PT8211 problems

    OMG just solved it! Was giving it one last go before setting up a vbox environment and remembered that I had a prior issue when I compiled a program using the Audio library with the compiler set to debug. The compiler optimization [right now] was set to "Fastest". I changed it to "Faster" and...
  16. N

    Teensy 4.1 w/PT8211 problems

    Thanks for the comments and suggestions. My versions are (which should be good to go per your message): Arduino 1.8.19 Teensyduino 1.57 Teensy Loader 1.75. I don't have a second computer but I will see if I can spin up a clean version of windows or Ubuntu in vbox to try.
  17. N

    Teensy 4.1 w/PT8211 problems

    This is driving me NUTS! I have two newly acquired and assembled PT8211(s) that I am trying to pair with Teensy 4.1 boards that are no Ethernet. One is lockable and one is not. The lockable has the PT8211 in a top mount configuration. The non-lockable 4.1 is breadboard connected to the PT8211...
  18. N

    Default Blinks

    I encountered a similar issue a little while back and in my case the error condition was caused by a combination of the libraries I was using and the compiler flags. Not saying your issue is this but worth checking. Details are here...
  19. N

    Compiling Teensy code in Arduino IDE 2.0.3

    Well a LOT of information is contained at this page and its sub pages: https://www.pjrc.com/teensy/ There are tutorials for the audio library (some) but most of the information is documentation about the hardware and the teensy Arduino libraries, all available in those pages at the link. There...
  20. N

    Compiling Teensy code in Arduino IDE 2.0.3

    I believe that the teensy libraries (to include the audio library) only work with the teensy hardware. If you load up the teensy board definition into the IDE and install the libraries you should be able to develop/compile the code just fine. You will just not be able to load it onto a...
  21. N

    CODE 2 - Errors

    Additonaly, that first error in the latest attempt looks like a continuation of the original error: C:\Program Files (x86)\Arduino\hardware\teensy\avr\audio-guestbook_2\audio-guestbook_2.ino:56:2: error: expected unqualified-id before '-' token -38,12 +39,14 Looks like the same issue with...
  22. N

    Teensy 4.1 / audio shield issue

    OK, since it is now "solved" I went back to try your fix. I edited the [C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4\startup.c] file to include your suggested change by adding this line above the shown function (was at line 512): __attribute__((optimize("O2"))) Verified no...
  23. N

    Teensy 4.1 / audio shield issue

    Dang @*^#^%#! That did it! Changing to "Fastest" and it now works just fine! Thank you VERY much for suggesting that. I don't recall when it changed to debug, this is a new install of all so either that is the default or I set it to that like day of installation. I was testing Arduino with the...
  24. N

    Teensy 4.1 / audio shield issue

    This Teensy board was being successfully used with an audio shield prior. I modified the audio shield (removed a cap connecting one of the pins so as to make use of SPDIF out instead of the audio jack. This also worked successfully. I started another project where I am not using SPDIF out so...
  25. N

    Teensy 4.1 / audio shield issue

    Really? I thought you only needed to include "Audio" or "MIDI" if you were using the USB connection from the PC as thought the Teensy were to be treated as an audio device? I am generating audio within the Teensy or from the SD card to the audio shield output. I had another Teensy/audio-shield...
  26. N

    Teensy 4.1 / audio shield issue

    I have a Teensy 4.1, no Ethernet, not lockable, that I attached a new, not prior used PJRC audio shield to and am having some troubles/issues. I am using Arduino 1.8.19 with the Teensy libs/loader 1.57. USB type of serial. I am using a good SD card loaded with the test files. This is on a 64bit...
  27. N

    Teensy 4.0 PCB layout suggestion

    NO! Thanks for all that information! It is always good to get additional insights into what it takes to get from idea to production. I "play" with a number of different micro-controllers and electronics but [I suspect like a lot of "hobbyists"] have never ordered a PCB nor produced production...
  28. N

    Any tips for teensy 4.0 availability?

    Does that include the TEENSY41_NE_LOCK? Thanks.
  29. N

    opto-coupler to emulate a button press?

    I don't see why not. I have used opto-couplers to enable 3.3v to "fire" [while electrically isolated from] higher voltage systems. I make use of these opto-couplers: 6N138
  30. N

    Modify audio on the fly, can do?

    That is "strange" yet interesting... I have been having a good old time with the new scope and the other [cheap] audio components I acquired and can now easily generate a signal from the scope, convert it to SPDIF, route it to the T4.1, get the output and convert it to audio to hear. Can also...
  31. N

    Modify audio on the fly, can do?

    OK, now I am super confused.... I removed the caps and resisters on the prototype board (why not, the breadboard version ran this test fine) and reran the test, same [bad] results (2KHz in & 1.8KHz out). I then says to myself "I have this other T4.1 sitting right here that worked for the...
  32. N

    Modify audio on the fly, can do?

    K, here is where I am... - Got a Hantek DS02D15 and have been messing with it for about a week. So far liking it a lot. A 4 chan would be nice but for this price... - Also got an audio to SPDIF (A2S) converter. - Also got a SPDIF to audio (S2A) converter. For a verification test I: - Set the...
  33. N

    Modify audio on the fly, can do?

    I read that earlier as well and have already cut that part, don't need to install a volume adjustment on the board. My existing scope is "not much" and I am not getting actionable results with it for this. It has been fine for PWM signals but is not working for wave forms. I believe I will...
  34. N

    Modify audio on the fly, can do?

    Great, will do that update! To confirm what you said [farther] above, I can take the T4.1 w/audio shield (does not even really need to have the shield) and load a sketch that outputs a fixed frequency sign wave. Connect the SPDIF out of that board to the SPDIF in of another T4.1. On the second...
  35. N

    Modify audio on the fly, can do?

    Sorry for the confusion. The above code was used both ways, with async SPDIF and without. The "with async SPDIF" works as expected and the "with out" causes the static in the output. I used the posted code both ways. Currently the only SPDIF in/out devices I have are a TV and sound bar so for...
  36. N

    Modify audio on the fly, can do?

    Will give this a go for sure! Just to verify, I would need to replace the entire audio library with yours at the link, yes? If not what do I need to do? Once you confirm I will apply your code, recompile and test. Thanks much! Update, OK downloaded/replaced the "stock" audio lib with all of...
  37. N

    Modify audio on the fly, can do?

    OK, finally had a chance to try this out and it does something "strange" for me. When I make that change, the "interference" is resolved BUT none of the sound manipulations seem to be involved at all. I put together a small example to demonstrate. If I make that one edit and load the below code...
  38. N

    Modify audio on the fly, can do?

    Thanks for all of the replies/info! Much appreciated! I reviewed a lot of the forum posts on the SPDIF interfaces (software and hardware) and did read in other posts about others making use of AudioInputSPDIF3 and AudioOutputSPDIF3 together so assumed that information was more accurate than the...
  39. N

    Modify audio on the fly, can do?

    Project update and question(s)... Project update... OK, I am pretty much all done with pulling this project together and the Teensy platform, Paul, and this forum have been just outstanding in me getting started and going with this project. I have Arduino experience with other...
  40. N

    Help understanding mixer gain()

    I have been experimenting with the audio library and with multiple mixers. I have also reviewed the PlaySynthMusic example but am still confused at to the relationship between combinations of mixer channels and the gain control. The documentation for mixers in the audio design tool is just not...
  41. N

    Modify audio on the fly, can do?

    Thanks for that info. Ideally I would like both a Toslink input and output solution(s) that have I2S on their other ends and can run on the 4.1 Teensy' voltage. The S/PDIF would get its own (not powered from the Teensy) but at least the same voltage to simplify the power side. The board I found...
  42. N

    Modify audio on the fly, can do?

    Did not see that first thread. Did see the board link and then lost that link so thanks for posting it. That board looked very good/interesting. I don't know enough to know if that board is compatible with the Teensy 4.1 but also it only gets me half way there with inexpensive output but I would...
  43. N

    Modify audio on the fly, can do?

    OK, this is working out pretty well, much better than my efforts with the STM32 platform (each according to their abilities). Using the Teensy 4.1, audio board, and audio library, I have been able to framework my effect and get it running off of SD card wave files to the audio board head-phone...
  44. N

    Modify audio on the fly, can do?

    Background, I have experience with Arduino(s), STM32Fx(s), and ESP32(s), all under the Arduino IDE development environment and have done a number of different types of projects involving I2C, optical sensors, interrupts, etc. but until now never any audio work. I have been playing with both the...
Back
Top