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

Thread: Advanced Microcontroller Audio Workshop Help!

  1. #1
    Junior Member
    Join Date
    Sep 2020
    Posts
    5

    Advanced Microcontroller Audio Workshop Help!

    I've been working on the Advanced Microcontroller Audio workshop off and on for a couple of months. I'm on Part 2.1 - First Design Tool Use. Been going ok so far, but a couple of things.
    1. After creating and copying the audio system, the instructions say "Step #4: In Arduino, open the Part 2-1 example File > Examples > Audio > Tutorial > Part_2_01_First_Design_Tool_Use". When I open up Arduino, I see it has no Audio examples. Teensyduino has the required example, so I open that. Should the instructions say Teensyduino instead of Arduino?

    2. I paste the audio system code into the space where the instructions say to. A bit after I click "Verify", I get this message -Click image for larger version. 

Name:	First Design Tool Screen Shot.jpg 
Views:	16 
Size:	126.7 KB 
ID:	21918 At the bottom of the screen, it says "'AudioPlaySDWave' does not name a type". I have NO clue what this means. Comparing it to the image in the project, they look the same to me.
    What gives?
    Keep in mind that I'm VERY new at this.
    Thanks!

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,488
    You are using Arduino Version 1.8.12. The current version is 1.8.13. You probably have an older version of Teensyduino too.
    Install the latest Arduino IDE and then install the latest Teensyduino and try again.

    Pete

  3. #3
    Junior Member
    Join Date
    Sep 2020
    Posts
    5
    Quote Originally Posted by el_supremo View Post
    You are using Arduino Version 1.8.12. The current version is 1.8.13. You probably have an older version of Teensyduino too.
    Install the latest Arduino IDE and then install the latest Teensyduino and try again.

    Pete
    Thanks for the quick reply! I downloaded and installed latest Arduino and Teensyduino. Same results.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,033
    You need to download Teensyduino from this page.

    https://www.pjrc.com/teensy/td_download.html

    Since the tutorial was written, Apple added a notarization requirement for Mac software. We now have an all-in-1 download, which is the only way that works on MacOS 10.15 (Catalina). If you have an older system, you could use the old installer way that's mentioned in the tutorial. It's also on that page, and documented under "Old Macintosh Installation". But the old installer definitely will not work on Catalina, and Apple might have recently published updates to Mojave too. Best to use the new version, but gone are the days where you can install Teensyduino into an existing copy of Arduino on Macintosh. Apple's new system just won't allow that sort of thing.

  5. #5
    Junior Member
    Join Date
    Sep 2020
    Posts
    5
    That's where I downloaded from. Could it be because of where I installed Arduio and Teensy? I created an Arduino Stuff sub-folder in my Documents folder, and placed them there. I've noticed in Security and Privacy, that the Documents folder isn't an option for Teensy to access.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,033
    Quote Originally Posted by DougWhoever View Post
    That's where I downloaded from. Could it be because of where I installed Arduio and Teensy?
    It doesn't matter where you put the files on your Mac. But if you download the wrong stuff, or if you download the correct software and also the wrong software and get them mixed up and end up running the wrong one, you'll get exactly that result where the Audio library isn't installed.

    You need to download this file:

    Click image for larger version. 

Name:	sc2.jpg 
Views:	10 
Size:	98.4 KB 
ID:	21919

    If you have lots of copies of the Arduino software, you need to somehow run the correct one for Teensy. Fortunately it's easy to tell apart because it's called "Teensyduino" when you see it in Finder (unless you've renamed it).

    When you run the software, you'll see it says "Teensyduino" in the menu bar between the Apple icon and File menu:

    Click image for larger version. 

Name:	sc.jpg 
Views:	13 
Size:	142.2 KB 
ID:	21920

    If your menu bar says "Arduino" between the Apple icon and File menu, that's a sure sign you're running the wrong software. Just quit, and then find the copy of Teensyduino you downloaded. Or just download a fresh copy. It's perfectly fine to run it right from your Downloads folder. You can move it anywhere on your Mac. The location of the software doesn't matter. Just make sure you're really using the Teensyduino version.

    The other thing to check is that you have Teensy selected in the Tools > Boards menu. The software dynamically chances the menus based on which board is selected. If you can't find Teensy in the Tools > Boards menu, that also is a sure sign you're running the wrong software (a copy of Arduino without the Teensyduino stuff).

  7. #7
    Junior Member
    Join Date
    Sep 2020
    Posts
    5
    The latest versions of Arduino and Teensyduino were installed. I deleted them anyway, downloaded new versions to my Downloads folder. I installed and ran Arduino first. Then I installed and ran Teensy. Same results.
    Click image for larger version. 

Name:	Screen Shot 2020-10-01 at 1.30.28 AM.png 
Views:	6 
Size:	345.8 KB 
ID:	21935

  8. #8
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,033
    Ah, now I can see the problem with this new screenshot that has the code scrolled farther up.

    Click image for larger version. 

Name:	sc.png 
Views:	10 
Size:	32.1 KB 
ID:	21938

    The include for Audio.h is commented out. Just delete the "//" at the beginning of that line!

  9. #9
    Junior Member
    Join Date
    Sep 2020
    Posts
    5
    SWEEEEET!! Working now. Thanks!!

Posting Permissions

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