Arguino design to standalone project

Hello,

I have recently discovered Arduino and have some ideas to projects I'd like to try. If after getting a working prototype is it possible/difficult to convert this into a standalone board? I've done some research and answers seem to vary from having to convert the Arduino code to AVR first to being able to just put the Arduino code on some of the chips directly. Any advice /pointers appreciated and I apologise for any terminology I have used wrongly!

Dave

Hello,

DaveMac:
If after getting a working prototype is it possible/difficult to convert this into a standalone board?

Upload the final version of your program. Remove the processor from the board. Connect a pull-up resistor to RESET. Connect a resonator or crystal (plus capacitors) to XTAL1 and XTAL2. Connect 0.1 uF across all VCC / GND pairs. Connect all the accessories to the processor. Apply power to all VCC / GND pairs. Enjoy.

Purchase a replacement processor. Repeat.

(If you get a "blank" replacement processor you should install a bootloader before the stuff above.)

I've done some research and answers seem to vary from having to convert the Arduino code to AVR first

Huh? What is "AVR code"?

Any advice /pointers appreciated and I apologise for any terminology I have used wrongly!

Other than "Arduino code" and "AVR code", your terminology is fine.

These may help...
http://playground.arduino.cc/Learning/Standalone

The processor has an internal oscillator capable of running at 8 MHz so the resonator / crystal is potentially optional.

Hi Dave,

There are lots of resources online explaining how to do this. I bookmarked this one by Nick Gammon as the best I've found.

When you set it up, if you include the headers so you can use an FTDI cable or breakout you can still program it with the IDE.

Have fun ! Geoff

You can get little boards like this to populate as standalone boards
http://www.nkcelectronics.com/arduino-runtime-board-rev-b.html
many other versions exist also -
http://shop.moderndevice.com/products/rbbb-kit

http://jeelabs.com/products/jeenode

or surface mount variations if you want to go smaller
http://www.crossroadsfencing.com/CycleGadget_3_boards.jpg

or other chip types, such as '1284 or '2560
http://www.crossroadsfencing.com/BobuinoRev17/

DaveMac:
I've done some research and answers seem to vary from having to convert the Arduino code to AVR first ...

I certainly wouldn't bother doing that (whatever it means exactly). Code generated by the IDE (the .hex file) can be easily run on a standalone Arduino. The chip doesn't know which board it's on.

As strykeroz kindly pointed out, this post of mine describes doing that:

I made an alarm clock on a standalone board (using the Arduino IDE) here:

Another post about minimal boards:

Thanks for the replies, I've certainly got a lot of reading to do.

Dave