Timeline for Trouble with sleep mode and interrupts
Current License: CC BY-SA 3.0
26 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 24, 2017 at 0:46 | history | tweeted | twitter.com/StackArduino/status/834927456071073794 | ||
Feb 15, 2017 at 21:47 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 16, 2017 at 21:39 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 17, 2016 at 21:08 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 17, 2016 at 18:14 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Oct 18, 2016 at 14:17 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Sep 18, 2016 at 14:11 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Aug 19, 2016 at 13:09 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 20, 2016 at 12:53 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 20, 2016 at 12:16 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 21, 2016 at 11:45 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
S Feb 21, 2016 at 9:06 | history | suggested | Chetan Bhargava | CC BY-SA 3.0 |
removed unnecessary tail
|
Feb 21, 2016 at 8:31 | review | Suggested edits | |||
S Feb 21, 2016 at 9:06 | |||||
Jan 2, 2016 at 13:17 | answer | added | Mikael Patel | timeline score: 2 | |
Dec 3, 2015 at 17:30 | comment | added | Chris Stratton | Sounds like your sensor may be wired with a pullup resistor - be aware that consumes power when the output is driven low against it. The hall effect sensor itself may require a few milliamps too, so you might consider a reed switch. | |
Nov 3, 2015 at 9:13 | answer | added | Igor Stoppa | timeline score: 0 | |
Oct 26, 2015 at 12:43 | comment | added | Dan Evans | Just had a thought. I have my interrupt directly on pin 4 of the 328P, in the Arduino IDE and therefore the code this is called as pin 2, could this be why you aren't seeing the sleep? | |
S Oct 26, 2015 at 10:10 | history | suggested | Chris |
added c++ tag
|
|
Oct 25, 2015 at 23:36 | review | Suggested edits | |||
S Oct 26, 2015 at 10:10 | |||||
Oct 23, 2015 at 14:58 | comment | added | Gerben |
I know that. No S s are being printed, so sleepLoop is never called.
|
|
Oct 23, 2015 at 7:17 | comment | added | Dan Evans |
I just retested this code and I am getting the correct Serial output.. I am underclocking the processor so: Serial.begin(38400); //Use Baud rate at 4800 on PC (due to 1MHz clock speed) // (38400/8)=4800
|
|
Oct 22, 2015 at 16:20 | comment | added | Gerben | Looking at the serial output, sleepLoop is never called. So all the code above has nothing to do with the problem. | |
Oct 22, 2015 at 15:10 | comment | added | Dan Evans | As you didn't have the same problems, I wonder if it is something else I have done.. My full code is here: github.com/danjuggles/Sleep-and-counter/blob/master/… | |
Oct 22, 2015 at 13:19 | comment | added | Dan Evans | Thank you for looking at this :) For me it is very repeatable. Also, I only ever get a single S. It must receive an input before being able to print S again. Datasheet claims 'No External Pull up Resistor Required'. Power usage is ~0.6mA @ 3.6V when awake, and 0.02mA @3.6V when asleep. When in 'not-asleep' its ~0.6mA, hence I believe it is awake | |
Oct 22, 2015 at 13:09 | comment | added | Gerben |
Could not reproduce. Power usage goes down in both cases and with FALLING I only get a single S printed when signal is low (and sometimes when it goes back high). Are you sure your hall-effect sensor doesn't need a pull-up resistor? What kind of serial output do you get? What is the power-usage (normal, during sleep, during "apparently not sleep")?
|
|
Oct 22, 2015 at 11:55 | history | asked | Dan Evans | CC BY-SA 3.0 |