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
    1
    Views
    77

    SD directory listing anomaly

    Just for the record, I have a SanDisk 8 GB uSD (SDHC, fat32) that has had lots of file activity. A directory listing from SD example listfiles on various Teensy 3* and 4* microSD drives (both SPI...
  2. the examples/tutorials you are using are designed...

    the examples/tutorials you are using are designed for T3*, not Teensy 4. The Teensy 4 has no alternate SPI pins, it will use pins 10-13 for SPI. Pin 13 is SPI CLK, so that'swhy LED is flashing...
  3. Replies
    92
    Views
    17,004

    Curious, what kind of microscope are you using?

    Curious, what kind of microscope are you using?
  4. Replies
    92
    Views
    17,004

    The Ethernet MAC address and USB id are unique. ...

    The Ethernet MAC address and USB id are unique. The MCU stencil has a "batch date", me thinks, (shown in your closeup photo), but your concern is with the crystal.
  5. Replies
    92
    Views
    17,004

    That ppm is a bit high (spec 30 ppm?). My dozen...

    That ppm is a bit high (spec 30 ppm?). My dozen or so T4's are within 10 ppm, though the Teensy4-micromod is 40 ppm, but that's a different PCB layout and different crystal (Sparkfun). Is your...
  6. Replies
    2
    Views
    447

    you should look at the NTP server thread...

    you should look at the NTP server thread. PID logic is used to discipline Teensy clock using GPS PPS and NMEA. It has software for Ethernet and NTP, but there is a post about a non-ethernet...
  7. Replies
    92
    Views
    17,004

    A bit messy. capture pins are fixed by the...

    A bit messy. capture pins are fixed by the hardware. See page 297 of reference manual (search for ENET_1588_EVENT0_IN), there are 3 possible pins. library is using GPIO_B1_12. I don't know if the...
  8. Replies
    3
    Views
    292

    i have no problems with Teensy 4.1 using IDE...

    i have no problems with Teensy 4.1 using IDE 1.8.15/1.54 on Ubuntu 20.04. do you have the latest udev rules?
    https://www.pjrc.com/teensy/00-teensy.rules
  9. Replies
    5
    Views
    359

    Voila, touchRead() starter sketch for LC: ...

    Voila, touchRead() starter sketch for LC:


    #define THRESHOLD 2000
    #define LEDPIN 13

    void setup() {
    Serial.begin(9600);
    while (!Serial);
    pinMode(LEDPIN, OUTPUT);
  10. Replies
    4
    Views
    398

    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...
  11. 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
  12. 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...
  13. Replies
    92
    Views
    17,004

    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
  14. Replies
    92
    Views
    17,004

    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"
  15. Replies
    92
    Views
    17,004

    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...
  16. Replies
    92
    Views
    17,004

    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");
    }...
  17. Replies
    3
    Views
    437

    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...
  18. 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 ...
  19. Replies
    10
    Views
    894

    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
    ...
  20. Replies
    1
    Views
    283

    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...
  21. Replies
    10
    Views
    894

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

    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...
  23. Replies
    2
    Views
    346

    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...
  24. 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 =...
  25. Replies
    8
    Views
    822

    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...
  26. Replies
    8
    Views
    822

    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...
  27. 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...
  28. 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...
  29. Replies
    92
    Views
    17,004

    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...
  30. Replies
    549
    Views
    118,728

    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,...
  31. 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
  32. 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() {
  33. 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...
  34. Replies
    1
    Views
    321

    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)
  35. Replies
    4
    Views
    455

    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...
  36. 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...
  37. 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...
  38. Replies
    12
    Views
    1,050

    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)
  39. Replies
    12
    Views
    1,050

    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...
  40. 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.
  41. 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);
    ...
  42. Replies
    218
    Views
    36,445

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

    Bill, can you provide access to your pico source code for your ADC/SD logger?
  43. Replies
    27
    Views
    4,301

    Yes, see nodemcu I2C...

    Yes, see nodemcu I2C
  44. Replies
    27
    Views
    4,301

    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...
  45. Replies
    2
    Views
    430

    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...
  46. Replies
    15
    Views
    1,840

    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...
  47. Replies
    11
    Views
    879

    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
  48. Replies
    4
    Views
    788

    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...
  49. Replies
    549
    Views
    118,728

    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...
  50. Replies
    12
    Views
    998

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