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
    2
    Views
    85

    Can you post the sketch(s) you used to get the...

    Can you post the sketch(s) you used to get the times for the teensy 4? The T4 requires a lot of stages to get it any of the sleep modes so these times don't seem that off to me but I would have to...
  2. Replies
    2
    Views
    169

    Not yet but will get one when the MBP 16" M1...

    Not yet but will get one when the MBP 16" M1 comes out.
  3. Replies
    4
    Views
    117

    Not timeline yet but it shouldn't be any issues...

    Not timeline yet but it shouldn't be any issues porting the 4.0 to 4.1 since both are same chip.
  4. Replies
    4
    Views
    117

    Not yet, it's in the works :)

    Not yet, it's in the works :)
  5. Replies
    17
    Views
    816

    Yep, your right, (PTD2) pin 7 is not a wake up...

    Yep, your right, (PTD2) pin 7 is not a wake up pin while in deepSleep or hibernate. I'll update the example to reflect this, thanks!
  6. Replies
    17
    Views
    816

    @PaulS I'll take a look at that sketch with T-LC...

    @PaulS I'll take a look at that sketch with T-LC tonight. It worked when I was testing all the different Teensy's, does just a simple pin wakeup work?
  7. 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...
  8. Replies
    32
    Views
    1,035

    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...
  9. 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.
  10. Replies
    32
    Views
    1,035

    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...
  11. Replies
    32
    Views
    1,035

    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...
  12. Replies
    32
    Views
    1,035

    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...
  13. Replies
    32
    Views
    1,035

    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...
  14. Replies
    37
    Views
    3,680

    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...
  15. @emmanuel63 noteFreq works better than I thought...

    @emmanuel63 noteFreq works better than I thought it would for your application:)
  16. Replies
    67
    Views
    5,139

    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.
  17. Replies
    67
    Views
    5,139

    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.
  18. 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...
  19. Replies
    12
    Views
    731

    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...
  20. 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...
  21. Replies
    797
    Views
    49,341

    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...
  22. 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...
  23. 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?
  24. 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...
  25. Replies
    37
    Views
    3,680

    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...
  26. Replies
    37
    Views
    3,680

    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...
  27. 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.
  28. 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....
  29. Replies
    2
    Views
    540

    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.
  30. 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...
  31. Replies
    4
    Views
    438

    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
  32. Replies
    3
    Views
    431

    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...
  33. Replies
    73
    Views
    4,453

    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...
  34. 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...
  35. Replies
    59
    Views
    6,404

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

    Did you look at the 'deepSleep_usb_serial' example?
  38. Replies
    26
    Views
    5,333

    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...
  39. Replies
    59
    Views
    6,404

    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.
  40. Replies
    59
    Views
    6,404

    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...
  41. Replies
    59
    Views
    6,404

    I get this error if I try from Terminal:

    I get this error if I try from Terminal:
  42. Replies
    59
    Views
    6,404

    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...
  43. Replies
    17
    Views
    816

    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.
  44. 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...
  45. 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)...
  46. Replies
    1
    Views
    417

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

    Sorry for offending your awesomeness, :cool:
  49. 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...
  50. 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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4