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
    4
    Views
    273

    your sketch didn't compile -- spaces in...

    your sketch didn't compile -- spaces in "MED_SPEE D" and "VERY_HIGH_SP EED"

    that ISR is firing every 11 us -- not sure what settle time is for DAC ... You might print out w_delay (with...
  2. max PWM: LC 24 mhz Teensy3* F_BUS/2, ...

    max PWM:
    LC 24 mhz
    Teensy3* F_BUS/2, e.g., 30 mhz (T3.6 pins 16, 17, TPM@16mhz. PWM 8mhz)
    Teensy4 IPG clock/2 150mhz/2 = 75 mhz
  3. Here's my guess, though I haven't done the math....

    Here's my guess, though I haven't done the math.

    On the T4, FreqCount uses pin 9 to clock quad timer 4 (channels 2 and 3, atomic). Your signal generator is connected to pin 9. To measure the...
  4. Replies
    70
    Views
    12,816

    I've made NO changes to GPS.cpp. and you are...

    I've made NO changes to GPS.cpp. and you are not getting GNRMC sentences, you're getting GPRMC
  5. Replies
    70
    Views
    12,816

    confirm settings.h has #define GPS_USES_RMC ...

    confirm settings.h has

    #define GPS_USES_RMC

    #define GPS_BAUD 9600
    #define GPS_SERIAL Serial1

    #define DHCP_HOSTNAME "teensy-1"
  6. Replies
    70
    Views
    12,816

    Hmm, the simple test looks OK. What i have seen...

    Hmm, the simple test looks OK. What i have seen if you don't have an external antenna, when you power up the T4.1 ethernet, the adafruit GPS loses fix. With no fix, you get the web page that you...
  7. Replies
    70
    Views
    12,816

    here is minimal GPS test sketch running with T4.1...

    here is minimal GPS test sketch running with T4.1 and adafruit ultimate v3 GPS


    // GPS Tx to T4 pin 0 Rx, PPS to T4 pin 35, 3v3 to Vin, GND to GND
    void ding() {
    Serial.println("\nPPS");
    }...
  8. Replies
    3
    Views
    332

    several T4 GPT examples at...

    several T4 GPT examples at https://github.com/manitou48/teensy4

    of course, Teensy interval timer allows you to call a function every second.

    T4 register symbolic field names in...
  9. info and schematic here:...

    info and schematic here: https://www.lectrobox.com/products/arduino_pc_game_port_joystick_shield/

    or use your mutlimeter to see which DB15 pins are analog and which correspond to buttons ...
  10. Replies
    10
    Views
    696

    i'm using v7, CircuitPython 7.0.0 on...

    i'm using v7, CircuitPython 7.0.0 on 2021-09-20; Teensy 4.1 with IMXRT1062DVJ6A
    i tested my simple sketch in post #3 on both T4.0 and T4.1. tested with scope and with LED and 470 ohm resistor
    ...
  11. Replies
    1
    Views
    225

    Your sketch worked for me (though you don't...

    Your sketch worked for me (though you don't really need pinMode(A0, INPUT), harmless). if i jumper LC's 3.3v to A0 it reports 1023. if i jumper A0 to GND it reports 1. If A0 is unconnected you get...
  12. Replies
    10
    Views
    696

    As i recall, the teensy 4 data sheet says max...

    As i recall, the teensy 4 data sheet says max GPIO current is 4 ma. The T4 schematic shows the onboard LED (pin 13) with a 470 ohm resistor.
  13. Replies
    10
    Views
    696

    maybe start with simpler PWM test, just ...

    maybe start with simpler PWM test, just pwmio.PWMOut(board.D23, frequency=1000, duty_cycle=2**15)
    That works for me (verified with scope or logic analyzer). I don't believe D1 is a PWM pin on...
  14. Replies
    2
    Views
    282

    100ms per hour is about 27 ppm for your T4 24mhz...

    100ms per hour is about 27 ppm for your T4 24mhz crystal -- that's a little high, but each crystal is different. The RTC runs from a 32khz crystal which has its own frequency error. Here are some...
  15. reference manual (52.3.1) says "To ensure proper...

    reference manual (52.3.1) says "To ensure proper operations of GPT, the external clock input frequency should be less than 1/4 of frequency of the peripheral clock (ipg_clk)", so max is 150mhz/4 =...
  16. Replies
    8
    Views
    687

    maybe zoom in with your scope between pulse 4 and...

    maybe zoom in with your scope between pulse 4 and 5 and see if there is a spurious spike or some such ? Also with scope confirm that channels 5 thru 8 are in fact not 1500 us (the photo in post #2...
  17. Replies
    8
    Views
    687

    Hmmm, your scope output looks just like the...

    Hmmm, your scope output looks just like the output from my SPEKTRUM transmitter's trainer cable (6 channels) hooked to logic analyzer:
    25966
    The low pulse width is 380 us and the high widths vary...
  18. since UDP is unreliable (packets can be damaged...

    since UDP is unreliable (packets can be damaged ,lost, duplicated, arrive out of order) and the OS may buffer output, it is best to measure UDP performance at the receiver.

    attached are some C...
  19. It's been a while since I've messed with the...

    It's been a while since I've messed with the Teensy 4 lwIP. I recommend NativeEthernet for the Arduino Ethernet API. I did run some of my Ethernet benchmarks on your QNEthernet, see following...
  20. Replies
    70
    Views
    12,816

    Every crystal is likely to have a different...

    Every crystal is likely to have a different frequency offset (drift,ppm). The spec for the crystal specifies the expected range, e.g. +-20 ppm. FWIW, for my various Teensy 4s, here are measured...
  21. Replies
    532
    Views
    101,987

    1170 eval board updates I've added some...

    1170 eval board updates

    I've added some results from testing Paul's RSAsign on 1170 eval board (SDK)]. Crypto acceleration hardware provides 8x speedup. Also did some Ethernet/lwIP testing (TCP,...
  22. replace your 3 include's with just #include...

    replace your 3 include's with just #include <Wire.h> and use T4.1 pins 18 and 19
  23. you could generate 8 pulses with one interval...

    you could generate 8 pulses with one interval timer

    #define PIN 10
    #define PULSE_CNT 8*2

    IntervalTimer tmr;

    volatile uint32_t pulses, polarity, done;

    void pulser() {
  24. You'll need to develop your own variation of PWM...

    You'll need to develop your own variation of PWM (see teensy core sources and reference manual). The timers used for PWM can be enabled to interrupt on each pulse (compare match). Then in the ISR...
  25. Replies
    1
    Views
    269

    maybe this?...

    maybe this? https://create.arduino.cc/projecthub/muhammad-aqib/interfacing-nokia-5110-lcd-with-arduino-7bfcdd
    or https://forum.pjrc.com/threads/23551-84-by-48-LCD-support-(aka-Nokia-5110)
  26. Replies
    4
    Views
    381

    Your sketch works for me. What do you observe? ...

    Your sketch works for me. What do you observe? Packet is never received ? or reply is not seen by sender? can you ping the Teensy 4.1?
    Can you run wireshark/tcpdump and and observe the packets...
  27. it looks like the 2560 timer is configured to run...

    it looks like the 2560 timer is configured to run at 16mhz/64 (250KHz). So the tick duration is 4 us. The teensy IntervalTimer wants time in microseconds, so you need to multiply your duration...
  28. FWIW, i have anecdotal data on crystal drift...

    FWIW, i have anecdotal data on crystal drift measured with GPS PPS on various T4s, see
    https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=195166&viewfull=1#post195166
    your mileage...
  29. FWIW, i replaced the teensy-installed version of...

    FWIW, i replaced the teensy-installed version of SdFat with Greiman's latest https://github.com/greiman/SdFat, and everything (SPI and SDIO) still worked for me. (on linux)
  30. I hadn't tried the new Teensy SD/SdFat libraries,...

    I hadn't tried the new Teensy SD/SdFat libraries, so i fired up IDE 1.8.15 with TD 1.54. I used a T4.0 with Rev D audio shield to provide SPI microSD. Like Paul, your sketch printed "1", and I...
  31. can you attach a photo of your setup? what is...

    can you attach a photo of your setup? what is source of interrupt? Signal should be 3.3v, Teensy 4 is NOT 5 v tolerant. Also external signal requires a common ground with the T4.
  32. maybe provide a runnable sketch that demonstrates...

    maybe provide a runnable sketch that demonstrates the problem. this works for me ...

    void ding() {
    digitalWrite(23,1);
    digitalWrite(23,0);
    }
    void setup() {
    pinMode(23,OUTPUT);
    ...
  33. Replies
    215
    Views
    28,963

    Bill, can you provide access to your pico source...

    Bill, can you provide access to your pico source code for your ADC/SD logger?
  34. Replies
    27
    Views
    3,881

    Yes, see nodemcu I2C...

    Yes, see nodemcu I2C
  35. Replies
    27
    Views
    3,881

    you should verify each of your WAV files is in...

    you should verify each of your WAV files is in proper format (see post #17). Try running the IDE examples > audio > WavFilePlayer with Teensy WAV files (SDTEST1.WAV ...), then use your WAV files in...
  36. Replies
    2
    Views
    358

    You are off to a bad start. Take a look at the...

    You are off to a bad start. Take a look at the T3.2 schematic and the pinout card. You'll see that the chip pin 25 (PTA3) is connected to the teensy bootloader chip. A simpler test of the teensy...
  37. Replies
    15
    Views
    1,500

    your code in post #1 won't work on Teensy 4. ...

    your code in post #1 won't work on Teensy 4. There are no alternate pins (as in Teensy 3). To use pins 16 and 17 you must use Wire1, e.g. Wire1.begin() and every place you use Wire replace it...
  38. Replies
    11
    Views
    753

    here is an example of using XBAR for "slow PWM"...

    here is an example of using XBAR for "slow PWM" on Teensy 4
    https://forum.pjrc.com/threads/25164-2Hz-analogWriteFrequency-on-Teensy-3-1?p=247337&viewfull=1#post247337
  39. Replies
    4
    Views
    702

    here is an earlier post...

    here is an earlier post https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=197722&viewfull=1#post197722
    that describes using the T4 crypto accelerators for AES and SHA. The low level...
  40. Replies
    532
    Views
    101,987

    MIMXRT1170-EVK i'll update this post as...

    MIMXRT1170-EVK i'll update this post as additional tests are performed ... 1170 benchmarks

    Just received my MIMXRT1170-EVK board from mouser ($208). Using NXP MCUXpresso and NXP SDK, I have...
  41. Replies
    12
    Views
    865

    Run the TimeTeensy3 example from the IDE (File >...

    Run the TimeTeensy3 example from the IDE (File > Examples > Time > TimeTeensy3), then from your linux command line (bash) do

    TZ_adjust=-4; echo T$(($(date +%s)+60*60*$TZ_adjust)) > /dev/ttyACM0
    ...
  42. Replies
    98
    Views
    16,244

    Updates for 1.54? fix T3/T4 randomSeed()...

    Updates for 1.54?

    fix T3/T4 randomSeed()

    add T4 slow PWM
  43. 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
  44. Replies
    41
    Views
    4,930

    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
  45. Replies
    41
    Views
    4,930

    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.
  46. Replies
    41
    Views
    4,930

    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...
  47. 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.
  48. 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...
  49. 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...
  50. Replies
    215
    Views
    28,963

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