Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: Using the Audio System Design Tool for Teensy 4.0

  1. #1
    Junior Member
    Join Date
    Aug 2019
    Posts
    7

    Using the Audio System Design Tool for Teensy 4.0

    Greetings All!

    I just became aware of the great node-red like Audio System Design Tool (ASDT) for Teensy: https://www.pjrc.com/teensy/gui/
    This looks like a GREAT tool! I have used Node Red before, but never for generating actual firmware.

    1. Does this tool currently work for Teensy 4.0?

    2. When I drag/drop an output -> PWM block, I see that the PWM carrier frequency is 88.2kHz for the Teensy 3.1 (CPU speed is set at 48 or 96 MHz). What are my settings/carrier frequency if I am using the Teensy 4.0? ( CPU clock = 600MHz [?] )

    3. Here's my REAL question: I would really like to use the ASDT for a different application: motor control with the teensy 4.0. If I can get the PWM carrier above 20kHz, I think it is possible.
    There are some existing blocks that are already useful for motor control (the "multiply" block, and the "filters" blocks), but we are missing basic control blocks (addition, subtraction, division, etc.).
    --> Is there a way for me to add custom blocks (I.E. an addition/subtraction block) to the ASDT?

  2. #2
    Does not work for Teensy 4

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,674
    Quote Originally Posted by rt54321 View Post
    Greetings All!

    I just became aware of the great node-red like Audio System Design Tool (ASDT) for Teensy: https://www.pjrc.com/teensy/gui/
    This looks like a GREAT tool! I have used Node Red before, but never for generating actual firmware.

    1. Does this tool currently work for Teensy 4.0?

    2. When I drag/drop an output -> PWM block, I see that the PWM carrier frequency is 88.2kHz for the Teensy 3.1 (CPU speed is set at 48 or 96 MHz). What are my settings/carrier frequency if I am using the Teensy 4.0? ( CPU clock = 600MHz [?] )

    3. Here's my REAL question: I would really like to use the ASDT for a different application: motor control with the teensy 4.0. If I can get the PWM carrier above 20kHz, I think it is possible.
    There are some existing blocks that are already useful for motor control (the "multiply" block, and the "filters" blocks), but we are missing basic control blocks (addition, subtraction, division, etc.).
    --> Is there a way for me to add custom blocks (I.E. an addition/subtraction block) to the ASDT?
    Generally the Audio system does indeed work on Teensy 4.0 AFAIK - certainly there may be elements that aren't tuned up yet. For those to get addressed it would take posting of the issue and sample or details to repro and resolve.

    The Teensy 4 Clock system is nice and unique and not tied to the CPU Frequency. And PWM freq does have a few settings higher than 20KHz on some pins up to some MHz

  4. #4
    Senior Member Wozzy's Avatar
    Join Date
    Jan 2013
    Location
    Philadelphia, Pennsylvania USA
    Posts
    354
    Quote Originally Posted by donperryjm View Post
    Does not work for Teensy 4
    Can you elaborate.
    I have the Audio Tools working great on my Teensy 4.0.
    The current version of the PJRC audio board works well with it T4.0 but it is not directly stackable as some of the pins have moved around.
    I've had success both with examples, and with some quick trials created using the design tool.
    Last edited by Wozzy; 08-28-2019 at 05:34 PM.

  5. #5
    Quote Originally Posted by Wozzy View Post
    Can you elaborate.
    I have the Audio Tools working great on my Teensy 4.0.
    The current version of the PJRC audio board works well with it T3.0 but it is not directly stackable as some of the pins have moved around.
    I've had success both with examples, and with some quick trials created using the design tool.
    I'm unable to flash the device as a sound driver, therefore the audio tool doesn't work to that end. Maybe works as you have it, maybe as an independent audio device.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,549
    Yes, the non-Serial USB device types aren't supported yet on Teensy 4.0. They will be added in a future version of the software.

    I'm sure to you, this must seem like part of the audio design tool. But when you say the design tool doesn't work, and you give no specific details, everyone else who does understand how the software is implemented in different components can't understand what you mean.

  7. #7
    OK yes I realize that now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •