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.10 seconds.

  1. I'm running it now on a Teensy 3.6 and watching...

    I'm running it now on a Teensy 3.6 and watching the USB communication with a protocol analyzer.

    I can see the Teensy keeps communicating. But for some reason, Linux stops moving the cursor after...
  2. Maybe try this library? ...

    Maybe try this library?

    https://github.com/luni64/TeensyStep
  3. Replies
    12
    Views
    310

    Can you try editing the file "C:\Programs Files...

    Can you try editing the file "C:\Programs Files (x86)\Arduino\arduino.l4j.ini" ? It should have these 2 lines:


    -Xms128M
    -Xmx512M

    The second one with 512M is supposed to control the maximum...
  4. This is a well known problem, where WS2812 LED...

    This is a well known problem, where WS2812 LED update disables interrupts, interfering with serial communication and other libraries requiring interrupts.

    WS2812Serial is probably the answer. To...
  5. Replies
    12
    Views
    310

    Has anyone using Macintosh tried this beta? Are...

    Has anyone using Macintosh tried this beta? Are there any Gatekeeper "unidentified developer" warnings?

    It seems to work fine on the 1 and only macbook air I have running the latest High Sierra. ...
  6. Watch the Teensy Loader window when you press the...

    Watch the Teensy Loader window when you press the button on the Teensy. You should see it show your Teensy and "Programming" then "Reboot OK". The programming goes quickly, so it's easy to miss if...
  7. Replies
    7
    Views
    162

    Maybe this is a misunderstanding about how to...

    Maybe this is a misunderstanding about how to connect the 4.7K resistors?

    The SDA & SCL signals from the chip connect directly to Teensy. Then you connect a resistor between each signal and 3.3V....
  8. Replies
    17
    Views
    345

    An unlisted video on youtube is perfectly fine. ...

    An unlisted video on youtube is perfectly fine. Feel free to email me the link if you like, but please also include a link to this thread so I can see the background info.
  9. Any chance you could confirm with 1.41-beta4...

    Any chance you could confirm with 1.41-beta4 (the latest code)?

    If using Windows, just download the ZIP file copy of Arduino 1.8.5. Don't run the .EXE installer, since it will try to uninstall...
  10. With OctoWS2811, no, the output is always 8...

    With OctoWS2811, no, the output is always 8 signals. There is no way to disable the other 7. But it's perfectly fine to just leave the other 7 unused.

    You can use WS2812Serial instead of...
  11. Replies
    12
    Views
    310

    I've uploaded the Mac version. Can anyone with...

    I've uploaded the Mac version.

    Can anyone with a modern Mac please let me know if Gatekeeper allows you to run it without any complaints? This is the first build with a fresh new certificate from...
  12. Teensy 3.2 uses the same numbers for interrupts...

    Teensy 3.2 uses the same numbers for interrupts and pins. So pin 2 is interrupt 2 on Teensy 3.2.

    Arduino Uno, the most popular Arduino board, has only 2 pins which support interrupts. It uses...
  13. Replies
    2
    Views
    70

    Very unlikely to work. But you could try anyway,...

    Very unlikely to work. But you could try anyway, if you're willing to lose a small handful of parts and several hours of your time to the experiment.

    If you're going to need only a moderate...
  14. Replies
    71
    Views
    12,301

    I'd really like to know why it didn't work on the...

    I'd really like to know why it didn't work on the 1st computer. The dmesg info in message #66 looks like Teensy is working properly, and you had Tools > USB Type in Arduino set to Serial (the...
  15. About the EthernetServer class limitation,...

    About the EthernetServer class limitation, detecting clients which do not transmit data upon connecting, let's call this problem "EthernetServer can't do FTP".

    Even if the Arduino devs allow me to...
  16. Indeed that would be odd, if the lockup were only...

    Indeed that would be odd, if the lockup were only due to overclocking the SPI.

    But apparent lockups are surprisingly common for all sorts of other reasons. To illustrate, let me describe for you...
  17. Replies
    12
    Views
    310

    Could you please be more specific. Exactly which...

    Could you please be more specific. Exactly which versions did you test? When have the memory problem on your machine, and which do not? Click Help > About to check which version you're running, if...
  18. Many of these are too slow, especially this type...

    Many of these are too slow, especially this type with 1 mosfet and 2 resistors per signal. Other people have reported exactly this same problem, using shiftOut and '595 shift register chips, where...
  19. Replies
    22
    Views
    1,057

    Already fixed on github, at line 340: ...

    Already fixed on github, at line 340:

    https://github.com/PaulStoffregen/cores/blob/master/teensy3/usb_midi.c#L340

    I'm going to roll all the recent fixes up into 1.41-beta4 soon. But first...
  20. Replies
    22
    Views
    1,057

    hardware/teensy/avr/cores/usb_midi is for Teensy...

    hardware/teensy/avr/cores/usb_midi is for Teensy 2.0 and Teensy++ 2.0.
  21. Then again, there may be some other conflicts I'm...

    Then again, there may be some other conflicts I'm not imagining. Please let me know how AudioNoInterrupts() around only the moment IRremote is transmitting works for you? Are you able to receive IR...
  22. I believe the conflict is between Audio and the...

    I believe the conflict is between Audio and the simple way IRremote does transmission, which basically amounts to a busy loop with delays turning PWM on/off. If other libs run lengthy interrupts, as...
  23. Or to avoid playing the same song twice in a row,...

    Or to avoid playing the same song twice in a row, you could generate the random number like this:


    long newRandNumber;
    do {
    newRandNumber = random(1, 5);
    } while...
  24. Try this. #include #include...

    Try this.



    #include <Audio.h>
    #include <SD.h>
    #include <Bounce.h>

    long randNumber;
    const int buttonPin = 16;
  25. Replies
    22
    Views
    1,057

    I just tried a fresh copy of Arduino 1.9.0-beta31...

    I just tried a fresh copy of Arduino 1.9.0-beta31 and Teensyduino 1.41-beta3.

    It verifies without any error.

    12606

    Any chance your install might have leftover stuff from prior betas or other...
  26. Replies
    22
    Views
    1,057

    Arduino 1.9.0-beta adds some html parsing stuff...

    Arduino 1.9.0-beta adds some html parsing stuff to the serial monitor. Maybe it's consuming more memory as lots of data comes in?
  27. Replies
    22
    Views
    1,057

    Do the out of memory problems happen only when...

    Do the out of memory problems happen only when using the serial monitor?
  28. Let's talk about an extension for the...

    Let's talk about an extension for the EthernetServer class.

    It's looking likely that Arduino will soon accept Teensy's Ethernet lib (fully replacing theirs, which only supports W5100) and I'll...
  29. I've put this change into our copy of...

    I've put this change into our copy of Adafruit_SSD1306, and sent a pull request to Adafruit. In the future nobody should hit this slow speed.
  30. There are only 3 speeds, 100000, 400000 and...

    There are only 3 speeds, 100000, 400000 and 1000000.

    Maybe someday in the future we'll support finer steps, but for now those are the only 3. All other numbers round down to the nearest of those...
  31. Kind of a longshot, but maybe try 1000000 instead...

    Kind of a longshot, but maybe try 1000000 instead of 400000....
  32. Replies
    12
    Views
    200

    Sure, use AGND, but only for the grounds of...

    Sure, use AGND, but only for the grounds of analog signals. Connect all other stuff to regular GND.

    Again, it only makes a difference in certain scenarios.

    Your motors will probably need their...
  33. Also add this at the beginning of the program...

    Also add this at the beginning of the program (near all the other #include lines)

    #include <Wire.h>
  34. Replies
    12
    Views
    200

    They're not quite the same. When in doubt, just...

    They're not quite the same. When in doubt, just use GND.

    AGND can be used for analog signal grounds. In some cases that reduces noise. But unless you have something like LEDs or motors drawing...
  35. This depends on the scope of "possible". Using...

    This depends on the scope of "possible".

    Using the USB code Teensyduino provides, no, this isn't possible. That code is designed to be configured at compile time, based on the setting in Tools >...
  36. Did you try the Wire.setClock(400000) suggestion...

    Did you try the Wire.setClock(400000) suggestion I wrote on your other thread?
  37. Arduino defaults to hiding compiler warnings. ...

    Arduino defaults to hiding compiler warnings. You can turn warnings on from File > Preferences. But many authors never do this, and they might not even know there is such a preferences box in...
  38. The recommended way to use pin interrupts is: ...

    The recommended way to use pin interrupts is:

    attachInterrupt(digitalPinToInterrupt(pin), function, mode);

    You didn't post the link to the code in question (eg, the "Forum Rule") so we can't...
  39. Replies
    12
    Views
    200

    Something's wrong with your connections. I'd...

    Something's wrong with your connections. I'd guess Teensy is probably working.

    In your photo, Teensy looks like it's plugged into some sort of socket, which then plugs into the breadboard. What...
  40. Replies
    12
    Views
    200

    I'm running your program here on a Teensy 3.6...

    I'm running your program here on a Teensy 3.6 with a 1K resistor connected from 3.3V to the A0/14 pin.

    12599

    I get a solid 1023 printing in the serial monitor.

    12600

    Maybe try only a...
  41. Normally I only investigate problems when...

    Normally I only investigate problems when complete code and clear details on the test process are posted. In this case I made an exception, because the nature of this problem could possibly be...
  42. I tried just now to investigate the overflow...

    I tried just now to investigate the overflow condition. Again, I could not reproduce the problem.

    I used the same hardware as above. The Teensy 3.6 sends 12 bytes when the orange wire pulses...
  43. My first attempt to reproduce this problem has...

    My first attempt to reproduce this problem has failed. Here's what I tried.

    I connected a Teensy 3.2 to receive and a Teensy 3.6 to transmit a byte with framing error.

    12593

    The Teensy 3.6...
  44. I'm planning to look into this issue today. Any...

    I'm planning to look into this issue today. Any chance you could post that logic analyzer screenshot?
  45. Replies
    5
    Views
    264

    Is that memory chip 5V tolerant? The datasheet...

    Is that memory chip 5V tolerant? The datasheet has absolute max voltage is 4.6 on page 3, and recommended max at 3.6 on page 4. Have you converted that Teensy++ 2.0 to 3.3V with the MCP1825...
  46. Replies
    5
    Views
    230

    The really depends on the LED controller chip and...

    The really depends on the LED controller chip and the type of cable you're using, and of course how long it is. The sad reality is you're not going to get a really good answer anywhere, other than...
  47. Sorry, no Teensy has this much RAM. 256K is the...

    Sorry, no Teensy has this much RAM. 256K is the max, in Teensy 3.6.

    In fact, I'm not aware of any Arduino compatible board using a microcontroller which has that much RAM. The most I've see is...
  48. Replies
    17
    Views
    235

    Maybe this lengthy explanation I wrote some time...

    Maybe this lengthy explanation I wrote some time ago about how serial communication works can help?
    ...
  49. Thanks. Fixed that and some other minor issues,...

    Thanks. Fixed that and some other minor issues, and added more examples.
  50. Ok, I will look into this, using the code from...

    Ok, I will look into this, using the code from message #8.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4