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
    75
    Views
    3,837

    you didn't provide all of your sketch, so one...

    you didn't provide all of your sketch, so one can't tell if you are using TCP or UDP. TCP has several algorithms that affect data clustering (slow-start, Nagle). At start of TCP connection, TCP...
  2. Replies
    4
    Views
    229

    server.available() returns a pointer or NULL, not...

    server.available() returns a pointer or NULL, not a boolean, so your test should be if (client) { ....
  3. I hooked up Sparkfun ADXL345...

    I hooked up Sparkfun ADXL345 to T3.6 and made the speed change to the library as described in post #2, and it works for me.

    -1, -1, 31
    -1, -1, 31
    *** DOUBLE TAP ***
    *** TAP ***
    -1, -1, 31
    -2,...
  4. Thread: TeensyTransfer

    by manitou
    Replies
    140
    Views
    65,066

    when building teensytransfertool, in the IDE ...

    when building teensytransfertool, in the IDE Tools dropdown menu, you must first set USBType to Raw HID Then after build and load, windows should recognize the Raw HID device, and you can run...
  5. Those constants are for the AVR timers. For the...

    Those constants are for the AVR timers. For the Teensy timers you'll need to mess with pinouts/Teensy_KinetisK20.h
  6. Replies
    4
    Views
    229

    ping should work, you may need to configure...

    ping should work, you may need to configure netmask and broadcast and router IP. also your .Net example uses port 20, but WebServer will be on port 80
  7. Replies
    55
    Views
    22,402

    Re: slow PWM As Paul noted, one can use...

    Re: slow PWM

    As Paul noted, one can use EXT_CLK via XBAR to flexpwm timers to get a slower clock. Here is a proof-of-concept sketch using quad-timer to provide a 10khz clock via XBAR to flexpwm...
  8. @Vucko, as Kurt suggests, photos of your...

    @Vucko, as Kurt suggests, photos of your wiring/soldering etc. would be beneficial.

    Other things to try:
    Add while(!Serial); after Serial.begin(9600); (I don't have ADXL345, so with nothing...
  9. I'm not sure Ethernet is the way to go to get ...

    I'm not sure Ethernet is the way to go to get 1 us control of your slaves. Any way to have digital connections from master to each of the slaves?

    T4.1 does support PTP, see...
  10. Replies
    55
    Views
    22,402

    Re: slow PWM with GPT I think you can run the...

    Re: slow PWM with GPT

    I think you can run the T4 GPT timer at low PWM frequency. The compare register is 32 bits so you should be able to get below 1 hz. I think you can only do 50% duty and the...
  11. Replies
    4
    Views
    175

    As Kurt noted, you get a bad ptr value if there...

    As Kurt noted, you get a bad ptr value if there is no ' '. To keep from faulting on bad ptr, replace ptr = strchr(ptr, ' ') + 1; with

    ptr = strchr(ptr, ' ');
    if (ptr == NULL ) {
    ...
  12. Replies
    4
    Views
    247

    The T4 PWM timers can interrupt on period start...

    The T4 PWM timers can interrupt on period start and on "falling edge of the PWM output". Here is a simple sketch using flexpwm (ref ch 55) on T4 pin 8. Pin 13 is toggled on the falling PWM edge in...
  13. Replies
    75
    Views
    3,837

    Well, I did some more tests and had inconsistent...

    Well, I did some more tests and had inconsistent results. It turned out I had two Udp.begin() in setup(). I fixed that and cloned in the latest FNET and NativeEthernet. Now UDP echo only works if...
  14. Replies
    75
    Views
    3,837

    I couldn't reproduce your problem, though you did...

    I couldn't reproduce your problem, though you did not specify the the UDP packet size and packet rate you were using. Also using a broadcast address
    IPAddress remoteIP(255, 255, 255, 255);
    is...
  15. Replies
    29
    Views
    1,167

    I purchased active antenna...

    I purchased active antenna and placed it on windowsill attached to my adafruit ultimate GPS, and i no longer lose lock. Settings were 9600 with GPS_USES_RMC. offset/drift look good with GPS PPS and...
  16. Replies
    29
    Views
    1,167

    You could print T4 temperature (tempmonGetTemp()...

    You could print T4 temperature (tempmonGetTemp() float degrees C) in your table printing in updateTime() to track drift and temperature.

    Here is diurnal NTP drift variation (ppm) for my home...
  17. the sdcardtest example does NOT play wav files,...

    the sdcardtest example does NOT play wav files, it just checks read speed. try example WavFilePlayer
  18. check the T4 ref manual (41.6.3). you need to...

    check the T4 ref manual (41.6.3). you need to handle/consume the ring buffer and reset the buffer flag. Just writing RDAR clears it, ENET_RDAR = ENET_RDAR;

    see FNET RDAR usage ...
  19. yep, ring buffers are full. Note that ...

    yep, ring buffers are full. Note that teensy41_ethernet.ino runs in promiscuous mode (ENET_RCR_PROM), so you can be flooded by traffic not destined for your ether mac address. Turn off promiscuous...
  20. https://en.reddit.com/r/arduino/comments/1q1chr/us...

    https://en.reddit.com/r/arduino/comments/1q1chr/using_timer1_to_count_clock_cycles/

    Timer0 interrupts every millisecond and may cause jitter in your timer1 measurement. Timer0 is used for...
  21. ddrown refactored the lwip include files so...

    ddrown refactored the lwip include files so boards.txt no longer needs to be modified. As you noted, he also changed (cleaned up) enet_init()
    visit https://github.com/ddrown/teensy41_ethernet and...
  22. On linux/windows the parrot has red shoulders in...

    On linux/windows the parrot has red shoulders in parrot.bmp, and the fix to example spitftbitmap.ino in post #48 gives the parrot the desired red shoulders. There may be other bmp examples in the...
  23. > I have a GPS providing time codes, but they are...

    > I have a GPS providing time codes, but they are so infrequent that I would like to rely on something more regular.

    Ahhh, with GPS and PPS you could have very accurate/precise time, and with a...
  24. yep, just add in your sub-second value (ms for...

    yep, just add in your sub-second value (ms for milliseconds) SNVS_LPSRTCLR = t << 15 + 32768*ms/1000;
    i've never tried it though. I don't know what you are using for setting time, but note the...
  25. Replies
    30
    Views
    514

    it looks like you are running ModemManager. try...

    it looks like you are running ModemManager. try getting rid of that. sudo apt-get purge modemmanager
  26. Replies
    75
    Views
    3,837

    Re: ftp server Maybe something can be learned...

    Re: ftp server

    Maybe something can be learned from the lwIP lib's ftp server. In 2016 with the T3.5/3.6 ethernet beta test we had a working ftp server that used lwIP and SdFat lib (v1). I...
  27. i think the SNVS_HPRTCMR and SNVS_HPRTCLR...

    i think the SNVS_HPRTCMR and SNVS_HPRTCLR registers create a 64-bit counter of the RTC crystal ticks (32768 ticks/second). Reading the pair is not "atomic" so as you noted rtc_get() in...
  28. Replies
    29
    Views
    1,167

    I think i only got B message in one experiment...

    I think i only got B message in one experiment trying to get ZDA and 115200 work on adafruit GPS ... not to worry.

    I added an offset and drift plot to post #3
  29. Replies
    30
    Views
    514

    yep, i tested with Serial Monitor open and...

    yep, i tested with Serial Monitor open and closed as per your directions in post #1. maybe upgrade to teensyduino 1.53?

    with IDE, loader, and serial monitor closed, do a ps uax | grep teen to...
  30. Replies
    29
    Views
    1,167

    I also experimented with Adafruit ultimate GPS...

    I also experimented with Adafruit ultimate GPS. I found how to enable ZDA sentences and changed baud to 115200, BUT when I cycle power on the Adafruit GPS, it reverts back to 9600, and ZDA is no...
  31. Replies
    30
    Views
    514

    sketch seems to work OK for me on ubuntu 18.04...

    sketch seems to work OK for me on ubuntu 18.04 (64-bit) with 1.8.12 and 1.53-beta2. i did see one fail to upload, but next upload was OK. nothing fatal

    Opening Teensy Loader...
    Sketch uses...
  32. Replies
    29
    Views
    1,167

    Wow, nice work on the NTPD server using GPS and...

    Wow, nice work on the NTPD server using GPS and 1088. I haven't quite figured out all the components, but I boldly reconfigured my sparkfun GPS to run at 115200 baud and emit ZDA sentences. (I did...
  33. LITE MISO SCK MOSI CS SD-CS D/C Reset Vcc GND ...

    LITE MISO SCK MOSI CS SD-CS D/C Reset Vcc GND
    3v3 12 13 11 10 4 9 8 3v3 gnd

    using https://www.adafruit.com/product/358 and Teensy lib ST7735_t3 (make sure you don't have...
  34. works for me on T3.2 1.8.12/1.53-beta2, parrot...

    works for me on T3.2 1.8.12/1.53-beta2, parrot image displays and serial monitor says

    Initializing SD card...OK!

    Loading image 'parrot.bmp'
    File size: 61496
    Image Offset: 54
    Header size:...
  35. you need to copy parrot.bmp from the library...

    you need to copy parrot.bmp from the library folder arduino-1.8.12/hardware/teensy/avr/libraries/ST7735_t3/parrot.bmp to a microSD card and then insert the microSD in the slot on the backside of...
  36. does the tick count from this sketch increase by...

    does the tick count from this sketch increase by 1000 each second? (jumper pin 12 to pin 23)

    volatile uint32_t ticks;

    void ding() {
    ticks++;
    }
    void setup() {
    while (!Serial);
    ...
  37. Replies
    2
    Views
    182

    in the ReadWrite example, you need to ignore...

    in the ReadWrite example, you need to ignore about uncommenting SCK MOSI for audio shield. For T4.0 and Rev D audio shield you need to use standard SPI pins (10-13). maybe post your sketch.
  38. Replies
    5
    Views
    315

    i changed my qtmr_cascade sketch to config 48-bit...

    i changed my qtmr_cascade sketch to config 48-bit microsecond counter like the following

    int cnt;

    cnt = 150 ; // 1 us
    TMRx->CH[0].CTRL = 0; // stop
    TMRx->CH[0].CNTR = 0;
    ...
  39. Replies
    5
    Views
    315

    it looks like you are using pin 9 as "clock...

    it looks like you are using pin 9 as "clock source" (quad timer 4 timer 2), what do you have connected to pin 9?
    your last init should be start quadtimer 4 timer 2: TMRx->CH[2].CTRL =...
  40. Replies
    13
    Views
    708

    I've added hardware TRNG for T3.5/3.6 to attached...

    I've added hardware TRNG for T3.5/3.6 to attached Entropy.cpp. Random bits are generated at 7.5 megabits/sec compared with 125 bits/sec for duelling clocks (timer drift approach).

    ref T3.5/3.6...
  41. Replies
    13
    Views
    708

    Using Paul's TRNG sample mode configuration (2)...

    Using Paul's TRNG sample mode configuration (2) from entropy lib in my T4 TRNG test sketch is faster (13484 us for 512 bits) and NIST statistical tests are good.
    ...
  42. Replies
    13
    Views
    708

    this .cpp requires the TRNG_... symbols. I don't...

    this .cpp requires the TRNG_... symbols. I don't find them defined yet in imxrt.h.
  43. Replies
    18
    Views
    392

    Looking at the data sheets both the Adafruit and...

    Looking at the data sheets both the Adafruit and Sparkfun hall sensor are tri-state devices and need pullup on output pin. Dagu data sheet actually mentions using the MCU's internal pullup on the...
  44. Thread: Teesny 4.0 FPU

    by manitou
    Replies
    7
    Views
    363

    Here are some float/double performance numbers...

    Here are some float/double performance numbers from the T4 beta test thread
    https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=194187&viewfull=1#post194187
  45. Replies
    18
    Views
    392

    I ran this sketch on my T4.0 with my adafruit...

    I ran this sketch on my T4.0 with my adafruit hall sensor (3v3, GND, 10k pullup)

    volatile uint32_t ticks;
    void myisr() {
    ticks++;
    }
    void setup() {
    Serial.begin(9600);
    while (!Serial);...
  46. Replies
    18
    Views
    392

    i have run hall sensor with T3.6 using 3v3, GND,...

    i have run hall sensor with T3.6 using 3v3, GND, and 10K pullup (to 3v3) on signal pin.
    https://maker.pro/arduino/tutorial/how-to-use-a-hall-effect-sensor-with-arduino

    make sure you got pins...
  47. Replies
    2
    Views
    138

    You might add delayMicroseconds(4); after every...

    You might add delayMicroseconds(4); after every digitalWrite(timo->csn_pin, LOW); as specified in
    https://docs.lumenrad.io/timo/spi-interface/
  48. Replies
    2
    Views
    123

    you didn't say which teensy. I have an ftp and...

    you didn't say which teensy. I have an ftp and tftp server for T4.1 using lwIP, and a tftp server using FNET/NativeEthernet lib....
  49. On the other hand, if you are just trying to read...

    On the other hand, if you are just trying to read the potentiometer voltage with the T4 ADC, then all you need to print the voltage is

    void setup() {
    }

    void loop() {
    Serial.println( 3.3 *...
  50. Replies
    4
    Views
    160

    when pin 1 is in PWM mode you can't use it for...

    when pin 1 is in PWM mode you can't use it for digital IO. Here is a thread for T3.6 and using the PWM timer's interrupt...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4