I've got a project where, for reasons of size and cost and the fact it involves several chips each performing different high speed tasks which can't be done together on one chip, I'm wanting to use ATMEGA328 chips along rather than built into an uno/duemilanove. I'm aware that there are many ways to set up a lone chip so it can be programmed from the arduino IDE and quite a few ways to use them in terms of the circuitry they need to operate, but it seems some of the tips I've found online are contradictory, so I'm not sure which methods are actually best. To this end I have a couple of questions:
- Can only ATMEGA328P chips such as https://uk.rs-online.com/web/p/processor-microcontroller-development-kits/7589339/ be used, or can any ATMEGA328 do? I've found the latter available cheaper by a few £, which matters when you need quite a large number of them.
2.Assuming that a 16MHz oscillator and a pair of 22pF capacitors are used is an ATMEGA328P (or 328 non P if that is possible, see Q1) able to be programmed just like a normal uno in terms of settings or must breadboard arduino settings be used? The same goes for the process of putting a bootloader onto the ATMEGA, must weird settings be used?
3.When wiring it up to program I've found that one takes an uno board, carefully levers out the ATMEGA (any tips on technique and tools for this?) from it and runs wires from 0 and 1 on the uno board to places on the chip. Are the oscillator and capacitors supposed to be fitted while doing this?
4.With a lone ATMEGA328 chip will I2C work exactly the same as with a full uno? I know that there are pullup resistors on these pins (4 and 5 on the uno, other numbers on the ATMEGA), but are they built into the ATMEGA or are they on the uno board? I'm thinking specifically in the context of having the ATMEGA as a slave I2C device to a raspberry Pi, with a full uno you don't need to worry about level shifting, you just run wires straight from the Pi's I2C to the arduino's and as long as the arduino stays slave this works fine despite the 5V versus 3.3V, should the same still be the case with a raw ATMEGA328.
5.Are there any safety circuits on an arduino to prevent damage which are not built into the ATMEGA328 itself, if so what extra pre-cautions need to be taken to avoid burning out a raw ATMEGA chip which aren't a worry with a full arduino?
Thanks

