Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 2 FirstFirst 1 2
Results 26 to 28 of 28

Thread: Time signal LF Receiver Teensy DCF77 with minimal hardware effort

  1. #26
    Junior Member
    Join Date
    Jan 2020
    Posts
    6
    Another issue: I wanted to try some cross correlation to try to detect weaker signal. I added an IntervalTimer to call my very small interrupt routine every 10ms so I could sample the current signal strength. The thing went kind of crazy. Parts of the display were messed up and I think maybe it affected the sound card(?)

    Is there some other interrupt driven timer I could use?

  2. #27
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,566
    Is 'current signal strength' an analogRead?

    See if the ADC library works with DMA to read it without interrupts?

    Or depending on how fast loop() cycles just start an elapsedMillis var and sample it every 10 ms

  3. #28
    Junior Member
    Join Date
    Jan 2020
    Posts
    6
    First Rule of Programming: It is probably your own fault.

    I was writing off the end of my sample array.
    Once I sorted that out everything was good with the display.
    IntervalTimer is exonerated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •