Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

ATtiny26 schematic

ATtiny26 schematic

2004-12-29 by ethan@bufbotics.org

Hi everybody.

I am trying to build a circuit for an ATtiny26 (for use in a hobby
line-following robot).

It is my first venture off of my STK500, and I am cautiously trying to
make sure that I'm following best-practices for connecting pins.  I've
been combing over the datasheet and Atmel app notes.

Also, it'll be my first usage of the ISP feature which has me a little
concerned that I'm doing it wrong.

I've attached a sample schematic that I plan to start with, and I was
wondering if anybody out there would be able to take a look-see and
provide some comment, specifically with the ISP pins and header.
Also, if there are any pins I missed that have "standard" connections
(such as a pull-up on RESET, etc.).

I really appreciate any help you can provide.

Ethan
www.bufbotics.org

Re: [AVR-Chat] ATtiny26 schematic

2004-12-29 by David D. Rea

Looks like Yahoo won't let attachments though - could you post it to the
"Files" area of the group, then refer to it?

Thanks,
Dave

On Wed, 2004-12-29 at 14:19 -0500, ethan@bufbotics.org wrote:
> Hi everybody.
> 
> I am trying to build a circuit for an ATtiny26 (for use in a hobby
> line-following robot).
> 
> It is my first venture off of my STK500, and I am cautiously trying to
> make sure that I'm following best-practices for connecting pins.  I've
> been combing over the datasheet and Atmel app notes.
> 
> Also, it'll be my first usage of the ISP feature which has me a little
> concerned that I'm doing it wrong.
> 
> I've attached a sample schematic that I plan to start with, and I was
> wondering if anybody out there would be able to take a look-see and
> provide some comment, specifically with the ISP pins and header.
> Also, if there are any pins I missed that have "standard" connections
> (such as a pull-up on RESET, etc.).
> 
> I really appreciate any help you can provide.
> 
> Ethan
> www.bufbotics.org
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
-- 
David D. Rea
Tactonix Innovations
Rochester, NY
d.rea@tactonix.com

Re: [AVR-Chat] ATtiny26 schematic

2004-12-29 by David D. Rea

Whoops, my bad - my e-mail client was at fault!

Disregard!! :)

D

On Wed, 2004-12-29 at 14:21 -0500, David D. Rea wrote:
> Looks like Yahoo won't let attachments though - could you post it to the
> "Files" area of the group, then refer to it?
> 
> Thanks,
> Dave
> 
> On Wed, 2004-12-29 at 14:19 -0500, ethan@bufbotics.org wrote:
> > Hi everybody.
> > 
> > I am trying to build a circuit for an ATtiny26 (for use in a hobby
> > line-following robot).
> > 
> > It is my first venture off of my STK500, and I am cautiously trying to
> > make sure that I'm following best-practices for connecting pins.  I've
> > been combing over the datasheet and Atmel app notes.
> > 
> > Also, it'll be my first usage of the ISP feature which has me a little
> > concerned that I'm doing it wrong.
> > 
> > I've attached a sample schematic that I plan to start with, and I was
> > wondering if anybody out there would be able to take a look-see and
> > provide some comment, specifically with the ISP pins and header.
> > Also, if there are any pins I missed that have "standard" connections
> > (such as a pull-up on RESET, etc.).
> > 
> > I really appreciate any help you can provide.
> > 
> > Ethan
> > www.bufbotics.org
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
-- 
David D. Rea
Tactonix Innovations
Rochester, NY
d.rea@tactonix.com

Re: [AVR-Chat] ATtiny26 schematic

2004-12-29 by ethan@bufbotics.org

Just in case, I uploaded the schematic to the files area of the Yahoo
group.  The file name is "ethan-isp_test.sch"

http://f5.grp.yahoofs.com/v1/sP7SQX-4E5pLd0s-ARmUSlONKnfdbWl9RUOU0aVtmjqSOiXq2tHzMpJLWXscCWLIw0UCRjXuNjhMaFxPOJeS4J_xEcNgDw/ethan-isp-test.sch



