online now

We have 89 guests and no members online


Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: no sound from board - test #2

no sound from board - test #2 6 years 8 months ago #62

If you have tried test #1 but have not heard any output, you can test to see if the chip is outputting any sound using the Sounding pin on the Babblebot chip. The Sounding pin goes high whenever the chip is producing audible output. If you can verify the chip is creating output but do not hear it, it most likely is a problem with the output amplifier. To test for sound output, do the following:

1) Create a new sketch in the Arduino IDE, and copy the following code into it:

include <GinSing.h>
GinSing GS;
GinSingSynth *s;

void setup ()
GinSingSynth *s = GS.getSynth();
s -> begin ();
s -> selectBank ( BANK_A );
s -> setPatch ( OSC_1_TO_MIXER );
s -> setWaveform ( OSC_1 , SINE );
s -> setFrequency ( OSC_1 , 1000.0f );

void loop() { startTone(); delay (1000); stopTone(); delay (1000); }
void startTone() { s -> setAmplitude ( OSC_1 , 1.0f ); }
void stopTone(){ s -> setAmplitude ( OSC_1 , 0.0f ); }

Compile and upload the code.

2. Connect a 220 ohm or similar resistor in series with a common LED between pin 17 and ground. This is most easily accomplished by using a breadboard to construct the two component circuit, and the jumpering the ground from the header to the board. Another jumper from the board to pin 17 held in place completes the circuit.

The code above generates a 1 kHz tone that turns on and off once per second. By holding the positive side of the circuit to pin 17, you should observe the LED turning on and off once per second. If you see this light, the chip is generating sound and there is a problem with the amplifier section. If you do not see this light, the chip is most likely bad.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.154 seconds