Giter Club home page Giter Club logo

Comments (8)

duff2013 avatar duff2013 commented on September 27, 2024

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.

Alan-NTHU avatar Alan-NTHU commented on September 27, 2024

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.

duff2013 avatar duff2013 commented on September 27, 2024

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.

Alan-NTHU avatar Alan-NTHU commented on September 27, 2024

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.

duff2013 avatar duff2013 commented on September 27, 2024

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.

Alan-NTHU avatar Alan-NTHU commented on September 27, 2024

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.

duff2013 avatar duff2013 commented on September 27, 2024

I'm going to close this unless you are still having problems with the Touch sleep wake?

from snooze.

Alan-NTHU avatar Alan-NTHU commented on September 27, 2024

thanks for your replies :)
if I have further discovery about touch&snooze I'll let you know 👍

from snooze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.