Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: duff

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    788

    The T4 has lots of clocks that you have to deal...

    The T4 has lots of clocks that you have to deal with when trying to lower the RUN mode power draw. For low power modes Low Power Idle (sleep) has the Arm CPU lowered down to 132MHz (arm pll) before...
  2. Replies
    8
    Views
    788

    Currently I only have System Idle(sleep) mode...

    Currently I only have System Idle(sleep) mode working, next will be LowPower Idle (deepSleep) then Suspend (hibernate). Actually Low Power Idle is coded just haven't tested it yet.
    Current wakeup...
  3. Had to do the same thing here on my 10.13.6...

    Had to do the same thing here on my 10.13.6 MacBook Pro Mid 2012.
  4. Here is something you can do with spare compute...

    Here is something you can do with spare compute power to help with the folding of proteins to help unlock treatments for COVID-19....
  5. Replies
    2
    Views
    235

    I think it's for reverse polarity protection,...

    I think it's for reverse polarity protection, also the mosfet design has a lower voltage drop than a diode and would have less wasted heat and more voltage for the USB controller on the T4.
  6. The Teensy 4 can run with somewhat useable USB...

    The Teensy 4 can run with somewhat useable USB down to 1MHz AHB/IPG core clocks using the 24MHZ OSC as the root. OSC get divided down to the target frequency with the CLK2/AHB PDOF's. As long as...
  7. Replies
    4
    Views
    171

    If ADCx_CFG[ADHSC] registor is 0 then it's 10MHz...

    If ADCx_CFG[ADHSC] registor is 0 then it's 10MHz if it's 1 then it's 20MHz. ref: https://www.nxp.com/docs/en/nxp/data-sheets/IMXRT1060CEC.pdf
  8. Replies
    3
    Views
    197

    I'd do number 1, thats what I did. By coping the...

    I'd do number 1, thats what I did. By coping the Interval Timer code and making a new library named IntervalTimer_LP you can make all compile time constants reflect whatever cpu speed you want to...
  9. Replies
    73
    Views
    2,316

    I think the IPG_PERCLK_ROOT (peripheral clock)...

    I think the IPG_PERCLK_ROOT (peripheral clock) can be derived from either the IPG_CLK_ROOT or the OSC_CLK at 24MHz. Out of reset if you look at the register CCM_CSCMR1[PERCLK_CLK_SEL] the...
  10. Questions about 24MHz operation and clockspeed.c:...

    Questions about 24MHz operation and clockspeed.c:


    Looking at clockspeed.c and when changing the clock speed to 24MHz is the BUS clock running 12MHz? I can't tell yet.
    Are we using the RC OSC...
  11. Replies
    59
    Views
    3,455

    So it looks like I have the same problem that...

    So it looks like I have the same problem that @neurofun has with the Catalina version. When I try to open the Teensy.app it says it needs 10.14:
    18956
    18955
    Got it to work when I copied the 1.50...
  12. I'm hoping to have an update today on my GitHub....

    I'm hoping to have an update today on my GitHub. The changes are to make Snooze's main class decoupled from the underlying HAL for each Teensy chip. This broke a lot of things so I had to rewrite a...
  13. Did you look at the 'deepSleep_usb_serial'...

    Did you look at the 'deepSleep_usb_serial' example?
  14. Replies
    19
    Views
    2,523

    I wrote library that interfaces the ILI9341 and...

    I wrote library that interfaces the ILI9341 and XPT2046 to littleVGL, it has a novel 5 point touch calibration method that corrects scaling factors and mechanical misalignment of the screen using...
  15. Replies
    59
    Views
    3,455

    Yes it does work on my 10.13.4 Mac with no...

    Yes it does work on my 10.13.4 Mac with no crashes that I saw.
  16. Replies
    59
    Views
    3,455

    So I did finally got Teensyduino 1.5.0 to install...

    So I did finally got Teensyduino 1.5.0 to install correctly. For some reason my machine which is old (2012) and running Mac 10.13.4 Quarantines the Arduino ide when I download it. I checked with this...
  17. Replies
    59
    Views
    3,455

    I get this error if I try from Terminal:

    I get this error if I try from Terminal:
  18. Replies
    59
    Views
    3,455

    Downloaded Arduino 1.8.11 twice and ran it with...

    Downloaded Arduino 1.8.11 twice and ran it with no problems then downloaded and installed this Teensyduino and when I opened Arduino it crashes with this error every time now for both Arduino's I...
  19. Replies
    10
    Views
    225

    I'm going to work on this today, been out with...

    I'm going to work on this today, been out with the death flu for the last two weeks but starting to feel like half of myself again.
  20. Looks like any of the low power modes need to...

    Looks like any of the low power modes need to scale the PLL so that will limit your power mode you can go into according to your requirements. According to the documents Frank shared that would be...
  21. I have a newer version...

    I have a newer version (https://github.com/duff2013/AudioTuner) than the stock Teensy one that can reduce the cpu load by resampling the input signal at a lower sample rate and low pass filter (FIR)...
  22. Replies
    1
    Views
    224

    You need to copy the arm_math.h...

    You need to copy the arm_math.h, arm_const_structs.h and arm_comman_tables.h to the teensy ".../cores/teensy3/" directory in Arduino renaming or removing the old arm_math.h and arm_comman_tables.h....
  23. Haha, no problem. So the incoming audio...

    Haha, no problem.



    So the incoming audio is a human voice that you are trying to detect what frequency they are signing at? Not sure how you would "re-start the cycles" but you could look at...
  24. Sorry for offending your awesomeness, :cool:

    Sorry for offending your awesomeness, :cool:
  25. Correction: 24 Audio Blocks would be able to...

    Correction: 24 Audio Blocks would be able to detect a signal down to around 29 Hz actually, my bad:confused:

    85Hz would need about 10 Blocks for it to detected, this can be set here...
  26. No problem, I'll use the Audio library sample...

    No problem, I'll use the Audio library sample rate of 44117Hz, that means one sample takes around (1/44117) seconds and you will have 44117 samples in 1 second.

    An Audio block is a collection of...
  27. The number of detections would be related to the...

    The number of detections would be related to the frequency of the signal and the duration of the signal. A 85 Hz signal would at a very minimum take around 24 Audio Blocks of data to detect which is...
  28. The audio library sample rate is ~44100 Hz so...

    The audio library sample rate is ~44100 Hz so 200ms would have around 8828 samples of data or do you mean you only get 2-3 noteFrequency outputs? If the later what is the frequency range of sine...
  29. It uses a type of autocorrelation...

    It uses a type of autocorrelation (http://recherche.ircam.fr/equipes/pcm/cheveign/pss/2002_JASA_YIN.pdf) to detect the fundamental frequency of a signal mainly designed for music. The only tunable...
  30. Replies
    8
    Views
    788

    Ok I'll work on this again, it's going to be a...

    Ok I'll work on this again, it's going to be a slow slog though, there are so many things with the M7 processor that you have consider that you didn't in the arm M0/M4!
  31. Replies
    30
    Views
    2,462

    Not that its not appropriate just that you...

    Not that its not appropriate just that you probably be better served starting your own thread about this specific topic.

    As far as time stretching it looks like you know what your looking for...
  32. Replies
    30
    Views
    2,462

    I'm not exactly sure at the moment how this would...

    I'm not exactly sure at the moment how this would be done, are you looking to slow down the tempo of a piece of music while keeping the same pitch like the Amazing Slow Downer? In the future,...
  33. Replies
    8
    Views
    788

    Teensy 4.0 Low Power

    Hi All, just wanted to gauge the priority of low power operation of the Teeny 4.0? I have worked on it for Snooze off and on for a bit now and it's not exactly an easy thing to implement since it is...
  34. Replies
    30
    Views
    2,462

    Thanks for the link, I'll check out Java code to...

    Thanks for the link, I'll check out Java code to see the demodulation technique, did you implement it yet in your Audio Object?
  35. Replies
    30
    Views
    2,462

    .....Link?

    .....Link?
  36. Replies
    30
    Views
    2,462

    here is my first release of the vocoder for the...

    here is my first release of the vocoder for the Audio library -> https://github.com/duff2013/AudioEffectVocoder

    There are two examples that pitch shift (+- semitones) a female singing a short clip...
  37. Replies
    30
    Views
    2,462

    Do you have any wavelet code that runs on...

    Do you have any wavelet code that runs on Teensy3-4 using Audio library?
  38. Replies
    30
    Views
    2,462

    @MikeDB is correct, you can substantially speed...

    @MikeDB is correct, you can substantially speed up your (@Blackaddr) algorithm by using a trig equalities trick for a constant stepped sine, cos. That being said, in my work on the Oceans algorithm...
  39. Look at the example...

    Look at the example Low_power_push_Button_Hold_SD_Logger.
  40. millis/micros will be updated when woken if you...

    millis/micros will be updated when woken if you use the timer driver not the rtc driver inwhich you do currently. Try the Timer driver instead and see if that helps.
  41. Your example looks fine. I looked into this...

    Your example looks fine.


    I looked into this library a little and it uses micros to keep track of it's "os" time. When you hibernate sleep the clock that runs micros is off, so it won't be...
  42. Never used the LMIC Library but Serial printing...

    Never used the LMIC Library but Serial printing (USB) and sleeping are not going to work as you expect and could be some of your issues. For a more robust printing solution use the Hardware Serial...
  43. Ok looking at the setRtcTimer function in Snooze...

    Ok looking at the setRtcTimer function in Snooze the hours, minutes and seconds are defined uint8_t so the maximum value can only be 255 for each, so 14 days would be 336 hours! Since I'm doing a...
  44. This is very interesting, so the first RTC alarm...

    This is very interesting, so the first RTC alarm wakeup always works even if it's say three weeks away but after going back to sleep (for like a two weeks or longer), does it fail every time? Can you...
  45. It looks like you got it working but do you want...

    It looks like you got it working but do you want to add 100 msec to the timer each time you wake up? If not then you don't have to update the "TimerLength" or reset the timer it will keep that value...
  46. I've never used a gps module but it seems that...

    I've never used a gps module but it seems that you are reading the gps data then going to sleep, shouldn't you read the gps receiver after waking? Does this module toggle a pin when new data has...
  47. That time is from the gps module as far as I can...

    That time is from the gps module as far as I can see: "gps.time.minute()"
  48. Not sure why you are getting stale data, is this...

    Not sure why you are getting stale data, is this data coming from the GPS or from millis on the Teensy? Is this stale data what you are printing after waking, i.e.


    if (who == 16) {// pin wakeup...
  49. Can you try this: SnoozeBlock config(usb,...

    Can you try this:


    SnoozeBlock config(usb, digital);
  50. Replies
    4,367
    Views
    515,090

    Hi All, I've been pretty quite on the T4 as of...

    Hi All, I've been pretty quite on the T4 as of late but have made some progress with the low power features of this chip. I'm decoupling Snooze from the each of the teensy chips and putting all the...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4