Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: AlanK

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Hi, This may be useful for someone. I can...

    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...
  2. Thanks Kurt, That works perfectly. Would be...

    Thanks Kurt,

    That works perfectly. Would be good if it was included in comments in USBHost_t36 examples,

    All the best,

    Alan
  3. Hi, Adding USBSerial_BigBuffer...

    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
  4. Hi Alex, I'm seeing a similar problem when...

    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...
  5. Hi, With USBHOST_PRINT_DEBUG defined, the...

    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...
  6. Thanks Mark, The code for the transmitter is...

    Thanks Mark,

    The code for the transmitter is simply:


    void setup() {
    }


    void loop() {
  7. USBHost_t36 and High Speed USB MIDI messages

    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...
  8. Replies
    8
    Views
    295

    Hi, A lot of the possible confusion arises due...

    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...
  9. Hi, The general solution involves using two SPI...

    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...
  10. Replies
    37
    Views
    2,852

    Thanks, I'm not using your code to find the...

    Thanks,
    I'm not using your code to find the Teensy so that's not a problem,
    All the best,
    Alan
  11. Replies
    37
    Views
    2,852

    Hi, I've used the new version of your library...

    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...
  12. Replies
    13
    Views
    665

    Hi, The easiest way to double-check the wiring...

    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...
  13. Replies
    3
    Views
    310

    Hi, An interrupt service routine should only...

    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...
  14. Replies
    11
    Views
    919

    Hi, The solution would involve using two SPI...

    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,...
  15. Replies
    8
    Views
    1,044

    Take a look at this: Anti Alias filters on...

    Take a look at this:
    Anti Alias filters on SGTL5000 (pjrc.com)
  16. Replies
    5
    Views
    677

    Hi Anna, That sounds reasonable for that chip....

    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...
  17. Replies
    5
    Views
    677

    Hi Anna, How long is it taking to fully change...

    Hi Anna,

    How long is it taking to fully change temperature?

    All the best,

    Alan
  18. Replies
    3
    Views
    732

    Hi, You should be able to use the calcBiquad...

    Hi,
    You should be able to use the calcBiquad function here:
    Audio/control_sgtl5000.h at master PaulStoffregen/Audio GitHub
  19. Hi Ben, I've used JLCPCB for PCBs. They are very...

    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...
  20. Replies
    3
    Views
    732

    Hi, The five values you pass to...

    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...
  21. Replies
    2
    Views
    621

    Hi, Take a look at the example...

    Hi,
    Take a look at the example
    EXAMPLES|TEENSY|USB_MIDI|InputFunctionsComplete
    It should help you,
    All the best,
    Alan
  22. Replies
    940
    Views
    106,814

    Thanks Paul, That's great. I'll give it a try...

    Thanks Paul,
    That's great. I'll give it a try soon when I get time,
    All the best,
    Alan
  23. Replies
    940
    Views
    106,814

    Hi, Could this file system be made to operate...

    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.
  24. Replies
    15
    Views
    1,462

    Hi, That does seem to be a fairly robust way...

    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...
  25. Replies
    15
    Views
    1,462

    Hi, Fitting a straight line to the slope of your...

    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...
  26. Replies
    16
    Views
    2,325

    I use EasyEDA. It was recommended to me by a...

    I use EasyEDA. It was recommended to me by a colleague with lots of experience, and I've had no problems with it.
  27. Hi Steve, I'm using those boards but with...

    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...
  28. Replies
    5
    Views
    1,453

    Here's one suggestion. This int n =...

    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...
  29. Replies
    8
    Views
    1,425

    Hi, You'll find code to calculate biquad filter...

    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
  30. Hi, This is just a suggestion - I haven't tried...

    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...
  31. Replies
    14
    Views
    2,874

    I got one of these:...

    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...
  32. Hi Chris, I have it working with two flash chips...

    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...
  33. Thread: 1Gb flash chip

    by AlanK
    Replies
    0
    Views
    506

    1Gb flash chip

    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
  34. Replies
    12
    Views
    2,561

    Hi Ricardo, Yes. For example int x = GPIO6_DR;...

    Hi Ricardo,
    Yes. For example
    int x = GPIO6_DR;
    All the best,
    Alan
  35. Replies
    12
    Views
    2,561

    Hi, The list below has the Teensy 4.0 pins and...

    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...
  36. Thanks Chris, I'm using a Teensy 4.1, so there...

    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,...
  37. Hi Chris, I'm trying to do the same thing using...

    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...
  38. Sorry for posting to the wrong place. It happens...

    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...
  39. Problem with numbering of objects in Audio System Design Tool

    Hi,
    There's a minor bug in the design tool. If, for example, you drag on one Mixer, and then copy and paste that Mixer, the two are named Mixer1 and Mixer2. If you then drag on another mixer,...
  40. Replies
    5
    Views
    857

    Hi Paul, Thanks for clarifying that, All...

    Hi Paul,

    Thanks for clarifying that,

    All the best,

    Alan
  41. Replies
    5
    Views
    857

    Hi Paul, I didn't - it was working with...

    Hi Paul,
    I didn't - it was working with AUDIO_BLOCK_SAMPLES set to 32 on a 4.0 using an audio shield for output. I've been working on other aspects of my software, and have moved to a 4.1 -...
  42. Replies
    5
    Views
    857

    Hi, Could the fixing of USB Audio for Teensy 4.x...

    Hi,
    Could the fixing of USB Audio for Teensy 4.x have introduced a problem when
    AUDIO_BLOCK_SAMPLES is changed?
  43. Replies
    5
    Views
    857

    Problem changing AUDIO_BLOCK_SAMPLES

    Hi,

    I had reduced AUDIO_BLOCK_SAMPLES to 32 previously to reduce latency in an audio project and it worked perfectly (and significantly reduced the latency). That was using a Teensy 4.0 with audio...
  44. Replies
    23
    Views
    2,877

    I agree - there are lots of potential problems....

    I agree - there are lots of potential problems. The speed of sound in air is highly temperature dependent, so you'll have difficulty getting accuracy of +/-1mm over a 20cm range for that reason alone...
  45. Replies
    23
    Views
    2,877

    Hi, What about having a single tone produced at...

    Hi,
    What about having a single tone produced at A, a second tone at twice that frequency produced at joint 2 (or some other fixed distance from B), with both synchronised, and a microphone at B? Use...
  46. Replies
    3
    Views
    825

    Hi, I don't have the answers to some of your...

    Hi,
    I don't have the answers to some of your questions, but, with a Teensy 4.0, I can reliably send 18 byte chunks 50,000 times per second over Serial USB. My data is coming from an external ADC...
  47. Hi, Look here ...

    Hi,
    Look here and here for the answer and how you might extend it if you want
  48. Replies
    3
    Views
    892

    Sorry, You didn't say you were using an LC - you...

    Sorry,
    You didn't say you were using an LC - you can't use name.c with it. Try looking at this thread - it seems to give a solution. I've no experience with the LC so I can't do much more than point...
  49. Replies
    3
    Views
    892

    Look at the thread here...

    Look at the thread here
  50. Replies
    6
    Views
    1,156

    Hi, Try adding Serial.setTimeout(1); after...

    Hi,
    Try adding
    Serial.setTimeout(1);
    after Serial.begin.
Results 1 to 50 of 69
Page 1 of 2 1 2