Skip to content

Commit

Permalink
tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanu Frechen committed Oct 11, 2023
1 parent ead9280 commit 26de449
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Teensy_prototype/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Teensy Audio Board Prototype

This prototype works with the [PS-354](https://media.digikey.com/pdf/Data%20Sheets/InnoSenT/200730_Data%20Sheet_IPS-354_V1.5.pdf) Radar Sensor from InnoSenT connected directly to the mic input of the [Teensy Audio Board](https://www.pjrc.com/store/teensy3_audio.html). The PS-354 has a builtin gain of 27dB. The mic input of the audio board can regulate it's gain from 0 to 63dB. Together that's enough to detect cars, pedestrians and bicycles from the third floor of a building. When measured directly at the edge of the street the signal goes into clipping, so that the mic gain has to be set to about 55 to 58 dB.
This prototype works with the [IPS-354](https://media.digikey.com/pdf/Data%20Sheets/InnoSenT/200730_Data%20Sheet_IPS-354_V1.5.pdf) Radar Sensor from InnoSenT connected directly to the mic input of the [Teensy Audio Board](https://www.pjrc.com/store/teensy3_audio.html). The IPS-354 has a builtin gain of 27dB. The mic input of the audio board can regulate it's gain from 0 to 63dB. Together that's enough to detect cars, pedestrians and bicycles from the third floor of a building. When measured directly at the edge of the street the signal goes into clipping, so that the mic gain has to be set to about 55 to 58 dB.

The teensy is programmed to continuously calculate a 1024 point FFT and transmit the data over Serial to the computer. The data are taken there by a [Processing](https://processing.org/) Script and visualized as a [waterfall diagram](https://en.wikipedia.org/wiki/Waterfall_plot). Additionally the Teensy calculates the frequency with highest amplitude which is optionally drawn as a line into the graph. This represents the mean speed of a moving object detected by the radar.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ AudioMixer4 mixer;

AudioInputI2S mic;
AudioOutputI2S headphone;
AudioConnection patchCord1(mic, 0, mixer, 0);
AudioConnection patchCord1(mic, 1, mixer, 0);
AudioControlSGTL5000 sgtl5000_1;
AudioConnection patchCord3(mic, amp1);
AudioConnection patchCord3(mic, 0, amp1, 0);
AudioConnection patchCord4(amp1, 0, fft1024, 0);
AudioConnection patchCord5(mixer, 0, peak1, 0);
AudioConnection patchCord6(mixer, 0, headphone, 0);
Expand All @@ -51,7 +51,7 @@ void setup() {

// Enable the audio shield, select input, and enable output
sgtl5000_1.enable();
sgtl5000_1.inputSelect(AUDIO_INPUT_MIC);
sgtl5000_1.inputSelect(AUDIO_INPUT_MIC); //AUDIO_INPUT_LINEIN
sgtl5000_1.micGain(mic_gain);
//sgtl5000_1.lineInLevel(0);
sgtl5000_1.volume(.5);
Expand All @@ -63,7 +63,7 @@ void setup() {
pinMode(PIN_A8, OUTPUT);
digitalWrite(PIN_A8, LOW);

Serial.begin(1000000);
Serial.begin(9600);
}


Expand Down

0 comments on commit 26de449

Please sign in to comment.