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. What Teensy are you using? If not T4.0/1 then not...

    What Teensy are you using? If not T4.0/1 then not currently but it will in the next update. There will be an option to wakeup from a reset with hibernate. I'm going to try to work on the library in...
  2. Ya I know it seems to get harder not easier now a...

    Ya I know it seems to get harder not easier now a days...


    It will only go back to sleep when you call any of the Snooze sleep functions, i.e. "sleep", "deepSleep" or "hibernate". There are some...
  3. Yes it is not implemented yet, I'll try to work...

    Yes it is not implemented yet, I'll try to work on this soon.
  4. Yes you can do this but realize that as soon as...

    Yes you can do this but realize that as soon as the Teensy wakes up your attachInterrupt callback interrupt is activated again and your callback function could be called by that interrupt anytime...
  5. To answer my own question I do already have...

    To answer my own question I do already have something for this as with the example SkeletonDriverClass in which you could rewrite any of the Drivers to better match what you are trying to do and use...
  6. Yes that's how it should work, your attached...

    Yes that's how it should work, your attached callback should work as normal after waking up and returned to the users code. So you should only have to call attachInterrupt only once in the setup...
  7. Sorry for absence, but a extended family member...

    Sorry for absence, but a extended family member has covid so I'm dealing with that now.

    This was a bad attempt at trying to explain how the internal function of the Low Power mode wakeup for...
  8. Replies
    37
    Views
    2,936

    FYI, 'hibernate' sleep should work it just wakes...

    FYI, 'hibernate' sleep should work it just wakes with a reset. I'm not surprised by those numbers, thanks for posting. Currently I'm doing a huge home automation project so I'm not going to look at...
  9. @emmanuel63 noteFreq works better than I thought...

    @emmanuel63 noteFreq works better than I thought it would for your application:)
  10. Replies
    67
    Views
    4,198

    No I haven't looked into that at all. I...

    No I haven't looked into that at all.


    I tried to make sure all the examples worked :) One caveat is that hibernate wakes through a reset currently.
  11. Replies
    67
    Views
    4,198

    Did you try to download the latest Snooze...

    Did you try to download the latest Snooze beta for T4 support? Just clone it or download the zip file I haven't updated the releases since I want to get any bugs squashed first.
  12. A couple of things that stand out is that you do...

    A couple of things that stand out is that you do not need the Timer driver just the Alarm driver. In the included sketch I also use the USBSerial driver to aid with printing to the Arduino Serial...
  13. Replies
    12
    Views
    582

    This is exactly why I refactored my Snooze...

    This is exactly why I refactored my Snooze library into different HALs for the different Teensies even if 90% of the code base is the same. It was getting to the point that I couldn't follow my own...
  14. Do you do any filtering before feeding it to...

    Do you do any filtering before feeding it to notFreq? That could help if the mic is picking up a lot of outside or internal noise. Also I found in my guitar tuning application I got better results if...
  15. Replies
    797
    Views
    41,518

    Oh cool, I just pushed an update to Snooze for...

    Oh cool, I just pushed an update to Snooze for T4.0 support. I guess I'll have to add T4.1 support now too:) I'm considering T4 support beta now but it seems to work for me, haven't looked at any...
  16. Not sure what you mean, so the latency is good...

    Not sure what you mean, so the latency is good but when the player is double timing it the algorithm can't keep up? Have you tried adjusting the threshold value? A smaller value will make the...
  17. What teensy are you using? What is the lowest...

    What teensy are you using?

    What is the lowest frequency you are expecting to measure?

    How many AUDIO_GUITARTUNER_BLOCKS do you use?
  18. Using a faster Teensy won't make the algorithm...

    Using a faster Teensy won't make the algorithm process faster, it works by processing half the number plus one of the audio blocks (AUDIO_GUITARTUNER_BLOCKS) and then spits out the fundamental...
  19. Replies
    37
    Views
    2,936

    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...
  20. Replies
    37
    Views
    2,936

    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...
  21. 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.
  22. 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....
  23. Replies
    2
    Views
    479

    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.
  24. 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...
  25. Replies
    4
    Views
    358

    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
  26. Replies
    3
    Views
    364

    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...
  27. Replies
    73
    Views
    3,797

    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...
  28. 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...
  29. Replies
    59
    Views
    5,601

    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...
  30. 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...
  31. Did you look at the 'deepSleep_usb_serial'...

    Did you look at the 'deepSleep_usb_serial' example?
  32. Replies
    26
    Views
    4,581

    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...
  33. Replies
    59
    Views
    5,601

    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.
  34. Replies
    59
    Views
    5,601

    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...
  35. Replies
    59
    Views
    5,601

    I get this error if I try from Terminal:

    I get this error if I try from Terminal:
  36. Replies
    59
    Views
    5,601

    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...
  37. Replies
    11
    Views
    435

    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.
  38. 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...
  39. 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)...
  40. Replies
    1
    Views
    335

    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....
  41. 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...
  42. Sorry for offending your awesomeness, :cool:

    Sorry for offending your awesomeness, :cool:
  43. 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...
  44. 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...
  45. 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...
  46. 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...
  47. 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...
  48. Replies
    37
    Views
    2,936

    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!
  49. Replies
    30
    Views
    3,306

    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...
  50. Replies
    30
    Views
    3,306

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