Hi,
If you can connect your PWM output to pin 9 on your Teensy 4.x, you can use the FreqCount library to check the frequency,
All the best,
Alan
Type: Posts; User: AlanK
Hi,
If you can connect your PWM output to pin 9 on your Teensy 4.x, you can use the FreqCount library to check the frequency,
All the best,
Alan
Hi,
The load cell you say you are considering has options with 0.5-4.5V amplified output or I2C digital output. With a Teensy 4.1, if you choose the I2C output then you won't need an amplifier....
Hi Frank,
I'll check the updated library as soon as I can. Playing two equals sine waves does mean that they sometimes cancel out - but it makes variations in latency very clear, and it's possible...
Thanks Frank,
The attached folder has a 20 ms clip and a 1 s clip.
I was using the version of your library from the 28th. It may be a few days before I can try the latest version,
All the...
Hi again,
Even just declaring a second AudioPlayWav object in the second program above causes the file to sometimes not be played completely.
Adding, for example,
AudioPlayWav ...
Hi Frank,
Sorry for the delay - I only get short opportunities with work to look at this.
Here's simpler code that just plays one file. Sometimes, it is not playing to the end - similar problem...
Hi,
I tested the same thing with AudioPlaySdWav objects instead. The results were very close to what I would have expected -consistent changes in amplitude close to 20 ms from the end of each...
Hi,
I've been doing some tests using WavePlayer, with 8 identical wav files stored on an SD card. Each contains a one second long 400 Hz tone, with an amplitude of 0.12 (generated using Audacity),...
Hi,
One thing to consider is whether you want to be able to have the same file playing more than once at the same time (e.g., if you press a key repeatedly). Some approaches may not work if you do....
Hi,
Sorry - that was not a good test. If I try to play 8 files so they overlap, but aren't started simultaneously, then there are significant problems, even with AUDIO_BLOCK_SAMPLES set to 256. It...
Hi,
I've just tested playing simultaneous raw files (all started at the same instant - audio interrupts disabled while starting play) from an SD card (Sandisk Extreme 32GB) on a T4.1 with...
Hi,
Flash chips sold as 256Mb are 256 mega bits - you would need several chips. It's possible, but try the much easier SD card approach first. The latency is determined by the buffer size used by...
Hi,
This may be useful for someone. I can confirm that the PCB layout shown below for a USB Host connector for a T4.1 (2 layer PCB, 1.6 mm thick, USB connector on bottom of board) works at 480...
Thanks Kurt,
That works perfectly. Would be good if it was included in comments in USBHost_t36 examples,
All the best,
Alan
Hi,
Adding
USBSerial_BigBuffer userial(myusb);
does not help with my MIDI problem (USBHost_t36 and High Speed USB MIDI messages (pjrc.com)),
All the best,
Alan
Hi Alex,
I'm seeing a similar problem when connecting a Teensy 4.0 programmed as a MIDI device to a T4 USB Host port. In my case the same issue doesn't occur when connecting a T3.6 to the T4 USB...
Hi,
With USBHOST_PRINT_DEBUG defined, the output when the T4.0 Serial+MIDI device is connected to the TMM USB Host is given below. If the T4.0 is changed to a MIDI device, there's a similar result...
Thanks Mark,
The code for the transmitter is simply:
void setup() {
}
void loop() {
Hi,
I have a simple program outputting MIDI messages over USB running on both a T3.6 and a T4.0 (Teensyduino 1.56, Arduino 1.8.19) - both tested. When I run the USBHost_t36 MIDI InputFunctions...
Hi,
A lot of the possible confusion arises due to the fact that accelerometers don't measure acceleration - they measure a force and divide that force by a mass to get a result that has the units...
Hi,
The general solution involves using two SPI ports - one working in master mode and one in slave mode on the microcontroller. Connect the CS and SCK outputs from the master to the CS and SCK...
Thanks,
I'm not using your code to find the Teensy so that's not a problem,
All the best,
Alan
Hi,
I've used the new version of your library successfully with a Teensy 3.6 - thank you - but I'm having problems with a 4.1 when uploading a HEX file - Upload is returning 1. As a test, I'm simply...
Hi,
The easiest way to double-check the wiring is to connect two wires together - e.g. red and black. If they are the two wires for one coil then, when you try to turn the motor, you should feel...
Hi,
An interrupt service routine should only react to the single event that triggers it - it should never wait for another event. It should also run as quickly as possible.
If you post your current...
Hi,
The solution would involve using two SPI channels - one working in slave mode on the Teensy. You would connect one output data line from your ADC to the MISO pin for the Teensy master SPI input,...
Take a look at this:
Anti Alias filters on SGTL5000 (pjrc.com)
Hi Anna,
That sounds reasonable for that chip.
If you want a faster response then you need to look at the thermal setup - using the thermal pad on the chip and perhaps forcing air past it if...
Hi Anna,
How long is it taking to fully change temperature?
All the best,
Alan
Hi,
You should be able to use the calcBiquad function here:
Audio/control_sgtl5000.h at master · PaulStoffregen/Audio · GitHub
Hi Ben,
I've used JLCPCB for PCBs. They are very good value and I've never had any problems with quality. The minimum order quantity is 5. I've used EasyEDA (online) for design - it's relatively...
Hi,
The five values you pass to sgtl5000_1.eqBands must all be between -1.0 and 1.0. You can set all five gains using that command - or you have the option of using sgtl5000_1.eqBand to change any...
Hi,
Take a look at the example
EXAMPLES|TEENSY|USB_MIDI|InputFunctionsComplete
It should help you,
All the best,
Alan
Thanks Paul,
That's great. I'll give it a try soon when I get time,
All the best,
Alan
Hi,
Could this file system be made to operate with multiple flash chips on SPI, each with individual CS pins? That would be very useful for some audio applications.
Hi,
That does seem to be a fairly robust way of doing it - well done!
So, if for sample n, you compare the sign of the sum of d(n-9) to d(n-5) with the sign of the sum of d(n-4) to d(n), where...
Hi,
Fitting a straight line to the slope of your curve is similar to fitting a quadratic to the data - they will give very slightly different results but the difference will be negligible.
Fitting...
I use EasyEDA. It was recommended to me by a colleague with lots of experience, and I've had no problems with it.
Hi Steve,
I'm using those boards but with hardware SPI. Are you sure that board will work with a 3.3V supply? I'm using 5V. Have you checked what the voltage is at the 3.3V output on the breakout...
Here's one suggestion. This
int n = 7-ceil(log10(data));
sprintf(dn, "%.*f",n, data);
will convert 7 significant figures, which are all that are accurately stored in a float, but will include...
Hi,
You'll find code to calculate biquad filter response here:
https://forum.juce.com/t/draw-frequency-response-of-filter-from-transfer-function/20669/2
Hi,
This is just a suggestion - I haven't tried it. The AudioOutputUSB object doesn't cause the library to update, but adding the AudioInputI2S does so that's why that version works. Perhaps the...
I got one of these:
https://lcsc.com/product-detail/RAM_Lyontek-Inc-LY68L6400SLIT_C261881.html
from LCSC. On paper, it looks suitable, but I haven't tested it yet with a Teensy 4.1. I hope to do...
Hi Chris,
I have it working with two flash chips using SPI (using pins 6 and 10 for chip selects), implemented in the simplest brute force way. To play raw files simultaneously from both, I've...
Hi,
The Micron N25Q00AA 1Gb flash chip stated to work with SerialFlash appears to be obsolete. I can confirm that the newer Micron MT25QL01GBBB1EW9-0SIT also works
Hi Ricardo,
Yes. For example
int x = GPIO6_DR;
All the best,
Alan
Hi,
The list below has the Teensy 4.0 pins and the corresponding registers and bit numbers. The registers are 32-bit. A read from GPIO6_DR will get all 32 bits but only 12 of them correspond to...
Thanks Chris,
I'm using a Teensy 4.1, so there are three SPI busses available. I'll try with two flash chips on two busses and see if I can get that to work - I'll let you know if I've any success,...
Hi Chris,
I'm trying to do the same thing using a Teensy 4.1. I have two flash chips on the SPI bus, have copied raw files to both, can play from both separately, but my attempts so far at playing...
Sorry for posting to the wrong place. It happens in Chrome (Version 84.0.4147.105 (Official Build) (64-bit)) and in Edge (Version 84.0.522.52 (Official build) (64-bit)). The problem is not with...