Can't get Part 1 02 of Audio tutorial to work

Status
Not open for further replies.

skaurus

Active member
I don't have Audio tutorial parts actually but I was hoping to get Beeps in serial monitor just to see that something works. But there is nothing.
Basically I just connected Audio board and Teensy via header pins (Teensy is on top, pins are double insulated like these http://www.pjrc.com/store/header_14x1_d.html) and plugged in usb cable. Verifying sketch works, uploading works, monitor empty.

What am I missing? What I should check?

edit: basic program that just writes to Serial every something milliseconds works fine.
 
Last edited:
Maybe something's not connected properly? Posting a photo might let us see what's wrong...

Maybe try adding a Serial.print("something") in the loop() to see if the loop is running? Maybe also a delay at the beginning of setup() to give you time to open the serial monitor... and more Serial.print() in various places until you figure out where it's getting stuck...
 
Here is photo of what I have: http://take.ms/E84yD
Besides stacking Teensy and Audio board I soldered pins to MIC and GND on Audio board and connected them to audio jack of lavalier microphone. Those pins does not touch Teensy. Verifying if my mic works this way is next step.

Maybe also a delay at the beginning of setup() to give you time to open the serial monitor...
Why should I have delay? Tutorial 1 02 prints data every two seconds afaik.
 
The Teensy 3.2 pins don't look like they've been soldered to the header. I presume that the audio board and mic pins haven't either. You have to do them all.

Pete
 
After a lot of frustration I somehow finally learned to solder. Whew.

Now Tutorial 1 02 works, but all I see in Serial monitor - "Knob (pin A2|A3) - value", lots of messages like this. I have nothing connected to Teensy + Audio board. Is this normal?
 
That's not a problem. When the input is left open, it will return a value corresponding to whatever noise it is picking up. The code reports when a change of more than 50 occurs in consecutive readings and the noise can cause much larger changes than that.
If you put a pullup resistor to 3V3 on each of A1, A2 and A3, it will force them to a fixed voltage and then they won't cause that output any more. All you'll see is the Beep # message.

Pete
 
Last edited:
Nope, not normal. That probably means those pins don't actually have the pots connected.

Normally, you should see only the beep message every time the beep occurs, and you should see the button and pot messages when you physically press/release the buttons and turn the pots. The numbers on the pot messages should correspond to the angular position you're turning.
 
That probably means those pins don't actually have the pots connected.
That is actually so. I'm just gradually testing that my soldering works, not building a tutorial.

That's not a problem. When the input is left open, it will return a value corresponding to whatever noise it is picking up.
Excellent! Thought about this explanation but in my case it is better to double check :D

Thanks!
 
Now Tutorial 1 02 works, but all I see in Serial monitor - "Knob (pin A2|A3) - value", lots of messages like this. I have nothing connected to Teensy + Audio board. Is this normal?

I have the same problem and I am not sure what to do. Buttons are working (although at first only 1 was working, later on the rest started working too) and pots are soldered to the cable with pins that go into breadboard so my connections are fine. It was working one time so I though about restarting it to check if it will happen again and it happend. Everything was connected the same all the time. Any ideas? Here are some photos: https://www.dropbox.com/sh/0wppbpfk4nd1f3u/AADdEIZrOFTGYlbrmu_OSOw-a?dl=0
 
Are the power lines connected? Some older breadboards split the power rails in the middle. The one in your photo looks like it might not connect the two halves of the power rails together.
 
Here's a breadboard with the split power rails.

https://www.adafruit.com/product/443

Maybe yours is also split where these red lines are drawn? If so, some of your wires to the pots aren't connected... which would cause the analog signals to be basically floating and picking up random noise.

443powerrails_LRG.jpg
 
Status
Not open for further replies.
Back
Top