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

Search:

Type: Posts; User: manitou

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    46
    Views
    3,546

    Thanks! Not a lot of variation in dop values, ...

    Thanks! Not a lot of variation in dop values, maybe needs two decimal places. Here is data for 3 different GPS units with external antenna.

    Adafruit ultimate, 1 constellation
    GPS Strong...
  2. Replies
    10
    Views
    181

    OK, I confirmed NativeEthernet lib supports UDP...

    OK, I confirmed NativeEthernet lib supports UDP BROADCAST by using local networks broadcast IP adddress, e.g. 192.168.1.255. target MAC address on packet is 0xffffffffffff


    IPAddress...
  3. Replies
    10
    Views
    181

    Usually, for UDP broadcast you use the the...

    Usually, for UDP broadcast you use the the broadcast IP address of your local subnet. For my home network destination UDP broadcast IP would be 192.168.1.255 (the 255 is the broadcast address for...
  4. Another thread ...

    Another thread https://forum.pjrc.com/threads/61581-Teensy-4-1-NTP-server discusses using a PID controller and GPS to discipline T4.1 clock/time. As usual changing temperature is the dominant...
  5. Replies
    10
    Views
    181

    multicast is more local-network-friendly than...

    multicast is more local-network-friendly than sending broadcasts to EVERY machine on your local ethernet. Here is sketch for wiznet but you can change the includes to use NativeEthernet....
  6. I haven't tested teensy to teensy, but I have...

    I haven't tested teensy to teensy, but I have tested T4.1 to/from linux over 100mbs wired ethernet. The linux box sends 40 1000-byte UDP packets at 97mbs and T41 receives all 40 packets at 94...
  7. Replies
    9
    Views
    161

    I had problems loosing GPS lock when powering up...

    I had problems loosing GPS lock when powering up T4.1+ethernet and using an Adafruit ultimate GPS. I finally bought an external antenna and placed the antenna on windowsill. see thread ...
  8. Replies
    46
    Views
    3,546

    Maybe not. the multiple satellites are from...

    Maybe not. the multiple satellites are from different constellations, i think the gps solution probably uses no more than 12 satellites, though it's able to choose from a larger collection of...
  9. Replies
    46
    Views
    3,546

    Nice. Here is graphic data from T4.1 connected...

    Nice. Here is graphic data from T4.1 connected to sparkfun GNSS NEO-M9N with external antenna mounted on windowsill. M9N can use up to 4 constellations (GPS, GLONASS, Galileo, BEIDOU).
    23409...
  10. Replies
    15
    Views
    497

    Earlier posts on light-sensing with LED,...

    Earlier posts on light-sensing with LED,
    https://forum.pjrc.com/threads/40001-LED-as-a-light-sensor...
  11. Replies
    7
    Views
    202

    here is example of "slow PWM" for Teensy4 using...

    here is example of "slow PWM" for Teensy4 using XBAR https://github.com/manitou48/teensy4/blob/master/qtmrxpwm.ino
    discussed in...
  12. Replies
    12
    Views
    811

    I ran your 3 timer sketch, feeding pins with...

    I ran your 3 timer sketch, feeding pins with 10khz from analogWrite() on pin 8. The low order digits from the three counters seem to match


    29433
    29433
    29433

    31433
    31433
    31433
  13. Replies
    12
    Views
    811

    The teensy core uses TMR1 CH0 for PWM, so it...

    The teensy core uses TMR1 CH0 for PWM, so it pre-configures some of the registers. You need to clear a couple more registers, try adding line in RED

    ...
    TMR1->CH[0].CTRL = 0; ...
  14. You could define BMP3XX_DEBUG in the...

    You could define BMP3XX_DEBUG in the Adafruit_BMP3XX library, and it should print out progress in performReading() that might help you locate the problem. Since the Teensy 4 is so fast you might...
  15. Replies
    5
    Views
    265

    In DCP_HASH_Update() change declaration line to...

    In DCP_HASH_Update() change declaration line to read: size_t blockSize = DCP_HASH_BLOCK_SIZE;
    and for test string of 64 bytes sketch returns 241003f8

    (github updated)
  16. Replies
    5
    Views
    265

    The T4 hardware CRC is very limited, 32-bit fixed...

    The T4 hardware CRC is very limited, 32-bit fixed polynomial. It also has the flaw that input must be multiple of 4 bytes (it willl pad with nulls, if not), see...
  17. FWIW, some GPSDO discussion and temperature...

    FWIW, some GPSDO discussion and temperature issues in disciplining a T4 clock https://forum.pjrc.com/threads/61581-Teensy-4-1-NTP-server

    As a proof of concept, here is a sketch that uses an...
  18. Replies
    24
    Views
    721

    yes, as referenced in post #13. I did not change...

    yes, as referenced in post #13. I did not change NUM_LEDS in either torch.ino (240) or torchframe.ino (378)
  19. Replies
    24
    Views
    721

    I've run both the torchframe sketch and the...

    I've run both the torchframe sketch and the torch sketch (github), with 8-LED stick on pin 11 of T3.2. I have nothing else connected (no buttons, no IR receiver, nothing on A0 and A1). The torch...
  20. Replies
    24
    Views
    721

    How about trying the simple FastLED bllink...

    How about trying the simple FastLED bllink example, testing with various values for NUM_LEDS. Following works for me with 8-LED neopixel stick on pin 11 with 3.3v and GND from T3.2.

    #include...
  21. Replies
    4
    Views
    280

    I have seen this problem on older sketches. I...

    I have seen this problem on older sketches. I just ran your sketch on my T3.2 1.8.13/1.53 on Ubuntu 18.04 and it hangs after printing 516. If I add while(!Serial); after Serial.begin(), the...
  22. Replies
    810
    Views
    20,829

    just for the record, a while back (see old thread...

    just for the record, a while back (see old thread), I managed to get adafruit's FatFs lib to work on SPI flash on Teensy prop shield with Teensy 3.2.

    http://elm-chan.org/fsw/ff/00index_e.html ...
  23. Replies
    6
    Views
    380

    Your sketch actually runs (not connected to...

    Your sketch actually runs (not connected to anything) on a T3.2. It will also run on T4.0 (nothing connected) if you correct the fatal flaw

    int flow1state = WireWrite(0, addr1, 0); // check...
  24. Replies
    13
    Views
    1,546

    Best practice warning. When setting a variable...

    Best practice warning. When setting a variable in an ISR that is referenced elsewhere, you need to declare the variable volatile so the compiler can handle asynchronous updates.
    volatile unsigned...
  25. Replies
    6
    Views
    380

    The usual Wire protocol for Wire read is after...

    The usual Wire protocol for Wire read is after you issue Wire.requestFrom() you then use Wire.available() before Wire.read(). maybe look at some Arduino I2C examples ....
  26. Replies
    13
    Views
    1,546

    as noted in post #4 PulsePosition lib...

    as noted in post #4 PulsePosition lib demonstrates how to use FTM0 to capture pin input with 32-bit count.

    Another example derived from Teensy LC timer 32-bit capture on pin 20:...
  27. Replies
    26
    Views
    1,905

    I've briefly played with the sparkfun M4/SAMD51...

    I've briefly played with the sparkfun M4/SAMD51 micromod processor board and the ATP carrier board. The M4 board has the SPI flash on the underside. I assume the Teensy 4 micromod board will have...
  28. Both paths are based on the same 24MHz crystal. ...

    Both paths are based on the same 24MHz crystal. My original sketch in post #4 uses CLKSRC(1) to reference the 24 mhz clock. If you want to use CLKSRC(5) for 24mhz, then you must enable the 150MHZ...
  29. yep, the example runs GPT2 @24mhz. You can...

    yep, the example runs GPT2 @24mhz. You can configure GPT to 150MHz for CLKSRC(1) by adding
    CCM_CSCMR1 &= ~CCM_CSCMR1_PERCLK_CLK_SEL; // turn off 24mhz mode
    in setup() before line CCM_CCGR0 |=...
  30. try...

    try https://github.com/manitou48/teensy4/blob/master/gpt_capture62.ino
    GPT2 capture on pin 15
  31. Replies
    113
    Views
    18,820

    Thanks for adding DCache support. I added T4 v6...

    Thanks for adding DCache support. I added T4 v6 lines to benchmarks in post #14. Some tests are faster than v5 dcache-hack, some are slower.
  32. Replies
    8
    Views
    531

    Here are two proof-of-concept sketches clocking...

    Here are two proof-of-concept sketches clocking GPT timers from external clock.
    https://github.com/manitou48/teensy4/blob/master/gpt_count.ino GPT1...
  33. Replies
    9
    Views
    501

    You might try updating to the latest IDE. On my...

    You might try updating to the latest IDE. On my T3.2 I ran PulsePosition lib loopback example with pin 9 jumpered to pin 10. I also added while(!Serial); as the first thing in setup(). Sketch...
  34. Replies
    7
    Views
    2,653

    For me, T4@150mhz and SPI @4mhz, my scope still...

    For me, T4@150mhz and SPI @4mhz, my scope still sees 4 mhz on pin 13 (nothing connected to SPI pins except scope to pin 13). As KurtE noted, T4 SPI clock is independent of MCU clock.
  35. Replies
    7
    Views
    2,653

    So what does your logic analyzer report for the...

    So what does your logic analyzer report for the SPI clock rate when your beginTrasaction() sets clock to 4mhz?

    if i run your SPI transfers, scope on SPI CLK (pin 13) shows 4 mhz clock for various...
  36. Replies
    17
    Views
    946

    OK, I ran deepsleep/button_hold_wakeup sketch on...

    OK, I ran deepsleep/button_hold_wakeup sketch on my LC. As noted in post #13 sketch did not come out of deepsleep when pin 7 was grounded. I don't pretend to understand much of the LC snooze logic,...
  37. Replies
    10
    Views
    710

    Re: lightweight printf You might grab the...

    Re: lightweight printf

    You might grab the ee_printf() from Paul's CoreMark (which works on LC)
    https://github.com/PaulStoffregen/CoreMark

    another ee_printf variation that works on LC from...
  38. Replies
    163
    Views
    7,580

    If you read the adafruit instructions for bno055...

    If you read the adafruit instructions for bno055 https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor/pinouts
    you'll see you can set the ADR pin high to change the I2C address from...
  39. Replies
    21
    Views
    724

    Thought I'd help beat the dead horse ... I...

    Thought I'd help beat the dead horse ... I hooked up Sparkfun BNO080 to T4.1 in SPI mode (PS0 and PS1 jumpered to 3v3) and ran the SPI EulerAngles example(17) and used pin 36 for CS. I commented...
  40. With PJRC wiznet adapter (WIZ850io) and T3.2, I...

    With PJRC wiznet adapter (WIZ850io) and T3.2, I successfully ran a sketch that initialized Ether, then initialized SD and listed SD directory, then sent UDP packets to/from NTP server. Adapter was...
  41. Replies
    4
    Views
    342

    Make sure your USB cable is not just a "charging...

    Make sure your USB cable is not just a "charging cable". see https://www.pjrc.com/teensy/troubleshoot.html
  42. Replies
    1
    Views
    237

    i had a similar problem with GPS and Teensy 4.1...

    i had a similar problem with GPS and Teensy 4.1 with ethernet. GPS would work ok until Ethernet was activated. I had to use another GPS (NEO-8MU) with active external antenna on a long cable. GPS...
  43. Replies
    3
    Views
    268

    Yes, the column heading for LC says Serial1-3, so...

    Yes, the column heading for LC says Serial1-3, so table probably reports worst case. LC Serial2 and Serial3 use F_BUS. Here's perl script for UART1 and UART2 (Serial2 and Serial3)

    #!...
  44. Replies
    3
    Views
    268

    Your LC numbers look correct for Serial1 (UART0)....

    Your LC numbers look correct for Serial1 (UART0). You can also verify error by setting Serial1 baud rate and then examining the count in UART0_BDH and UART0_BDL.

    void setup() {
    ...
  45. Replies
    4
    Views
    315

    Arduino and Teensy AVR cores implement millis()...

    Arduino and Teensy AVR cores implement millis() with TIMER0, study https://github.com/PaulStoffregen/ArduinoCore-avr/blob/master/cores/arduino/wiring.c
  46. Replies
    3
    Views
    307

    here is post on T4 TRNG...

    here is post on T4 TRNG from Teensy 4 beta test thread. Post also has a link to a low-level example on github. T4 TRNG is relatively slow for a hardware RNG, 13484 us for 512 bits.
  47. Replies
    46
    Views
    3,546

    @ddrown, your isr in examples/lwip_1588_input/...

    @ddrown, your isr in examples/lwip_1588_input/ needs asm volatile ("dsb");, otherwise the ISR fires twice for each PPS.

    https://github.com/ddrown/teensy41_ethernet
  48. Replies
    9
    Views
    765

    Hmmm, the ISR function in post #7 does all three....

    Hmmm, the ISR function in post #7 does all three. ISR is equivalent to CHANGE, then in the ISR you check the status flag to see if you have rising (RF) or falling (CMPF).
  49. Replies
    9
    Views
    765

    ? "both" and "only" seem mutually exclusive?? ...

    ? "both" and "only" seem mutually exclusive?? any how, you can enable interrupt on both edges of the PWM. There is only one ISR for the interrupt so you will need to check the status flag...
  50. What version of Arduino IDE and Teensyduino are...

    What version of Arduino IDE and Teensyduino are you using? what is the error message that you are getting from the SD lib test? If you run the following sketch on your T4.1 with a uSD in the...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4