All is as good, thanks. I'll check it out.
Type: Posts; User: duff
All is as good, thanks. I'll check it out.
Does it fail with deepSleep or hibernate too? Low power in the Teensy 4.0 is much more complicated than T3.x's, so getting Snooze to be solid for the 4.0 is going to take some more work on my end. As...
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...
Not yet but will get one when the MBP 16" M1 comes out.
Not timeline yet but it shouldn't be any issues porting the 4.0 to 4.1 since both are same chip.
Not yet, it's in the works :)
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!
@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?
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...
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...
Yes it is not implemented yet, I'll try to work on this soon.
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...
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...
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...
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...
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...
@emmanuel63 noteFreq works better than I thought it would for your application:)
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.
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.
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...
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...
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...
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...
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...
What teensy are you using?
What is the lowest frequency you are expecting to measure?
How many AUDIO_GUITARTUNER_BLOCKS do you use?
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...
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...
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...
Had to do the same thing here on my 10.13.6 MacBook Pro Mid 2012.
Here is something you can do with spare compute power to help with the folding of proteins to help unlock treatments for COVID-19....
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.
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...
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
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...
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...
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...
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...
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...
Did you look at the 'deepSleep_usb_serial' example?
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...
Yes it does work on my 10.13.4 Mac with no crashes that I saw.
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...
I get this error if I try from Terminal:
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...
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.
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...
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)...
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....
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...
Sorry for offending your awesomeness, :cool: