Thanks duff. Sorry for dragging this out... life, you know?
Another question if I may. After a wakeup, how/when does the Teensy actually go back to sleep? If Snooze wakes up on pin 22, does...
Type: Posts; User: DaveB
Thanks duff. Sorry for dragging this out... life, you know?
Another question if I may. After a wakeup, how/when does the Teensy actually go back to sleep? If Snooze wakes up on pin 22, does...
Thanks for the thoughtful responses duff and defragster! Duff, I really hope all is well on the homefront. Thanks for taking the time to respond.
If I could repeat it back:
* When a pin...
Hmmm. I tried that earlier, specifying both lines, and the results were the same. Yeah, Snooze has been a life saver so far, allowing me to run quite a few things on solar power. Hopefully it's...
I'll try that too, thanks, though I thought I needed to specify digital.pinMode to trigger Snooze's wake up. Have I got that wrong?
Well, before I added Snooze, attachInterrupt was used to make sure I didn't miss any external triggers while reading, for example, the barometric pressure sensor. Some of those sensors can take a...
CHANGE will capture both rising and falling. It's usually what I use before I realize I need to take a step back and rethink what I'm doing. :)
And yeah, the big questions for me really, are...
The attachInterrupts are in the code I posted a little bit ago, they're just commented out. Here are the changes I made when attempting to use them.
// RAINFALL INITIALIZE
...
I missed a couple of these questions earlier.
- The only pin interrupts I'm using are tied to Snooze all other external connections are either I2C or not time sensitive (e.g. power management, a...
Unfortunately there is a fair amount of blocking going on between sensor response time and XBee connections. A 10mph wind will create about five pulses per second, which means pulses will be...
As it's currently written, it wakes up one of three ways:
1) An interrupt pin that's triggered every time a few drops of rain are collected by the rain sensor.
2) An interrupt pin that's triggered...
Well, no luck adding attachInterrupt. Here's a stripped down version of the code. I attempted to remove anything that requires an Adafruit driver. If anyone has any ideas about this...
Thanks defragster, I'm trying your suggestion. I'm afraid my generic example in the first post may have confused things. I'm actually using pin 22, not 21.
If adding the attachInterrupt line...
That's correct. The Snooze code is working perfectly. I just need the Teensy to process a function as soon as the interrupt occurs, rather than wait its turn in the loop.
As this code snippet...
I'm missing something basic here. The attachInterrupt feature lets you specify a function to call when the interrupt is triggered:
pinMode(21, INPUT_PULLUP);
attachInterrupt(21, ISR_Function,...
Hello everyone. I'm trying to compile sleep_usb_serial and I'm running into the errors below. The code is unmodified. My Arduino file paths have admittedly deteriorated and it may be time for a...
Hi Avi, you need to add a potentiometer to the circuit. That will let you adjust the output from the trigger. Have a look at the circuit at the very bottom of this page:...
The piezo is taped to a metal disc and sandwiched between two pieces of foam.