Ethan
www.bufbotics.org
Show quoted textHide quoted text
>
>  On Wed, 2004-12-29 at 14:21 -0500, David D. Rea wrote:
>  > Looks like Yahoo won't let attachments though - could you post it to
> the
>  > "Files" area of the group, then refer to it?
>  >
>  > Thanks,
>  > Dave
>  >
>  > On Wed, 2004-12-29 at 14:19 -0500, ethan@bufbotics.org wrote:
>  > > Hi everybody.
>  > >
>  > > I am trying to build a circuit for an ATtiny26 (for use in a hobby
>  > > line-following robot).
>  > >
>  > > It is my first venture off of my STK500, and I am cautiously trying
> to
>  > > make sure that I'm following best-practices for connecting pins.
> I've
>  > > been combing over the datasheet and Atmel app notes.
>  > >
>  > > Also, it'll be my first usage of the ISP feature which has me a
> little
>  > > concerned that I'm doing it wrong.
>  > >
>  > > I've attached a sample schematic that I plan to start with, and I was
>  > > wondering if anybody out there would be able to take a look-see and
>  > > provide some comment, specifically with the ISP pins and header.
>  > > Also, if there are any pins I missed that have "standard"
> connections
>  > > (such as a pull-up on RESET, etc.).
>  > >
>  > > I really appreciate any help you can provide.
>  > >
>  > > Ethan
>  > > www.bufbotics.org
>  > >
>  > >
>  > >
>  > >
>  > > Yahoo! Groups Links
>  > >
>  > >
>  > >
>  > >
>  --
>  David D. Rea
>  Tactonix Innovations
>  Rochester, NY
>  d.rea@tactonix.com
>
>
>       Yahoo! Groups Sponsor     ADVERTISEMENT
>
>   Yahoo! Groups Links
>   To visit your group on the web, go to:
> http://groups.yahoo.com/group/AVR-Chat/
>   To unsubscribe from this group, send an email to:
> AVR-Chat-unsubscribe@yahoogroups.com
>   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Re: [AVR-Chat] ATtiny26 schematic

2004-12-29 by Leon Heller

ethan@bufbotics.org wrote:

> Hi everybody.
>
> I am trying to build a circuit for an ATtiny26 (for use in a hobby
> line-following robot).
>
> It is my first venture off of my STK500, and I am cautiously trying to
> make sure that I'm following best-practices for connecting pins.  I've
> been combing over the datasheet and Atmel app notes.
>
> Also, it'll be my first usage of the ISP feature which has me a little
> concerned that I'm doing it wrong.
>
> I've attached a sample schematic that I plan to start with, and I was
> wondering if anybody out there would be able to take a look-see and
> provide some comment, specifically with the ISP pins and header.
> Also, if there are any pins I missed that have "standard" connections
> (such as a pull-up on RESET, etc.).
>

What program was used to create the schematic? Can you post it as a PDF?

Leon


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 26/12/2004

Re: [AVR-Chat] ATtiny26 schematic

2004-12-29 by ethan@bufbotics.org

>
>  What program was used to create the schematic? Can you post it as a PDF?
>
>  Leon
>


I used ExpressPCB schematic editor to produce the doc.
I uploaded a PDF version to the Yahoo groups area for ease of viewing.  I
hope the quality is reasonable.


http://f5.grp.yahoofs.com/v1/sP7SQec7RBZLd0s-qInjIMOHElJluIxP3xIDN5tITMAjY6qRnA_RfIz28J-jywnvapKFUP9BAOfJg0TJHovVruWtlQ-l0g/ethan-isp-test.pdf


Ethan
www.bufbotics.org

RE: [AVR-Chat] ATtiny26 schematic

2004-12-29 by Alex Shepherd

> I've attached a sample schematic that I plan to start with, 
> and I was wondering if anybody out there would be able to 
> take a look-see and provide some comment, specifically with 
> the ISP pins and header. Also, if there are any pins I missed 
> that have "standard" connections (such as a pull-up on RESET, etc.).

You might wan to add a diode from the RESET line to the +5V line to protect
it from ESD as that pin does not have the normal ESD protection diodes. Also
have you read the Atmel Ap note: AVR042: AVR Hardware Design Considerations
http://www.atmel.com/dyn/resources/prod_documents/doc2521.pdf 

Alex

Re: ATtiny26 schematic

2004-12-29 by leon_heller

--- In AVR-Chat@yahoogroups.com, ethan@b... wrote:
> >
> >  What program was used to create the schematic? Can you post it 
as a PDF?
> >
> >  Leon
> >
> 
> 
> I used ExpressPCB schematic editor to produce the doc.
> I uploaded a PDF version to the Yahoo groups area for ease of 
viewing.  I
> hope the quality is reasonable.

It looks OK. You don't need the pullup resistors on the ISP 
connections.

Leon

Re: [AVR-Chat] ATtiny26 schematic

2004-12-29 by Eric

