Author Topic: Answers! What can we get away with for supply voltages?  (Read 5455 times)

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Answers! What can we get away with for supply voltages?
« on: February 28, 2013, 06:46:46 pm »

What works:


Supplying VIN (regulated input) with 4.9v works for me. After the regulator the "5v" power supply ends up running at 3.48v and the digispark seems pretty happy with that.


What doesn't work:


Things started to look a little glitchy when the power supply dropped down to 4.3v on VIN and 2.95v on the "5v" connection. It seemed as though the clock speed of the digispark had become unstable enough that my LEDs weren't reliably communicating with it anymore and were missing some animation frames. When the voltage reached 4.1v on VIN and 2.62v on "5v" pin the whole thing froze up and seemed to completely fail.


Why should I care?


You can run your digispark projects off a 9v battery hooked up to vin and ground and it's going to run for fricking ever. You can use rechargeable li-ion 9v's and the protection circuit in the battery will shut it down before the voltage to the digispark reaches a point where things start glitching out. A nice clean death.


My test rig?


I have a digispark with VIN and Ground connected to a disposable 9v battery, and I've connected four florapixels cycling through rainbows so I could see the microprocessor was still running. When I check it with my multimeter the whole thing seemed to be drawing about 80ma, about 20ma of which seemed to be used by the digispark!


Ways to make the digispark use less power?


The easiest thing is to remove the little power indicator LED located right beside the VIN pin connection. If you want to take things further you can underclock the CPU. You can even break the USB connectivity by removing the 1.5kohm USB Pullup resistor for a saving of about 3ma. The 1.5kohm pullup (R3) is located on the corner furthest from the power LED. The best way is probably to just buy some raw attiny85-20PU chips and turn one of your digisparks in to a littlewire, so you can upload sketches directly to the raw chips without having to disable any other bits of random hardware.


Should I worry about anything else?


The chip clock speed goes up a little as the voltage goes down. The clock speed also goes up with ambient temperature increases when not syncing to a computer's USB port (which calibrates the digispark's clock at boot, and if you're using a digispark usb library usually keeps recalibrating it in the background too). You should also never upload sketches to a chip which is (somehow) running on less than 4.5v. Running the digispark out of spec like this is a bad idea when it needs to erase or write flash - it could glitch out and brick itself.


TL;DR:


I think we can safely say the digispark's VIN input can take voltages down to 6.0v without putting the digispark out of spec. Voltages lower than that seemed to work fine too for some applications. Want to make it official, digistump?
« Last Edit: February 28, 2013, 06:48:23 pm by Bluebie »

Mark

  • Full Member
  • ***
  • Posts: 196
Re: Answers! What can we get away with for supply voltages?
« Reply #1 on: February 28, 2013, 08:18:55 pm »
Jenna
Those regulators have a 2v dropout, and I'm surprised you managed to get Vin so low.

There are some equivalent Low voltage Dropouts which trade the higher Vin for a lower dropout.
http://nz.element14.com/on-semiconductor/lm2931dt-5-0g/ldo-reg-37vin-0-1a-5v-3dpak/dp/2102542
These are available at element 14 (sorry it always routes to nz site) for $0.93 + gst and are the same pinout.

Mark




semicolo

  • Full Member
  • ***
  • Posts: 137
Re: Answers! What can we get away with for supply voltages?
« Reply #2 on: March 01, 2013, 06:05:40 am »
At 16MHz, the chip is in spec down to 3.8V, and the limit is 3.9V at 16.5MHz.