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. Ah, many thanks. For the last few years I've...

    Ah, many thanks. For the last few years I've wondered why I couldn't get teensy-USB audio to play on my Ubuntu boxes. Now all is good. :D
  2. Replies
    41
    Views
    2,292

    Yay! SCK to GND solved it! The two...

    Yay! SCK to GND solved it! The two raspberry pi forum articles I had both had SCK unconnected. sigh. many thanks
  3. Replies
    41
    Views
    2,292

    I have tried 3v3 and 5v, and behavior is the...

    I have tried 3v3 and 5v, and behavior is the same. I even tried DC power jack on ZERO instead of USB power. Still misbehaves.
  4. Replies
    41
    Views
    2,292

    EE help needed for I2S DAC. I have...

    EE help needed for I2S DAC.

    I have successfully tested adafruit I2S DAC UDA1334A, with Teeeny 3.2/3.6/4.0 and Arduino ZERO. Tested sine wave with ear-buds and scope to DAC line out. DAC is wired...
  5. as my example shows (and the reference manual...

    as my example shows (and the reference manual dictates), you must "set" the status bit to clear it.
  6. you need to clear the interrupt flag in the ISR,...

    you need to clear the interrupt flag in the ISR, otherwise the interrupt will fire again as soon as you exit the ISR ... the black hole. you also need asm volatile ("dsb"); in the isr to keep ISR...
  7. The pins that T4 GPT uses are defined in table...

    The pins that T4 GPT uses are defined in table 52-2 of the reference manual. Look at the T4.0 and T4.1 schematics to determine which pins are actually available for the teensy PCBs. You'll need...
  8. Replies
    205
    Views
    14,038

    Using rpi pico...

    Using rpi pico, I've run some circuitpython/micropython tests and run a few C benchmarks via cmake and SDK (-O3 gcc 6.3.1). Here are some coremark plots
    24366
    24162
    Compile options...
  9. Replies
    5
    Views
    241

    The T4 configures the GPT and PIT to clock at...

    The T4 configures the GPT and PIT to clock at 24mhz, if you configure for 150mhz it will break the interval timer (PIT). here is example of GPT running at 150mhz...
  10. Replies
    205
    Views
    14,038

    thanks. did the program report the CPU clock...

    thanks. did the program report the CPU clock speed (clk_sys)? 125mhz?
  11. Replies
    205
    Views
    14,038

    in the SDK there are multicore examples,...

    in the SDK there are multicore examples, pico-examples/multicore/
    I don't have a pico yet, so I haven't tried any thing except some compiles.

    attached is a UF2 of coremark for pico ... anyone...
  12. Replies
    47
    Views
    4,886

    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...
  13. Replies
    10
    Views
    417

    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...
  14. Replies
    10
    Views
    417

    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...
  15. 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...
  16. Replies
    10
    Views
    417

    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....
  17. 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...
  18. Replies
    10
    Views
    430

    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 ...
  19. Replies
    47
    Views
    4,886

    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...
  20. Replies
    47
    Views
    4,886

    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...
  21. Replies
    15
    Views
    830

    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...
  22. Replies
    7
    Views
    396

    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...
  23. Replies
    12
    Views
    1,026

    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
  24. Replies
    12
    Views
    1,026

    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; ...
  25. 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...
  26. Replies
    5
    Views
    414

    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)
  27. Replies
    5
    Views
    414

    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...
  28. 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...
  29. Replies
    24
    Views
    1,125

    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)
  30. Replies
    24
    Views
    1,125

    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...
  31. Replies
    24
    Views
    1,125

    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...
  32. Replies
    4
    Views
    396

    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...
  33. Replies
    834
    Views
    33,234

    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 ...
  34. Replies
    6
    Views
    554

    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...
  35. Replies
    13
    Views
    1,904

    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...
  36. Replies
    6
    Views
    554

    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 ....
  37. Replies
    13
    Views
    1,904

    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:...
  38. Replies
    34
    Views
    3,487

    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...
  39. 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...
  40. 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 |=...
  41. try...

    try https://github.com/manitou48/teensy4/blob/master/gpt_capture62.ino
    GPT2 capture on pin 15
  42. Replies
    117
    Views
    22,301

    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.
  43. Replies
    8
    Views
    750

    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...
  44. Replies
    9
    Views
    796

    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...
  45. Replies
    7
    Views
    3,516

    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.
  46. Replies
    7
    Views
    3,516

    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...
  47. Replies
    17
    Views
    1,321

    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,...
  48. Replies
    13
    Views
    1,132

    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...
  49. Replies
    163
    Views
    9,454

    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...
  50. Replies
    21
    Views
    964

    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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4