Two ATTINY85 hooked together

Is it possible to hook two AATINY85 together? Cause i have a project that i want to keep as small as possible but unfortunately the ATTINY85 only have 5 pins to use, then i thought about having two of them on the same board.
But the question is: how will i get information from one to another?
Can i use one of the pins from the one ATTINY85 to output data i want the other one to receive?

Having them communicate with each other will use even more pins. How many pins do you need for your project?

It depends on how many pins you need and how fast you need the attiy85s to communicate with each other.

You could communicate among each other with a 2 pin I2C interface. This will buy you 3 more pins, for instance. This is how I know:

1 attiny = 5 useful pins (1 more if you confiscate the reset pin, but you probably don't want to do that)
2 attiny = 10 pins
I2C = 2 pins.

So 10 - 2 = 8 pins total.

Is that enough? If so, then the question is how fast do you want the two attinys to communicate. I2C is a serial communication protocol...

Regards,
Jose

josep01972:
It depends on how many pins you need and how fast you need the attiy85s to communicate with each other.

You could communicate among each other with a 2 pin I2C interface. This will buy you 3 more pins, for instance. This is how I know:

1 attiny = 5 useful pins (1 more if you confiscate the reset pin, but you probably don't want to do that)
2 attiny = 10 pins
I2C = 2 pins.

So 10 - 2 = 8 pins total.

Is that enough? If so, then the question is how fast do you want the two attinys to communicate. I2C is a serial communication protocol...

Regards,
Jose

I2C = 2 pins on each chip so that would be 4, leaving you with 6

I can give you a option but if you have available only the ATtiny85 that will not help a lot.
My options is to buy 2x atmega328p SMD which are smaller than the ATTiny and have more pins,
you can connect them thru I2C and do what task you like as a normal arduino UNO. If you have experience
how to build your own PCB, how to bootload and how to solder smd components that will not be a problem.

Hope I helped, gain more experience and build more amazing things,
Domino60

If the ATTiny85 isn't big enough, but two of them would be, why not use an ATTiny84, which has 11 IO pins (not counting reset), or 9 if you use an external crystal... (or an 841 if you need/want hardware serial and/or more PWM pins - the downside is that the 84 is available in DIP, while the 841 is SMD only)

If you need the high speed super timer clocked off the PLL, the ATTiny861 has more IO pins and the PLL + high speed timer.

@Trevor_M: Opps, you are right, of course. Ends up with 1 more pin...doesn't seem worth it.

Really all depends on how many pins you are needing. The "size" can be made small by using small packages. I'm with Domino60...

Thanks everyone!
I think i'll just go with a Atmega328 instead, it's a bit of a overkill for this project since i won't be using half of the pins but that's al right, i can always expand the project with more sensors and stuff! :slight_smile: