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. 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...
  2. 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...
  3. Replies
    60
    Views
    7,811

    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...
  4. Replies
    531
    Views
    81,323

    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,...
  5. 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
  6. 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() {
  7. 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...
  8. Replies
    1
    Views
    150

    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)
  9. Replies
    4
    Views
    224

    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...
  10. 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...
  11. 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...
  12. 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)
  13. 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...
  14. 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.
  15. 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);
    ...
  16. Replies
    212
    Views
    23,073

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

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

    Yes, see nodemcu I2C...

    Yes, see nodemcu I2C
  18. Replies
    27
    Views
    3,189

    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...
  19. Replies
    2
    Views
    245

    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...
  20. Replies
    15
    Views
    1,014

    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...
  21. Replies
    11
    Views
    550

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

    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...
  23. Replies
    531
    Views
    81,323

    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...
  24. Replies
    12
    Views
    647

    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
    ...
  25. Replies
    98
    Views
    12,711

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

    Updates for 1.54?

    fix T3/T4 randomSeed()

    add T4 slow PWM
  26. 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
  27. Replies
    41
    Views
    3,655

    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
  28. Replies
    41
    Views
    3,655

    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.
  29. Replies
    41
    Views
    3,655

    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...
  30. 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.
  31. 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...
  32. 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...
  33. Replies
    212
    Views
    23,073

    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...
  34. Replies
    5
    Views
    431

    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...
  35. Replies
    212
    Views
    23,073

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

    thanks. did the program report the CPU clock speed (clk_sys)? 125mhz?
  36. Replies
    212
    Views
    23,073

    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...
  37. Replies
    60
    Views
    7,811

    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...
  38. Replies
    10
    Views
    781

    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...
  39. Replies
    10
    Views
    781

    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...
  40. 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...
  41. Replies
    10
    Views
    781

    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....
  42. 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...
  43. Replies
    10
    Views
    705

    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 ...
  44. Replies
    60
    Views
    7,811

    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...
  45. Replies
    60
    Views
    7,811

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

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

    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...
  48. Replies
    12
    Views
    1,513

    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
  49. Replies
    12
    Views
    1,513

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