Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

AVR leaching power from serial line

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR
View previous topic :: View next topic  
Author Message
eddy

Bascom Member



Joined: 09 Apr 2004
Posts: 67
Location: Near Chicago, IL USA

usa.gif
PostPosted: Wed Dec 18, 2013 1:57 am    Post subject: AVR leaching power from serial line Reply with quote

Hello Everyone,

I searched through the site but didn't find anything on this topic. The AVR chips require very little power to operate and I have a project where the AVR remains running after the power switch is turned off. The serial port is connected to a USB to serial adapter and even though I don't have the USB 5V line attached, the AVR gets enough current from the serial line to stay on.

Is there an elegant way to keep the serial line from power the AVR? I can take a brute force approach and add a relay between the serial adapter and the AVR but it seems there should be another way.

Thanks!

Eddy Wright

http://www.wrighthobbies.com

_________________
Eddy Wright
Wright Hobbies, LLC
http://www.wrighthobbies.net
Back to top
View user's profile Visit poster's website
nil_orally

Bascom Member



Joined: 07 Jun 2010
Posts: 18

australia.gif
PostPosted: Wed Dec 18, 2013 7:41 am    Post subject: Reply with quote

Hi Eddy,

a resistor is series with tx and rx lines will reduce the available current. Selecting the Brown Out Detection voltage to near rail voltage will mean when the voltage drops due to the removal of 5V, the uP will shut down.

Just a thought.
Back to top
View user's profile
eddy

Bascom Member



Joined: 09 Apr 2004
Posts: 67
Location: Near Chicago, IL USA

usa.gif
PostPosted: Wed Dec 18, 2013 1:35 pm    Post subject: Reply with quote

I looked at the brownout detection settings but since that looks at voltage, I wasn't sure it would accomplish what I wanted. But using your suggestion to limit the current along with BD, it may work if limiting the current causes the 5v to sag.

I'll give it a try and post back the results.

Eddy

_________________
Eddy Wright
Wright Hobbies, LLC
http://www.wrighthobbies.net
Back to top
View user's profile Visit poster's website
eddy

Bascom Member



Joined: 09 Apr 2004
Posts: 67
Location: Near Chicago, IL USA

usa.gif
PostPosted: Thu Dec 19, 2013 4:40 am    Post subject: Reply with quote

Turning on brownout detection did the trick. The voltage at the chip via the serial line was about 3.2v so setting BOD to 4.3 keeps the chip from staying awake when the power switch is turned off.

Thanks,
Eddy

_________________
Eddy Wright
Wright Hobbies, LLC
http://www.wrighthobbies.net
Back to top
View user's profile Visit poster's website
eddy

Bascom Member



Joined: 09 Apr 2004
Posts: 67
Location: Near Chicago, IL USA

usa.gif
PostPosted: Fri Jan 17, 2014 1:37 am    Post subject: Reply with quote

Just a follow up on this issue with power. I've been running the circuit non-stop for a month now and the problems are gone. The combination of putting current limiters on the serial lines and enable brownout detection has kept the serial line from keeping the chip running with the power off.

Since the USB serial adapter I'm using is powered by USB, the problem may not exist if the serial adapter is powered by the circuit. All of my adapters are USB powered so I don't have a way of testing this.

Eddy

_________________
Eddy Wright
Wright Hobbies, LLC
http://www.wrighthobbies.net
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum