Creating more I/Os using mega chips in series

Is there any way of creating more analogue and digital input output by soldering the mega chips in series and using just one 16mhz clock to time say 3-5 mega chips ?

Or is there better ways of doing this with other microprocessors in conjunction with mega chip ?

5 chips would give me 30 analogue inputs and it's not a huge cost.

I AM VERY NEW TO THIS :slight_smile: JUST ENJOYING THE PROCESS AT THE MOMENT

There's a host of expansion options much more elegant than soldering lots of micros together. I use 2 port MCP23x17 i/o chips (there are I2C and SPI versions, MCP23017 & MCP23S17). These have 2 x 8 bit digital io ports, use only a few control signals, and can be stacked up to 8 so that's 8 x 16 = 128 digital io ports. That's one option (or two really - SPI or I2C). I don't do a lot of analog stuff, so have not used analog port expanders.

You "can" buy expander shields to do this but the chips are very cheap, and very easy to set up. Anyway up to you what you do.

Can you use 2 X 16-channel analog multiplexers?