very good, link does not work
Show quoted textHide quoted text
----- Original Message -----
From: <ethan@bufbotics.org>
To: <AVR-Chat@yahoogroups.com>
Sent: Thursday, December 30, 2004 8:57 AM
Subject: Re: [AVR-Chat] ATtiny26 schematic



>
>  What program was used to create the schematic? Can you post it as a PDF?
>
>  Leon
>


I used ExpressPCB schematic editor to produce the doc.
I uploaded a PDF version to the Yahoo groups area for ease of viewing.  I
hope the quality is reasonable.


http://f5.grp.yahoofs.com/v1/sP7SQec7RBZLd0s-qInjIMOHElJluIxP3xIDN5tITMAjY6qRnA_RfIz28J-jywnvapKFUP9BAOfJ
g0TJHovVruWtlQ-l0g/ethan-isp-test.pdf


Ethan
www.bufbotics.org






Yahoo! Groups Links

Re: [AVR-Chat] ATtiny26 schematic

2004-12-29 by David D. Rea

OK, was able to read the PDF version...

Your ISP looks fine - I have several circuits programming happily now
even without R3, R4 and R5. 

If I might be so presumptuous as to make some other recommendations...
First, dump that 7805. There are plenty of newer, more efficient low
dropout linears on the market now. Many of them can be sampled free from
TI. 

Second, don't tie up PB6 with a heartbeat LED, which (in the grand
scheme of things) is a task of relatively low importance. Remember that
PB6 is also the transmit pin for the USI, and your ONLY external
interrupt pin.

Just some food for thought...

D

On Wed, 2004-12-29 at 14:57 -0500, ethan@bufbotics.org wrote:
> >
> >  What program was used to create the schematic? Can you post it as a PDF?
> >
> >  Leon
> >
> 
> 
> I used ExpressPCB schematic editor to produce the doc.
> I uploaded a PDF version to the Yahoo groups area for ease of viewing.  I
> hope the quality is reasonable.
> 
> 
> http://f5.grp.yahoofs.com/v1/sP7SQec7RBZLd0s-qInjIMOHElJluIxP3xIDN5tITMAjY6qRnA_RfIz28J-jywnvapKFUP9BAOfJg0TJHovVruWtlQ-l0g/ethan-isp-test.pdf
> 
> 
> Ethan
> www.bufbotics.org
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
-- 
David D. Rea
Tactonix Innovations
Rochester, NY
d.rea@tactonix.com

Re: [AVR-Chat] Re: ATtiny26 schematic

2004-12-30 by ethan@bufbotics.org

Ok, cool.  Thank you all for your enthusiastic responses.

To summarize your ideas (and toss in a few new questions):

1) On the RESET pin, I should use a diode (and pull-up resistor) as
documented in Atmel AppNote AVR042.  They also have a capacitor in the
note, do you guys recommend that as well?

2) Dont waste B6 on a heartbeat, since that pin has too many other
alternative uses.  Perhaps A7? Then I'd only be losing an ADC, correct?

3) There's better voltage regulators than the 7805.  Well, for this
particular project, I'm going to stick to the age old "a voltage regulator
in the hand is better than two in the bush" and use the 7805 sitting in my
basement.  Any recommendations for the next time I'm in the mood to buy
some regulators that're in the same neighborhood as 7805?

4) No pull-ups needed on MOSI, MISO & SCK. I understand that they aren't
needed if I'm not using those 3 pins for general I/O use, but according to
the same AppNote mentioned above (AVR042), in figure 5 on page 6, they
recommend 4.7k resistors in between the pin and any I/O load.  SOOOOO,
even though I didnt connect anything in my schematic, let's pretend I was
going to use B0-2 for something else.  Do I need a resistor in the
following situations:
    * using a pin as output
    * using a pin as input
    * using a pin as PWM output
    * anything else?


Thank you all again for your constructive feedback.  This is extremely
helpful.

Ethan
www.bufbotics.org

Re: [AVR-Chat] ATtiny26 schematic

2004-12-30 by Eric

THIS URL STILL DOES NOT WORK



HELLO HELLO IS THERE LIFE OUT THERE ????
Show quoted textHide quoted text
----- Original Message -----
From: <ethan@bufbotics.org>
To: <AVR-Chat@yahoogroups.com>
Sent: Thursday, December 30, 2004 8:57 AM
Subject: Re: [AVR-Chat] ATtiny26 schematic



>
>  What program was used to create the schematic? Can you post it as a PDF?
>
>  Leon
>


I used ExpressPCB schematic editor to produce the doc.
I uploaded a PDF version to the Yahoo groups area for ease of viewing.  I
hope the quality is reasonable.


