Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • tedm's Avatar
    07-26-2022, 07:06 PM
    Yep. it sure sounds like you have a wonky or badly adjusted switchhook / hook switch. Try bending the metal parts that operate the switch and maybe change the bounce value to be bigger.
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-25-2022, 01:28 PM
    Ferrite bead might help, no harm in trying.
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-25-2022, 11:02 AM
    The reverse wiring on the mic did cure all my buzzing but I had already taken great care to route the mic wires away from all the others, especially the wires to the buttons. You can also try twisting the wires from...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-20-2022, 12:37 PM
    I'm new to Teensy and not very familiar with Arduino but am good with PSoC Creator. Seems to me that, rather than use the in line coding of the buttonxxx functions, I could set up a timer ISR called say 16 times a...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-19-2022, 03:25 PM
    So the latest full code is at the bottom of this post. I still have a small issue that may be to do with the way the wav player works. Here's the issue (see snippet below). case Mode::GreetingIsPlaying: //...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-19-2022, 02:38 PM
    Update. I investigated the handset wiring and found that there was an electret condenser mic in it but the black wire was not ground (never assume!) so the polarity of the supply to the mic was reversed and there was...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-18-2022, 06:15 PM
    Rats, I have it all put together now and I get a high pitched buzzing on all my recordings, I've tried screening the mic cables but it hasn't gone away. Any ideas?
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-17-2022, 10:23 AM
    Just to help anyone following in my footsteps... To get documentation on SDFAT, go to this github page, download the zip file and expand it to a location of your choice, then look for the file index.html and open it...
    3 replies | 135 view(s)
  • tedm's Avatar
    07-16-2022, 01:05 PM
    Thanks Kurt, I'll dig into that. Ted
    3 replies | 135 view(s)
  • tedm's Avatar
    07-16-2022, 12:30 PM
    I'm starting a project that uses the SD card slot on the Teensy 4.1. Can anyone please provide: 1. An example of code that's written to use the SD Fat code on a Teensy 4.1 and using the SD slot on the Teensy 4.1...
    3 replies | 135 view(s)
  • tedm's Avatar
    07-16-2022, 12:24 PM
    In case anyone reads through this thread and wants to know how to make this project work, I made this same project following the linked Youtube video above but found that the code was buggy, particularly around the...
    15 replies | 489 view(s)
  • tedm's Avatar
    07-12-2022, 09:06 PM
    A single pole changeover is just what you want, it's the same as SPDT. If you connect the common (center) connection to the switch input, one end will be normally closed and the other normally open.
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-12-2022, 12:08 PM
    All the system needs is a switch that operates correctly; your edit shows that you have proved it's the switch. A microswitch will not require any code changes. Microswitches are usually single pole, double throw so...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-12-2022, 10:27 AM
    It's almost certainly a bad switch. Things you could try: 1. Bend the metal arm slightly (we did this all the time when I worked for POTS company) 2. Squirt some contact cleaner inside the switch if possible 3....
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-11-2022, 01:35 PM
    I didn't install the C++ Workload first as the VisualMicro instructions ask for (they also ask for English to be installed but I haven't done that yet). After C++ Workload was installed, I did get the option to use a...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-11-2022, 12:43 PM
    So I already had Arduino installed under mt Users/Documents folder. I installed Visual Studio 2022 and then used Extensions to install the Arduino plugin. Then I was able to open and edit the .ino file in the main VS...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-11-2022, 11:52 AM
    Hmmm, I wasn't aware of VisualMicro but reading their page, it isn't clear how it relates to Arduino, is it like a wrapper layer GUI?
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-11-2022, 11:35 AM
    It should be pretty simple to add #ifdef conditional compilation statements to the code so that the user just sets the logic for the switch hooks in one place and then the code is changed throughout the project as...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-11-2022, 11:28 AM
    tedm replied to a thread SGTL5000 shortages in Audio Projects
    Excellent. Now I recall, the problems I had were related to use with an audio Amp IC that had to run as a slave and there was a BT module in the mix that could run at 2 different clock rates so I had to create the WCLK...
    16 replies | 538 view(s)
  • tedm's Avatar
    07-11-2022, 10:33 AM
    tedm replied to a thread SGTL5000 shortages in Audio Projects
    I like the TLV320AIC23BPWR because a) it's available as an SOIC (PW package) which means that a PCB that can be self-assembled (by me) for prototypes. Once the bugs are ironed out, it can shift to VQFN (RHD package) for...
    16 replies | 538 view(s)
  • tedm's Avatar
    07-10-2022, 06:09 PM
    tedm replied to a thread SGTL5000 shortages in Audio Projects
    How about the TLV320AIC27 ? Although Digikey says they are obsolete, they are <$3 each and are available. I can design an audio PCB for this or some other coded IC if there's enough interest?
    16 replies | 538 view(s)
  • tedm's Avatar
    07-09-2022, 11:27 AM
    You're welcome. It sounds like your switch hook (the switch that operates when you lift your phone) is faulty. Try putting another switch in the circuit and test that it operates correctly; if it does then you need to...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-07-2022, 10:52 PM
    finalcut There are SIGNIFICANT changes between the switch statement in your code and mine. I've updated the code to handle the sending of the recorded message and then wait until that message has been sent before...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-07-2022, 06:19 PM
    OK, so I made the code changes suggested by h4n0nnym0u5e and, as far as my limited testing has gone, the logic works fine. The problem I have now is a buzzing noise on the recorded audio which I think is higher than 60...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-07-2022, 05:14 PM
    A quick question on Teensy code functionality concerning when the buttons are tested for a rising or falling edge. If the user lifts the handset then the function buttonRecord.update(); that's at the top of the loop...
    79 replies | 1963 view(s)
  • tedm's Avatar
    07-07-2022, 04:32 PM
    I think your connections are correct, it is the tip and sleeve for audio playback. I'm working on this today; have you increased the volume of the greeting playback - the level for the tones are set separately I...
    79 replies | 1963 view(s)
  • tedm's Avatar
    06-29-2022, 12:29 AM
    Thanks for confirming that the switch statement is not well written and especially thanks for your suggestion on how it should be written; I'll try a code tweak tomorrow.
    79 replies | 1963 view(s)
  • tedm's Avatar
    06-28-2022, 05:21 PM
    It seems that the while (playWav1.isPlaying()) code works the first time it's called but doesn't work the second (and subsequent) time(s) it's called. In the code section below, it should wait until the outgoing message...
    79 replies | 1963 view(s)
  • tedm's Avatar
    06-28-2022, 01:01 PM
    Hmmm, so the test I just did had this effect: 1. The bootup was normal, phone down and I hear the power up beep from the earpiece as I power up. 2. Lift phone and hear the outgoing message then record tone, I record...
    79 replies | 1963 view(s)
  • tedm's Avatar
    06-28-2022, 12:25 PM
    I've been married for over 23 years (3rd time lucky), the wedding Ion Jul 29th is for my youngest son; hope your wedding goes well. I've just retired (Aug 2021) and electronics is a great hobby for retirement. I was...
    79 replies | 1963 view(s)
  • tedm's Avatar
    06-28-2022, 11:04 AM
    There's a comment under the Youtube video by Surreylic, and one of the answers says... nevermind, had enough time to figure it out myself. But thanks for your hint, saved the wedding today! For anyone with the same...
    79 replies | 1963 view(s)
  • tedm's Avatar
    06-27-2022, 12:56 PM
    I built the project shown under this Youtube entry using a Teensy 4.0 and the 4.0 Audio card and a Sandisk Ultra 32 GB micro SD card; it sort of works but there are issues that I see have been experienced by others...
    79 replies | 1963 view(s)
  • tedm's Avatar
    06-26-2022, 01:40 PM
    Thanks, I know what a codec is but I was thrown by the column in the list that says the PCMxxxx chips have 2 outputs - I should look at the actual datasheets I guess.
    14 replies | 510 view(s)
  • tedm's Avatar
    06-26-2022, 01:14 PM
    Thanks JayShoe, that is a big list of supported Codecs. For the PCMxxxx ICs you suggested, how do they work as pedals if they only have 2 outputs?
    14 replies | 510 view(s)
  • tedm's Avatar
    06-25-2022, 02:52 PM
    One dream I've had for a while is the idea of a guitar pedal that's on the floor but the controls are remoted to an iPad - ideally wirelessly. A long time ago, I briefly worked on a project that used an iPhone for...
    14 replies | 510 view(s)
  • tedm's Avatar
    06-25-2022, 02:43 PM
    Thanks, I have designed, made PCBs for, and built a few guitar effects pedals plus an entire guitar amp (presently at Vn 2) so I do have some experience on handling guitar signals but I don't claim to know it all so I...
    14 replies | 510 view(s)
  • tedm's Avatar
    06-25-2022, 11:34 AM
    Thanks for the steer to a VERY relevant thread :D I have a Teensy 4.0 running with a Rev D audio board (my first Teensy project) plus I have a Teensy 4.1 on the way to me. It strikes me that the Rev D audio board is...
    14 replies | 510 view(s)
  • tedm's Avatar
    06-25-2022, 12:00 AM
    Thanks for all the input and ideas so far. I managed to order a Tennsy 4.1 from Adafruit and the audio PCB that goes with it from Amazon. I thought about using RAM to store the loop data but the biggest SOIC RAM chip...
    14 replies | 510 view(s)
  • tedm's Avatar
    06-24-2022, 12:13 AM
    I'm a (just) retired embedded engineer (hardware design and some coding e.g. drivers) but just starting on Teensy. I have this idea for a looper based on the Teensy 4.1 but, to have useful loop storage, it would have...
    14 replies | 510 view(s)
No More Results
About tedm

Basic Information

About tedm
Location:
Ann Arbor, Michigan USA
Interests:
RC planes/helis, Guitar, Electronics
Occupation:
Retired

Statistics


Total Posts
Total Posts
39
Posts Per Day
0.73
Last Post
Teensy 4.0 - based Audio Guestbook 07-26-2022 07:06 PM
General Information
Last Activity
07-31-2022 06:31 AM
Join Date
06-15-2022