Hi guys,
I am developing a small project where I need to send some DC signals to an android/Iphone device in order to clasify them later.
In the most part of Android and Iphone devices, I am able to see those signals as you can check below:
(The program that I am usingin Android to see the signals is "Wave Editor"
and here an audacity screenshot where you can check them also:
The problem that I am facing is, in the Samsung galaxy A70, I am getting the following signals:
As you can see, I only see some pikes. I have tried to modify the amplitude, duration... but nothing worked. Does anyone know what could be happening?
Below I attach you the code that I am using if it is useful.
Thanks!
I am developing a small project where I need to send some DC signals to an android/Iphone device in order to clasify them later.
In the most part of Android and Iphone devices, I am able to see those signals as you can check below:
(The program that I am usingin Android to see the signals is "Wave Editor"
and here an audacity screenshot where you can check them also:
The problem that I am facing is, in the Samsung galaxy A70, I am getting the following signals:
As you can see, I only see some pikes. I have tried to modify the amplitude, duration... but nothing worked. Does anyone know what could be happening?
Below I attach you the code that I am using if it is useful.
Thanks!
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S i2s1; //xy=200,69
AudioOutputUSB usb1; //xy=365,94
AudioAmplifier amp2;
AudioSynthWaveformDc dc1;
AudioMixer4 mixer1;
AudioControlSGTL5000 sgtl5000_1; //xy=302,184
AudioConnection patchCord1(dc1, amp2);
AudioConnection patchCord2(amp2, 0, mixer1, 1);
AudioConnection patchCord3(mixer1, 0, usb1, 0);
// GUItool: end automatically generated code
const int myInput = AUDIO_INPUT_LINEIN;
void setup() {
AudioMemory(100);
// Enable the audio shield, select input, and enable output
sgtl5000_1.enable();
sgtl5000_1.inputSelect(myInput);
sgtl5000_1.volume(1.0);
}
void loop()
{
amp2.gain(0.5);
dc1.amplitude(0.10);
delay(500);
amp2.gain(0.5);
dc1.amplitude(0.15);
delay(500);
amp2.gain(0.5);
dc1.amplitude(0.20);
delay(500);
}