Author Topic: Arduino pro mini - program failure at 9V  (Read 4602 times)

0 Members and 2 Guests are viewing this topic.

Offline mtdocTopic starter

  • Super Contributor
  • ***
  • Posts: 3575
  • Country: us
Arduino pro mini - program failure at 9V
« on: October 25, 2015, 07:19:37 pm »
So I'm putting together a Star Wars Jawa costume for one of my sons for  Halloween.   I decided to jazz it up with some LEDs and for the sake of speed and simplicity resorted to using one of these Pro Minis - doing a slight modification of the stock "Knight Rider 3" sketch - just adding a momentary switch to be able to turn on the effect.

For some reason the sketch will not run when the supply voltage is greater than about 8 volts.  I plan on powering it with a 9V battery.  The problem was easily solved with a voltage divider but I don't understand why it wouldn't work with 9V.  I've powered several Pro Mini projects with 9v in the past without issue.

I'm sure there's a simple explanation that my amateur brain is missing. Thanks to anyone who can enlighten me.
 

Offline dadler

  • Supporter
  • ****
  • Posts: 851
  • Country: us
Re: Arduino pro mini - program failure at 9V
« Reply #1 on: October 25, 2015, 07:27:50 pm »
How much current is your circuit pulling?
 

Offline miceuz

  • Frequent Contributor
  • **
  • Posts: 387
  • Country: lt
    • chirp - a soil moisture meter / plant watering alarm
Re: Arduino pro mini - program failure at 9V
« Reply #2 on: October 25, 2015, 07:30:36 pm »
Check the voltage on the output of the regulator. Usually regulators on those boards are swept from a factory floor somewhere and don't meet specs at all. As a workaround, get yourself a dc - dc buck module from the same source and power the Arduino board via it to 5V directly.

Offline mtdocTopic starter

  • Super Contributor
  • ***
  • Posts: 3575
  • Country: us
Re: Arduino pro mini - program failure at 9V
« Reply #3 on: October 25, 2015, 07:31:53 pm »
How much current is your circuit pulling?

20-30mA
 

Offline mtdocTopic starter

  • Super Contributor
  • ***
  • Posts: 3575
  • Country: us
Re: Arduino pro mini - program failure at 9V
« Reply #4 on: October 25, 2015, 07:37:51 pm »
Check the voltage on the output of the regulator. Usually regulators on those boards are swept from a factory floor somewhere and don't meet specs at all. As a workaround, get yourself a dc - dc buck module from the same source and power the Arduino board via it to 5V directly.

That's a good point.  I should have thought to check that - it didn't occur to me that a faulty regulator would cause that kind of failure (though it should have ::).  I'll look at that the next time I fire it up.

I solved the issue with a voltage divider dropping the battery voltage to 7.5V or so.  It only has to work for a few hours on Halloween....
« Last Edit: October 25, 2015, 07:52:44 pm by mtdoc »
 

Offline LabSpokane

  • Super Contributor
  • ***
  • Posts: 1899
  • Country: us
Re: Arduino pro mini - program failure at 9V
« Reply #5 on: October 25, 2015, 10:21:32 pm »
Have any 78XX series voltage regulators lying around? 
 

Offline miceuz

  • Frequent Contributor
  • **
  • Posts: 387
  • Country: lt
    • chirp - a soil moisture meter / plant watering alarm
Re: Arduino pro mini - program failure at 9V
« Reply #6 on: October 26, 2015, 10:52:26 am »
I solved the issue with a voltage divider dropping the battery voltage to 7.5V or so.  It only has to work for a few hours on Halloween....

Voltage divider is a pretty lame solution - it's either very high impedance (can not provide enough current) or very wasteful. Just use an LM7805 and power arduino directly to 5V pin.

BTW, how are you switching LEDs? Sourcing current from Arduino pin?

Offline obiwanjacobi

  • Frequent Contributor
  • **
  • Posts: 988
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Arduino pro mini - program failure at 9V
« Reply #7 on: October 26, 2015, 11:30:01 am »
You are powering it on the RAW pin, right....

(just checking)
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline mtdocTopic starter

  • Super Contributor
  • ***
  • Posts: 3575
  • Country: us
Re: Arduino pro mini - program failure at 9V
« Reply #8 on: October 26, 2015, 04:49:41 pm »

Voltage divider is a pretty lame solution - it's either very high impedance (can not provide enough current) or very wasteful. Just use an LM7805 and power arduino directly to 5V pin.

I agree - it's not the optimal solution.  But the whole idea of this was just a very small, quick solution to fit in a very small form factor - to be strapped to a 9 yr old's arm for a few hours of trick or treating.  I've got a whole bin of voltage regulators but using one would mean a bigger form factor.

Quote
BTW, how are you switching LEDs? Sourcing current from Arduino pin?

Yep - see the "knight rider" link in my first post.

This is not intended to be a finely engineered project - just something I put together in an hour one evening.

Thanks for everyone's ideas.
 

Offline mtdocTopic starter

  • Super Contributor
  • ***
  • Posts: 3575
  • Country: us
Re: Arduino pro mini - program failure at 9V
« Reply #9 on: October 26, 2015, 04:50:59 pm »
You are powering it on the RAW pin, right....

(just checking)

Yep. Thanks.
 

Offline Seekonk

  • Super Contributor
  • ***
  • Posts: 1938
  • Country: us
Re: Arduino pro mini - program failure at 9V
« Reply #10 on: October 26, 2015, 06:12:12 pm »
Nice to know it will still work to that voltage and not explode.  I was given an item with a 3.3V micro in it that didn't work.  I powered it up to 12 volts and did some testing.  The 3.3 regulator was supplying 11V to the micro.  Replaced the regulator and it has worked fine ever since.  Never thought that was possible for a 3.3V device to survive that much voltage.
 

Offline LabSpokane

  • Super Contributor
  • ***
  • Posts: 1899
  • Country: us
Re: Arduino pro mini - program failure at 9V
« Reply #11 on: October 26, 2015, 06:23:21 pm »
Mtdoc

If you need it, I can send you an APM out of my stash. It would likely make it there before the end of the week.
 

Offline mtdocTopic starter

  • Super Contributor
  • ***
  • Posts: 3575
  • Country: us
Re: Arduino pro mini - program failure at 9V
« Reply #12 on: October 26, 2015, 06:29:34 pm »
Mtdoc

If you need it, I can send you an APM out of my stash. It would likely make it there before the end of the week.

Thanks for the offer. I actually have a stash of them.  This one is actually working fine with my current bodge solution - so I haven't been bothered to change it out.
 

Offline Wilksey

  • Super Contributor
  • ***
  • Posts: 1329
Re: Arduino pro mini - program failure at 9V
« Reply #13 on: October 26, 2015, 06:38:43 pm »
Does the micro power up or does the regulator go into "over voltage protection" mode?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf