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

Search:

Type: Posts; User: jwatte

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    134

    My experience has been that, after you apply 12V...

    My experience has been that, after you apply 12V onto some Teensy pins, even for a short while, the Teensy will stop working, and will become quite warm when powered up.
    Presumably the MOSFETs in...
  2. Replies
    3,337
    Views
    358,519

    Question: With the release coming up, is there a...

    Question: With the release coming up, is there a good summary of the form factor and pinout/s of the version 4 Teensy linkable somewhere?
    Maybe it's also available on some post in this thread, but...
  3. Replies
    5
    Views
    1,646

    An Arduino can be considered a single board...

    An Arduino can be considered a single board computer. These terms are all made up by marketing people to sell products, for engineers, it's more important to figure out what you really need, and what...
  4. Replies
    28
    Views
    2,510

    I upvoted this pull request.

    I upvoted this pull request.
  5. Thanks KurtE and defragster! I ended up...

    Thanks KurtE and defragster!

    I ended up looking around some more (first search didn't find much, hence why I asked,) and the state seems to be:

    1. Use a third party tool like defragster or...
  6. Tensyduino compatibility with Arduino Command Line?

    I'm running Arduino 1.8.9 on Windows, and the latest Teensyduino as of yesterday.
    In the IDE, I can select and program a Teensy just fine.
    However, using the Arduino Command Line interface, I can't...
  7. We still don't have this documentation! What...

    We still don't have this documentation! What pinMode() does touchRead() need? How fast is it? What are typical values returned? Should I code in an absolute value, or try to detect big changes?
  8. Replies
    4
    Views
    468

    OK, thanks! I guess that makes sense, as it...

    OK, thanks! I guess that makes sense, as it allows atomic updates of multiple pins at the same time.
  9. Replies
    4
    Views
    468

    Great! That in turn tells me I have to use the...

    Great! That in turn tells me I have to use the Flex Timer Module code from the Kinetis headers, and then go look in the Kinetis manual.

    There was a question by lacsap which hasn't been answered...
  10. Replies
    4
    Views
    468

    How to control PWM phase?

    For controlling two brushless motors out of a Teensy 3.5, I need to use 12 PWM pins, where I can control not just control frequency and duty cycle, but also phase of the PWM output.
    I looked at the...
  11. Replies
    19
    Views
    2,440

    I believe I hit it within a single bank. I...

    I believe I hit it within a single bank. I believe M4 needs software assist for unaligned 4 byte access. (Could be wrong of course)

    The dummy proof way to get around this is to create a...
  12. Replies
    19
    Views
    2,440

    The solution was to move the buffer 2 bytes in...

    The solution was to move the buffer 2 bytes in memory :-)
  13. Replies
    19
    Views
    2,440

    How to spend hours debugging a Teensy3.5

    I have a serial protocol that defines messages like this:


    struct SomeMessage {
    uint32_t data1;
    uint16_t data2;
    uint16_t data3;
    };

    (I know about byte order, and struct padding, and...
  14. Replies
    8
    Views
    1,243

    You can tell whether it's running in 32- or...

    You can tell whether it's running in 32- or 64-bit mode using "uname -a"


    Linux xps15 4.13.0-39-generic #44-Ubuntu SMP Thu Apr 5 14:25:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


    The "x86_64"...
  15. Replies
    7
    Views
    808

    The interrupt handler runs with interrupts...

    The interrupt handler runs with interrupts disabled. Thus, doing anything blocking in that function will cause other same- or lower-priority interrupts to be delayed until the blocking operation is...
  16. Replies
    4
    Views
    657

    Digi-key hits > 0 products for "dac i2s":...

    Digi-key hits > 0 products for "dac i2s": https://www.digikey.com/products/en?keywords=dac%20i2s
    (although of course many of those are "the same thing" in slightly different packaging.)
  17. Replies
    3
    Views
    573

    Note that stall torque is different from...

    Note that stall torque is different from operating torque. Most motors will burn out if you keep stalling them, and are only safe to operate at significantly less than maximum stall torque.
    ...
  18. I ended up finding the files that #include...

    I ended up finding the files that #include <Wire.h> in the Audio/ library, and renaming them to not include them in the build.
    As they are all just codec support for codecs I don't use, this was...
  19. Using Audio and the new Wire library causes duplicate symbol linker errors

    The Audio library apparently includes the old Wire library, which causes duplicate symbol definitions if I want to use the new (asynchronous) Wire library and Audio in the same project.
    Any good...
  20. Replies
    181
    Views
    48,090

    From the marketing literature: I would think...

    From the marketing literature:


    I would think you'd want to decrease system cost and reduce time to market, but that's just me.
    Surely, American marketers are well paid enough to actually write...
  21. Teensy 3.2 as I2C slave, emulating PCA9685 PWM driver

    I'm using a Raspberry Pi with Adafruit_PCA9685 library to talk to the I2C bus.
    I'm using 2 kOhm pull-ups.
    I'm using a Teensy3.2 to emulate the PCA9685 PWM controller part, by forwarding the first...
  22. Replies
    417
    Views
    242,864

    The right way to use Teensy is to install a...

    The right way to use Teensy is to install a supported version of the Arduino IDE (for example 1.8.5) and then download and install the latest version of Teensyduino on top of that.
    You can then see...
  23. Replies
    5
    Views
    3,625

    My #1 tip is: If you want "a working rover"...

    My #1 tip is: If you want "a working rover" rather than "a fun project that takes years," start with a mechanical platform that already works!
    I'd recommend something like the Wild Thumper...
  24. Replies
    2
    Views
    699

    I took the board to a Windows machine, and it...

    I took the board to a Windows machine, and it could be programmed with Blink just fine there.
    After plugging it back into the Linux machine, it could be programmed once (using IDE -> auto-upload)...
  25. Replies
    2
    Views
    699

    Teensy 3.5 doesn't become programmed

    I have a Teensy 3.5, connected to an Ubuntu 17.04 x64 machine.
    I'm using Arduino 1.8.4 and a recent Teensyduino (forget the exact version.)
    This Teensy has been programming just fine; I've loaded...
  26. Replies
    12
    Views
    3,066

    I would give it a 65% likelihood that your...

    I would give it a 65% likelihood that your problem is timing in the communications to the display.
    When it's "not OK," versus when it's "OK," what does a logic analyzer or scope look like for the...
  27. Replies
    181
    Views
    48,090

    Sure, although the Pi Zero would still be great...

    Sure, although the Pi Zero would still be great value at $15 or $20.
    And I happily pay the $20 for the Teensy 3.2 and the $30 for the 3.5.
    But, I would rather keep doing that, than pay <whatever>...
  28. Replies
    181
    Views
    48,090

    You don't need external RAM on the Pi, but you do...

    You don't need external RAM on the Pi, but you do need external flash. (some people think this is a benefit....)
    Technically, yes, you can run any code you want in kernel mode with perfectly...
  29. Replies
    181
    Views
    48,090

    That board is $83, and is still a Cortex-M. ...

    That board is $83, and is still a Cortex-M.

    Compare to https://www.adafruit.com/product/3400 which is $10 and has built-in WiFi, Bluetooth, and HDMI... (and is much smaller.)
  30. Replies
    6
    Views
    1,343

    Oh, nice! I have to try that out.

    Oh, nice! I have to try that out.
  31. Replies
    6
    Views
    1,343

    Wedging typically means stopping reading/writing...

    Wedging typically means stopping reading/writing data, or being very intermittent about how much it reads/writes.

    As I increase throughput on USB serial on Linux, I end up running into this. It's...
  32. Replies
    12
    Views
    3,066

    If you say "graphics changes," then it sounds...

    If you say "graphics changes," then it sounds like you're driving the graphics display faster than it can keep up -- i e, a timing problem.
    If you're using software SPI, then the timing of toggling...
  33. Replies
    9
    Views
    2,489

    Note that, even with attachInterrupt(), you still...

    Note that, even with attachInterrupt(), you still need to also use a pull-up (or pull-down) to drive the pin when the button is not actuating the connections to GND (or 3.3V.)
    pinMode(...,...
  34. If you need to generate 3.3V from a 1.5V battery,...

    If you need to generate 3.3V from a 1.5V battery, I would recommend something like this: https://www.pololu.com/product/2561
    Hook that into the 3.3V pin of the Teensy, and you'll do fine!

    Snooze...
  35. Replies
    12
    Views
    3,066

    It is traditional that "Debug" is the...

    It is traditional that "Debug" is the not-optimized version of the code.

    When you say "different results," what do you mean? Unless you're measuring timing, if the result of your code changes...
  36. Replies
    6
    Views
    1,343

    An easy way to get Serial with HID?

    Because the Linux USB serial driver keeps wedging on high data amounts, I'm using HID to send/receive data to the Teensy. This is not wedging, so yay!
    But, I'd like to also use the serial port for...
  37. Replies
    417
    Views
    242,864

    I see. At that point, you can still use a...

    I see. At that point, you can still use a resistive divider, but use the 1.2V reference instead of the 3.3V reference.
    Thus, use analogReference(INTERNAL1V1) and divide the input voltage at least...
  38. Replies
    417
    Views
    242,864

    First: You cannot put a voltage higher than 3.3V...

    First: You cannot put a voltage higher than 3.3V into an analog in, so there is that. (I e, no hooking batteries straight to the analog in pin!)
    Second: The VREF uses specific hardware to make sure...
  39. Replies
    1
    Views
    645

    Solution: The problem was that I hadn't called...

    Solution: The problem was that I hadn't called AudioMemory(X) in setup().
  40. Replies
    1
    Views
    645

    dacs output don't play on Teensy3.5

    I have the simplest possible sketch, compiling on Ubuntu using the Arduino IDE and a Teensyduino install I downloaded just a few days ago.


    #include <Audio.h>

    // GUItool: begin automatically...
  41. Replies
    141
    Views
    43,763

    Can I buy the RAM option on the Tindie page? I'll...

    Can I buy the RAM option on the Tindie page? I'll probably put in an order!

    Also, could the teensy be put on the underside for a more compact volume? (Obviously not for this revision!)
  42. Replies
    141
    Views
    43,763

    That looks sweet! But why is the RAM optional?...

    That looks sweet! But why is the RAM optional? Would you really sell fewer if the RAM was just soldered in and you raised the price a bit?
  43. Replies
    6
    Views
    2,633

    Whatever table you were looking at is probably...

    Whatever table you were looking at is probably not applicable to the Teensy 3 series :-)

    I'm glad that ten bytes came out OK for you, although the correct measurement cycle for asynchronous serial...
  44. Thanks! It's actually easier than that; I look...

    Thanks! It's actually easier than that; I look for USB VID/PID of the Teensy, and then pick the endpoint that has a descriptor length of 28.
    Some may call this a hack, but it works well enough for...
  45. Replies
    6
    Views
    2,633

    Where do you see the max serial rate listed at...

    Where do you see the max serial rate listed at 115200?
    In general, these serial ports go up to megabits per second; I've used them successfully at 1 Mbps.
  46. In general, I think it's a bad idea to presume...

    In general, I think it's a bad idea to presume that there are "application programmers" that "don't know all the bits" of a timing critical system running on a single core in an embedded form factor....
  47. Gotcha; thanks!

    Gotcha; thanks!
  48. But how do I tell, from the Linux machine, which...

    But how do I tell, from the Linux machine, which one is which?
    Should I attempt to talk to rawhid3 or rawhid4?
  49. Which of the two "hidraw" devices is my RawHID?

    When I use the RawHID USB type on a Teensy 3.2, and plug it into my Raspberry Pi, I see two rawhid devices show up:


    pi@crunch:~/hidinfo $ ./hidinfo /dev/hidraw*
    /dev/hidraw0: Permission denied...
  50. Replies
    4
    Views
    2,056

    Thanks for the link! Although, if you already...

    Thanks for the link! Although, if you already have USB, chances are good that you can run the default Teensy programmer. It's more interesting when using UART serial, or perhaps something like I2C,...
Results 1 to 50 of 254
Page 1 of 6 1 2 3 4