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

Search:

Type: Posts; User: TeensyWolf

Search: Search took 0.00 seconds.

  1. Replies
    182
    Views
    21,242

    Dropping UDP packets after bootup?

    When I boot up, I'm noticing that sent UDP packets are dropped for initial ~30 seconds after bootup. Is that normal?

    If I use DHCP, no dropped packets, but there is a 60 sec DHCP time.

    Static...
  2. Valid points, that's why I said you have to do...

    Valid points, that's why I said you have to do the engineering for the application, which may not be indoor use. It may be intended for a Christmas display, could be outdoors, exposed to rain and...
  3. So 1 T4.1 to drive 13 DC servo motors with...

    So 1 T4.1 to drive 13 DC servo motors with ethernet?

    Figure 42 pins available, not including ethernet.

    For a brushed DC servo, 2 wires to drive is minimum, like PWM/DIR or PWM-FOR/PWM-REV....
  4. Replies
    4
    Views
    137

    VisualTeensy is what you need.

    VisualTeensy is what you need.
  5. HardwareSerialX.cpp, in the Teensy Core X = 1...

    HardwareSerialX.cpp, in the Teensy Core

    X = 1 thru 8, pick the one(s) you are using

    Edit this line (#38) which is 64 by default, here I've changed it to 256for my application.


    #define...
  6. Replies
    630
    Views
    55,024

    What exact pins are CanTX & CanRX & CanRS tied...

    What exact pins are CanTX & CanRX & CanRS tied to?

    Tie Rs to ground thru a 10K. No need to bring it to the Teensy.

    I left Vref as NC.
  7. Try increasing your serial buffer in hwserial

    Try increasing your serial buffer in hwserial
  8. Are you using VisualTeensy? From my...

    Are you using VisualTeensy?

    From my understanding, VisualTeensy will setup a copy of your libraries (pulls from Arduino, Teensyduino or your shared folder) inside your VSC project. If you have...
  9. As with just about anything, operate the device...

    As with just about anything, operate the device beyond the rated capabilities and you risk damage. I've smoked a few $800 DC servo motors in my career, possibly the highest quality you can buy, made...
  10. Replies
    182
    Views
    21,242

    xoxu, I'd like to see your fork, can you point me...

    xoxu, I'd like to see your fork, can you point me in that direction?
  11. Sounds like a neat project. What do you mean...

    Sounds like a neat project.

    What do you mean by "low power"? How fast do you want the 20g mass to move up? What's your budget?

    If you have the power budget, off the shelf stepper drivers can...
  12. T4 SSD1322 OLED taking 24mS to refresh, serial data gets stale, add interrupt?

    Teensy 4.1 driving a Newhaven SSD1322 256x64x4bit OLED takes about 24mS to update using U8G2 on SPI 4 wire. I maxed out the SPI rate to 10Mhz (max rate on SSD1322 spec, Tcycle = 100nSec).

    OLED...
  13. I used output compares back in the early 90's on...

    I used output compares back in the early 90's on old Motorola (NXP used to be Freescale and before that, Motorola) HC11s, creating one shot and PWM outputs, but they can be configured for pretty much...
  14. Look at output compare

    Look at output compare
  15. Replies
    2
    Views
    220

    Correction, led is controlled by ethernet PHY.

    Correction, led is controlled by ethernet PHY.
  16. Replies
    2
    Views
    220

    It should be controlled by the library, but make...

    It should be controlled by the library, but make sure you are on the network. Confirm by pinging the teensy's IP.
  17. Replies
    0
    Views
    76

    Questions regarding code security T4

    To level set, I'm aware of the T4 thread on security, but rather than hijack that deep discussion, had a few questions regarding a low-volume (in the dozens), limited run, closed source application...
  18. Replies
    205
    Views
    22,476

    Yes, that works. I should have had 0x10, not 10. ...

    Yes, that works. I should have had 0x10, not 10. Thank you.
  19. Interesting, are you using SDA1/SCA1 with...

    Interesting, are you using SDA1/SCA1 with 2ND_HW_I2C?

    I can understand the need to define the address, but curious what's the reason for the bitshift?

    I'll try that next time I'm on that...
  20. Replies
    3
    Views
    350

    Good catch, using the dual diode configuration...

    Good catch, using the dual diode configuration should have an isolated power supply to avoid damage.
  21. Replies
    3
    Views
    350

    I usually cut the pad and use a pair of schottky...

    I usually cut the pad and use a pair of schottky diodes.

    The VUSB-OUT needs to come off the Teensy, I have a 5V reg on board. They both hit the diode-OR, and feed back into VIN at around ~4.7V
    ...
  22. I ended up just using software i2c on that board,...

    I ended up just using software i2c on that board, until I'm able to rev it. I didn't spend too much time digging into it, the Teensy is fast and it worked ok.
  23. TD 1.53, Arduino 1.8.12, T4.1 compiles clean in...

    TD 1.53, Arduino 1.8.12, T4.1 compiles clean in Arduino & VSCode (libs FNET V0.1.3 & NativeEthernet v1.0.1)
    TD 1.53, Arduino 1.8.13, T4.1 compiles clean in Arduino & VSCode (libs FNET V0.1.3 &...
  24. Thanks for looking into this Luni. I'm using...

    Thanks for looking into this Luni.

    I'm using T4.1

    I uninstalled Arduino and wiped out that folder. Reinstalled and the sketchbook library folder is library free.

    I'll try the non-beta...
  25. Visualteensy & Teensyduino 1.54 beta 6 issue with multiple definitions?

    Can't seem to get past this issue. Forgive me if I'm not seeing something obvious here.

    I've clean installed Arduino 1.8.13 and Teensyduino 1.54-beta 6.

    I've downloaded...
  26. Circular_Buffer is the one I'm now using. Makes...

    Circular_Buffer is the one I'm now using. Makes it really easy.
  27. Replies
    205
    Views
    22,476

    Not sure why this is not working for me, but...

    Not sure why this is not working for me, but can't figure it out.


    #include "circular_buffer.h"
    Circular_Buffer<uint16_t, 10> cb;

    void setup() {
    Serial.begin(1);
    delay(2000);
    ...
  28. Can I look at last byte in serial buffer?

    T4.1 project here.

    I'm expecting a serial packet, packet length can vary, and can be > 100 bytes (will have to adjust buffer size).

    I'm polling, so I don't want to process the packet until I...
  29. Replies
    0
    Views
    387

    EAR FOR T4.1 at Mouser

    Just a heads up, I placed an order at Mouser yesterday, went ahead and added in a couple of T4.1 (of the Sparkfun variety).

    Then, just before the shipping cutoff, get notice that I needed to fill...
  30. T4 with SSD1306 on alternate i2c (SDA1/SCL1)

    I goofed on my PCB, using SDA1/SCL1 instead of SDA/SCL, but having trouble getting it to work with hardware i2c, when using 2ND_HW_I2C. I tried the HW_I2C also.

    The following only works in SW_I2C...
  31. Replies
    630
    Views
    55,024

    Sorry, I had tried the following (as I'm...

    Sorry, I had tried the following (as I'm attempting to connect to existing automotive CAN system at some point, which is 33,333 with a tolerance of 0.35% or 33,217 - 33,449)


    ...
  32. Replies
    630
    Views
    55,024

    Thanks, I'll look into that. Do you know if...

    Thanks, I'll look into that.

    Do you know if there is a minimum baud rate I can use for CAN?
  33. Replies
    630
    Views
    55,024

    SAE J2411 CANBUS @ 33k baud?

    I'm using this can chip : https://www.onsemi.com/pub/Collateral/NCV7356-D.PDF

    I can get it to work at 40000 baud (chip max in normal mode, 2 teensy 4.x talking to each other), but standard baud is...
  34. Replies
    5
    Views
    694

    I tried this recently, not an ideal solution, but...

    I tried this recently, not an ideal solution, but it works mechanically. Haven't ran ethernet thru it yet, that's further down the road.

    The 2mm female sockets are shorter, so I had to use longer...
  35. Replies
    30
    Views
    6,194

    How are folks picking up the pads on the bottom...

    How are folks picking up the pads on the bottom of the T4 without hand wiring? I was looking at this: http://skpang.co.uk/catalog/teensy-40-triple-can-board-include-teensy-40-p-1575.html and noticed...
  36. What is your incoming supply voltage? The 7805...

    What is your incoming supply voltage? The 7805 will work for a range, starting at 7V (2V dropout requirement). The top end will be 25V max, but also limited by heat, generated by the power...
  37. Replies
    630
    Views
    55,024

    Just wanted to say thanks for this library. Was...

    Just wanted to say thanks for this library. Was able to test all 3 can channels concurrently on T4.1. Test was listen only, for now, 3 separate buses.

    Can anyone confirm that can2 & can3 alternate...
  38. So I rebooted the laptop, now it's happy with...

    So I rebooted the laptop, now it's happy with Teensy Loader.

    Interesting, the filename still has the comma+space in verbose



    11:49:20.796 (post_compile 1): Begin, version=1.53, high-res...
  39. Here is the makefile, after I removed the @ on...

    Here is the makefile, after I removed the @ on line 164




    #******************************************************************************
    # Generated by VisualTeensy...
  40. luni, Thanks for Visual Teensy, great stuff...

    luni,

    Thanks for Visual Teensy, great stuff for managing the libraries.

    First, I download 9.8.2, but application states its 9.8.1 at the top. Hopefully it's not me.
    But my issue is that...
  41. Replies
    42
    Views
    7,552

    I see that now. Thanks for confirming. ...

    I see that now. Thanks for confirming.

    Perhaps the nomenclature would be clearer if it said "quadrature encoder/decoder" to match up with the NXP docs.
  42. Replies
    42
    Views
    7,552

    Probably a silly question, but this Encoder...

    Probably a silly question, but this Encoder library is used to Decode quadrature from an encoder?

    The name is somewhat confusing to me. On the 3.2, I used QuadDecode. Looking for same thing with...
Results 1 to 42 of 42