Comments (8)
Hi, I'll check this out but from what I remember the T3.6 Hibernate current using TSI was in line with other wakeup methods. Also the T3.6 TSI uses the LPT (Low Power Timer) so you can't use LPT as wakeup source along with the TSI.
You can change the scan time a couple of ways but the easiest is in SnoozeTouch.cpp in function enableDriver find at the bottom of the function "LPTMR0_CMR=1" and change that number.
from snooze.
Thanks duff, 👍
I use config_teensy( touch) before , I think current was not drawn by other hardware?
then I saw your new version, and notice the standby current of SDio card (usually an extra 10mA after begin)
So I changed the block to use timer and sdCard ( SnoozeBlock config_teensy( timer, sdCard); )
SD card still drains some current but much less(<0.8~0.9mA) , and works enough for me yet, .
I did try to hack with the line "LPTMR0_CMR=1" to "LPTMR0_CMR=25" or somewhat, but didn't saw changes on current meters, so there must have some other register needed to change that I don't know :(
from snooze.
Yes any external hardware will add current, can you try just bare T3.6 and touch and see what current you measure. That way we can be one the same page.
from snooze.
I just did another test with your latest library and example Hibernate_all_wakeups and bare T3.6
with block line changed to : SnoozeBlock config_teensy36(touch);
the hibernate with touch draws near 95uA and ~200uA with SD, which is much smaller than my 0.8mA
strange, seemed to work well, possibly my device with PCB shield draws current with unknown reason , maybe it's caused by large surface designed to use for touch? which a naked board does not have. I will test that later. But touch sense are potentially use with large pads( are they?)
I did the same test couple of days ago, as I remember snoozing with touch,
and plugging in and off the built-in SD to see currency difference.
And remember the results were near 60-70mA.SD existence draws 1~2x mA depends on state.
but it was with the previous version without Sdcard block yet, could already be fixed?:\
from snooze.
95uA sounds more like it with a bare Teensy and 200uA with the SD Card inserted. I haven't explored if the touch pad size effects the current but try different sizes and let me know. Any signal lines from your shield to the Teensy can cause current draw if the pin is not configured correctly when going to any of the sleep modes. Also try to incorporate a Mosfet power switch to any hardware so you can kill the power if feasible in your project though any signal lines like SPI or I2C still have to be dealt with.
from snooze.
Yes, the other hardware is controlled by N-channel mos on my board, the build-in SD is however excluded, thanks to your SdCard block.
and signal lines are turn to high/low to make sure no voltage different and minimun current leak.
planning to add resister and logic IC to further prevent leak on signal lines.
from snooze.
I'm going to close this unless you are still having problems with the Touch sleep wake?
from snooze.
thanks for your replies :)
if I have further discovery about touch&snooze I'll let you know 👍
from snooze.
Related Issues (20)
- Snoozeblock overwritten when using multiple SnoozeBlocks in script
- Errors when compiling on TD1.54 HOT 2
- Teensy does not run when power is applied from battery HOT 1
- Can't compile examples on teensy 3.2 HOT 1
- Sleep and SPI on alternate SKC pin Teensy 3.2 HOT 1
- Error compiling on board Teensy LC with RAW_HID HOT 1
- Error compiling on board Teensy 4.0 with RAW_HID HOT 3
- Teensey 4.1 Support HOT 3
- Teensy MicroMod support HOT 1
- Teensyduino 1.56 - Snooze not working on T4.x at all HOT 2
- Conflict with MTP
- Snooze.h not working with Teensy 4 + Audio Shield HOT 3
- Snooze doesn't seem to work with any of my teensy 4.0 HOT 2
- Support for dual and triple usb serial
- Possible typo in Teensy LC SnoozeDigital for INPUT_PULLDOWN
- Complilation completly brocken
- startup_early_hook() taken by libSnooze HOT 2
- Snooze.hibernate() causes Teensy32 to lose serial coms to the bootloader for flashing
- I think Teensy LC digital wakup pins should be 6,9,10,11,13,16,21,22 not 2,6,7,9,10,11,16,21,22 as it says in README.md
- REDUCED_CPU_BLOCKS on Teensy 4?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snooze.