how do I take a value from one attiny85 and send it to another attiny85

I putting together a project that uses 4 attiny85's.

3 of these will be used with an sr04 to determine a distance and then convert that distance value to an LED brightness. I know how to do this. This is going to take up 3 of the 5 GPIO pins on each of those 3 attiny's. This leaves 2 free pins on each of these MCU's.

One of those remaining pins is going to go to an RGB LED. So basically each SR04 will be determining the brightness level of one part of the RGB. (Tiny1 is doing the green, Tiny2 the red, and Tiny3 the blue.)

I can do all of the above. My problem is:

I'd like to use the last pin on each of those 3 tinys as an output and send that LED brightness value to the fourth attiny as an input. This is what I can't figure out how to do.

Thanks for any help.

An ATtiny85 can run WS2812s

I'm not sure what the 4th tiny will be doing. Possibly driving a speaker, or sending an ir signal to something, or... IDK, I'm nearly positive it won't be running an LED though, maybe and LCD. But whatever it does is going to be based off of the info the other 3 are sending it.

Like, is it possible to output a value on one of the pins and then have that value received as an input on a different Tiny?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.