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
    62

    While it's blinking the orange LED, does Arduino...

    While it's blinking the orange LED, does Arduino detect it and show it as RawHID in the Tools > Ports menu?

    And does Upload work without needing the press the button (indicating Teensy was able to...
  2. Yes, you can. Or 1.22V anyway. Hopefully that's...

    Yes, you can. Or 1.22V anyway. Hopefully that's close enough?

    This is documented in the audio library design tool, under the SGTL5000 control. Here's a direct link:
    ...
  3. That would be my guess, that it's ignoring...

    That would be my guess, that it's ignoring --upload-port.




    Yes, there are actually 2 other ways.

    You could set the baud rate to 134 on the serial device, perhaps with "stty". Setting 134...
  4. Usually Euro-rack synths need signals like +/- 10...

    Usually Euro-rack synths need signals like +/- 10 volts (or 20 volts peak-to-peak). The audio shield defaults to only ~1.3V peak-to-peak. You can increase it by software control, but the maximum is...
  5. Maybe the BCP bit documented on page 1989 can...

    Maybe the BCP bit documented on page 1989 can help?

    When/if this all works, hopefully you can share the final known-good code and some more info about the project? It might really help anyone...
  6. Indeed those files aren't on github.

    Indeed those files aren't on github.
  7. I've edited those posts to re-upload the images.

    I've edited those posts to re-upload the images.
  8. Just because you can do a thing does not...

    Just because you can do a thing does not necessarily mean you should. If you have just 4 sensors, all this array stuff is probably a lot of complexity when just using 4 copies of the code is...
  9. Here's the waveforms that code generates. ...

    Here's the waveforms that code generates. Hopefully close to what you wanted?

    21813
  10. I did some fiddling. Here's a quick test using...

    I did some fiddling. Here's a quick test using TDM output code copied from the audio library.

    This probably isn't perfect, but hopefully it will give you a good start. It generates 10 MBit/sec...
  11. Comparing these waveforms to the SS-III XY2-100-E...

    Comparing these waveforms to the SS-III XY2-100-E documentation, I see the sync signal polarity is high for 19 of the 20 clocks. But the waveforms on msg #6 have it high only 1 of the 20 clocks.
    ...
  12. Assuming this is the waveform you really want,...

    Assuming this is the waveform you really want, and you really do intend for the clock to be continuous and the data to immediately repeat, this looks like a job for the SAI (digital audio) port.
  13. I ran your program here on a Teensy 4.1. These...

    I ran your program here on a Teensy 4.1. These are the waveforms I see. Is this correct?

    21809
  14. With the map() function, no. It's always linear....

    With the map() function, no. It's always linear.

    But you certainly can create your own non-linear mapping using equations and functions like logf() or expf(). Some math required...
  15. Not sure if this really matters, but I can tell...

    Not sure if this really matters, but I can tell you boot mode 00 "Boot From Fuses" is used. We never use mode 10 "Internal Boot" on Teensy. The BOOT_MODE1 pin (AD_B0_05) is hard wired to GND, as...
  16. Glad you got it back to working. No,...

    Glad you got it back to working.




    No, that's not how it works at all. Program mode fully resets the IMXRT processor, then takes control of it using its debug mode. In theory that should...
  17. Usually the startup delay can be removed. It's...

    Usually the startup delay can be removed. It's there because some devices like MEMS motion sensor chips need time to start up. Many Arduino libraries and projects depend on Arduino's normal slow...
  18. Addresses 60 to 63 are mapped to the first flash...

    Addresses 60 to 63 are mapped to the first flash sector, just like addresses 0 to 4 are. When you write a 32 bit number to either location, 8 bytes are actually written into the flash sector. 4 of...
  19. Yes. Teensy 4.1 and 4.0 use the same chip, so...

    Yes. Teensy 4.1 and 4.0 use the same chip, so the only real difference is more I/O on 4.1. Software-wise they are the same.

    MIDI works well. You get 8 serial ports which can do normal serial...
  20. Teensy 4.0 already does wear leveling. But it...

    Teensy 4.0 already does wear leveling. But it also maps certain emulated EEPROM addresses to particular 4K flash sectors, which greatly improves performance for 32 bit writes. You could maximize...
  21. Maybe try the FreqMeasure library? ...

    Maybe try the FreqMeasure library?

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

    If you already have a signal generator set up, just connect it to pin 17 on Teensy++ 2.0 and open the...
  22. Replies
    233
    Views
    24,720

    But if it's sharing anything with the other core,...

    But if it's sharing anything with the other core, waiting on semphores or mutexes or other thread synchronization would need to be one of those "nothing else" variable timing things needing to be...
  23. Teensy's Ethernet library works with W5100, W5200...

    Teensy's Ethernet library works with W5100, W5200 and W5500. Don't let the filename "w5100.cpp" scare you. If you read the source code in that file, you'll see it's filled with code which...
  24. I can't comment on the Ethernet2 library. But...

    I can't comment on the Ethernet2 library.

    But if you edit Teensy's copy of Ethernet, which is installed at {Arduino}/hardware/teensy/avr/libraries/Ethernet, you will need to replace "SPI" with...
  25. Indeed it should work up to half the sample rate....

    Indeed it should work up to half the sample rate. But the audio library gets relatively little testing at other sample rates. If you do find any bugs where it does something wrong, please mention...
  26. Use this: void setup() { ...

    Use this:



    void setup() {
    analogWriteFrequency(2, 1000000);
    analogWrite(2, 128);
    }

    void loop() {
  27. Replies
    233
    Views
    24,720

    NXP's public block diagram reveals quite a lot...

    NXP's public block diagram reveals quite a lot about the chip, and at least so far the documentation under NDA leaves a lot of be desired (or guessed). Here's that block diagram.

    21764



    ...
  28. I tested 6 of the 10 returned parts. The unused...

    I tested 6 of the 10 returned parts. The unused chips appear to be good. The soldered pulled chips are definitely bad. I don't know why.


    https://www.youtube.com/watch?v=5mbgwElpT6Y

    It's...
  29. Replies
    129
    Views
    19,505

    USBHost_t36 does not yet support most...

    USBHost_t36 does not yet support most touchscreens. Only ordinary USB mice, keyboards, joysticks / gamepads, and certain digitizers are supported. Generic HID parsing is in the library, so the hard...
  30. Replies
    15
    Views
    262

    Try adding pinMode(14, INPUT_DISABLE) at the...

    Try adding pinMode(14, INPUT_DISABLE) at the beginning of your program. Does that help at all?
  31. Replies
    129
    Views
    19,505

    The Tools > USB Type menu configures the USB...

    The Tools > USB Type menu configures the USB device mode used on the main USB port. It has absolutely no effect on the USB Host port.
  32. Could you give me some more detail about this...

    Could you give me some more detail about this circuitry? Maybe photos too? Any chance you could try with a LM317 and regular LM7805?

    If the problem only happens with L78L05, can you give me the...
  33. FlexPWM is probably a better choice for...

    FlexPWM is probably a better choice for generating quadrature waveforms. Each FlexPWM sub-module has 2 feature-rich outputs (A & B) and 1 low-feature output (X). FlexPWM has very nice buffering of...
  34. Which power supply are you using?

    Which power supply are you using?
  35. I started this some time ago as comments in pwm.c...

    I started this some time ago as comments in pwm.c

    https://github.com/PaulStoffregen/cores/blob/master/teensy4/pwm.c#L87




    Please send a pull request to add to those comments.
  36. Audio input on the ADC pins is still a work in...

    Audio input on the ADC pins is still a work in progress on Teensy 4. So far only mono exists, and it's best described as "experimental" at this point. It will eventually improve, but perhaps not...
  37. I tested on this known-good hardware. 21705 ...

    I tested on this known-good hardware.

    21705

    First I ran the Ethernet WebClient example, to check the network really was working. Indeed it is able to fetch the web page.

    Next, I ran your...
  38. Replies
    39
    Views
    3,754

    Just to repeat what I said on msg #23: ...

    Just to repeat what I said on msg #23:



    Pointing to the spec isn't enough. Please point to driver support (Linux preferred), software, and at least 1 reasonably MIDI 2.0 product.
  39. Short answer is no. That port is only meant to...

    Short answer is no. That port is only meant to run in USB host mode.

    Longer answer is the hardware can do this, but software support is lacking.
  40. This is the power supply I used to the LM7805...

    This is the power supply I used to the LM7805 input.

    21703
  41. I tried with a LM7805AC voltage regulator and...

    I tried with a LM7805AC voltage regulator and 0.1uF capacitor, but I could not reproduce this problem.

    Here's a video so you can see what I tried and how Teensy 3.2 (programmed with LED blink)...
  42. It should print much faster than most Arduino...

    It should print much faster than most Arduino boards.

    Try running this program on your Teensy, and on the Arduino board(s). What lines/sec speeds do you see on each?
    ...
  43. Maybe you could give us links to the info you've...

    Maybe you could give us links to the info you've seen? I'm personally curious to see how they managed to make an analog part work with something that isn't made for analog signals.

    This might...
  44. Replies
    9
    Views
    282

    That one looks like it should work. I'm pretty...

    That one looks like it should work.

    I'm pretty sure all of these 8MB PSRAM parts are actually made or licensed from ApMemory (APS6404L-3SQR)
  45. Replies
    8
    Views
    2,868

    Should we mention your CP/M emulator on the blog?...

    Should we mention your CP/M emulator on the blog? Usually at least 1 photo or video showing its actual usage is needed. Are there any pictures?
  46. Normally you would use 74HC4051 chips for this. ...

    Normally you would use 74HC4051 chips for this. Check out "Connecting Many Buttons & Knobs/Sliders" on the USB MIDI page.

    https://www.pjrc.com/teensy/td_midi.html
  47. Yes, you can do that with "teensy_post_compile". ...

    Yes, you can do that with "teensy_post_compile". But there isn't any documentation. To see the command line syntax, use File > Preference in Arduino to turn on verbose output while compiling and...
  48. Try measuring the Program pin while it's not...

    Try measuring the Program pin while it's not shorted to GND. A blank or defective MKL04 will leave that pin floating. A properly running MKL04 will turn on the pullup resistor inside the MKL04,...
  49. Replies
    10
    Views
    249

    Please do not omit code. In trying to make...

    Please do not omit code.

    In trying to make reading your code easier, you're erecting a huge barrier for any of us to *run* your code.
  50. First, there is no 100% reliable way to always...

    First, there is no 100% reliable way to always get your Teensy into programming mode without the pushbutton. If the code you've previously written crashes or turns off the USB port or lingers in a...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4