Hot answers tagged

2

The only way to keep millis() running is sleep mode is to sleep in SLEEP_MODE_IDLE. Switching to Timer 2 would make no difference, as all timers but the watchdog are stopped in other sleep modes. The watchdog is horribly inaccurate, so you do not want to rely on it for any kind of timekeeping. I don't see much advantage to sleeping for 1 ms. Sleeping for ...


1

I assume, that your problem is how to connect everything to the power supply. You have some different options, depending on your requirements. The linked adaptor (barrel plug to alligator clips) doesn't seem to fit the barrel plug of the power supply. So you cannot use that. Especially it seems, that both are the male part of the connection. For every plug ...


1

A 9V battery has both low peak current and low total power (low mAh rating). It is not a good choice for any circuit that draws more than ≈100 mA. (I pulled that number out of thin air, but it's probably a decent guess) Build a battery pack from 6 AA alkaline cells instead. That will provide enough peak current. Or for much longer run-time, use 6 D sized ...


1

Use a buck/boost voltage regulator. Those are high efficiency switching regulators, and can either increase or decrease the input voltage. Feed the output of the regulator directly into the Arudino's 5V (or 3.3V) line, bypassing the on-board voltage regulator. What input voltages do the 2 devices need? Both 5V? If so, you can use a single voltage regulator ...


Only top voted, non community-wiki answers of a minimum length are eligible