As aside about switches - its been briefly mentioned above I think, but hard switching of audio is going to
produce potentially loud and annoying clicks, since truncating a waveform is equivalent to...
Type: Posts; User: MarkT
As aside about switches - its been briefly mentioned above I think, but hard switching of audio is going to
produce potentially loud and annoying clicks, since truncating a waveform is equivalent to...
8MB? SDcard? No, that's going to take a while I think.
You don't want to let that amount of data go without backup anyway, so why not flush it to backing store
regularly so there's never that...
My other thought was a busy-waiting loop would be entirely in cache and avoid hitting RAM for instruction fetch or any load/stores.
Switch-mode power supplies don't need such large capacitors as they can pull power from the waveform
when its well below peak voltage, and thus don't have to store as much energy as a...
The drop in current suggests the processor is halting and waiting for interrupt. Bulk SPI
operations are probably being DMA'd.
Little tip about PCB prototypes - ensure every important signal has at least one via not covered by a component -
these make convenient points to stick a thin wire in for either 'scope/LA probing...
Fig 37.2 in the processor manual shows that the way I2S data inputs and outputs are multiplexed in SAI1
is:
function T4 name T4 pin no
RX0 IN1 8
TX3 / RX1 OUT1D 6...
Surely you can have a setup with one ADC or DAC as master, and everything else as slave, including Teensy? The clocks are
routed from the master to everything, which should mean the Teensy can run...
Its probably doing the bass boost by attenuating the other frequencies - simply up the overall gain with the volume()
and/or lineOutLevel() methods?
The way I'd do this is populate a lookup table with RGB values indexed by decibel. Then run through the
FFT bins converting the value to decibels, lookup the pixel colour and write that to the...
Actually LP2950Z took me to a Micrel datasheet which is a 5V only part.
There is indeed an LP2950-33 from TI. The '50' in the part number strongly suggests 5V too.
The LP2950 is 5V and is the wrong part number on the schematic as far as I can see - you need a 3.3V output regulator
in that position or bad things happen. Its not uncommon to see the wrong part...
Voice spectra contain both the signature of the harmonics, related to the waveform from the vocal chords,
and the filtering envelope imposed by the throat/mouth cavity, which doesn't change in...
AccelStepper was written for slow microcontrollers and doesn't have enough delay for the
pulse generation.
Try
void setup()
{
stepper.setMinPulseWidth(15);
...
Well I've experimented with CIC cascades and multi-state decimation and don't seem to get any speed advantage, though
some space advantage. CIC cascading can be optimized by table lookup it turns...
The integer performance of the T4 is about 300 times the Uno, the floating point is probably 4 to 5 orders of magnitude
faster on the T4... And the T4 has enough RAM for typical DSP tasks, the Uno...
So long as the signal is in the correct voltage range, 0..Vcc (otherwise you'll risk frying the chip - the suggested interface circuit in the
docs for adc input doesn't seem to feature any...
Thought I'd pop my RF spectrum analyzer on a PDM signal from one of these microphones to see what sort of
noise shaping they have - 3 plots zooming in on the audio band, with full-scales of 5MHz,...
You might get a better response with the Remez algorithm rather than the window method?
Can you edit in code tags for those please?
Well the $45 seems fairly plausible - here's a competitor: https://uk.farnell.com/mikroelektronika/mikroe-1767/add-on-board-raspyplay4/dp/2521708
Not sure whats on the $99 board, but a low volume...
Well the stopband is about 1/3rd of Nyquist, not 1/4th... But its about -60dB which is much better.
BTW I use Python and numpy / scipy.signal / matplotlib.pyplot packages for all my experimenting...
AudioControlSGTL5000 is the audio lib class. These are all documented in the audio lib tool - just click
on any object on the left hand side for its docs: https://www.pjrc.com/teensy/gui/
The normal way to do this is using a headphone socket with a built in switch, the switch
opens when the headphone plug is inserted, disconnecting the speaker. A series resistor
is typically used...
From what I can tell from the docs for the interpolation and decimation functions you are doing things right.
Have you tried without any of your intermediate processing, just interpolation...
And another observation I have - I'm not sure the PDM code has to be incompatible with I2S output on the same I2S unit, as the
clocking is the same. I might have a look at making this work, so that...
digitalWriteFast is a better tool for raw timing, less overhead than digitalWrite.
The datasheet says operating range 0 -- 95C, storage -40C -- 150C, so yes its not expected to function below 32F, but
probably ought to survive them. I'd suspect themal stress has lifted a few...
Thats a great question - whatever the Adafruit PDM module uses - they don't seem to say, although theres a
good bet its the MP34DT01-M as that's referenced in a few places alongside that module,...
Well the MAX9880A has a "voice phase delay" spec: https://datasheets.maximintegrated.com/en/ds/MAX9880A.pdf
and the PCM1803A has a "group delay time" spec:...
BTW it strikes me that on the T4 you could move PDM to the secondary I2S pins to avoid conflicting with the audio shield,
but I'm not sure how to reconfigure all the registers for this. Paul??
I have a pull-request for adding T4 support to AudioInputPDM: https://github.com/PaulStoffregen/Audio/pull/387
You only need to patch one file for testing, input_pdm.cpp
In the end the existing...
I popped a 'scope on the data in and data out as well as the analog line in and out and measured, for SGTL5000 at 44100SPS a
delay of about 280µs for ADC and 240µs for the DAC, using square wave...
Some IMUs do conversion internally to DCM/quaternion/etc, which is very handy as all the complexity of combining sensors
is done for you and calibrated... But if you just have bare sensors on an...
You'd need buffer amps for each hold cap I think, perhaps a row of quad JFET input or CMOS input opamps, such as MCP6024's
AudioAnalyzePeak would do a similar job without extra hardware
The time constant of a circuit with resistors and capacitance is simply RC. So 10k resistance and 100pF of stray capacitance
(a very rough guess) would give a rise time around 1µs. Mechanical time...
Ah, I was looking at the Frank B version... whoops.
This means the PT8211 output class is incompatible with the I2S input class, which seems rather restrictive.
Also from what I can tell the...
Encoding compressed audio is much slower than decoding, though the T4 has serious grunt,
its worth being aware this might be an issue.
What do you mean by an FPU library? libm?
Just looking back over this thread and had a quick look at the PT8211 ds - no oversampling at all, its a
straight DAC. The datasheet says you can do 8x over-sampling, which simply means its rated...
I've been looking at PDM recently. No the audio library doesn't support T4 for PDM yet (if you look in the sources
its clearly ifdef'd out for T4. It would need the low level code for configuring...
If you going the route of redundancy why not route ground between signals to control crosstalk? you can still double up
signals like GND/A/A/GND/B/B/GND/....
That amp can only do 3.7W into 3 ohm speakers, it'll be more like 1.5W into 8 ohm - however you could parallel two
or three 8 ohm speakers to get more from it. It needs the full 5V supply to get...
I'd add a caution here: audio DACs and ADCs typically don't have accurate voltage levels, for instance the gain error on the PCM5102A
is worst-case +/- 6% (+/- 0.5dB). This would be a show-stopper...
Bear in mind voice recognition is not a simple problem. For instance have a look at this paper as an example of the techniques
and an idea of the complexity:...
Oh, yes you're right there, I'd not read the detailed setup code, in fact 24 samples seems more likely than 12 -
I guess I should check the latency with the Audio lib default rate too.
Though I note this sentence in that doc:
Their example has 1.5 sample delays attributable to sinc filtering only at 8kSPS, we see more like 11 sample delays
from the SGTL5000 which must mostly be...
I just meant the HCT family is easier to source than the VHC due to the greater number of manufacturers
and higher volume of sales for the family traditionally used for 3.3 -> 5V level shifting. ...
servo.writeMicroseconds (...) is used in the standard Servo library for higher precision. 1500 microseconds
corresponds to mid-travel (90 degrees) by convention, and 544 and 2400 microseconds for 0...
The possibly more easily sourced 74HCT family (5V supply only) will handle 3.3V inputs too,
but the 74VHC family can be powered from either 3.3 or 5V and still work with "TTL level" inputs.
74HC...