http://f5.grp.yahoofs.com/v1/sP7SQec7RBZLd0s-qInjIMOHElJluIxP3xIDN5tITMAjY6qRnA_RfIz28J-jywnvapKFUP9BAOfJ
g0TJHovVruWtlQ-l0g/ethan-isp-test.pdf


Ethan
www.bufbotics.org






Yahoo! Groups Links

Re: [AVR-Chat] ATtiny26 schematic

2004-12-30 by Kathy Quinlan

Eric wrote:

> THIS URL STILL DOES NOT WORK
> 
> 
> 
> HELLO HELLO IS THERE LIFE OUT THERE ????

It will not work thanks to Yahoo and their stupid sesion ID's in a Link, 
you will have to go to : www.groups.yahoo.com then to the AVR-Chat site, 
files and look for a file called "ethan-isp-test.pdf"

Regards,

Kat.


-- 
---------------------------------------------------------------
K.A.Q. Electronics	Website: www.kaqelectronics.dyndns.org
IM: Yahoo: PinkyDwaggy  MSN: katinka@kaqelectronics.dyndns.org
For Everything Electronics     Phone: 0419 923 731
---------------------------------------------------------------	


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 28/12/2004

Re: [AVR-Chat] ATtiny26 schematic

2004-12-30 by ethan@bufbotics.org

>       THIS URL STILL DOES NOT WORK
>
>  HELLO HELLO IS THERE LIFE OUT THERE ????
>

Yeah, there's still life out here :-)

I can't really vouch for the URL I pasted in the earlier email, I think
yahoo does something funny when you copy a link.

The file can be accessed from the files section of the yahoo group:
....
Hey, just as I was typing this email, I tried for fun the following, and
it worked...

http://groups.yahoo.com/group/AVR-Chat/files/ethan-isp-test.pdf

Give that one a look-see. Let me know if she still doesn't work.

Ethan
www.bufbotics.org

Re: [AVR-Chat] ATtiny26 schematic

2004-12-30 by Eric

(this is what I get to
I'm not sure of my ID or password maybe I will just ................. )

Yahoo! - Help
Welcome to Yahoo! Groups Sign in with your ID and password to continue. New to Yahoo!? Sign up now to enjoy Yahoo! Groups
• Share photos & files • Plan group events • Stay in touch with friends and family • Send a newsletter • Find people who share your interests

... and much more!
Existing Yahoo! users
Enter your ID and password to sign in Yahoo! ID: Password: Remember my ID on this computer Mode:Standard | Secure Sign-in help Forgot your password? Copyright © 2004 Yahoo! Inc. All rights reserved. Copyright Policy Terms of Service Guide to Online Security
NOTICE: We collect personal information on this site.
To learn more about how we use your information, see our Privacy Policy
----- Original Message -----
Sent: Thursday, December 30, 2004 4:30 PM
Subject: Re: [AVR-Chat] ATtiny26 schematic



> THIS URL STILL DOES NOT WORK
>
> HELLO HELLO IS THERE LIFE OUT THERE ????
>

Yeah, there's still life out here :-)

I can't really vouch for the URL I pasted in the earlier email, I think
yahoo does something funny when you copy a link.

The file can be accessed from the files section of the yahoo group:
....
Hey, just as I was typing this email, I tried for fun the following, and
it worked...

http://groups.yahoo.com/group/AVR-Chat/files/ethan-isp-test.pdf

Give that one a look-see. Let me know if she still doesn't work.

Ethan
www.bufbotics.org




------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dN_tlB/TM
--------------------------------------------------------------------~->


Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/

<*> To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [AVR-Chat] Re: ATtiny26 schematic

2004-12-30 by Leon Heller

ethan@bufbotics.org wrote:

> Ok, cool.  Thank you all for your enthusiastic responses.
>
> To summarize your ideas (and toss in a few new questions):
>
> 1) On the RESET pin, I should use a diode (and pull-up resistor) as
> documented in Atmel AppNote AVR042.  They also have a capacitor in the
> note, do you guys recommend that as well?

A capacitor can be useful if you have a reset switch, to avoid resetting 
caused by noise on the input.


>
> 2) Dont waste B6 on a heartbeat, since that pin has too many other
> alternative uses.  Perhaps A7? Then I'd only be losing an ADC, correct?
>
> 3) There's better voltage regulators than the 7805.  Well, for this
> particular project, I'm going to stick to the age old "a voltage regulator
> in the hand is better than two in the bush" and use the 7805 sitting in my
> basement.  Any recommendations for the next time I'm in the mood to buy
> some regulators that're in the same neighborhood as 7805?

