Pages: [1]   Go Down
Author Topic: ATmega328 non arduino programmer  (Read 780 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 2
Posts: 157
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all
I need a NON arduino programmer that will use the code written on the arduino ide and tested on arduino uno board .

That programmer will use the arduino ide code to program another  ATmega328 .

Any suggestions ?
elico
Logged

Leighton Buzzard, UK
Offline Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

er
you could rephrase the question so we understand it!
Logged

there are only 10 types of people
them that understands binary
and them that doesn't

Offline Offline
Full Member
***
Karma: 2
Posts: 157
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I will rewrite my question :

After i finish writing the C code on the IDE and downloading an testing in on the arduino uno , i want to duplicate the ATmega328 into a new out of board chip .

So I am looking for such a non arduino programmer that will use the code just tested to program it in a new ATmega328.

Am I clear now ?

elico
Logged

Leighton Buzzard, UK
Offline Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

aha you want to build and test a sketch in a regular Arduino environment
then use the code in another ATmega 328 in a board not using the IDE etc?

you should search on ISP

allows you to download a sketch to another board
Logged

there are only 10 types of people
them that understands binary
and them that doesn't

Offline Offline
Full Member
***
Karma: 2
Posts: 157
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not exactly
My intention is to develop my project on arduino IDE and test it on arduino uno.

After all is done I want to duplicate the content of the  arduino uno ATmega328 into a new ATmega328 chip
 that new ATmega328 will NOT BE a part of an arduino bord at programming time .

That new programmed  chip will be mounted on a new self made NONE arduino  board that will contain all external components used in design time like sensors and switches.

So i need that prorammer that will use the hex file from arduino ide and program the new ATmega328 .

Now I hope I am clear .

Elico

Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you have a socketed ATmega328 on your Arduino? The easiest way is to program the chip in your Arduino, then just pull it out and use it in your project, then put a new ATmega328 back in your Arduino.
Logged

Offline Offline
Full Member
***
Karma: 2
Posts: 157
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does that new ATmega328 have to come with a bootloader before I insert it in the arduino uno ?
elico
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Does that new ATmega328 have to come with a bootloader before I insert it in the arduino uno ?
It doesn't have to come with one. If it doesn't, though, you need to put one on the chip before the Arduino IDE can be used to upload a sketch to it.
Logged

Offline Offline
Full Member
***
Karma: 2
Posts: 157
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How exactly that bootlog is put on a new ATmega328 ?
elico
Logged

Leighton Buzzard, UK
Offline Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you can install or update the bootloader using a second UNO

look in the microntrollers forum
pages of threads on how to do it
it's quite easy
Logged

there are only 10 types of people
them that understands binary
and them that doesn't

South Texas
Offline Offline
Edison Member
*
Karma: 8
Posts: 1024
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To find out how to program the various Atmel AVR chips a good place to start would be searching under Arduino as ISP.

The process is really quite simple, you just want to use Arduino0.22 or 0.23 ti load the ArduinoISP sketch in the board you are using as the programmer. I have used it to program 328 and 2313 chips. Takes longer to read about the process than to actually do it. An 328 chip mounted on a breadboard with power and crystal/resonator hooked up along with 4 wires and the grounds tied together.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 512
Posts: 26202
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Check out the Optiloader at the bottom of this thread
http://arduino.cc/forum/index.php/topic,68183.0.html
https://github.com/WestfW/OptiLoader

Another way is to get an AVR ISP  such as this

http://www.mdfly.com/index.php?main_page=product_info&cPath=5&products_id=415

Connect it to pins on your new standalone board - Power, Gnd, Reset, D11-D12-D13 (MOSI-MISO-SCK) - which are the pins on the ICSP header -
and use the IDE to either uplaod a bootloader into your part, or upload the sketch into the part with No bootloader, so the sketch starts immediately.
IDE 1.0 supports both. Can always reprogram later if you decide to make change.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Full Member
***
Karma: 2
Posts: 157
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Many thanks to you all
Elico
Logged

Pages: [1]   Go Up
Jump to: