Hi,I'm new to the whole arduino scene, and electronics in general and could use some advice please. I've got a couple of simple-ish projects that I would like to switch from the arduino to a more permanent and smaller micro-controller (atmel preferably) but I don't know how to pick which ones are suitable, or overkill etc.
As an example I've got an obstacle avoiding robot that uses 6 digital pins (5 output, 1 input) and 1 analogue pin, the sketch size is 6.5k. Does that mean I need a chip with a flash memory of 6.5k or less?
How do I know the breakdown of a chips pins? ie: How many are digital, how many are analogue, and how many PWM? Could somebody recommend me a suitable chip for this robot and explain its attributes please?
..the sketch size is 6.5k. Does that mean I need a chip with a flash memory of 6.5k or less?
You don't say which Arduino you are currently using, but the ATmega328P as used in the Uno etc. has a lot to recommend it. It costs a bit more than some of the ATtinys but this hardly makes a difference unless dozens are involved. When you say "smaller", do you mean the physical size of the chip itself, or the entire board?
By reading the datasheet. Attributes are summarized on the first page.ATmega328P et alATtiny84 et alATtiny85 et al
Quote..the sketch size is 6.5k. Does that mean I need a chip with a flash memory of 6.5k or less?You mean the size of sketch source (the text you see in the IDE), or the compiled binary size?From the source size you cannot judge on the flash memory required, as a 6.5k source code may create binary of any size..
I may well end up doing the ATMega328p route, but its also a large chip and I assumed it was overkill?
Thanks for the reply, I'm using the Uno, and I meant that the uno board is basically bulky and has a lot of features that the robot doesn't need so I wanted something physically smaller and near enough only has the capacity for its intended use.I may well end up doing the ATMega328p route, but its also a large chip and I assumed it was overkill? They are very reasonably priced though so it will probably save all the agro. I also meant more flash than 6.5k not less, my bad.
It's not worth the bother to design or assemble your own version (at least in your case, for a "one-off").
the ATmega328P as used in the Uno etc. has a lot to recommend it.
This is essentially a UNO (same chip, pins, flash, etc..)...but about the size of a postage stamp. And costs only $10. https://www.sparkfun.com/products/11113
That depends on whether he needs a PCB to hold whatever other components he will be using.
As I want something more permanent I'll either have a PCB or protoboard connecting the brain to the various components and devices and I'd planned to just solder a holder onto the board to be able to easily remove the chip for programming adjustments