Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: DaveB

Search: Search took 0.00 seconds.

  1. Replies
    32
    Views
    1,165

    Thanks duff. Sorry for dragging this out......

    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...
  2. Replies
    32
    Views
    1,165

    Thanks for the thoughtful responses duff and...

    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...
  3. Replies
    32
    Views
    1,165

    Hmmm. I tried that earlier, specifying both...

    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...
  4. Replies
    32
    Views
    1,165

    I'll try that too, thanks, though I thought I...

    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?
  5. Replies
    32
    Views
    1,165

    Well, before I added Snooze, attachInterrupt was...

    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...
  6. Replies
    32
    Views
    1,165

    CHANGE will capture both rising and falling. ...

    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...
  7. Replies
    32
    Views
    1,165

    The attachInterrupts are in the code I posted a...

    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
    ...
  8. Replies
    32
    Views
    1,165

    I missed a couple of these questions earlier. ...

    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...
  9. Replies
    32
    Views
    1,165

    Unfortunately there is a fair amount of blocking...

    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...
  10. Replies
    32
    Views
    1,165

    As it's currently written, it wakes up one of...

    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...
  11. Replies
    32
    Views
    1,165

    Well, no luck adding attachInterrupt. Here's a...

    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...
  12. Replies
    32
    Views
    1,165

    Thanks defragster, I'm trying your suggestion. ...

    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...
  13. Replies
    32
    Views
    1,165

    That's correct. The Snooze code is working...

    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...
  14. Replies
    32
    Views
    1,165

    Snooze: Calling a function on a pin interrupt?

    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,...
  15. Snooze 6.3.8: Compile error on sleep_usb_serial

    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...
  16. Thread: Drum Trigger

    by DaveB
    Replies
    9
    Views
    4,366

    Hi Avi, you need to add a potentiometer to the...

    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:...
  17. Thread: Drum Trigger

    by DaveB
    Replies
    9
    Views
    4,366

    The piezo is taped to a metal disc and sandwiched...

    The piezo is taped to a metal disc and sandwiched between two pieces of foam.
Results 1 to 17 of 17