×

Please see all COVID-19 updates here as some shipments may be delayed due to CDC safety and staffing guidelines. If you have an order or shipping question please refer to our Customer Support page. For technical questions please check out our Forums. Thank you for your continued support.

avatar

samuelclay

Member Since: February 25, 2013

Country: United States

Profile

Founder at Turn Touch

  • Looking at the ADXL362 datasheet, the 6th bit of the status register (0x0B) is the AWAKE flag. This seems to indicate whether the accelerometer is still moving and hasn't triggered the sleep threshold. So we just need to change the timer interrupt to check if the ADXL362 is still awake, and if so, reset the timer. So this is a basic check for movement when the timer runs out and does not update the timer every time there is movement, but this works for me.

    interrupts.c:

    ISR(TIMER1_OVF_vect)
    {
        // Check if accelerometer is still awake
        uint8_t statusByte = (uint8_t)ADXLReadByte((uint8_t)XL362_STATUS);
        if ((statusByte & (1 << 6))) {
            TCNT1 = t1Offset; // Reset the timer
        } else {
            sleepyTime = TRUE;
        }
    }
    
  • Most of these are 22 AWG, which according to http://www.engineeringtoolbox.com/wire-gauges-d_419.html means it can handle 5A. That's assuming single core, while this is probably stranded. So I'd assume 2.5-3A to be safe.

  • Since nobody else has mentioned it, I am using SparkFun's PicoBuck to drive this LED. I plug in a 12V 2.5A switching AC inverter to the wall and connect it to the PicoBuck (https://www.sparkfun.com/products/11850), which handles this LED just fine. It also has inputs to PWM the three channels with 3.3V/5V logic pins.

  • A new library called RadioHead was just released in April 2014 and looks like it might be easier to setup than either Mirf or NRF24.

  • Could you provide these in 8MHz?

  • I'm trying to use this board with SPI connected to an nRF24L01 for wireless communication into USB, as the receiver for a remote. But SPI is PB0-3. Only PB0 is on this breakout board, and it's on the short edge. What happens to PB1 (SCLK), PB2 (MOSI), and PB3 (MISO)?

  • I would love to see a 3.6V zener diode. Useful for building software USB on ATtinys. See the V-USB implementation here: http://vusb.wikidot.com/hardware. This allows folks to get everything they need to build a USB device using AVR entirely on Sparkfun.