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

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    2
    Views
    18

    For the multiply & accumulate instructions, read...

    For the multiply & accumulate instructions, read pages 107-108 in this document

    https://static.docs.arm.com/ddi0403/eb/DDI0403E_B_armv7m_arm.pdf
  2. I'm still waiting on the Arduino developers to...

    I'm still waiting on the Arduino developers to merge this, before I can support Teensy on arduino-cli

    https://github.com/arduino/arduino-cli/pull/109
  3. Replies
    1,801
    Views
    45,548

    I have at least 150 left here, so might as well...

    I have at least 150 left here, so might as well wish for what you want!




    Trouble with putting a 120 uF cap on the 5V line is that's 12X over the limit the USB spec says for a USB device.
    ...
  4. Replies
    1,801
    Views
    45,548

    I believe they were this one, 12.5 mm height. ...

    I believe they were this one, 12.5 mm height.

    https://www.aliexpress.com/item/100pcs-Spring-Loaded-Pogo-Pin-Connector-9-5-10-0-11-0-11-5-12-0/32910364279.html

    How many do you need? I have...
  5. Replies
    9
    Views
    550

    I must confess, I haven't used WM8731 in slave...

    I must confess, I haven't used WM8731 in slave mode (Teensy as I2S master) since the very earliest days of the audio library. Before we had the STGL5000, I did some of the earliest development using...
  6. Replies
    1,801
    Views
    45,548

    It's like a pullup or pulldown resistor. Unlike...

    It's like a pullup or pulldown resistor. Unlike a fixed resistor which always pulls towards a particular logic level, it weakly pulls the pin in whatever direction it already happens to be. This is...
  7. Definitely use OctoWS2811. You'll need the...

    Definitely use OctoWS2811. You'll need the non-blocking feature to be able to reliably receive DMX message which arrive while the LEDs are updating.

    There's an example which plays uncompressed...
  8. Replies
    9
    Views
    550

    AudioInputI2S uses pin 13 to receive data, so...

    AudioInputI2S uses pin 13 to receive data, so this is a conflict:


    constexpr const int IN_BUILT_LED_PIN(13);
  9. Yes, the compiler is amazingly good at optimizing...

    Yes, the compiler is amazingly good at optimizing away math when all the inputs are constants known at compile time.

    Also consider using cosf(). The normal cos() function, without the "f", uses...
  10. Today there really isn't any way to use those...

    Today there really isn't any way to use those bits.

    That sine code was pretty much just a math experiment, back when William Hollender was working on a board with the CS4272 chip. Sometimes I do...
  11. If you're buying I2C displays, they may also have...

    If you're buying I2C displays, they may also have pullup resistors.

    Usually you would want to combined (parallel) resistance to be between 1K to 5K.
  12. You might as well using only a single 0.1 uF with...

    You might as well using only a single 0.1 uF with this poor layout choice. There's no point to have 3 of these capacitor in parallel if they are all in the same location. The purpose of 3 separate...
  13. Since the A-weighted SNR is 112 dB, the best case...

    Since the A-weighted SNR is 112 dB, the best case scenario is about 18.7 bits of actual analog performance.

    Sadly, TI doesn't give an unweighted spec, so it's really a matter of guesswork how much...
  14. Maybe it's time to start looking at the signals...

    Maybe it's time to start looking at the signals with an oscilloscope?
  15. Replies
    61
    Views
    18,266

    Nope, it was never done.

    Nope, it was never done.
  16. Replies
    2
    Views
    38

    Maybe try "Serial + MIDI + Audio"? Or maybe...

    Maybe try "Serial + MIDI + Audio"? Or maybe you're already using that?
  17. Replies
    1,801
    Views
    45,548

    This is the link for a copy of just the USB 2.0...

    This is the link for a copy of just the USB 2.0 spec (hosted on PJRC's server) without all that other stuff.

    https://www.pjrc.com/teensy/beta/usb20.pdf

    I've never understood why the USB-If...
  18. Replies
    1,801
    Views
    45,548

    Yes, indeed USB is very complicated. The...

    Yes, indeed USB is very complicated. The controllers in this new chip are basically the same as the 2nd port on Teensy 3.6 (where we've only supported host mode, never device mode). It's completely...
  19. You can use any settings you like. But if you...

    You can use any settings you like.

    But if you wish to match the same defaults at Teensyduino, you'll need different defaults. Teensy 3.x defaults to "Faster", Teensy LC defaults to "Smallest...
  20. Yes, that is the default for Teensy LC.

    Yes, that is the default for Teensy LC.
  21. Not quite sure what you mean by...

    Not quite sure what you mean by "TEENSY_OPT_SMALLEST_CODE". That's not a name used anywhere in the code I've published. Maybe it's something specific to PlatformIO which I do not know?



    ...
  22. Can you double check which RS485 chip you really...

    Can you double check which RS485 chip you really have?

    MAX485ESA+T should work fine. Rated for 2.5 Mbps data rate should be fine. But if you happen to have any of these chips which are only...
  23. I know not of this zipping noise. Generally we...

    I know not of this zipping noise.

    Generally we expect you to show a program, so anyone can reproduce the problem. But even just being able to see (hear) the problem is a bare minimum.

    But to...
  24. Can you watch the RESET signal while you're doing...

    Can you watch the RESET signal while you're doing this? When you pull PROGRAM (PTB2 on the MKL02 chip) low, RESET is supposed to go low and remain low as long as PROGRAM is low.

    Another question:...
  25. Ok then, another blind guess... have you looked...

    Ok then, another blind guess... have you looked at the start up waveform of both power sources?

    Years ago we had someone (actually a few people) experience all sorts of strange problems with a...
  26. Is there a RS232 cable of some sort plugged into...

    Is there a RS232 cable of some sort plugged into that UART level shifter? Where does it go? Or to ask another way, what is the ground of the connected equipment, and how does that compare with the...
  27. You can call midi1.manufacturer() and...

    You can call midi1.manufacturer() and midi1.product() to get the names, since MIDIDevice inherits the public functions of the USBDriver base class. These return NULL if no device is connected or if...
  28. Replies
    1,801
    Views
    45,548

    I'm guessing you're looking for something...

    I'm guessing you're looking for something different than the huge list on pages 987-1000 of the RT1050 ref manual, rev2 ?
  29. Replies
    1,801
    Views
    45,548

    Sorry. I had an outdoor event to attend last...

    Sorry. I had an outdoor event to attend last week which seemed fine at the time, but then relapsed on this damn cold! Did the "lots of rest and liquids" thing for a few days. A couple PJRC tech...
  30. Replies
    4
    Views
    79

    You really should use a hardware-based mechanism...

    You really should use a hardware-based mechanism to protect the hardware. One simple way include an "enable" signal with a physical pullup or pulldown resistor, where the drivers are turned off in...
  31. Normally 3 objects use the SGTL5000, the control...

    Normally 3 objects use the SGTL5000, the control one (no audio connections) which just configures the hardware over SDA & SCL, and the 2 I2S objects which actually stream the audio data.

    In your...
  32. Replies
    9
    Views
    106

    Yes, it should. In fact, there are 2 different...

    Yes, it should.

    In fact, there are 2 different sysex handlers.



    // Only one of these System Exclusive handlers will actually be
    // used. See the comments below for the difference...
  33. Replies
    9
    Views
    106

    Is the THR10 a USB device or USB host? Can you...

    Is the THR10 a USB device or USB host? Can you give more detailed info or photos?
  34. Replies
    23
    Views
    1,452

    I asked for feedback on Twitter. ...

    I asked for feedback on Twitter.

    https://twitter.com/PaulStoffregen/status/1095745839828480000

    Let's see what people have to say there today...
  35. Replies
    23
    Views
    1,452

    Sounds like you've made a really useful product...

    Sounds like you've made a really useful product here. I totally understand how much extra work it is to sell & support something as a commercial product.

    If you're not going to sell these, but...
  36. Replies
    23
    Views
    1,452

    Oh, I'm not personally looking for this board,...

    Oh, I'm not personally looking for this board, but if you're selling them online, I'd certainly like to help you get the word to people who might want them!
  37. Replies
    5
    Views
    162

    Awesome. Any chance you might share the code? ...

    Awesome. Any chance you might share the code? I'm sure others would find it really interesting.
  38. Replies
    5
    Views
    77

    You need Arduino 1.8.8 and this Teensyduino 1.45...

    You need Arduino 1.8.8 and this Teensyduino 1.45 installer.

    https://www.pjrc.com/teensy/td_download.html

    Also, please be aware Teensy appears as HID, not Serial, in many of its modes. When...
  39. Replies
    6
    Views
    60

    Maybe, but I have not ever tried this. I would...

    Maybe, but I have not ever tried this. I would use an interrupt and have the interrupt code configure the timer.

    The FTM timers do have special fault inputs. I've never used them, so I really...
  40. Replies
    1,801
    Views
    45,548

    No, it just looks that way. Even though those 2...

    No, it just looks that way. Even though those 2 pads are underneath the USB Micro-B connector, they're actually a completely separate USB port.



    Just plug a USB cable in to that connector, and...
  41. Replies
    6
    Views
    60

    You might also consider just doing it all by...

    You might also consider just doing it all by software. Here's a project I did 4 years ago, which ran on Teensy 2.0, controlling 4 dimmers using AC zero cross detection and just computing everything...
  42. Replies
    6
    Views
    60

    Sounds like it could probably work, restarting...

    Sounds like it could probably work, restarting the FTM when you detect the zero cross.
  43. Replies
    9
    Views
    98

    The most important thing will be connecting GND...

    The most important thing will be connecting GND on Teensy to GND on that relay board.

    If Teensy gets external 5V power, usually you would cut the VIN-VUSB pads apart, so the external 5V power...
  44. Replies
    9
    Views
    98

    SainSmart's website...

    SainSmart's website also has a file that looks like the PCB layout.

    Here's an image of the control electronics part.

    15894

    Based on this info, I would *NOT* recommend use with Teensy LC. ...
  45. Replies
    9
    Views
    98

    Looks like this might be the schematic.

    Looks like this might be the schematic.
  46. Replies
    9
    Views
    98

    My best guess from the photos is you'd give the...

    My best guess from the photos is you'd give the relay board a separate 12V power supply on it's 2 pin terminal block.

    If you get one of these, the very first thing I'd suggest doing is testing...
  47. What gave you this impression that the volume...

    What gave you this impression that the volume can't be changed?

    It can indeed be changed as often as you like, at least as fast as the relatively slow I2C protocol allows. If you look at the...
  48. Replies
    9
    Views
    98

    Is there a schematic or tech info on this relay...

    Is there a schematic or tech info on this relay board?

    From the photos, it looks like it's designed to just have 16 ordinary digital I/O pins connected to control the 16 relays. But that's a bit...
  49. Replies
    9
    Views
    106

    The 3rd true/false parameter merely tells if you...

    The 3rd true/false parameter merely tells if you have already put 0xF0 in the first byte and 0xF7 in the last byte in your data array. It's really that simple.

    This code fragment you've show...
  50. Replies
    25
    Views
    326

    I started a list of compatible I2S chips. ...

    I started a list of compatible I2S chips.

    https://github.com/PaulStoffregen/Audio/commit/5bf65f1c47f8a5877179c13f6e180a5a5dab7dd3

    For I2S output:


    Compatible CODEC Chips:

    STGL5000
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4