ST makes an LDO regulator in TO92 which I often use. It's similar to the 
78L05, but much better.

>
> 4) No pull-ups needed on MOSI, MISO & SCK. I understand that they aren't
> needed if I'm not using those 3 pins for general I/O use, but according to
> the same AppNote mentioned above (AVR042), in figure 5 on page 6, they
> recommend 4.7k resistors in between the pin and any I/O load.  SOOOOO,
> even though I didnt connect anything in my schematic, let's pretend I was
> going to use B0-2 for something else.


You've got them connected wrong, they should be in series with the ISP 
connector pins, not used as pullups.


> Do I need a resistor in the
> following situations:
>     * using a pin as output
>     * using a pin as input
>     * using a pin as PWM output
>     * anything else?

You might need a pullup resistor sometimes on inputs, the built-in one 
is rather 'weak'. You also need one if you are using I2C devices.

Leon


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 26/12/2004

Re: [AVR-Chat] Re: ATtiny26 schematic

2004-12-30 by Ralph Hilton

On Wed, 29 Dec 2004 20:44:17 -0500 (EST) you wrote:

>
>Ok, cool.  Thank you all for your enthusiastic responses.
>
>To summarize your ideas (and toss in a few new questions):
>
>1) On the RESET pin, I should use a diode (and pull-up resistor) as
>documented in Atmel AppNote AVR042.  They also have a capacitor in the
>note, do you guys recommend that as well?
>
>2) Dont waste B6 on a heartbeat, since that pin has too many other
>alternative uses.  Perhaps A7? Then I'd only be losing an ADC, correct?
>
>3) There's better voltage regulators than the 7805.  Well, for this
>particular project, I'm going to stick to the age old "a voltage regulator
>in the hand is better than two in the bush" and use the 7805 sitting in my
>basement.  Any recommendations for the next time I'm in the mood to buy
>some regulators that're in the same neighborhood as 7805?

I use the LP2950 - very low quiescent current and low dropout.
--
Ralph Hilton
http://www.ralphhilton.org
C-Meter: http://www.cmeter.org
FZAOINT http://www.fzaoint.net

Re: [AVR-Chat] Re: ATtiny26 schematic

2004-12-31 by David D. Rea

On Wed, 2004-12-29 at 20:44 -0500, ethan@bufbotics.org wrote:

> 4) No pull-ups needed on MOSI, MISO & SCK. I understand that they aren't
> needed if I'm not using those 3 pins for general I/O use, but according to
> the same AppNote mentioned above (AVR042), in figure 5 on page 6, they
> recommend 4.7k resistors in between the pin and any I/O load.  SOOOOO,
> even though I didnt connect anything in my schematic, let's pretend I was
> going to use B0-2 for something else.  Do I need a resistor in the
> following situations:
>     * using a pin as output
>     * using a pin as input
>     * using a pin as PWM output
>     * anything else?

What you use the pin for in "real life" is fairly irrelevant - the 4K7
resistors are there to limit current to any other circuitry while you're
in programming mode. They're meant to keep the programmer from sourcing
excessive current to other portions of your circuit.

Just be careful with these if you're doing anything high speed. Say for
instance you've got your 4K7 resistor between the programming line and
the "outside world" and that outside world happens to be the gate of a
FET. And you happen to be using that FET as a PWM driver for something
big. Remember that you have an R-C LPF at that point, created by the
current-limiting resistor and the (potentially sizable) gate capacitance
of the FET.

So you set up your FET-gated PWM'd jobbie, set the PWM frequency for
1MHz, and nothing happens. This is probably because the FET's gate
voltage is never getting above the threshold voltage since you're just
barely starting to charge the gate cap with each PWM cycle.

The 4K7 resistors also work the other way around. Let's say you've got a
voltage divider between Vcc and Ground, giving you a sampling voltage to
detect a low battery condition. And since there aren't any ADC inputs
muxed into the SPI port, let's say you're doing some spiffy schottkey
effect stuff with the digital IO port to determine if your batteries are
low. Work with me here people :)

If that's the case, then your voltage divider would normally force the
voltage on that programmer line. But since you've got the 4K7 resistor
in there, it the programmer can pull the line either way it wants. In
normal (non-programming) operation, the leakage current on the IO pin is
very low, so microamps at most flow through the 4K7 limiting resistor,
thus keeping your measurement error minimal.

OK enough hot air out of me for a while... :)

Dave

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.