Pages: [1] 2   Go Down
Author Topic: Powering Attiny  (Read 690 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Referring to the attached picture, I faced a problem of powering Attiny.

I think it's caused by noise?
Do you have any suggestion to solve this?

Thank you.


* image.jpg (143.98 KB, 640x960 - viewed 58 times.)
« Last Edit: January 22, 2014, 01:58:20 am by hanyc93 » Logged

Croatia
Offline Offline
Sr. Member
****
Karma: 11
Posts: 432
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No cap at the output of the voltage regulator?
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Done shrinking the pic
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Thank you.
Logged

More Cowbell
Offline Offline
Edison Member
*
Karma: 11
Posts: 1025
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you have access to an oscilloscope, take a look at the voltage coming off the regulator to see if it is steady and is at the voltage you are expecting.

You say that you have 5V coming off your regulator, right?  How do you know this?  Measurement with a multimeter, oscilloscope, or just faith that the regulator is doing what you think it is doing?  What kind of regulator is it anyway?  7805?
« Last Edit: January 22, 2014, 04:55:34 am by JoeN » Logged

Vexatious Sampler

Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1029
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You say it keeps restarting, which propably meens that it is resetting.

Put a 10 KOhm resistor from reset to 5V, and a 0.1 uF capacitor from 5V to ground as close to the tiny as possible.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you have access to an oscilloscope, take a look at the voltage coming off the regulator to see if it is steady and is at the voltage you are expecting.

You say that you have 5V coming off your regulator, right?  How do you know this?  Measurement with a multimeter, oscilloscope, or just faith that the regulator is doing what you think it is doing?  What kind of regulator is it anyway?  7805?

I don't have an oscilloscope at the moment.

The ouput of VR 7805 is about 5V measured using a DMM
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You say it keeps restarting, which propably meens that it is resetting.

Put a 10 KOhm resistor from reset to 5V, and a 0.1 uF capacitor from 5V to ground as close to the tiny as possible.

Doesn't this method reset attiny? I don't want it to keep resetting.

I don't have a 0.1uF C, may I use a 100uF instead? Does the value of C matters?

Thanks.
« Last Edit: January 23, 2014, 01:06:10 am by hanyc93 » Logged

USA
Offline Offline
Jr. Member
**
Karma: 1
Posts: 79
Just an average guy with the electronics bug.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

From attiny datasheet, so pulling the pin high will not reset it.

Quote
1.1.4 RESET
Reset input. A low level on this pin for longer than the minimum pulse length will generate a reset, even if the clock
is not running and provided the reset pin has not been disabled. The minimum pulse length is given in Table 21-4
on page 165. Shorter pulses are not guaranteed to generate a reset.
The reset pin can also be used as a (weak) I/O pin.
Logged

“I have not failed. I've just found 10,000 ways that won't work.” - Thomas A. Edison

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you very much! I will try this!
Logged

More Cowbell
Offline Offline
Edison Member
*
Karma: 11
Posts: 1025
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you very much! I will try this!

The capacitor that the other poster mentioned is used to smooth out any noise on the line.  A smaller cap reacts faster to AC.  100uF is actually pretty big.   You can find .1uF, 1uF, 10uF caps anywhere.  Got any old electronic junk?  You probably have a bunch of these and don't know it.
Logged

Vexatious Sampler

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!!! Great help
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sad, 5V + 10k ohm to attiny reset pin doesn't solve the problem smiley-sad
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 29
Posts: 2240
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your AC/DC adapter is 6V and you're using an LM7805 to drop it to 5V. That's only a 1V difference, and the LM7805 is spec'd at a minimum 2V dropout voltage (the input must be 7V, minimum). I understand you're seeing 5V out so it seems to be working, but my assumption would be that it would become unstable as soon as you start pulling real current through it (dropout voltage typically rises with current).

The input and output capacitors on the regulator shouldn't be neglected either. .33uF between Vin and GND and .1uF between Vout and GND. The output can be unstable without them and you won't be able to see that with a DMM; need an oscilloscope for that.
Logged

Croatia
Offline Offline
Sr. Member
****
Karma: 11
Posts: 432
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your AC/DC adapter is 6V and you're using an LM7805 to drop it to 5V. That's only a 1V difference, and the LM7805 is spec'd at a minimum 2V dropout voltage (the input must be 7V, minimum).

The picture says that with the 6V supply it works, but not with the 9V.
Logged

Pages: [1] 2   Go Up
Jump to: